From 45e4e387f3ef259b9e225fdd543e20be285a5112 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期二, 29 十月 2019 13:42:57 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev-tzy' into dev-wjc

---
 ZigbeeApp/Shared/Common/DeviceUI.cs |   23 +++++++++++++++++++++++
 1 files changed, 23 insertions(+), 0 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/DeviceUI.cs b/ZigbeeApp/Shared/Common/DeviceUI.cs
index c91f9ec..01b042b 100755
--- a/ZigbeeApp/Shared/Common/DeviceUI.cs
+++ b/ZigbeeApp/Shared/Common/DeviceUI.cs
@@ -312,5 +312,28 @@
         }
 
         #endregion
+
+        #region 鈼� 閫氳繃id鑾峰彇璁惧鍖哄煙_____________
+
+        /// <summary>
+        /// GetZone
+        /// </summary>
+        /// <returns></returns>
+        public string GetZone()
+        {
+            var room = Room.CurrentRoom.GetRoomByDevice(CommonDevice);
+            if (room == null)
+            {
+                return null;
+            }
+            var floorName = Shared.Common.Config.Instance.Home.GetFloorNameById(room.FloorId);
+            if (floorName == null)
+            {
+                return room.Name;
+            }
+            return $"{floorName},{room.Name}";
+        }
+
+        #endregion
     }
 }

--
Gitblit v1.8.0