| | |
| | | } |
| | | |
| | | #region ◆ 变量申明__________________________ |
| | | ZigBee.Device.DoorLock doorLock; |
| | | VerticalRefreshLayout bodyView; |
| | | ZigBee.Device.DoorLock doorLock;//当前门锁 |
| | | VerticalRefreshLayout bodyView;//刷新View |
| | | Button currentMethod;// 当前选择的方式 |
| | | Shared.Phone.UserCenter.MemberInfoRes curAccountObj; |
| | | Shared.Phone.UserCenter.MemberInfoRes curAccountObj;//当前账户 |
| | | Button entryStatusPic; |
| | | Button btnPicTip; |
| | | Button btnPicTip1; |
| | | bool isSecondDel; |
| | | FrameLayout blankFrameLayout; |
| | | bool isSecondDel;//是否二次删除 |
| | | FrameLayout blankFrameLayout;//空数据显示布局 |
| | | #endregion |
| | | |
| | | /// <summary> |
| | | /// 读取门锁存储的最新数据 |
| | | /// </summary> |
| | | void ReadDoorLockUserInfo() |
| | | { |
| | | System.Threading.Tasks.Task.Run(async () => |
| | |
| | | BlankPicUI(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 空数据UI显示 |
| | | /// </summary> |
| | | void BlankPicUI() |
| | | { |
| | | blankFrameLayout = new FrameLayout |
| | |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | }; |
| | | bodyView.AddChidren(frameLayoutRow); |
| | | |
| | | int i = 0; |
| | | foreach (var curUserId in curAccountDoorLockUserList.Keys) |
| | | { |
| | |
| | | #endregion |
| | | i++; |
| | | } |
| | | |
| | | //遮挡RowLayout多余的线条 |
| | | for (int j = 0; j < curAccountDoorLockUserList.Keys.Count; j++) |
| | | { |
| | | var frameLayoutRowLineHide = new FrameLayout() |
| | | { |
| | | Height = 10, |
| | | Width = Application.GetRealWidth(173), |
| | | X = Application.GetRealWidth(58), |
| | | Y = (j + 1) * Application.GetRealHeight(145), |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.XMWhite, |
| | | }; |
| | | frameLayoutRow.AddChidren(frameLayoutRowLineHide); |
| | | } |
| | | frameLayoutRow.Height = i * Application.GetRealHeight(150); |
| | | } |
| | | } |
| | |
| | | var rowFrameLayout = new RowLayout() |
| | | { |
| | | Height = Application.GetRealHeight(150), |
| | | LineColor = Shared.Common.ZigbeeColor.Current.XMRowLine, |
| | | X = Application.GetRealWidth(81), |
| | | }; |
| | | sidelipVerticalScrolViewLayout.AddChidren(rowFrameLayout); |
| | | |
| | |
| | | { |
| | | Width = Application.GetRealWidth(81), |
| | | Height = Application.GetRealHeight(81), |
| | | X = Application.GetRealWidth(81), |
| | | Y = Application.GetRealHeight(55), |
| | | }; |
| | | rowFrameLayout.AddChidren(btnAllMethod); |
| | |
| | | { |
| | | Width = Application.GetRealWidth(311), |
| | | Height = Application.GetRealHeight(58), |
| | | X = Application.GetRealWidth(173), |
| | | X = Application.GetRealWidth(92), |
| | | Y = Application.GetRealHeight(69), |
| | | TextColor = Shared.Common.ZigbeeColor.Current.XMGray3, |
| | | TextSize = 14, |