gxc
2019-10-28 f6b3446e3a4afc0f65814be87aaa0f5ea0c62d69
ZigbeeApp/Shared/Common/DeviceUI.cs
old mode 100755 new mode 100644
@@ -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
    }
}