diff --git a/RfidWeb/FormMain.cs b/RfidWeb/FormMain.cs index 6069f33..95dc91b 100644 --- a/RfidWeb/FormMain.cs +++ b/RfidWeb/FormMain.cs @@ -51,7 +51,7 @@ namespace RfidWeb private void Init() { - _timer = new TimerX(TimeState, null, 10, 1000); + _timer = new TimerX(TimeState, null, 2000, 1000); // 如果所有的日志在记录之前需要在控制台显示出来 logNet.BeforeSaveToFile += (object sender, HslEventArgs e) => { @@ -128,8 +128,6 @@ namespace RfidWeb updateLogService.AddOrUpdateLog(userDto, se, res.Content); } } - - cache.Remove(CacheKeyManager.UpdateLog); } @@ -150,13 +148,6 @@ namespace RfidWeb - private void btnMain_Click(object sender, EventArgs e) - { - panContent.Controls.Clear(); - panContent.Controls.Add(new UserMain()); - - } - private void btnArgument_Click(object sender, EventArgs e) { diff --git a/RfidWeb/Frm/UserAlarmShow.cs b/RfidWeb/Frm/UserAlarmShow.cs index 381bf88..99def84 100644 --- a/RfidWeb/Frm/UserAlarmShow.cs +++ b/RfidWeb/Frm/UserAlarmShow.cs @@ -117,7 +117,7 @@ namespace RfidWeb.Frm } else { - SetTrueLed(hsl0); + SetFaileLed(hsl0); } //No1 @@ -138,7 +138,7 @@ namespace RfidWeb.Frm } else { - SetTrueLed(hslA2, hslB2); + SetFaileLed(hslA2, hslB2); } //No3 if (plcCh.A0 || plcCh.B0 || plcCh.B1 || plcStop[10] || plcStop[11])