mac
2024-07-25 3f6685c77beeb12baf840733fb890860f4c26e7c
HDL_ON/Entity/Function/Scene.cs
@@ -87,6 +87,14 @@
        /// 是否允许删除
        /// </summary>
        public bool can_delete = true;
        /// <summary>
        /// 是否允许编辑
        /// </summary>
        public bool can_edit = true;
        /// <summary>
        /// 是否是网关本地场景
        /// </summary>
        public bool local = false;
        /// <summary>
        /// 创建该场景的用户ID
@@ -562,25 +570,24 @@
        /// <returns></returns>
        private Function ConvertFunctionObject()
        {
            Function temp = null;
            if (type == "7")
            {
                var logic = Logic.LogicList.Find((obj) => obj.sid == sid);
                if (logic != null) {
                    _localFunction = new Function()
                    {
                        name = logic.name
                    };
                    temp = new Function();
                    temp.name = logic.name;
                }
            }
            else
            {
                var localFunction = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid);
                if (localFunction == null)
                temp = FunctionList.List.GetDeviceFunctionList().Find((obj) => obj.sid == sid);
                if (temp == null)
                {
                    localFunction = FunctionList.List.groupControls.Find((obj) => obj.sid == sid);
                    temp = FunctionList.List.groupControls.Find((obj) => obj.sid == sid);
                }
            }
            return localFunction;
            return temp;
        }
@@ -722,6 +729,7 @@
        /// <summary>
        /// 属性的值列表
        /// </summary>
        [Newtonsoft.Json.JsonIgnore]
        public List<string> valueList = new List<string>();
        /// <summary>
        /// 属性名称显示文本
@@ -787,6 +795,7 @@
            return text;
        }
        [Newtonsoft.Json.JsonIgnore]
        public string UintString = "";
        /// <summary>