From eb5a57942bae8eb57fd7fb61124c247bebb67e8e Mon Sep 17 00:00:00 2001
From: xm <1271024303@qq.com>
Date: 星期五, 19 六月 2020 10:18:28 +0800
Subject: [PATCH] Merge branch 'dev-tzy' into dev-2020xm

---
 Home0618/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs |   47 +++++++++++++++++++++++------------------------
 1 files changed, 23 insertions(+), 24 deletions(-)

diff --git a/Home0618/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs b/Home0618/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs
index b8e0120..123db6f 100644
--- a/Home0618/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs
+++ b/Home0618/Shared/Phone/UserCenter/DoorLock/DoorLockCommonInfo.cs
@@ -112,10 +112,10 @@
 
         #region 甯稿紑妯″紡 API
         /// <summary>
-        /// 鑾峰彇褰撳墠闂ㄩ攣鐨勫父寮�妯″紡 
+        /// 鑾峰彇褰撳墠闂ㄩ攣鐨勫父寮�妯″紡
         /// </summary>
-        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> 
-        /// <returns>null:娌℃湁鍥炲  锛� true:闂ㄩ攣甯稿紑锛沠alse锛氶棬閿佸父鍏�</returns> 
+        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param>
+        /// <returns>null:娌℃湁鍥炲  锛� true:闂ㄩ攣甯稿紑锛沠alse锛氶棬閿佸父鍏�</returns>
         public static async System.Threading.Tasks.Task<bool?> GetNormallyOpenMode(ZigBee.Device.DoorLock doorLock)
         {
             bool? IsDoorLockNormallyMode = null;
@@ -142,8 +142,8 @@
         /// <summary>
         /// 闂ㄩ攣鏄惁鏀寔甯稿紑[杩欓噷鏆傛椂鍙湁S-One闂ㄩ攣鏀寔锛孒06C涓嶆敮鎸�, 鍚庢湡閫氳繃鑳藉姏鍊兼敮鎸乚
         /// </summary>
-        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> 
-        /// <returns>true:鏀寔甯稿紑锛沠alse锛� 涓嶆敮鎸佸父寮�</returns> 
+        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param>
+        /// <returns>true:鏀寔甯稿紑锛沠alse锛� 涓嶆敮鎸佸父寮�</returns>
         public static bool CanNormallyOpen(ZigBee.Device.DoorLock doorLock)
         {
             var listDevice = new List<CommonDevice> { };
@@ -177,7 +177,7 @@
         /// </summary>
         /// <param name="doorLock">褰撳墠闂ㄩ攣</param>
         /// <param name="doorLockMessType">瀵艰嚧闂ㄩ攣澶辨晥鐨勬搷浣滅被鍨�</param>
-        /// <param name="haveLogic">缃戝叧涓槸鍚﹀瓨鍦ㄩ�昏緫甯稿紑妯″紡</param> 
+        /// <param name="haveLogic">缃戝叧涓槸鍚﹀瓨鍦ㄩ�昏緫甯稿紑妯″紡</param>
         /// <param name="action">鍥炶皟澶勭悊鏇存柊鍐呭</param>
         /// <param name="type">1:纭甯稿紑妯″紡宸茬粡寮�鍚紱0:甯稿紑妯″紡澶辨晥鎻愮ず</param>
         public static async void NomallyOpenModeInvalidDialog(ZigBee.Device.DoorLock doorLock, DoorLockMessType doorLockMessType, bool haveLogic, Action<bool> action = null, int type = 0)
@@ -209,7 +209,7 @@
             {
                 if (doorLockMessType == DoorLockMessType.DeviceReport || doorLockMessType == DoorLockMessType.ServicePush)
                 {
-                    //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷 
+                    //涓婃姤鈥滃父寮�妯″紡鈥濆凡琚彇娑堬紝app榛樿浜嗏�滃父寮�妯″紡鈥濊鍙栨秷
                     DoorLockCommonInfo.NormallyOpenModeValue(doorLock, false);
                     if (LogicAction != null)
                     {
@@ -291,7 +291,7 @@
                 }
                 else
                 {
-                    //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥� 
+                    //app鎿嶄綔涓嶅彇娑堚�滃父寮�妯″紡鈥�
                     DoorLockCommonInfo.NormallyOpenModeValue(doorLock, true);
                 }
                 action?.Invoke(doorLock.IsDoorLockNormallyMode);
@@ -353,7 +353,7 @@
                     {
                         //娣诲姞App寮�鍚父寮�妯″紡鐨勫巻鍙茶褰�
                         HdlDeviceDoorLockLogic.Current.AddDoorHistoryLog(doorLock, 9002, string.Empty);
-                        //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� 
+                        //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔�
                         NormallyOpenModeValue(doorLock, false);
                         //鍒犻櫎璁剧疆甯稿紑妯″紡鍒涘缓鐨勯�昏緫
                         if (haveLogic)
@@ -386,7 +386,7 @@
         /// <returns></returns>
         public static async System.Threading.Tasks.Task<bool> DelNormallyOpenMode(ZigBee.Device.DoorLock doorLock, Action action = null)
         {
-            //app鎿嶄綔鍙栨秷鈥滃父寮�妯″紡鈥� 
+            //app鎿嶄綔鍙栨秷鈥滃父寮�妯″紡鈥�
             var result = await doorLock.SetNormallyOpenModeFuncAsync(false);
             if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0)
             {
@@ -396,7 +396,7 @@
 
             if (result.defaultControlResponseData.status == 0)
             {
-                //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔� 
+                //app纭鍙栨秷鈥滃父寮�妯″紡鈥濇垚鍔�
                 NormallyOpenModeValue(doorLock, false);
                 action?.Invoke();
                 return true;
@@ -412,7 +412,7 @@
         /// <returns></returns>
         public static async System.Threading.Tasks.Task<bool> SetNormallyOpenModeFuncAsync(ZigBee.Device.DoorLock doorLock)
         {
-            //app璁剧疆鈥滃父寮�妯″紡鈥濆け璐� 
+            //app璁剧疆鈥滃父寮�妯″紡鈥濆け璐�
             var result = await doorLock.SetNormallyOpenModeFuncAsync(true);
             if (result == null || result.defaultControlResponseData == null || result.defaultControlResponseData.status != 0)
             {
@@ -421,7 +421,7 @@
 
             if (result.defaultControlResponseData.status == 0)
             {
-                //app璁剧疆鈥滃父寮�妯″紡鈥濇垚鍔�  
+                //app璁剧疆鈥滃父寮�妯″紡鈥濇垚鍔�
                 NormallyOpenModeValue(doorLock, false);
                 return true;
             }
@@ -446,7 +446,7 @@
                 return;
             }
 
-            //璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁堝浜庢墦寮�鐘舵�侊紝纭寮�鍚紵 
+            //璁剧疆甯稿紑妯″紡鍚庯紝鎮ㄧ殑闂ㄩ攣灏嗗缁堝浜庢墦寮�鐘舵�侊紝纭寮�鍚紵
             string msg = Language.StringByID(R.MyInternationalizationString.SetDoorLockNomallyOpen).Replace("{0}", "\r\n");
             var confirm = Language.StringByID(R.MyInternationalizationString.Confrim);
             var alert = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.Confirm, msg, confirm);
@@ -463,7 +463,7 @@
         /// </summary>
         public static async void NomallyOpenModeInvalidTimeDialog(ZigBee.Device.DoorLock doorLock, Action action)
         {
-            //澶辨晥璁剧疆 
+            //澶辨晥璁剧疆
             string msgTimeInValidSetting = Language.StringByID(R.MyInternationalizationString.DoorLockOpenAllTheTime);
             var timeConfrim = Language.StringByID(R.MyInternationalizationString.Confrim);
             var alertTimeInValidSetting = new ShowDoorLockMsgControl(ShowDoorLockMsgControl.DoorLockMsgType.InValid, msgTimeInValidSetting, timeConfrim);
@@ -519,8 +519,8 @@
         /// <summary>
         /// 闂ㄩ攣鏄惁鏀寔闊抽噺[杩欓噷鏆傛椂鍙湁S-One闂ㄩ攣鏀寔锛孒06C涓嶆敮鎸侊紝鍚庢湡閫氳繃鑳藉姏鍊兼敮鎸乚
         /// </summary>
-        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param> 
-        /// <returns></returns> 
+        /// <param name="doorLock:褰撳墠闂ㄩ攣"></param>
+        /// <returns></returns>
         public static bool CanVolume(ZigBee.Device.DoorLock doorLock)
         {
             var listDevice = new List<CommonDevice> { };
@@ -535,7 +535,7 @@
 
         #endregion
 
-        #region 浠庝簯绔幏鍙栫殑鏂规硶 
+        #region 浠庝簯绔幏鍙栫殑鏂规硶
         /// <summary>
         /// 鑾峰彇褰撳墠璐︽埛闂ㄩ攣鎿嶄綔鏉冮檺锛堟槸鍚﹁鍐荤粨锛�
         /// </summary>
@@ -629,7 +629,6 @@
                             SubAccounListDictionary.Add(member.DistributedMark, member);
                         }
                     }
-
                     foreach (var addMemberID in SubAccounListDictionary.Keys)
                     {
                         SubAccounList.Add(SubAccounListDictionary[addMemberID]);
@@ -689,7 +688,7 @@
                     }
 
 
-                    //2銆佽鍙栦簯绔棬閿佷俊鎭�  
+                    //2銆佽鍙栦簯绔棬閿佷俊鎭�
                     var getDoorLockInfoAllList = new List<ZigBee.Device.DoorLock.CloudDoorLockObj> { };
                     var getDoorLockInfoList = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAccountInfolist(doorLock);
                     if (getDoorLockInfoList != null)
@@ -1175,7 +1174,7 @@
         /// <returns></returns>
         public static DateTime GetDoorLockZoneTime()
         {
-            //閫氳繃缁忓害鑾峰彇鏃跺尯 
+            //閫氳繃缁忓害鑾峰彇鏃跺尯
             var gwZone = int.Parse(CaculateTimeZone(Common.Config.Instance.Home.Longitude));
             //灏嗘湰鍦版椂闂磋浆鎹㈡垚涓栫晫鏃�
             var utc = DateTime.Now.AddHours(-gwZone);
@@ -1189,7 +1188,7 @@
         }
 
         /// <summary>
-        ///  鑾峰彇鏃跺尯 
+        ///  鑾峰彇鏃跺尯
         /// </summary>
         /// <param name="currentLon">currentLon:"+"涓轰笢鍖猴紝鈥�-鈥濅负瑗垮尯</param>
         /// <returns></returns>
@@ -1250,7 +1249,7 @@
 
         #endregion
 
-        #region 涓�鑸柟娉� 
+        #region 涓�鑸柟娉�
         /// <summary>
         /// 鏄剧ず閿欒淇℃伅绐楀彛
         /// </summary>
@@ -1277,6 +1276,6 @@
             });
         }
 
-        #endregion 
+        #endregion
     }
 }

--
Gitblit v1.8.0