From fb5f023820eb6783bd62d0d69d9afbd00cd3f426 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期一, 07 十二月 2020 16:50:47 +0800 Subject: [PATCH] 2020-12-07-1 --- HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs index 86441aa..cb64da5 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs @@ -46,20 +46,20 @@ } } } - function.roomIdList.Clear(); - foreach (var room in Entity.DB_ResidenceData.rooms) + function.roomIds.Clear(); + foreach (var room in Entity.DB_ResidenceData.residenceData.Rooms) { if (btnChooseAll.IsSelected) { - function.roomIdList.Add(room.sid); + function.roomIds.Add(room.uid); } else { - function.roomIdList.Remove(room.sid); + function.roomIds.Remove(room.uid); } function.SaveFunctionData(); } - Entity.DB_ResidenceData.InitRoomFunction(); + Entity.SpatialInfo.CurrentSpatial.InitRoomFunction(); }; } @@ -70,16 +70,16 @@ { if (isAdd) { - function.roomIdList.Add(room.sid); + function.roomIds.Add(room.uid); room.AddRoomFunction(function); } else { - function.roomIdList.Remove(room.sid); + function.roomIds.Remove(room.uid); room.RemoveRoomFunction(function); } function.SaveFunctionData(); - if (function.roomIdList.Count == Entity.DB_ResidenceData.rooms.Count) + if (function.roomIds.Count == Entity.DB_ResidenceData.residenceData.Rooms.Count) { btnChooseAll.IsSelected = true; } -- Gitblit v1.8.0