| | |
| | | HdlMessageLogic.Current.ShowMassage(ShowMsgType.Tip, Language.StringByID(StringId.EffectiveTimeMustBeOverFailureTime)); |
| | | return false; |
| | | } |
| | | if ((endTime - startTime).TotalHours>=24) |
| | | { |
| | | //临时密码有效期不能大于24小时 |
| | | HdlMessageLogic.Current.ShowMassage(ShowMsgType.Tip, Language.StringByID(StringId.TempPwdValidityTip)); |
| | | return false; |
| | | } |
| | | return true; |
| | | } |
| | | |
| | |
| | | /// </summary> |
| | | private void RefreshFormStatu() |
| | | { |
| | | try |
| | | { |
| | | //如果不在线 |
| | | if (this.doorLockData.IsOnline == false) |
| | | { |
| | |
| | | this.btnNormallyOpenIcon.UnSelectedImagePath = "FunctionIcon/DoorLock/NormallyOpenIcon1.png"; |
| | | } |
| | | } |
| | | this.seekBarVoiceControl.Progress = this.doorLockData.Voice; |
| | | this.btnVoicePersent.Text = this.doorLockData.Voice.ToString(); |
| | | } |
| | | catch (Exception ex) |
| | | { |
| | | MainPage.Log($"界面更新异常,门锁:{ex.Message}"); |
| | | } |
| | | } |
| | | |
| | | /// <summary> |