From 611786df5108dca0bdcff03834cc285cba4b8e61 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 13 十月 2020 16:48:43 +0800 Subject: [PATCH] 2020-10-13-1 --- HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs | 8 ++++++-- 1 files changed, 6 insertions(+), 2 deletions(-) diff --git a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs index d8b5df8..3e9af2d 100644 --- a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs +++ b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs @@ -3,6 +3,9 @@ namespace HDL_ON.UI { + /// <summary> + /// 鍔熻兘鍒嗛厤鎴块棿BLL + /// </summary> public partial class ChooseRoomPage { /// <summary> @@ -55,6 +58,7 @@ function.roomIdList.Remove(room.sid); } } + Entity.DB_ResidenceData.InitRoomFunction(); Entity.DB_ResidenceData.residenceData.SaveResidenceData(); }; } @@ -67,12 +71,12 @@ if (isAdd) { function.roomIdList.Add(room.sid); - room.functionData.Add(function); + room.functions.Add(function); } else { function.roomIdList.Remove(room.sid); - room.functionData.Remove(function); + room.functions.Remove(function); } Entity.DB_ResidenceData.residenceData.SaveResidenceData(); if (function.roomIdList.Count == Entity.DB_ResidenceData.residenceData.rooms.Count) -- Gitblit v1.8.0