From 1d5e384497c7059e09760628dab3e83eb88f97ae Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期五, 04 十二月 2020 17:48:34 +0800
Subject: [PATCH] 2020-12-04-4

---
 HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs
index 194cb18..cb64da5 100644
--- a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs
+++ b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs
@@ -47,7 +47,7 @@
                     }
                 }
                 function.roomIds.Clear();
-                foreach (var room in Entity.DB_ResidenceData.Rooms)
+                foreach (var room in Entity.DB_ResidenceData.residenceData.Rooms)
                 {
                     if (btnChooseAll.IsSelected)
                     {
@@ -59,7 +59,7 @@
                     }
                     function.SaveFunctionData();
                 }
-                Entity.DB_ResidenceData.InitRoomFunction();
+                Entity.SpatialInfo.CurrentSpatial.InitRoomFunction();
             };
         }
 
@@ -79,7 +79,7 @@
                 room.RemoveRoomFunction(function);
             }
             function.SaveFunctionData();
-            if (function.roomIds.Count == Entity.DB_ResidenceData.Rooms.Count)
+            if (function.roomIds.Count == Entity.DB_ResidenceData.residenceData.Rooms.Count)
             {
                 btnChooseAll.IsSelected = true;
             }

--
Gitblit v1.8.0