From 1c2097b3cb8c5d74b1ed69c78b2f2bdc909b4786 Mon Sep 17 00:00:00 2001 From: jiahao Date: Wed, 28 Jun 2023 00:03:40 +0800 Subject: [PATCH] =?UTF-8?q?=E7=95=B0=E5=B8=B8=E5=88=A4=E6=96=B7=20-=20?= =?UTF-8?q?=E6=96=B7=E7=B7=9A=E4=BB=A3=E8=99=9F=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solarApp/Service/procSyncError.cs | 4 ++-- solarApp/fmArchive.Designer.cs | 2 +- solarApp/fmArchive.cs | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/solarApp/Service/procSyncError.cs b/solarApp/Service/procSyncError.cs index 2ee029b..9997a55 100644 --- a/solarApp/Service/procSyncError.cs +++ b/solarApp/Service/procSyncError.cs @@ -162,8 +162,8 @@ namespace solarApp.Service site_id, alarmID, datestamp, HealthStatus from ( select site_id, datestamp, sourceState, id alarmID, - case when alarmClass = 34 then 3 # Network 控制盒斷線 - 紅燈 - when alarmClass != 34 then 2 end HealthStatus # inv, sensor 異常 黃燈 + case when alarmClass = 1 then 3 # Network 控制盒斷線 - 紅燈 + when alarmClass != 1 then 2 end HealthStatus # inv, sensor 異常 黃燈 from err_main where sourceState = 1 and left(site_id , 1) = '0' and datestamp > '{ System.DateTime.Now.AddDays(-60).ToString("yyyy-MM-dd")}' diff --git a/solarApp/fmArchive.Designer.cs b/solarApp/fmArchive.Designer.cs index 8cbc936..358d6ab 100644 --- a/solarApp/fmArchive.Designer.cs +++ b/solarApp/fmArchive.Designer.cs @@ -760,7 +760,7 @@ namespace solarApp this.ClientSize = new System.Drawing.Size(1782, 953); this.Controls.Add(this.tabControl1); this.Name = "fmArchive"; - this.Text = "fmArchive 05-29 拯救 Kevin"; + this.Text = "fmArchive 06-28 拯救 Kevin"; this.Load += new System.EventHandler(this.fmArchive_Load); this.tabControl1.ResumeLayout(false); this.tabPage1.ResumeLayout(false); diff --git a/solarApp/fmArchive.cs b/solarApp/fmArchive.cs index a76d5da..f85eaaa 100644 --- a/solarApp/fmArchive.cs +++ b/solarApp/fmArchive.cs @@ -190,8 +190,8 @@ namespace solarApp //} - //水位管理 - if (System.DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00 + //水位管理 每月 20 日 晚上8點 + if (System.DateTime.Now.Day == 20 && System.DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00 && (DateTime.Now.Second >= 0 && DateTime.Now.Second <= 10) && autoTask == false) {