| | |
| | | /// </summary> |
| | | public string delay ="0"; |
| | | /// <summary> |
| | | /// 报警延时 |
| | | /// </summary> |
| | | public string output_delay = "0"; |
| | | /// <summary> |
| | | /// 状态 |
| | | /// 布防:enable |
| | | /// 撒防:disable |
| | |
| | | /// </summary> |
| | | public string sid; |
| | | /// <summary> |
| | | /// Bypass设置 true:启用中、false:临时bypass中 |
| | | /// Bypass设置 false:启用中、true:临时bypass中 |
| | | /// </summary> |
| | | public string bypass; |
| | | public string bypass = "false"; |
| | | /// <summary> |
| | | /// 安防输入条件 |
| | | /// </summary> |
| | |
| | | /// 值 |
| | | /// </summary> |
| | | public string value; |
| | | /// <summary> |
| | | /// Bypass设置 true:临时bypass中、false:启用中 |
| | | /// </summary> |
| | | public bool bypass = false; |
| | | } |
| | | |
| | | /// <summary> |
| | |
| | | { |
| | | /// <summary> |
| | | /// 控制目标类型 |
| | | /// 0:设备 |
| | | /// 1:场景 |
| | | /// 2:自动化 |
| | | /// 1:设备 |
| | | /// 2:场景 |
| | | /// 3:自动化 |
| | | /// </summary> |
| | | public string target_type = "0"; |
| | | public string target_type = "1"; |
| | | /// <summary> |
| | | /// 输出目标的sid |
| | | /// </summary> |
| | |
| | | /// <summary> |
| | | /// 本地不存在数据(数据可能被删了) |
| | | /// </summary> |
| | | public bool NoLocalData () |
| | | public bool LocalData () |
| | | { |
| | | var function = FunctionList.List.GetLightList().Find((obj) => obj.sid == sid); |
| | | if (function != null) |
| | |
| | | public string StateText() |
| | | { |
| | | string text = ""; |
| | | if (target_type == "0") |
| | | if (target_type == "1") |
| | | { |
| | | switch (spk) |
| | | { |
| | |
| | | } |
| | | break; |
| | | } |
| | | }else if(target_type == "1") |
| | | }else if(target_type == "2") |
| | | { |
| | | text = Language.StringByID(StringId.Open); |
| | | } |