From 258a84dee22b3ae35c9784ed23c394dace9f24d8 Mon Sep 17 00:00:00 2001 From: "nodyang@aliyun.com" Date: Sat, 16 Nov 2024 09:08:29 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=83=BD=E6=98=AFtrue?= =?UTF-8?q?=E7=9A=84led?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- RfidWeb/FormMain.cs | 11 +---------- RfidWeb/Frm/UserAlarmShow.cs | 4 ++-- 2 files changed, 3 insertions(+), 12 deletions(-) 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])