From f534d41c36d5895322bf691784a10435b64609fe Mon Sep 17 00:00:00 2001 From: wei <kaede@kaededeMacBook-Air.local> Date: 星期五, 25 十二月 2020 13:52:00 +0800 Subject: [PATCH] 修复添加、删除楼层时候,界面刷新异常问题 --- HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs | 15 ++++++++++++--- 1 files changed, 12 insertions(+), 3 deletions(-) diff --git a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs old mode 100755 new mode 100644 index bec504f..efaa6ac --- a/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs +++ b/HDL_ON/UI/UI2/4-PersonalCenter/RoomListManage/RoomEditFunctionPageBLL.cs @@ -103,8 +103,16 @@ lastButton.IsSelected = false; } btn.IsSelected = true; - showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); - LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId))); + //showedFunctionRoomId = btn.Tag.ToString() == "0" ? null : btn.Tag.ToString(); + showedFunctionRoomId = btn.Tag.ToString(); + if (showedFunctionRoomId == "0") + { + LoadFunctionListRow(allocatedList); + } + else + { + LoadFunctionListRow(allocatedList.FindAll((obj) => obj.roomIds.Contains(showedFunctionRoomId))); + } btnChoosedRoom.Text = chooseRoomName; dialog.Close(); }; @@ -119,6 +127,7 @@ if (string.IsNullOrEmpty(room.roomId))//鏂板鐨勬埧闂达紝浜戠鏈垱寤簉oomid 鏃犳硶淇濆瓨鏁版嵁 { newRoomAddFunction(changeList); + bodyView.RemoveFromParent(); } else { @@ -132,7 +141,7 @@ { f.roomIds.Add(room.roomId); } - f.SaveFunctionData(true); + f.UpdataRoomIds(); } room.GetRoomFunctions(true); bodyView.RemoveFromParent(); -- Gitblit v1.8.0