From 23ee4f8c373f9abecf079ef9d4297d8b6cd8d5e6 Mon Sep 17 00:00:00 2001 From: wxr <464027401@qq.com> Date: 星期三, 16 十二月 2020 15:16:00 +0800 Subject: [PATCH] Merge branch 'NewFilePath' --- HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs | 12 ++++++++---- 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs index 6154e4a..f93ff6c 100644 --- a/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs +++ b/HDL_ON/UI/UI2/3-Intelligence/Automation/LogicMethod.cs @@ -135,7 +135,6 @@ /// <returns></returns> public static List<HDL_ON.Entity.Room> GetGatewayRoomList(string name) { - List<Entity.Room> roomList = new List<Entity.Room>(); Entity.Room room1 = new Entity.Room(); room1.roomName = name;//榛樿涓�涓埧闂村悕涓�:鍏ㄩ儴鍖哄煙 @@ -144,9 +143,14 @@ var roomLists = GetGatewayRoomList(); foreach (var room in roomLists) { + var devlist = GetRoomDevice(room); + if (devlist.Count == 0) + { + //杩囨护鎺夋病鏈夎澶囩殑鎴块棿; + continue; + } roomList.Add(room); } - return roomList; } /// <summary> @@ -155,7 +159,7 @@ /// <returns></returns> public static List<HDL_ON.Entity.Function> GetGatewayDeviceList() { - return HDL_ON.Entity.DB_ResidenceData.functionList.GetAllFunction(); + return Entity.FunctionList.List.GetDeviceFunctionList(); } /// <summary> /// 鑾峰彇缃戝叧鍦烘櫙鍒楄〃 @@ -163,7 +167,7 @@ /// <returns></returns> public static List<HDL_ON.Entity.Scene> GetSceneList() { - return HDL_ON.Entity.DB_ResidenceData.functionList.scenes; + return HDL_ON.Entity.FunctionList.List.scenes; } /// <summary> /// 鑾峰彇鎴块棿鐨勮澶囧垪琛� -- Gitblit v1.8.0