gxc
2019-10-28 1c4904d77f484c075080942d87785481b52b6fb2
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
    }
}