From c6ff92e84b6cb2815cb98065ecb0ecf95d0689c3 Mon Sep 17 00:00:00 2001
From: WJC <wjc@hdlchina.com.cn>
Date: 星期三, 15 一月 2020 09:42:29 +0800
Subject: [PATCH] 2020-01-15-1

---
 ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs |   37 +++++++++++++++++++++++++++++++------
 1 files changed, 31 insertions(+), 6 deletions(-)

diff --git a/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs b/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
index 6a9b586..58eea86 100644
--- a/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
+++ b/ZigbeeApp/Shared/Phone/Device/Logic/MemberList.cs
@@ -206,7 +206,7 @@
             }
 
 
-        }          
+        }
         /// <summary>
         /// 褰撳墠鎴愬憳淇℃伅鐨勬柟娉�
         /// </summary>
@@ -296,13 +296,13 @@
             string SelectedDeviceStatuscondition = "";
             lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * user.UserIdMode.Count) - 20 - 50);
             lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * user.UserIdMode.Count) + 20 + 50);
-            if (user.UserIdMode.Count > 10)
+            if (user.UserIdMode.Count > 9)
             {
                 ///鍏冪礌瓒呭嚭10涓紝鏆傛椂榛樿鏄剧ず10;
-                lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * 10) - 20 - 50);
-                lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * 10) + 20 + 50);
+                lockcolorfra1.Y = Application.GetRealHeight(1920 - 140 - (160 * 9) - 20 - 50);
+                lockcolorfra1.Height = Application.GetRealHeight(140 + (160 * 9) + 20 + 50);
             }
-         
+
             for (int i = 0; i < user.UserIdMode.Count; i++)
             {
                 var userifon = user.UserIdMode[i];
@@ -332,6 +332,30 @@
                     TextSize = 14,
                 };
                 doorlockRow.AddChidren(doorlockBtn);
+                if (string.IsNullOrEmpty(doorlockBtn.Text))
+                {
+                    string strname = "";
+                    switch (userifon.OpenMode)
+                    {
+                        case 0:
+                            {
+                                strname = Language.StringByID(MyInternationalizationString.lockpassword);
+                            }
+                            break;
+                        case 3:
+                            {
+                                strname = Language.StringByID(MyInternationalizationString.ic);
+                            }
+                            break;
+                        case 15:
+                            {
+                                strname = Language.StringByID(MyInternationalizationString.fingerprint);
+                            }
+                            break;
+                    }
+                    doorlockBtn.Text = strname + "ID" + userifon.UserId;
+                }
+
 
                 var doorlockSelected = new Button
                 {
@@ -391,7 +415,8 @@
                 deviceConditionsInfo.Add("Range", "0");
                 deviceConditionsInfo.Add("AttriButeId", openMode);
                 deviceConditionsInfo.Add("AttriButeData2", userId);
-                userdictionary.Add("Account", accountname);
+                userdictionary.Add("Account", Config.Instance.Guid);
+                userdictionary.Add("AccountName", accountname);//鐢ㄦ潵鏄剧ず鍚嶇О
                 userdictionary.Add("Type", "1");
                 userdictionary.Add("UserId", userId);
                 if (edit)

--
Gitblit v1.8.0