From 7167334c0e89dd84827d59e726123d14776e3a09 Mon Sep 17 00:00:00 2001 From: 陈嘉乐 <cjl@hdlchina.com.cn> Date: 星期二, 16 六月 2020 11:14:13 +0800 Subject: [PATCH] 2020-06-16-1 --- HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs | 16 ++++++++-------- 1 files changed, 8 insertions(+), 8 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs index ca86ed6..7191bfe 100644 --- a/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/ResidentialManage/RoomEditFunctionPageBLL.cs @@ -31,7 +31,7 @@ btnAllocated.TextSize = CSS_FontSize.TextFontSize; btnChoosedRoom.Visible = false; btnChooseRoomIcon.Visible = false; - LoadFunctionListRow(true); + LoadFunctionListRow(unallocatedList); }; btnAllocated.MouseUpEventHandler = (sender, e) => { btnUnallocated.IsSelected = false; @@ -42,7 +42,7 @@ btnUnallocated.TextSize = CSS_FontSize.TextFontSize; btnChoosedRoom.Visible = true; btnChooseRoomIcon.Visible = true; - LoadFunctionListRow(false); + LoadFunctionListRow(allocatedList); }; } @@ -55,22 +55,22 @@ btn.IsSelected = !btn.IsSelected; if (btn.IsSelected) { - function.roomIdList.Add(roomId); + function.roomIdList.Add(room.sid); } else { - function.roomIdList.Remove(roomId); + function.roomIdList.Remove(room.sid); } }; btn.MouseUpEventHandler = (sender, e) => { btn.IsSelected = !btn.IsSelected; if (btn.IsSelected) { - function.roomIdList.Add(roomId); + function.roomIdList.Add(room.sid); } else { - function.roomIdList.Remove(roomId); + function.roomIdList.Remove(room.sid); } }; } @@ -104,7 +104,7 @@ } btn.IsSelected = true; showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); - LoadFunctionListRow(false); + LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIdList.Contains(showedFunctionRoomId))); btnChoosedRoom.Text = chooseRoomName; dialog.Close(); }; @@ -117,7 +117,7 @@ { btnConfrim.MouseUpEventHandler = (sender, e) => { DB_ResidenceData.residenceData.SaveResidenceData(); - DB_ResidenceData.residenceData.rooms.Find((obj) => obj.sid == roomId).RefreshFunctions(); + room.RefreshFunctions(); bodyView.RemoveFromParent(); }; } -- Gitblit v1.8.0