This commit is contained in:
gongxh
2022-01-19 09:31:47 +08:00
parent 89f1bb0536
commit 9cfeb818fa
3 changed files with 56 additions and 37 deletions

View File

@@ -144,8 +144,10 @@ namespace CleanMachineHMI.FrmUserControl
// kcmb_plcAlarmStatus
//
this.kcmb_plcAlarmStatus.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kcmb_plcAlarmStatus.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.kcmb_plcAlarmStatus.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.kcmb_plcAlarmStatus.DropDownWidth = 248;
this.kcmb_plcAlarmStatus.IntegralHeight = false;
this.kcmb_plcAlarmStatus.Items.AddRange(new object[] {
"请选择",
"正在报警",
@@ -167,8 +169,10 @@ namespace CleanMachineHMI.FrmUserControl
// kcmb_plcAlarmHandleResult
//
this.kcmb_plcAlarmHandleResult.Anchor = System.Windows.Forms.AnchorStyles.None;
this.kcmb_plcAlarmHandleResult.DrawMode = System.Windows.Forms.DrawMode.OwnerDrawVariable;
this.kcmb_plcAlarmHandleResult.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.kcmb_plcAlarmHandleResult.DropDownWidth = 248;
this.kcmb_plcAlarmHandleResult.IntegralHeight = false;
this.kcmb_plcAlarmHandleResult.Items.AddRange(new object[] {
"请选择",
"未处理",
@@ -232,6 +236,7 @@ namespace CleanMachineHMI.FrmUserControl
this.kbtn_UuivertorAlarmClear.Size = new System.Drawing.Size(135, 35);
this.kbtn_UuivertorAlarmClear.TabIndex = 2;
this.kbtn_UuivertorAlarmClear.Values.Text = "变频器报警清除";
this.kbtn_UuivertorAlarmClear.Click += new System.EventHandler(this.kbtn_UuivertorAlarmClear_Click);
this.kbtn_UuivertorAlarmClear.MouseDown += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseDown);
this.kbtn_UuivertorAlarmClear.MouseUp += new System.Windows.Forms.MouseEventHandler(this.kbtn_UuivertorAlarmClear_MouseUp);
//

View File

@@ -151,15 +151,17 @@ namespace CleanMachineHMI.FrmUserControl
{
tmpWarningLogList.OrderByDescending(x => x.WarningTime);
DataTable dt = new DataTable();
DataColumn dc1 = new DataColumn("序号", Type.GetType("System.Int32"));
DataColumn dc2 = new DataColumn("PLC变量地址", Type.GetType("System.String"));
DataColumn dc3 = new DataColumn("报警条码", Type.GetType("System.String"));
DataColumn dc4 = new DataColumn("报警内容", Type.GetType("System.String"));
DataColumn dc5 = new DataColumn("报警时间", Type.GetType("System.String"));
DataColumn dc6 = new DataColumn("报警状态", Type.GetType("System.String"));
DataColumn dc7 = new DataColumn("处理结果", Type.GetType("System.String"));
DataColumn dc8 = new DataColumn("处理时间", Type.GetType("System.String"));
DataColumn dc9 = new DataColumn("报警时长", Type.GetType("System.String"));
DataColumn dc1 = new DataColumn("序号", typeof(int));
DataColumn dc2 = new DataColumn("PLC变量地址", typeof(string));
DataColumn dc3 = new DataColumn("报警条码", typeof(string));
DataColumn dc4 = new DataColumn("报警内容", typeof(string));
DataColumn dc5 = new DataColumn("报警时间", typeof(string));
DataColumn dc6 = new DataColumn("报警状态", typeof(string));
DataColumn dc7 = new DataColumn("处理结果", typeof(string));
DataColumn dc8 = new DataColumn("处理时间", typeof(string));
DataColumn dc9 = new DataColumn("报警时长", typeof(string));
dt.Columns.Add(dc1);
dt.Columns.Add(dc2);
@@ -269,5 +271,10 @@ namespace CleanMachineHMI.FrmUserControl
KryptonMessageBox.Show(ex.Message);
}
}
private void kbtn_UuivertorAlarmClear_Click(object sender, EventArgs e)
{
}
}
}