| | |
| | | Gravity = Gravity.CenterHorizontal, |
| | | TextColor = ZigbeeColor.Current.XMBlack, |
| | | TextSize = 15, |
| | | Text = Common.LocalDevice.Current.GetDeviceMacName(doorLock), |
| | | Text = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock), |
| | | }; |
| | | this.midFrameLayout.AddChidren(btnDeviceText); |
| | | |
| | |
| | | listview.RemoveAll(); |
| | | //设备备注 |
| | | string caption = Language.StringByID(R.MyInternationalizationString.DeviceRemarkXm); |
| | | string deviceName = Common.LocalDevice.Current.GetDeviceMacName(doorLock); |
| | | string deviceName = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock); |
| | | var btnNote = new FrameCaptionInputControl(caption, deviceName, listview.rowSpace / 2); |
| | | btnNote.txtInput.MaxByte = 48;//限制只能输入48个字节 |
| | | listview.AddChidren(btnNote); |
| | |
| | | btnNote.AddBottomLine(); |
| | | btnNote.txtInput.FinishInputEvent += () => |
| | | { |
| | | string oldName = Common.LocalDevice.Current.GetDeviceMacName(doorLock); |
| | | string oldName = HdlDeviceCommonLogic.Current.GetDeviceMacName(doorLock); |
| | | if (btnNote.Text == string.Empty) |
| | | { |
| | | btnNote.Text = oldName; |
| | |
| | | continue; |
| | | } |
| | | var room = HdlRoomLogic.Current.GetRoomByDevice(device); |
| | | string mainKeys = LocalDevice.Current.GetDeviceMainKeys(device); |
| | | string mainKeys = HdlDeviceCommonLogic.Current.GetDeviceMainKeys(device); |
| | | if (room == null) |
| | | { |
| | | //这里有点特殊,如果回路没有设置有区域的时候,才设置 |
| | |
| | | |
| | | //设备模块 |
| | | caption = Language.StringByID(R.MyInternationalizationString.BelongDevice); |
| | | deviceName = Common.LocalDevice.Current.GetDeviceObjectText(listNewDevice); |
| | | deviceName = HdlDeviceCommonLogic.Current.GetDeviceObjectText(listNewDevice); |
| | | var btnType = new FrameCaptionViewControl(caption, deviceName, listview.rowSpace / 2); |
| | | btnType.UseClickStatu = false; |
| | | listview.AddChidren(btnType); |
| | |
| | | bottomFrameLayout.AddChidren(btnFinish); |
| | | btnFinish.ButtonClickEvent += (sender, e) => |
| | | { |
| | | string oldName = Common.LocalDevice.Current.GetDeviceMacName(listNewDevice[0]); |
| | | string oldName = HdlDeviceCommonLogic.Current.GetDeviceMacName(listNewDevice[0]); |
| | | if (btnNote.Text.Trim() == string.Empty) |
| | | { |
| | | btnNote.Text = oldName; |
| | |
| | | /// </summary> |
| | | private void AddAllMenuRow() |
| | | { |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1) |
| | | { |
| | | //添加【临时密码】行 |
| | | this.AddTempPasswordRow(); |
| | |
| | | |
| | | btnswitch.ButtonClickEvent += async (sender, e) => |
| | | { |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1) |
| | | { |
| | | if (btnswitch.IsSelected == true) |
| | | { |
| | |
| | | var doorLock = this.listNewDevice[0] as ZigBee.Device.DoorLock; |
| | | btnRow.ButtonClickEvent += async (sender, e) => |
| | | { |
| | | if (UserCenterResourse.UserInfo.AuthorityNo == 1) |
| | | if (HdlUserCenterResourse.ResidenceOption.AuthorityNo == 1) |
| | | { |
| | | var tempPage = new Shared.Phone.UserCenter.DoorLock.TimeSettignPage(doorLock, "DoorLockTime"); |
| | | Shared.Phone.UserView.HomePage.Instance.AddChidren(tempPage); |
| | |
| | | |
| | | //修改MAC名 |
| | | string deviceName = i_deviceName.Trim(); |
| | | var result = Common.LocalDevice.Current.ReMacName(listNewDevice, deviceName); |
| | | var result = HdlDeviceCommonLogic.Current.ReMacName(listNewDevice, deviceName); |
| | | //关闭进度条 |
| | | this.CloseProgressBar(); |
| | | |