From 767e3abed9c1e9a831a90357ee046a24b3a161b9 Mon Sep 17 00:00:00 2001
From: 陈嘉乐 <cjl@hdlchina.com.cn>
Date: 星期二, 14 七月 2020 17:21:49 +0800
Subject: [PATCH] 2020-07-14-3
---
HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs b/HDL_ON/UI/UI2/FuntionControlView/ChooseRoomPageBLL.cs
index d8b5df8..ca43599 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,13 +71,14 @@
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);
}
+ //if(function.cu)
Entity.DB_ResidenceData.residenceData.SaveResidenceData();
if (function.roomIdList.Count == Entity.DB_ResidenceData.residenceData.rooms.Count)
{
--
Gitblit v1.8.0