From 9a4b76398009cf76c508d61f7e48fb6f5cb7ac2d Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期二, 21 七月 2020 09:46:53 +0800
Subject: [PATCH] 请合并最新多功能面板代码

---
 ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs |  100 ++++++++++++++++++++++---------------------------
 1 files changed, 45 insertions(+), 55 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
index 28e15de..e694c22 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
@@ -5,7 +5,7 @@
 using ZigBee.Device;
 namespace Shared.Phone.UserCenter.DoorLock
 {
-    public class MemberFrozenPage : DoorLockCommonLayout, ZigBee.Common.IStatus
+    public class MemberFrozenPage : DoorLockCommonLayout
     {
         /// <summary>
         /// 鏋勯�犲嚱鏁�
@@ -18,12 +18,24 @@
             BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor;
         }
 
-        #region 鈼� 鍙橀噺鐢虫槑__________________________
+        #region  鍙橀噺鐢虫槑 
+        /// <summary>
+        /// 褰撳墠闂ㄩ攣
+        /// </summary>
         ZigBee.Device.DoorLock doorLock;
+        /// <summary>
+        /// 褰撳墠鎴愬憳瀵硅薄v
+        /// </summary>
         Shared.Phone.UserCenter.MemberInfoRes curAccountObj;
+        /// <summary>
+        /// 鍒锋柊View
+        /// </summary>
         VerticalRefreshLayout bodyView;
         #endregion
 
+        /// <summary>
+        /// 鍒濆鍖栨暟鎹俊鎭�
+        /// </summary>
         void ReadDoorLockUserInfo()
         {
             System.Threading.Tasks.Task.Run(async () =>
@@ -100,7 +112,9 @@
                 ReadDoorLockUserInfo();
             };
         }
-
+        /// <summary>
+        /// 涓儴甯冨眬
+        /// </summary>
         public async void MidRefresh()
         {
             bodyView.RemoveAll();
@@ -219,25 +233,25 @@
                         unLockMethod.Show();
                     }
                     else if (currentIndex == 1)
-                    { 
+                    {
                         if (!btnRight.IsSelected)
                         {
-                            FreezeUser(true); 
+                            FreezeUser(true);
                         }
                         else
                         {
-                            FreezeUser(false); 
+                            FreezeUser(false);
                         }
                     }
                     else if (currentIndex == 2)
-                    { 
+                    {
                         if (!btnRight.IsSelected)
                         {
-                            HasRemoteUnlockAccessMethod(true); 
+                            HasRemoteUnlockAccessMethod(true);
                         }
                         else
                         {
-                            HasRemoteUnlockAccessMethod(false); 
+                            HasRemoteUnlockAccessMethod(false);
                         }
                     }
                 };
@@ -261,7 +275,10 @@
             }
         }
 
-        //鍐荤粨璐︽埛
+        /// <summary>
+        /// 鍐荤粨璐︽埛
+        /// </summary>
+        /// <param name="isFreeze"></param>
         void FreezeUser(bool isFreeze)
         {
             var dialog = new Dialog { };
@@ -299,8 +316,8 @@
                             foreach (var curDoorLockUser in curAccountDoorLockUserList)
                             {
                                 // 璐︽埛涓病鏈夐棬閿佺敤鎴�
-                                if (curDoorLockUser.DoorLockLocalUserId == null || curDoorLockUser.DoorLockLocalUserId == "")
-                                { 
+                                if (string.IsNullOrEmpty(curDoorLockUser.DoorLockLocalUserId))
+                                {
                                 }
                                 else
                                 {
@@ -325,16 +342,16 @@
                             }
                             //鍐荤粨/瑙e喕鐢ㄦ埛
                             int count1 = tempGroupId.Count;
-                            if (tempGroupId.Count==1)
+                            if (tempGroupId.Count == 1)
                             {
                                 foreach (var a in tempGroupId)
                                 {
-                                    if(a.Count ==0)
+                                    if (a.Count == 0)
                                     {
                                         count1 = 0;
                                         break;
                                     }
-                                } 
+                                }
                             }
                             int count2 = 0;
 
@@ -357,8 +374,8 @@
                                     else if (resultData.defaultControlResponseData.status == 33)
                                     {
                                         count2++;
-                                    } 
-                                    System.Threading.Thread.Sleep(1000); 
+                                    }
+                                    System.Threading.Thread.Sleep(1000);
                                 }
                                 else
                                 {
@@ -370,7 +387,7 @@
                                 }
                                 tempCount++;
                             }
-                            
+
                             // 鎵归噺鍐荤粨闂ㄩ攣涓殑璐︽埛鍚庯紝鍑嗗鍐荤粨浜戠璐︽埛
                             if (count2 == count1)
                             {
@@ -565,13 +582,20 @@
                         });
                     }
                 });
-            }; 
+            };
         }
 
-        //鏄惁缁欏瓙璐︽埛鎷ユ湁杩滅▼寮�閿佺殑鏉′欢
+        /// <summary>
+        /// 鏄惁缁欏瓙璐︽埛鎷ユ湁杩滅▼寮�閿佺殑鏉′欢
+        /// </summary>
+        /// <param name="hasAccess"></param>
         void HasRemoteUnlockAccessMethod(bool hasAccess)
         {
             string msg = Language.StringByID(R.MyInternationalizationString.SureGiveAccessToSubaccount);
+            if (!hasAccess)
+            {
+                msg = Language.StringByID(R.MyInternationalizationString.SureCancelAccessToSubaccount);
+            }
             var alert = new Shared.Phone.UserCenter.ShowMsgControl(ShowMsgType.Confirm, msg, Language.StringByID(R.MyInternationalizationString.DoorlockConfirm));
             alert.Show();
             //浣跨敤纭鍨嬪脊妗嗘椂,鐨勫洖璋冨嚱鏁�
@@ -761,41 +785,7 @@
                         });
                     }
                 });
-            }; 
+            };
         }
-
-        #region 鈼� 鎺ュ彛瀹炵幇__________________________
-        /// <summary>
-        /// 澶勭悊鍙樺寲浜嬩欢 --灏嗗純鐢� 鏀圭敤DeviceInfoChange()
-        /// </summary>
-        /// <returns>The changed.</returns>
-        /// <param name="common">Common.</param>
-        public void Changed(CommonDevice common)
-        {
-
-        }
-        /// <summary>
-        /// 澶勭悊鍙樺寲浜嬩欢
-        /// </summary>
-        /// <param name="common"></param>
-        /// <param name="typeTag"></param>
-        public void DeviceInfoChange(CommonDevice common, string typeTag)
-        {
-        }
-        /// <summary>
-        /// Changeds the IL ogic status.
-        /// </summary>
-        /// <param name="logic">Logic.</param>
-        public void ChangedILogicStatus(ZigBee.Device.Logic logic)
-        {
-        }
-        /// <summary>
-        /// Changeds the IS cene status.
-        /// </summary>
-        /// <param name="scene">Scene.</param>
-        public void ChangedISceneStatus(Scene scene)
-        {
-        }
-        #endregion
     }
 }

--
Gitblit v1.8.0