From e90209beae6a4e822cecb18e6889f8bda23f630e Mon Sep 17 00:00:00 2001 From: 黄学彪 <hxb@hdlchina.com.cn> Date: 星期一, 14 十二月 2020 11:16:06 +0800 Subject: [PATCH] 合并了晾衣架(非新云端) --- ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs | 90 ++++++++++++++++++++++---------------------- 1 files changed, 45 insertions(+), 45 deletions(-) diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs index 9856a3c..53e5ead 100755 --- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs +++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserDoorLockPage.cs @@ -51,9 +51,9 @@ /// </summary> DateTime waitGetDoorLockPower = DateTime.MaxValue; /// <summary> - /// 閫昏緫涓槸鍚︽湁甯稿紑妯″紡 + /// 閫昏緫涓槸鍚︽湁甯稿紑妯″紡 /// </summary> - private bool haveLogicNormallyOpenMode = false; + private bool haveLogicNormallyOpenMode = false; /// <summary> /// 褰撳墠鐢甸噺 @@ -194,11 +194,11 @@ bool IsClick = true; #endregion - /// <summary> - /// UI鏄剧ず + /// <summary> + /// UI鏄剧ず /// </summary> public void Show() - { + { this.TopFrameLayout(this, ""); this.MidFrameLayout(this); @@ -305,9 +305,9 @@ UnSelectedImagePath = "Item/Collection.png", SelectedImagePath = "Item/CollectionSelected.png" }; - btnCollectFrameLayout.AddChidren(btnCollect); - - //褰撳墠鐘舵�� + btnCollectFrameLayout.AddChidren(btnCollect); + + //褰撳墠鐘舵�� btnStatus = new Button() { Width = Application.GetRealWidth(132 + 351), @@ -332,9 +332,9 @@ TextSize = 10, TextAlignment = TextAlignment.CenterLeft, }; - midTopFrameLayout.AddChidren(btnCurrentPowerText); -#if Android - btnCurrentPowerText.X = btnStatus.Right + Application.GetRealWidth(20); + midTopFrameLayout.AddChidren(btnCurrentPowerText); +#if Android + btnCurrentPowerText.X = btnStatus.Right + Application.GetRealWidth(20); #endif //闂ㄩ攣寮�/鍏冲浘鐗� @@ -611,12 +611,12 @@ if (tempDoor.doorLockOperatingEventNotificationCommand != null) { //闈炰富浜轰笉寮硅繖涓獥鍙� - if (UserCenterResourse.UserInfo.AuthorityNo != 1) - { - return; + if (UserCenterResourse.UserInfo.AuthorityNo != 1) + { + return; } - if (doorLock.IsDoorLockNormallyMode) - { + if (doorLock.IsDoorLockNormallyMode) + { if (canOpenNormallyMode) { Application.RunOnMainThread(() => @@ -733,7 +733,7 @@ var listDevice = new List<CommonDevice> { }; listDevice.Add(doorLock); var devTemp = Common.LocalDevice.Current.GetMyDeviceEnumInfo(listDevice); - if (devTemp.ConcreteType == DeviceConcreteType.IntelligentLocks_Sone) + if (devTemp.ConcreteType != DeviceConcreteType.IntelligentLocks_H06C) { Application.RunOnMainThread(() => { @@ -863,8 +863,8 @@ { if (doorLock.IsDoorLockNormallyMode) { - if (canOpenNormallyMode) - { + if (canOpenNormallyMode) + { Application.RunOnMainThread(() => { Action<bool> action = (obj) => @@ -878,7 +878,7 @@ { OpenDoorLockHandle(progressButton, btnDoorLockPic, btnStatus); } - } + } else { OpenDoorLockHandle(progressButton, btnDoorLockPic, btnStatus); @@ -1069,27 +1069,27 @@ action = () => { //WJC鐨勪唬鐮侊細绯荤粺瀵嗙爜鏀寔鎿嶄綔闂ㄩ攣鍚庯紝璋冪敤娓╁眳鍩庣殑鐣岄潰銆愬父寮�鑷姩鍖栥�� - if (doorLock == null) - { + if (doorLock == null) + { ///闃叉鎶涘紓甯� - return; - } - ///澶囨敞锛歐JC鐨� - Shared.Phone.Device.Logic.Send.CurrentDoorLock = doorLock; - ///杩涙潵鍒锋柊涓�娆¤澶囧垪琛紱 - Common.Logic.LogicDviceList.Clear(); - if (Common.Logic.LogicDviceList.Count == 0) - { - Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); - } - var addLogicPage = new Shared.Phone.Device.Logic.SoneLogicList(); - UserView.HomePage.Instance.AddChidren(addLogicPage); - UserView.HomePage.Instance.PageIndex += 1; - addLogicPage.Show(); - addLogicPage.action += async (w) => - { - DoorLockCommonInfo.NormallyOpenModeValue(doorLock, w); - UpdateNomallyOpenStatus(); + return; + } + ///澶囨敞锛歐JC鐨� + Shared.Phone.Device.Logic.Send.CurrentDoorLock = doorLock; + ///杩涙潵鍒锋柊涓�娆¤澶囧垪琛紱 + Common.Logic.LogicDviceList.Clear(); + if (Common.Logic.LogicDviceList.Count == 0) + { + Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); + } + var addLogicPage = new Shared.Phone.Device.Logic.SoneLogicList(); + UserView.HomePage.Instance.AddChidren(addLogicPage); + UserView.HomePage.Instance.PageIndex += 1; + addLogicPage.Show(); + addLogicPage.action += async (w) => + { + DoorLockCommonInfo.NormallyOpenModeValue(doorLock, w); + UpdateNomallyOpenStatus(); //杩斿洖鎸夐敭娓呯┖褰撳墠閫昏緫瀹氫箟鐨凩ogicAction UserCenter.DoorLock.DoorLockCommonInfo.LogicAction = null; //鏄惁瀛樺湪甯稿紑妯″紡 @@ -1108,9 +1108,9 @@ }; HdlCheckLogic.Current.CheckSecondarySecurity(action); - } - - /// <summary> + } + + /// <summary> /// 甯稿紑妯″紡鐘舵�佹洿鏂� /// </summary> private void UpdateNomallyOpenStatus() @@ -1192,8 +1192,8 @@ { if (!string.IsNullOrEmpty(deviceRename)) { - btnDoorLockTitle.Text = deviceRename; - //鏀规埧闂� + btnDoorLockTitle.Text = deviceRename; + //鏀规埧闂� HdlRoomLogic.Current.ChangedRoom(deviceUI, currentRoom.Id); deviceUI.ReSave(); } -- Gitblit v1.8.0