| | |
| | | } |
| | | |
| | | |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 当前成员信息的方法 |
| | | /// </summary> |
| | |
| | | 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]; |
| | |
| | | Text = userifon.ModeName, |
| | | TextSize = 14, |
| | | }; |
| | | doorlockRow.AddChidren(doorlockBtn); |
| | | 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 |
| | | { |
| | |
| | | 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) |