| | |
| | | /// 是否允许删除 |
| | | /// </summary> |
| | | public bool can_delete = true; |
| | | /// <summary> |
| | | /// 是否允许编辑 |
| | | /// </summary> |
| | | public bool can_edit = true; |
| | | /// <summary> |
| | | /// 是否是网关本地场景 |
| | | /// </summary> |
| | | public bool local = false; |
| | | |
| | | /// <summary> |
| | | /// 创建该场景的用户ID |
| | |
| | | /// <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; |
| | | } |
| | | |
| | | |
| | |
| | | /// <summary> |
| | | /// 属性的值列表 |
| | | /// </summary> |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public List<string> valueList = new List<string>(); |
| | | /// <summary> |
| | | /// 属性名称显示文本 |
| | |
| | | return text; |
| | | } |
| | | |
| | | [Newtonsoft.Json.JsonIgnore] |
| | | public string UintString = ""; |
| | | |
| | | /// <summary> |