From cafceb4ae858d54516345fb131a77c00d7986916 Mon Sep 17 00:00:00 2001 From: wjc <1243177876@qq.com> Date: 星期三, 14 九月 2022 16:24:35 +0800 Subject: [PATCH] 2022年09月14日16:24:16 --- HDL_ON/Entity/Function/Function.cs | 39 ++++++++++++++++++++++++++++++++++++++- 1 files changed, 38 insertions(+), 1 deletions(-) diff --git a/HDL_ON/Entity/Function/Function.cs b/HDL_ON/Entity/Function/Function.cs index 1482e07..878603c 100644 --- a/HDL_ON/Entity/Function/Function.cs +++ b/HDL_ON/Entity/Function/Function.cs @@ -243,7 +243,30 @@ /// <summary> /// 澶囨敞 /// </summary> - public string name; + public string name = ""; + /// <summary> + /// 璁惧缁戝畾鐨刪omeId + /// </summary> + private string _homeId = ""; + public string homeId + { + get + { + if (string.IsNullOrEmpty(_homeId)) + { + return DB_ResidenceData.Instance.CurrentRegion.id; + } + else + { + return _homeId; + } + } + set + { + _homeId = value; + } + } + /// <summary> /// 璁惧ID /// 浜戠璐熻矗鐢熸垚 @@ -1290,6 +1313,11 @@ public static class SPK { /// <summary> + /// 閫氱敤寮�鍏� + /// </summary> + public const string OtherCommon = "other.common"; + + /// <summary> /// 闂ㄩ攣 /// </summary> public const string DoorLock = "security.door"; @@ -1303,6 +1331,7 @@ list.Add(DoorLock); return list; } + #region 鐏厜 @@ -1577,6 +1606,7 @@ var spkList = new List<string>(); //spkList.Add(SensorLight); spkList.Add(SensorPir); + spkList.Add(SensorHelp); spkList.Add(SensorDoorWindow); spkList.Add(SensorSmoke); spkList.Add(SensorWater); @@ -1836,6 +1866,13 @@ } #endregion + #region 鍙瀵硅 + /// <summary> + /// HDL鍙瀵硅 + /// </summary> + public const string doorgate="door.gate"; + #endregion + #region 绗笁鏂箂pk鍒楄〃 /// <summary> /// 鑾峰彇鎵�鏈夌涓夋柟鍝佺墝鍔熻兘鐨剆pk -- Gitblit v1.8.0