添加一个功能,允许客户端在菜单中提交建议反馈的内容,服务器进行搜集,方便开发人员改进。
This commit is contained in:
@@ -33,6 +33,7 @@ namespace CommonLibrary
|
||||
public static string 注册账号 { get; } = "A009";
|
||||
public static string 更新版本号 { get; } = "A010";
|
||||
public static string 请求文件列表 { get; } = "A011";
|
||||
public static string 意见反馈 { get; } = "A012";
|
||||
|
||||
|
||||
|
||||
@@ -47,6 +48,8 @@ namespace CommonLibrary
|
||||
public static string 运行日志清空 { get; } = "B008";
|
||||
public static string 共享文件日志查看 { get; } = "B009";
|
||||
public static string 共享文件日志清空 { get; } = "B010";
|
||||
public static string 建议反馈日志查看 { get; } = "B011";
|
||||
public static string 建议反馈日志清空 { get; } = "B012";
|
||||
|
||||
/**************************************************************************************
|
||||
*
|
||||
|
||||
70
软件系统客户端模版/FormLog.Designer.cs
generated
70
软件系统客户端模版/FormLog.Designer.cs
generated
@@ -46,6 +46,8 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log = new HslCommunication.Controls.UserButton();
|
||||
this.userButton8 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton9 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton10 = new HslCommunication.Controls.UserButton();
|
||||
this.userButton11 = new HslCommunication.Controls.UserButton();
|
||||
this.SuspendLayout();
|
||||
//
|
||||
// textBox1
|
||||
@@ -57,7 +59,7 @@ namespace 软件系统客户端模版
|
||||
this.textBox1.Multiline = true;
|
||||
this.textBox1.Name = "textBox1";
|
||||
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||
this.textBox1.Size = new System.Drawing.Size(596, 463);
|
||||
this.textBox1.Size = new System.Drawing.Size(643, 498);
|
||||
this.textBox1.TabIndex = 0;
|
||||
//
|
||||
// userButton_login
|
||||
@@ -67,7 +69,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_login.CustomerInformation = "";
|
||||
this.userButton_login.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_login.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_login.Location = new System.Drawing.Point(619, 11);
|
||||
this.userButton_login.Location = new System.Drawing.Point(666, 11);
|
||||
this.userButton_login.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_login.Name = "userButton_login";
|
||||
this.userButton_login.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -82,7 +84,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton1.CustomerInformation = "";
|
||||
this.userButton1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton1.Location = new System.Drawing.Point(619, 45);
|
||||
this.userButton1.Location = new System.Drawing.Point(666, 45);
|
||||
this.userButton1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton1.Name = "userButton1";
|
||||
this.userButton1.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -97,7 +99,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton2.CustomerInformation = "";
|
||||
this.userButton2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton2.Location = new System.Drawing.Point(619, 96);
|
||||
this.userButton2.Location = new System.Drawing.Point(666, 96);
|
||||
this.userButton2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton2.Name = "userButton2";
|
||||
this.userButton2.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -112,7 +114,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton3.CustomerInformation = "";
|
||||
this.userButton3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton3.Location = new System.Drawing.Point(619, 130);
|
||||
this.userButton3.Location = new System.Drawing.Point(666, 130);
|
||||
this.userButton3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton3.Name = "userButton3";
|
||||
this.userButton3.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -127,7 +129,7 @@ namespace 软件系统客户端模版
|
||||
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(619, 181);
|
||||
this.userButton4.Location = new System.Drawing.Point(666, 181);
|
||||
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);
|
||||
@@ -142,7 +144,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton5.CustomerInformation = "";
|
||||
this.userButton5.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton5.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton5.Location = new System.Drawing.Point(619, 215);
|
||||
this.userButton5.Location = new System.Drawing.Point(666, 215);
|
||||
this.userButton5.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton5.Name = "userButton5";
|
||||
this.userButton5.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -157,7 +159,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton6.CustomerInformation = "";
|
||||
this.userButton6.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton6.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton6.Location = new System.Drawing.Point(619, 450);
|
||||
this.userButton6.Location = new System.Drawing.Point(666, 485);
|
||||
this.userButton6.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton6.Name = "userButton6";
|
||||
this.userButton6.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -172,7 +174,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton7.CustomerInformation = "";
|
||||
this.userButton7.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton7.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton7.Location = new System.Drawing.Point(619, 416);
|
||||
this.userButton7.Location = new System.Drawing.Point(666, 451);
|
||||
this.userButton7.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton7.Name = "userButton7";
|
||||
this.userButton7.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -187,7 +189,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log1.CustomerInformation = "";
|
||||
this.userButton_log1.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log1.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log1.Location = new System.Drawing.Point(12, 482);
|
||||
this.userButton_log1.Location = new System.Drawing.Point(12, 517);
|
||||
this.userButton_log1.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log1.Name = "userButton_log1";
|
||||
this.userButton_log1.Size = new System.Drawing.Size(63, 26);
|
||||
@@ -202,7 +204,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log2.CustomerInformation = "";
|
||||
this.userButton_log2.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log2.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log2.Location = new System.Drawing.Point(81, 482);
|
||||
this.userButton_log2.Location = new System.Drawing.Point(81, 517);
|
||||
this.userButton_log2.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log2.Name = "userButton_log2";
|
||||
this.userButton_log2.Size = new System.Drawing.Size(63, 26);
|
||||
@@ -217,7 +219,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log3.CustomerInformation = "";
|
||||
this.userButton_log3.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log3.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log3.Location = new System.Drawing.Point(150, 482);
|
||||
this.userButton_log3.Location = new System.Drawing.Point(150, 517);
|
||||
this.userButton_log3.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log3.Name = "userButton_log3";
|
||||
this.userButton_log3.Size = new System.Drawing.Size(63, 26);
|
||||
@@ -232,7 +234,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log4.CustomerInformation = "";
|
||||
this.userButton_log4.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log4.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log4.Location = new System.Drawing.Point(219, 482);
|
||||
this.userButton_log4.Location = new System.Drawing.Point(219, 517);
|
||||
this.userButton_log4.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log4.Name = "userButton_log4";
|
||||
this.userButton_log4.Size = new System.Drawing.Size(63, 26);
|
||||
@@ -247,7 +249,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton_log.CustomerInformation = "";
|
||||
this.userButton_log.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton_log.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton_log.Location = new System.Drawing.Point(288, 482);
|
||||
this.userButton_log.Location = new System.Drawing.Point(288, 517);
|
||||
this.userButton_log.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton_log.Name = "userButton_log";
|
||||
this.userButton_log.Size = new System.Drawing.Size(63, 26);
|
||||
@@ -262,7 +264,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton8.CustomerInformation = "";
|
||||
this.userButton8.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton8.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton8.Location = new System.Drawing.Point(619, 301);
|
||||
this.userButton8.Location = new System.Drawing.Point(666, 301);
|
||||
this.userButton8.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton8.Name = "userButton8";
|
||||
this.userButton8.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -277,7 +279,7 @@ namespace 软件系统客户端模版
|
||||
this.userButton9.CustomerInformation = "";
|
||||
this.userButton9.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton9.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton9.Location = new System.Drawing.Point(619, 267);
|
||||
this.userButton9.Location = new System.Drawing.Point(666, 267);
|
||||
this.userButton9.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton9.Name = "userButton9";
|
||||
this.userButton9.Size = new System.Drawing.Size(103, 26);
|
||||
@@ -285,11 +287,43 @@ namespace 软件系统客户端模版
|
||||
this.userButton9.UIText = "共享文件日志查看";
|
||||
this.userButton9.Click += new System.EventHandler(this.userButton9_Click);
|
||||
//
|
||||
// userButton10
|
||||
//
|
||||
this.userButton10.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton10.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton10.CustomerInformation = "";
|
||||
this.userButton10.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton10.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton10.Location = new System.Drawing.Point(666, 385);
|
||||
this.userButton10.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton10.Name = "userButton10";
|
||||
this.userButton10.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton10.TabIndex = 22;
|
||||
this.userButton10.UIText = "建议反馈清空";
|
||||
this.userButton10.Click += new System.EventHandler(this.userButton10_Click);
|
||||
//
|
||||
// userButton11
|
||||
//
|
||||
this.userButton11.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||
this.userButton11.BackColor = System.Drawing.Color.Transparent;
|
||||
this.userButton11.CustomerInformation = "";
|
||||
this.userButton11.EnableColor = System.Drawing.Color.FromArgb(((int)(((byte)(190)))), ((int)(((byte)(190)))), ((int)(((byte)(190)))));
|
||||
this.userButton11.Font = new System.Drawing.Font("微软雅黑", 9F);
|
||||
this.userButton11.Location = new System.Drawing.Point(666, 351);
|
||||
this.userButton11.Margin = new System.Windows.Forms.Padding(3, 4, 3, 4);
|
||||
this.userButton11.Name = "userButton11";
|
||||
this.userButton11.Size = new System.Drawing.Size(103, 26);
|
||||
this.userButton11.TabIndex = 21;
|
||||
this.userButton11.UIText = "建议反馈查看";
|
||||
this.userButton11.Click += new System.EventHandler(this.userButton11_Click);
|
||||
//
|
||||
// FormLog
|
||||
//
|
||||
this.AutoScaleDimensions = new System.Drawing.SizeF(7F, 17F);
|
||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||
this.ClientSize = new System.Drawing.Size(732, 512);
|
||||
this.ClientSize = new System.Drawing.Size(779, 547);
|
||||
this.Controls.Add(this.userButton10);
|
||||
this.Controls.Add(this.userButton11);
|
||||
this.Controls.Add(this.userButton8);
|
||||
this.Controls.Add(this.userButton9);
|
||||
this.Controls.Add(this.userButton_log);
|
||||
@@ -335,5 +369,7 @@ namespace 软件系统客户端模版
|
||||
private UserButton userButton_log;
|
||||
private UserButton userButton8;
|
||||
private UserButton userButton9;
|
||||
private UserButton userButton10;
|
||||
private UserButton userButton11;
|
||||
}
|
||||
}
|
||||
@@ -96,6 +96,18 @@ namespace 软件系统客户端模版
|
||||
ClearFromServer(CommonHeadCode.SimplifyHeadCode.共享文件日志清空);
|
||||
}
|
||||
|
||||
private void userButton11_Click(object sender, EventArgs e)
|
||||
{
|
||||
ReadFromServer(CommonHeadCode.SimplifyHeadCode.建议反馈日志查看);
|
||||
}
|
||||
|
||||
private void userButton10_Click(object sender, EventArgs e)
|
||||
{
|
||||
ClearFromServer(CommonHeadCode.SimplifyHeadCode.建议反馈日志清空);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 查询日志的缓存
|
||||
/// </summary>
|
||||
|
||||
24
软件系统客户端模版/FormMainWindow.Designer.cs
generated
24
软件系统客户端模版/FormMainWindow.Designer.cs
generated
@@ -45,6 +45,7 @@
|
||||
this.注册账号ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.设置ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.修改密码ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.关于本软件ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.更新日志ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
@@ -73,7 +74,7 @@
|
||||
this.panel_left = new System.Windows.Forms.Panel();
|
||||
this.label10 = new System.Windows.Forms.Label();
|
||||
this.panel_main = new System.Windows.Forms.Panel();
|
||||
this.留言板ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.意见反馈ToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem();
|
||||
this.statusStrip1.SuspendLayout();
|
||||
this.menuStrip1.SuspendLayout();
|
||||
this.panel_right.SuspendLayout();
|
||||
@@ -220,12 +221,20 @@
|
||||
this.修改密码ToolStripMenuItem.Text = "修改密码";
|
||||
this.修改密码ToolStripMenuItem.Click += new System.EventHandler(this.修改密码ToolStripMenuItem_Click);
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
//
|
||||
// 关于ToolStripMenuItem
|
||||
//
|
||||
this.关于ToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] {
|
||||
this.关于本软件ToolStripMenuItem,
|
||||
this.更新日志ToolStripMenuItem,
|
||||
this.版本号说明ToolStripMenuItem});
|
||||
this.版本号说明ToolStripMenuItem,
|
||||
this.意见反馈ToolStripMenuItem});
|
||||
this.关于ToolStripMenuItem.Image = global::软件系统客户端模版.Properties.Resources.ASCube_32xLG;
|
||||
this.关于ToolStripMenuItem.Name = "关于ToolStripMenuItem";
|
||||
this.关于ToolStripMenuItem.Size = new System.Drawing.Size(80, 31);
|
||||
@@ -501,12 +510,12 @@
|
||||
this.panel_main.Size = new System.Drawing.Size(557, 419);
|
||||
this.panel_main.TabIndex = 5;
|
||||
//
|
||||
// 留言板ToolStripMenuItem
|
||||
// 意见反馈ToolStripMenuItem
|
||||
//
|
||||
this.留言板ToolStripMenuItem.Name = "留言板ToolStripMenuItem";
|
||||
this.留言板ToolStripMenuItem.Size = new System.Drawing.Size(164, 32);
|
||||
this.留言板ToolStripMenuItem.Text = "留言板";
|
||||
this.留言板ToolStripMenuItem.Click += new System.EventHandler(this.留言板ToolStripMenuItem_Click);
|
||||
this.意见反馈ToolStripMenuItem.Name = "意见反馈ToolStripMenuItem";
|
||||
this.意见反馈ToolStripMenuItem.Size = new System.Drawing.Size(184, 32);
|
||||
this.意见反馈ToolStripMenuItem.Text = "意见反馈";
|
||||
this.意见反馈ToolStripMenuItem.Click += new System.EventHandler(this.意见反馈ToolStripMenuItem_Click);
|
||||
//
|
||||
// FormMainWindow
|
||||
//
|
||||
@@ -587,6 +596,7 @@
|
||||
private System.Windows.Forms.Panel panel_main;
|
||||
private System.Windows.Forms.Label label10;
|
||||
private System.Windows.Forms.ToolStripMenuItem 留言板ToolStripMenuItem;
|
||||
private System.Windows.Forms.ToolStripMenuItem 意见反馈ToolStripMenuItem;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -238,6 +238,15 @@ namespace 软件系统客户端模版
|
||||
UIControls_Chat?.InputFocus();
|
||||
}
|
||||
|
||||
private void 意见反馈ToolStripMenuItem_Click(object sender, EventArgs e)
|
||||
{
|
||||
using (FormInputAndAction fiaa = new FormInputAndAction(str => UserClient.Net_simplify_client.ReadFromServer(
|
||||
CommonHeadCode.SimplifyHeadCode.意见反馈 + UserClient.UserAccount.UserName + ":" + str).IsSuccess))
|
||||
{
|
||||
fiaa.ShowDialog();
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region 异步网络块
|
||||
@@ -469,8 +478,9 @@ namespace 软件系统客户端模版
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -72,6 +72,11 @@ namespace 软件系统服务端模版
|
||||
{
|
||||
LogSaveFileName = Application.StartupPath + @"\log.txt",
|
||||
};
|
||||
//初始化反馈信息工具
|
||||
AdviceLogHelper = new SoftLogHelper()
|
||||
{
|
||||
LogSaveFileName = Application.StartupPath + @"\advice_log.txt",
|
||||
};
|
||||
//保存路径初始化
|
||||
UserServer.ServerSettings.FileSavePath = Application.StartupPath + @"\settings.txt";
|
||||
//加载参数
|
||||
@@ -418,6 +423,11 @@ namespace 软件系统服务端模版
|
||||
{
|
||||
net_simplify_server.SendMessage(object1, net_simple_file_server.ToJsonString());
|
||||
}
|
||||
else if (headCode == CommonHeadCode.SimplifyHeadCode.意见反馈)
|
||||
{
|
||||
AdviceLogHelper.SaveInformation(object2.Substring(4));
|
||||
net_simplify_server.SendMessage(object1, "成功");
|
||||
}
|
||||
else
|
||||
{
|
||||
net_simplify_server.SendMessage(object1, object2);
|
||||
@@ -487,6 +497,17 @@ namespace 软件系统服务端模版
|
||||
net_simplify_server.SendMessage(object1, "成功");
|
||||
RuntimeLogHelper.SaveInformation("共享文件日志清空");
|
||||
}
|
||||
else if (headCode == CommonHeadCode.SimplifyHeadCode.建议反馈日志查看)
|
||||
{
|
||||
net_simplify_server.SendMessage(object1, AdviceLogHelper.GetLogText());
|
||||
RuntimeLogHelper.SaveInformation("建议反馈日志查看");
|
||||
}
|
||||
else if (headCode == CommonHeadCode.SimplifyHeadCode.建议反馈日志清空)
|
||||
{
|
||||
AdviceLogHelper.ClearLogText();
|
||||
net_simplify_server.SendMessage(object1, "成功");
|
||||
RuntimeLogHelper.SaveWarnning("建议反馈日志清空");
|
||||
}
|
||||
else
|
||||
{
|
||||
net_simplify_server.SendMessage(object1, object2);
|
||||
@@ -730,6 +751,24 @@ namespace 软件系统服务端模版
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 意见反馈块
|
||||
|
||||
/**********************************************************************************************************
|
||||
*
|
||||
* 说明: 用来记录意见反馈的数据
|
||||
* 举例: AdviceLogHelper.SaveInformation("张三:主界面的颜色稍微调整一下");
|
||||
*
|
||||
**********************************************************************************************************/
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 用来记录一般的事物日志
|
||||
/// </summary>
|
||||
private SoftLogHelper AdviceLogHelper { get; set; }
|
||||
|
||||
#endregion
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user