old mode 100644
new mode 100755
| | |
| | | using ZigBee.Device; |
| | | namespace Shared.Phone.UserCenter.DoorLock |
| | | { |
| | | public class MasterManagementPage : DoorLockCommonLayout, ZigBee.Common.IStatus |
| | | public class MasterManagementPage : DoorLockCommonLayout |
| | | { |
| | | /// <summary> |
| | | /// 构造函数 |
| | |
| | | BackgroundColor = Shared.Common.ZigbeeColor.Current.GXCTopViewBackgroundColor; |
| | | } |
| | | |
| | | #region ◆ 变量申明__________________________ |
| | | #region 变量申明 |
| | | /// <summary> |
| | | /// 当前门锁 |
| | | /// </summary> |
| | | ZigBee.Device.DoorLock doorLock; |
| | | /// <summary> |
| | | /// 当前账户 |
| | | /// </summary> |
| | | Shared.Phone.UserCenter.MemberInfoRes accountObj; |
| | | #endregion |
| | | |
| | | /// <summary>
|
| | | /// UI显示
|
| | | /// UI显示 |
| | | /// </summary> |
| | | public void Show() |
| | | { |
| | |
| | | MidFrameLayoutContent(); |
| | | } |
| | | |
| | | /// <summary> |
| | | /// 中部布局 |
| | | /// </summary> |
| | | public void MidFrameLayoutContent() |
| | | { |
| | | var bodyView = new VerticalRefreshLayout() |
| | |
| | | Y = Application.GetRealHeight(58), |
| | | Height = Application.GetRealHeight(58), |
| | | Width = Application.GetRealWidth(58), |
| | | UnSelectedImagePath = "Item/Next.png", |
| | | UnSelectedImagePath = "Item/RightNext.png", |
| | | SelectedImagePath = "Item/Down.png", |
| | | }; |
| | | RowView.AddChidren(btnRight); |
| | |
| | | unLockMethod.Show(); |
| | | } |
| | | else |
| | | { |
| | | |
| | | ///备注:WJC的 |
| | | ///记录当前用户信息 |
| | | Phone.Device.Logic.Send.UserMemberInfoRes = accountObj; |
| | | Phone.Device.Logic.Send.CurrentDoorLock = doorLock; |
| | | if (accountObj == null) |
| | | { |
| | | ///防止抛异常 |
| | | Phone.Device.Logic.Send.UserMemberInfoRes = new MemberInfoRes(); |
| | | } |
| | | if (doorLock == null) |
| | | { |
| | | ///防止抛异常 |
| | | Phone.Device.Logic.Send.CurrentDoorLock = new ZigBee.Device.DoorLock(); |
| | | } |
| | | ///进来刷新一次设备列表; |
| | | Common.Logic.LogicDviceList.Clear(); |
| | | if (Common.Logic.LogicDviceList.Count == 0) |
| | | { |
| | | Common.Logic.LogicDviceList.AddRange(LocalDevice.Current.listAllDevice.ToArray()); |
| | | } |
| | | var doorLockLogicList = new Phone.Device.Logic.DoorLockLogic.LockLogicList(); |
| | | UserView.HomePage.Instance.AddChidren(doorLockLogicList); |
| | | UserView.HomePage.Instance.PageIndex += 1; |
| | | doorLockLogicList.Show(); |
| | | {
|
| | | ///备注:WJC的
|
| | | ///记录当前用户信息
|
| | | Shared.Phone.Device.Logic.SkipView.SkipAddLogic(1, doorLock, accountObj);
|
| | |
|
| | | } |
| | | }; |
| | | btnRight.MouseUpEventHandler += eHandler; |
| | |
| | | btnMemberName.MouseUpEventHandler += eHandler; |
| | | } |
| | | } |
| | | |
| | | #region ◆ 接口实现__________________________ |
| | | /// <summary> |
| | | /// 处理变化事件 --将弃用 改用DeviceInfoChange() |
| | | /// </summary> |
| | | /// <returns>The changed.</returns> |
| | | /// <param name="common">Common.</param> |
| | | public void Changed(CommonDevice common) |
| | | { |
| | | |
| | | } |
| | | /// <summary> |
| | | /// 处理变化事件 |
| | | /// </summary> |
| | | /// <param name="common"></param> |
| | | /// <param name="typeTag"></param> |
| | | public void DeviceInfoChange(CommonDevice common, string typeTag) |
| | | { |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IL ogic status. |
| | | /// </summary> |
| | | /// <param name="logic">Logic.</param> |
| | | public void ChangedILogicStatus(ZigBee.Device.Logic logic) |
| | | { |
| | | } |
| | | /// <summary> |
| | | /// Changeds the IS cene status. |
| | | /// </summary> |
| | | /// <param name="scene">Scene.</param> |
| | | public void ChangedISceneStatus(Scene scene) |
| | | { |
| | | } |
| | | #endregion |
| | | } |
| | | } |
| | | } |