From 05fd07b753b9cc043b48569d514af3d829bd039c Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期四, 28 五月 2020 13:08:33 +0800
Subject: [PATCH] 2020-05-28-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