修改结构

This commit is contained in:
gongxh
2021-12-31 19:53:53 +08:00
parent 31fe9e834a
commit 7321539b72
41 changed files with 1828 additions and 211 deletions

View File

@@ -1,4 +1,5 @@
using Krypton.Navigator;
using CleanMachine.Model;
using Krypton.Navigator;
using Krypton.Toolkit;
using System;
using System.Collections.Generic;
@@ -23,7 +24,7 @@ namespace CleanMachineHMI
{
kryptonNavigator1.Pages.Clear();
AddFrmPage(null, null);
GlobalHelper.CmWarningLogMd_List_1 = new List<CM_WarningLogMd>();
GlobalHelper.CmWarningLogMd_List_1 = new List<WarningLog>();
}
private void kryptonButton8_BackColorChanged(object sender, EventArgs e)
@@ -85,14 +86,14 @@ namespace CleanMachineHMI
private void kryptonButton9_Click(object sender, EventArgs e)
{
GlobalHelper.CmWarningLogMd_List_1.Add(new CM_WarningLogMd {
GlobalHelper.CmWarningLogMd_List_1.Add(new WarningLog {
WarningCode = "TestAlarm001",
WarningName = "TestAlarm001",
WarningType = "TestAlarm001",
WarningMessage = "TestAlarm001",
WarningTime = DateTime.Now,
PlcItemCode = "TestAlarm001",
WarningStatus = 0,
WaringStatus = 0,
WarningHandleResult = 0,
CreateBy = 1,
CreateTime = DateTime.Now,
@@ -104,10 +105,10 @@ namespace CleanMachineHMI
private void kryptonButton10_Click(object sender, EventArgs e)
{
CM_WarningLogMd tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WarningStatus == 0);
WarningLog tmpWarn = GlobalHelper.CmWarningLogMd_List_1.Find(x => x.WaringStatus == 0);
if (tmpWarn != null)
{
tmpWarn.WarningStatus = 1;
tmpWarn.WaringStatus = 1;
}
}
private void timer1_Tick(object sender, EventArgs e)