From 3e4e108d0c6317edb18bbf9c41419fd6d6a0eebb Mon Sep 17 00:00:00 2001 From: WJC <wjc@hdlchina.com.cn> Date: 星期四, 28 十一月 2019 17:53:10 +0800 Subject: [PATCH] 2019-11-28-2 --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs | 51 +++++++++++++++++++++++++++++++++++++-------------- 1 files changed, 37 insertions(+), 14 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs old mode 100755 new mode 100644 index 49fb50e..1f83307 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MasterManagementPage.cs @@ -28,9 +28,7 @@ Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); }); try { - CommonDevice.DebugPrintLog($"11111111111111F"); await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, accountObj); - CommonDevice.DebugPrintLog($"11111111111111G"); } catch { } finally @@ -38,7 +36,6 @@ Application.RunOnMainThread(() => { MidFrameLayoutContent(); - CommonDevice.DebugPrintLog($"11111111111111E"); CommonPage.Loading.Hide(); }); } @@ -46,12 +43,20 @@ } /// <summary> - /// UI鏄剧ず + /// UI鏄剧ず /// </summary> public void Show() { - CommonDevice.DebugPrintLog($"11111111111111A"); - this.TopFrameLayout(this, accountObj.Account); + string accountTitle = ""; + if (accountObj.UserName != null) + { + accountTitle = accountObj.UserName; + } + else + { + accountTitle = accountObj.Account; + } + this.TopFrameLayout(this, accountTitle); EventHandler<MouseEventArgs> eHandlerBack = (sender, e) => { @@ -60,14 +65,11 @@ this.btnBack.MouseUpEventHandler += eHandlerBack; this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack; this.MidFrameLayout(this); - CommonDevice.DebugPrintLog($"11111111111111B"); ReadDoorLockUserInfo(); - CommonDevice.DebugPrintLog($"11111111111111C"); } public void MidFrameLayoutContent() { - CommonDevice.DebugPrintLog($"11111111111111D"); var bodyView = new VerticalScrolViewLayout() { }; @@ -135,10 +137,31 @@ } else { - var userDoorLockPage = new UserDoorLockPage(doorLock, accountObj); - Shared.Phone.UserView.HomePage.Instance.AddChidren(userDoorLockPage); - Shared.Phone.UserView.HomePage.Instance.PageIndex += 1; - userDoorLockPage.Show(); + + ///澶囨敞锛歐JC鐨� + ///璁板綍褰撳墠鐢ㄦ埛淇℃伅 + Phone.Device.Logic.Send.UserMemberInfoRes = accountObj; + Phone.Device.Logic.Send.CurrentDoorLock = doorLock; + if (accountObj == null) + { + ///闃叉鎶涘紓甯� + Phone.Device.Logic.Send.UserMemberInfoRes = new MemberInfoRes(); + } + if (doorLock == null) + { + ///闃叉鎶涘紓甯� + Phone.Device.Logic.Send.CurrentDoorLock = new ZigBee.Device.DoorLock(); + } + ///杩涙潵鍒锋柊涓�娆¤澶囧垪琛紱 + Common.Logic.LogicDviceList.Clear(); + if (Common.Logic.LogicDviceList.Count == 0) + { + Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); + } + var doorLockLogicList = new Phone.Device.Logic.DoorLockLogic.LockLogicList(); + UserView.HomePage.Instance.AddChidren(doorLockLogicList); + UserView.HomePage.Instance.PageIndex += 1; + doorLockLogicList.Show(); } }; btnRight.MouseUpEventHandler += eHandler; @@ -180,4 +203,4 @@ } #endregion } -} \ No newline at end of file +} -- Gitblit v1.8.0