HDL Home App 第二版本 旧平台金堂用 正在使用
黄学彪
2019-11-28 3a26f6025130dcaae4aa82ea19b16ad902450eb8
ZigbeeApp/Shared/Phone/UserCenter/DoorLock/MemberFrozenPage.cs
@@ -21,8 +21,29 @@
        #region ◆ 变量申明__________________________
        ZigBee.Device.DoorLock doorLock;
        Shared.Phone.UserCenter.MemberInfoRes curAccountObj;
        VerticalScrolViewLayout bodyView;
        VerticalRefreshLayout bodyView;
        #endregion
        void ReadDoorLockUserInfo()
        {
            System.Threading.Tasks.Task.Run(async () =>
            {
                try
                {
                    var list = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockAllAcountUserlist(doorLock);
                    var result = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockOperateAccess(doorLock, curAccountObj.SubAccountDistributedMark);
                    var result1 = await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetDoorLockUnlockAccess(doorLock, curAccountObj.SubAccountDistributedMark);
                }
                catch { }
                finally
                {
                    Application.RunOnMainThread(() =>
                    {
                        MidRefresh();
                    });
                }
            });
        }
        /// <summary>
        /// UI显示 
@@ -48,12 +69,17 @@
            this.btnBackFrameLayout.MouseUpEventHandler += eHandlerBack;
            this.MidFrameLayout(this);
            bodyView = new VerticalScrolViewLayout()
            bodyView = new VerticalRefreshLayout()
            {
            };
            this.midFrameLayout.AddChidren(bodyView);
            bodyView.BeginHeaderRefreshingAction += () =>
            {
                bodyView.BeginHeaderRefreshing();
            ReadDoorLockUserInfo();
                bodyView.EndHeaderRefreshing();
            };
            MidRefresh();
        }
        public async void MidRefresh()
@@ -746,27 +772,6 @@
                    MidRefresh();
                }
            };
        }
        void ReadDoorLockUserInfo()
        {
            System.Threading.Tasks.Task.Run(async () =>
            {
                Application.RunOnMainThread(() => { CommonPage.Loading.Start("Loading..."); });
                try
                {
                    //await Shared.Phone.UserCenter.DoorLock.DoorLockCommonInfo.GetLocaDoorLocklist(doorLock, curAccountObj);
                }
                catch { }
                finally
                {
                    Application.RunOnMainThread(() =>
                    {
                        MidRefresh();
                        CommonPage.Loading.Hide();
                    });
                }
            });
        }
        #region ◆ 接口实现__________________________