異常判斷 - 斷線代號修改
This commit is contained in:
parent
3016b91685
commit
1c2097b3cb
@ -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")}'
|
||||
|
||||
2
solarApp/fmArchive.Designer.cs
generated
2
solarApp/fmArchive.Designer.cs
generated
@ -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);
|
||||
|
||||
@ -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)
|
||||
{
|
||||
|
||||
Loading…
Reference in New Issue
Block a user