From 25429f085093d89d543a0b90e30d0d62d1b7dac9 Mon Sep 17 00:00:00 2001
From: hxb <hxb@hdlchina.com.cn>
Date: 星期二, 30 八月 2022 09:37:38 +0800
Subject: [PATCH] 合并了IOS的代码
---
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs | 52 ++++++++++++++++++++++++++++++++++------------------
1 files changed, 34 insertions(+), 18 deletions(-)
diff --git a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
index 0f4b5ed..dfaf6ae 100755
--- a/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
+++ b/ZigbeeApp/Shared/Phone/UserCenter/DoorLock/UserManagement.cs
@@ -24,7 +24,7 @@
#region 鈼� 鍙橀噺鐢虫槑__________________________
ZigBee.Device.DoorLock doorLock;
VerticalRefreshLayout midVerticalScrolViewLayout;
- public List<MemberInfoRes> localAllAccountListTemp = new List<MemberInfoRes> { };
+ public List<Shared.Phone.UserCenter.MemberInfoRes> localAllAccountListTemp = new List<Shared.Phone.UserCenter.MemberInfoRes> { };
public Dictionary<int, DoorLockCommonInfo.LocaDoorLockObj> localDoorLockUserListTemp = new Dictionary<int, DoorLockCommonInfo.LocaDoorLockObj>();
@@ -49,19 +49,18 @@
//鍒濆鍖栨潈闄愪俊鎭�
foreach (var sub in localAccountListTemp)
{
- //鈽嗐優銉笺偗鈽�
- //if (doorLock.IsFreezeAccount.ContainsKey(sub.SubAccountDistributedMark) == false)
- //{
- // doorLock.IsFreezeAccount.Add(sub.SubAccountDistributedMark, false);
- //}
- //if (doorLock.HasRemoteUnlockAccess.ContainsKey(sub.SubAccountDistributedMark) == false)
- //{
- // doorLock.HasRemoteUnlockAccess.Add(sub.SubAccountDistributedMark, false);
- //}
- //if (doorLock.IsFailedToGetDoorLockInfo.ContainsKey(sub.SubAccountDistributedMark) == false)
- //{
- // doorLock.IsFailedToGetDoorLockInfo.Add(sub.SubAccountDistributedMark, false);
- //}
+ if (doorLock.IsFreezeAccount.ContainsKey(sub.SubAccountDistributedMark) == false)
+ {
+ doorLock.IsFreezeAccount.Add(sub.SubAccountDistributedMark, false);
+ }
+ if (doorLock.HasRemoteUnlockAccess.ContainsKey(sub.SubAccountDistributedMark) == false)
+ {
+ doorLock.HasRemoteUnlockAccess.Add(sub.SubAccountDistributedMark, false);
+ }
+ if (doorLock.IsFailedToGetDoorLockInfo.ContainsKey(sub.SubAccountDistributedMark) == false)
+ {
+ doorLock.IsFailedToGetDoorLockInfo.Add(sub.SubAccountDistributedMark, false);
+ }
}
//鑾峰彇鏈湴闂ㄩ攣鍒楄〃
@@ -124,10 +123,11 @@
};
btnAddFrameLayout.AddChidren(btnUndistributeIcon);
+ btnAddFrameLayout.Width = Application.GetRealWidth(190 + 50);
var btnUndistributeText = new Button
{
Height = Application.GetRealHeight(72),
- Width = Application.GetRealWidth(150),
+ Width = Application.GetRealWidth(200),
TextID = R.MyInternationalizationString.Undistributed,
TextColor = Shared.Common.ZigbeeColor.Current.XMTopTitleText,
X = btnUndistributeIcon.Right,
@@ -136,7 +136,7 @@
TextAlignment = TextAlignment.CenterLeft,
};
btnAddFrameLayout.AddChidren(btnUndistributeText);
- if (HdlUserCenterResourse.ResidenceOption.AuthorityNo != 1)
+ if (UserCenterResourse.UserInfo.AuthorityNo != 1)
{
btnAddFrameLayout.Width = 0;
btnUndistributeIcon.Width = 0;
@@ -162,7 +162,16 @@
}
else
{
- MidFrameLayoutContent();
+ //鍒囨崲璐︽埛鐨勬儏鍐碉細
+ if (localAllAccountListTemp[0].SubAccountDistributedMark != Shared.Common.Config.Instance.Guid)
+ {
+ CommonPage.Loading.Start("Loading...");
+ ReadAccountDoorLockInfoList();
+ }
+ else
+ {
+ MidFrameLayoutContent();
+ }
}
midVerticalScrolViewLayout.BeginHeaderRefreshingAction += () =>
@@ -232,7 +241,14 @@
line2.Visible = false;
}
- btnText.Text = currentAccount.ShowName;
+ if (!string.IsNullOrEmpty(currentAccount.UserName))
+ {
+ btnText.Text = currentAccount.UserName;
+ }
+ else
+ {
+ btnText.Text = currentAccount.Account;
+ }
EventHandler<MouseEventArgs> eHandler = (sender, e) =>
{
--
Gitblit v1.8.0