Browse Source

LCS删除任务时添加历史记录

master
志铭 吕 2 weeks ago
parent
commit
dd5f4450cb
  1. 5
      ControlMonitorClient/FrmClient.designer.cs
  2. 1
      WcfControlMonitorHost/FrmHost.Designer.cs
  3. 3
      WcfControlMonitorHost/FrmHost.cs
  4. 8
      webapi/WindowsFormsApp1/APIChannel.cs

5
ControlMonitorClient/FrmClient.designer.cs

@ -455,6 +455,7 @@
this.MIInterfaceUpdate.Name = "MIInterfaceUpdate";
this.MIInterfaceUpdate.Size = new System.Drawing.Size(242, 26);
this.MIInterfaceUpdate.Text = "接口异常信息处理";
this.MIInterfaceUpdate.Visible = false;
this.MIInterfaceUpdate.Click += new System.EventHandler(this.MIInterfaceUpdate_Click);
//
// MMUserManage
@ -543,7 +544,7 @@
this.dockPanel1.DockBackColor = System.Drawing.SystemColors.Control;
this.dockPanel1.DocumentStyle = WeifenLuo.WinFormsUI.Docking.DocumentStyle.DockingSdi;
this.dockPanel1.Location = new System.Drawing.Point(0, 38);
this.dockPanel1.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.dockPanel1.Margin = new System.Windows.Forms.Padding(4);
this.dockPanel1.Name = "dockPanel1";
this.dockPanel1.ShowDocumentIcon = true;
this.dockPanel1.Size = new System.Drawing.Size(1069, 512);
@ -603,7 +604,7 @@
this.Controls.Add(this.dockPanel1);
this.Controls.Add(this.menuStrip1);
this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon")));
this.Margin = new System.Windows.Forms.Padding(4, 4, 4, 4);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "FrmClient";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.WindowState = System.Windows.Forms.FormWindowState.Maximized;

1
WcfControlMonitorHost/FrmHost.Designer.cs

@ -90,6 +90,7 @@
this.listBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.listBox1.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawFixed;
this.listBox1.FormattingEnabled = true;
this.listBox1.HorizontalScrollbar = true;
this.listBox1.ItemHeight = 15;

3
WcfControlMonitorHost/FrmHost.cs

@ -825,7 +825,8 @@ namespace wcfControlMonitorClient
try
{
if (txtinfo.IndexOf("巡检客户端") >= 0) return true;
if (listBox1.Items.Count >= 70) listBox1.Items.Clear();
if (listBox1.Items.Count >= 70)
listBox1.Items.Clear();
foreach (object li in listBox1.Items)
{
if (li.ToString().IndexOf(txtinfo) >= 0)

8
webapi/WindowsFormsApp1/APIChannel.cs

@ -186,7 +186,11 @@ namespace WindowsFormsApp1
}
else if (stepOk == 1 && FSTATUS == 0) {
sql.Clear();
sql.Remove(0, sql.Length);
sql.Append("INSERT INTO T_Manage_Task_BAK SELECT * FROM T_Manage_Task where FID=").Append(wms_wcs_cancel.taskId).Append(" and F_ManageTaskKindIndex>=1");
dbo.ExecuteSql(sql.ToString());
sql.Clear();
sql.Append("delete from T_Monitor_Task where F_ManageTaskIndex = '").Append(wms_wcs_cancel.taskId).Append("'");
dbo.ExecuteSql(sql.ToString());
sql.Clear();
@ -199,11 +203,11 @@ namespace WindowsFormsApp1
sql.Clear();
sql.Append("delete from IO_CONTROL where MANAGE_ID = '").Append(wms_wcs_cancel.taskId).Append("'");
dbo.ExecuteSql(sql.ToString());
wcs_wms_cancel.code = 0;
wcs_wms_cancel.msg = "";
wcs_wms_cancel.data = "";
}
else
{

Loading…
Cancel
Save