系统日志模块新增头像日志查看清除

This commit is contained in:
dathlin
2017-07-07 10:42:02 +08:00
parent 37b24a0718
commit f207b6c2db
5 changed files with 75 additions and 0 deletions

View File

@@ -30,6 +30,7 @@
{ {
this.label1 = new System.Windows.Forms.Label(); this.label1 = new System.Windows.Forms.Label();
this.pictureBox1 = new System.Windows.Forms.PictureBox(); this.pictureBox1 = new System.Windows.Forms.PictureBox();
this.userButton4 = new HslCommunication.Controls.UserButton();
((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.pictureBox1)).BeginInit();
this.SuspendLayout(); this.SuspendLayout();
// //
@@ -51,11 +52,26 @@
this.pictureBox1.TabIndex = 1; this.pictureBox1.TabIndex = 1;
this.pictureBox1.TabStop = false; this.pictureBox1.TabStop = false;
// //
// userButton4
//
this.userButton4.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.userButton4.BackColor = System.Drawing.Color.Transparent;
this.userButton4.CustomerInformation = "";
this.userButton4.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton4.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton4.Location = new System.Drawing.Point(701, 5);
this.userButton4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton4.Name = "userButton4";
this.userButton4.Size = new System.Drawing.Size(103, 26);
this.userButton4.TabIndex = 11;
this.userButton4.UIText = "数据信息查看";
//
// FormSuper // FormSuper
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(823, 430); this.ClientSize = new System.Drawing.Size(823, 430);
this.Controls.Add(this.userButton4);
this.Controls.Add(this.pictureBox1); this.Controls.Add(this.pictureBox1);
this.Controls.Add(this.label1); this.Controls.Add(this.label1);
this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134))); this.Font = new System.Drawing.Font("微软雅黑", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(134)));
@@ -76,5 +92,6 @@
private System.Windows.Forms.Label label1; private System.Windows.Forms.Label label1;
private System.Windows.Forms.PictureBox pictureBox1; private System.Windows.Forms.PictureBox pictureBox1;
private HslCommunication.Controls.UserButton userButton4;
} }
} }

View File

@@ -87,6 +87,8 @@ namespace CommonLibrary
public static int UDP日志清空 { get; } = 11013; public static int UDP日志清空 { get; } = 11013;
public static int { get; } = 11014; public static int { get; } = 11014;
public static int { get; } = 11015; public static int { get; } = 11015;
public static int { get; } = 11016;
public static int { get; } = 11017;
/************************************************************************************** /**************************************************************************************
* *

View File

@@ -52,6 +52,8 @@ namespace 软件系统客户端模版
this.userButton13 = new HslCommunication.Controls.UserButton(); this.userButton13 = new HslCommunication.Controls.UserButton();
this.userButton14 = new HslCommunication.Controls.UserButton(); this.userButton14 = new HslCommunication.Controls.UserButton();
this.userButton15 = new HslCommunication.Controls.UserButton(); this.userButton15 = new HslCommunication.Controls.UserButton();
this.userButton16 = new HslCommunication.Controls.UserButton();
this.userButton17 = new HslCommunication.Controls.UserButton();
this.SuspendLayout(); this.SuspendLayout();
// //
// textBox1 // textBox1
@@ -381,11 +383,43 @@ namespace 软件系统客户端模版
this.userButton15.UIText = "客户端日志清空"; this.userButton15.UIText = "客户端日志清空";
this.userButton15.Click += new System.EventHandler(this.userButton15_Click); this.userButton15.Click += new System.EventHandler(this.userButton15_Click);
// //
// userButton16
//
this.userButton16.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.userButton16.BackColor = System.Drawing.Color.Transparent;
this.userButton16.CustomerInformation = "";
this.userButton16.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton16.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton16.Location = new System.Drawing.Point(734, 344);
this.userButton16.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton16.Name = "userButton16";
this.userButton16.Size = new System.Drawing.Size(103, 26);
this.userButton16.TabIndex = 28;
this.userButton16.UIText = "头像日志清空";
this.userButton16.Click += new System.EventHandler(this.userButton16_Click);
//
// userButton17
//
this.userButton17.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
this.userButton17.BackColor = System.Drawing.Color.Transparent;
this.userButton17.CustomerInformation = "";
this.userButton17.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
this.userButton17.Font = new System.Drawing.Font("微软雅黑", 9F);
this.userButton17.Location = new System.Drawing.Point(626, 344);
this.userButton17.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
this.userButton17.Name = "userButton17";
this.userButton17.Size = new System.Drawing.Size(103, 26);
this.userButton17.TabIndex = 27;
this.userButton17.UIText = "头像日志查看";
this.userButton17.Click += new System.EventHandler(this.userButton17_Click);
//
// FormLog // FormLog
// //
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F); this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(849, 547); this.ClientSize = new System.Drawing.Size(849, 547);
this.Controls.Add(this.userButton16);
this.Controls.Add(this.userButton17);
this.Controls.Add(this.userButton15); this.Controls.Add(this.userButton15);
this.Controls.Add(this.userButton14); this.Controls.Add(this.userButton14);
this.Controls.Add(this.userButton12); this.Controls.Add(this.userButton12);
@@ -443,5 +477,7 @@ namespace 软件系统客户端模版
private UserButton userButton13; private UserButton userButton13;
private UserButton userButton14; private UserButton userButton14;
private UserButton userButton15; private UserButton userButton15;
private UserButton userButton16;
private UserButton userButton17;
} }
} }

View File

@@ -125,7 +125,15 @@ namespace 软件系统客户端模版
{ {
ClearFromServer(CommonHeadCode.SimplifyHeadCode.); ClearFromServer(CommonHeadCode.SimplifyHeadCode.);
} }
private void userButton17_Click(object sender, EventArgs e)
{
ReadFromServer(CommonHeadCode.SimplifyHeadCode.);
}
private void userButton16_Click(object sender, EventArgs e)
{
ClearFromServer(CommonHeadCode.SimplifyHeadCode.);
}
/// <summary> /// <summary>
/// 查询日志的缓存 /// 查询日志的缓存
@@ -173,5 +181,6 @@ namespace 软件系统客户端模版
textBox1.Text = LogTemp; textBox1.Text = LogTemp;
} }
} }
} }

View File

@@ -714,6 +714,17 @@ namespace 软件系统服务端模版
net_simplify_server.SendMessage(state, customer, "成功"); net_simplify_server.SendMessage(state, customer, "成功");
RuntimeLogHelper.SaveWarnning("客户端日志清空"); RuntimeLogHelper.SaveWarnning("客户端日志清空");
} }
else if (customer == CommonHeadCode.SimplifyHeadCode.)
{
net_simplify_server.SendMessage(state, 0, net_file_Portrait.LogHelper.GetLogText());
RuntimeLogHelper.SaveInformation("头像日志查看");
}
else if (customer == CommonHeadCode.SimplifyHeadCode.)
{
net_file_Portrait.LogHelper.ClearLogText();
net_simplify_server.SendMessage(state, customer, "成功");
RuntimeLogHelper.SaveWarnning("头像日志清空");
}
else else
{ {
net_simplify_server.SendMessage(state, customer, data); net_simplify_server.SendMessage(state, customer, data);