From 452e8cef1c740d18ee398be6971d9952e41dbd4a Mon Sep 17 00:00:00 2001
From: wxr <464027401@qq.com>
Date: 星期三, 12 四月 2023 16:11:50 +0800
Subject: [PATCH] 1
---
HDL_ON/Entity/Function/SecurityAlarm.cs | 26 +++++++++++++++++---------
1 files changed, 17 insertions(+), 9 deletions(-)
diff --git a/HDL_ON/Entity/Function/SecurityAlarm.cs b/HDL_ON/Entity/Function/SecurityAlarm.cs
index ea29373..4ff0b58 100644
--- a/HDL_ON/Entity/Function/SecurityAlarm.cs
+++ b/HDL_ON/Entity/Function/SecurityAlarm.cs
@@ -33,6 +33,10 @@
/// </summary>
public string delay ="0";
/// <summary>
+ /// 鎶ヨ寤舵椂
+ /// </summary>
+ public string output_delay = "0";
+ /// <summary>
/// 鐘舵��
/// 甯冮槻:enable
/// 鎾掗槻:disable
@@ -272,9 +276,9 @@
/// </summary>
public string sid;
/// <summary>
- /// Bypass璁剧疆 true:鍚敤涓�乫alse:涓存椂bypass涓�
+ /// Bypass璁剧疆 false:鍚敤涓�乼rue:涓存椂bypass涓�
/// </summary>
- public string bypass;
+ public string bypass = "false";
/// <summary>
/// 瀹夐槻杈撳叆鏉′欢
/// </summary>
@@ -457,6 +461,10 @@
/// 鍊�
/// </summary>
public string value;
+ /// <summary>
+ /// Bypass璁剧疆 true:涓存椂bypass涓�乫alse:鍚敤涓�
+ /// </summary>
+ public bool bypass = false;
}
/// <summary>
@@ -466,11 +474,11 @@
{
/// <summary>
/// 鎺у埗鐩爣绫诲瀷
- /// 0:璁惧
- /// 1:鍦烘櫙
- /// 2:鑷姩鍖�
+ /// 1:璁惧
+ /// 2:鍦烘櫙
+ /// 3:鑷姩鍖�
/// </summary>
- public string target_type = "0";
+ public string target_type = "1";
/// <summary>
/// 杈撳嚭鐩爣鐨剆id
/// </summary>
@@ -483,7 +491,7 @@
/// <summary>
/// 鏈湴涓嶅瓨鍦ㄦ暟鎹紙鏁版嵁鍙兘琚垹浜嗭級
/// </summary>
- public bool NoLocalData ()
+ public bool LocalData ()
{
var function = FunctionList.List.GetLightList().Find((obj) => obj.sid == sid);
if (function != null)
@@ -592,7 +600,7 @@
public string StateText()
{
string text = "";
- if (target_type == "0")
+ if (target_type == "1")
{
switch (spk)
{
@@ -627,7 +635,7 @@
}
break;
}
- }else if(target_type == "1")
+ }else if(target_type == "2")
{
text = Language.StringByID(StringId.Open);
}
--
Gitblit v1.8.0