From 9cc8fd11b13813adbdd3c6c31554e5c0bebf4026 Mon Sep 17 00:00:00 2001
From: 黄学彪 <hxb@hdlchina.com.cn>
Date: 星期五, 21 八月 2020 19:53:49 +0800
Subject: [PATCH] 发布到商店的版本

---
 ZigbeeApp/Shared/Common/House.cs |   33 +++++++++++++++++++++++++++++++--
 1 files changed, 31 insertions(+), 2 deletions(-)

diff --git a/ZigbeeApp/Shared/Common/House.cs b/ZigbeeApp/Shared/Common/House.cs
index 87e9aee..5d257fd 100755
--- a/ZigbeeApp/Shared/Common/House.cs
+++ b/ZigbeeApp/Shared/Common/House.cs
@@ -135,10 +135,39 @@
             }
         }
         /// <summary>
-        /// 褰撳墠妤煎眰ID
+        /// 褰撳墠妤煎眰id
+        /// </summary>
+        private string m_CurrentFloorId = string.Empty;
+        /// <summary>
+        /// 褰撳墠妤煎眰Id
         /// </summary>
         [Newtonsoft.Json.JsonIgnore]
-        public string CurrentFloorId = string.Empty;
+        public string CurrentFloorId
+        {
+            //鏉ュ洖鍒囨崲澶囦唤,浼氬嚭鐜伴棶棰�,妤煎眰id娌℃竻闄�
+            get
+            {
+                //娌℃湁妤煎眰
+                if (this.FloorDics.Count == 0) { return string.Empty; }
+
+                if (this.FloorDics.ContainsKey(m_CurrentFloorId) == true)
+                {
+                    //褰撳墠鐨勬ゼ灞俰d娌¢棶棰�
+                    return m_CurrentFloorId;
+                }
+                //濡傛灉褰撳墠璁剧疆鐨勬ゼ灞俰d骞朵笉瀛樺湪鐨勮瘽,閲嶆柊璁剧疆
+                m_CurrentFloorId = string.Empty;
+                var dicFloor = HdlRoomLogic.Current.GetFloorSortList();
+                foreach (var floorId in dicFloor.Keys)
+                {
+                    //缁欎竴涓繃鍘诲嵆鍙�
+                    m_CurrentFloorId = floorId;
+                    break;
+                }
+                return m_CurrentFloorId;
+            }
+            set { m_CurrentFloorId = value; }
+        }
 
         #endregion
 

--
Gitblit v1.8.0