From 9904031f5291daaf56985146bb671f25e18ebbdf Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期四, 02 四月 2020 19:51:31 +0800 Subject: [PATCH] 最新代码 --- ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs | 24 ++++++++++++++++++++---- 1 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs index f5d841a..009eccd 100755 --- a/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs +++ b/ZigbeeApp/Shared/Phone/MainPage/ListRoomViewFrom.cs @@ -22,7 +22,14 @@ public static ListRoomViewFrom Instance { get - { + { + if (roomManagement == null) + { + //鍒濆鍖栧乏婊戣彍鍗� + roomManagement = new ListRoomViewFrom(); + CommonPage.Instance.AddLeftView(roomManagement); + roomManagement.ShowForm(); + } return roomManagement; } } @@ -83,12 +90,12 @@ }; //鑾峰彇妤煎眰 + this.curFloorId = Config.Instance.Home.CurrentFloorId; var dicFloor = HdlRoomLogic.Current.GetFloorSortList(); if (dicFloor.Count == 0) { return; } - this.curFloorId = Config.Instance.Home.CurrentFloorId; //妤煎眰鍥炬爣 var btnIconContr = new MostRightIconControl(69, 69); btnIconContr.UnSelectedImagePath = "Item/Drop_Down.png"; @@ -142,6 +149,11 @@ /// </summary> public void RefreshListRoom() { + //鎶婂ご閮ㄤ篃涓�璧峰垵濮嬪寲浜� + this.topFrameLayout.RemoveAll(); + //鍒濆鍖栧ご閮ㄤ俊鎭� + this.InitTopFrame(); + //鍏堟竻绌� this.listView.frameTable.RemoveAll(); this.listView.frameTable.Height = Application.GetRealHeight(100); @@ -208,8 +220,12 @@ }); }; } - //鍒濆鍖栨湭鍒嗛厤鍗$墖 - this.InitRoomCardControl(XX, YY); + //鎴愬憳鏄病鏈夋湭鍒嗛厤杩欎釜涓滆タ鍑烘潵鐨� + if (UserCenterResourse.UserInfo.AuthorityNo == 1 || UserCenterResourse.UserInfo.AuthorityNo == 2) + { + //鍒濆鍖栨湭鍒嗛厤鍗$墖 + this.InitRoomCardControl(XX, YY); + } //璋冩暣妗屽竷楂樺害 this.listView.AdjustTableHeight(); } -- Gitblit v1.8.0