mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
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:启用中、false:临时bypass中
        /// Bypass设置 false:启用中、true:临时bypass中
        /// </summary>
        public string bypass;
        public string bypass = "false";
        /// <summary>
        /// 安防输入条件
        /// </summary>
@@ -332,6 +336,7 @@
                    }
                    break;
                case SPK.SensorPir:
                case SPK.SensorPirHold:
                    if (inputValue == "true")
                    {
                        text += Language.StringByID(StringId.youren) + " ";
@@ -390,6 +395,7 @@
                    }
                    break;
                case SPK.SensorPir:
                case SPK.SensorPirHold:
                    foreach (var con in condition)
                    {
                        if (con.value == "true")
@@ -457,6 +463,10 @@
        /// 值   
        /// </summary>
        public string value;
        /// <summary>
        /// Bypass设置 true:临时bypass中、false:启用中
        /// </summary>
        public bool bypass = false;
    }
    /// <summary>
@@ -466,11 +476,11 @@
    {
        /// <summary>
        /// 控制目标类型
        /// 0:设备
        /// 1:场景
        /// 2:自动化
        /// 1:设备
        /// 2:场景
        /// 3:自动化
        /// </summary>
        public string target_type = "0";
        public string target_type = "1";
        /// <summary>
        /// 输出目标的sid
        /// </summary>
@@ -483,7 +493,7 @@
        /// <summary>
        /// 本地不存在数据(数据可能被删了)
        /// </summary>
        public bool NoLocalData ()
        public bool LocalData ()
        {
            var function = FunctionList.List.GetLightList().Find((obj) => obj.sid == sid);
            if (function != null)
@@ -592,7 +602,7 @@
        public string StateText()
        {
            string text = "";
            if (target_type == "0")
            if (target_type == "1")
            {
                switch (spk)
                {
@@ -627,7 +637,7 @@
                        }
                        break;
                }
            }else if(target_type == "1")
            }else if(target_type == "2")
            {
                text = Language.StringByID(StringId.Open);
            }