From b68cdc7e103a00d5df73e4b75603be8da1815b4a Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期三, 29 四月 2020 13:59:52 +0800 Subject: [PATCH] 上传版本 --- ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindInfo.cs | 14 +++++++------- 1 files changed, 7 insertions(+), 7 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindInfo.cs b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindInfo.cs index 8d2b2fd..4bc702c 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindInfo.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/Device/Bind/BindInfo.cs @@ -2,7 +2,6 @@ using System.Collections.Generic; using System.Threading.Tasks; using Shared.Common; -using Shared.Phone.Device.Category; using Shared.Phone.UserCenter.Device; using ZigBee.Device; using static ZigBee.Device.Panel; @@ -46,7 +45,7 @@ /// <returns></returns> public static bool CheckCanShowRoom(Common.Room room, string curDeviceBindType = "AddSwitch") { - if (room.DeviceUIList.Count == 0) + if (room.ListDevice.Count == 0) { return false; } @@ -54,10 +53,11 @@ { return false; } - foreach (var deviceUi in room.DeviceUIList) + foreach (var deviceKeys in room.ListDevice) { + var device = Common.LocalDevice.Current.GetDevice(deviceKeys); //妫�娴嬭璁惧鑳藉惁鏄剧ず - if (CheckCanShowDevice(deviceUi.CommonDevice, curDeviceBindType) == false) + if (CheckCanShowDevice(device, curDeviceBindType) == false) { continue; } @@ -127,7 +127,7 @@ /// <returns></returns> public static string GetCurrentKeyAllRoomList() { - var dicFloor = Common.Room.CurrentRoom.GetFloorSortList(); + var dicFloor = HdlRoomLogic.Current.GetFloorSortList(); foreach (var floorId in dicFloor.Keys) { //绗竴涓ゼ灞� @@ -143,7 +143,7 @@ /// <returns></returns> public static string GetCurrentSelectFloorId() { - var dicFloor = Common.Room.CurrentRoom.GetFloorSortList();// + var dicFloor = HdlRoomLogic.Current.GetFloorSortList();// foreach (var floorId in dicFloor.Keys) { //绗竴涓ゼ灞� @@ -159,7 +159,7 @@ /// <returns></returns> public static string GetCurrentSelectFloorIdName() { - var dicFloor = Common.Room.CurrentRoom.GetFloorSortList(); + var dicFloor = HdlRoomLogic.Current.GetFloorSortList(); foreach (var floorId in dicFloor.Keys) { //绗竴涓ゼ灞� -- Gitblit v1.8.0