/// <summary> /// 保存 /// </summary> public void Save() { try { //RefreshUI(RefreshedTypes.ProgressBar); if (Check()) { RefreshUI(RefreshedTypes.ProgressBar); if (lendingArchives != null) { lendingArchives.ENDDATE = Convert.ToDateTime(this.eDate.SelectedDate); lendingArchives.UPDATEUSERID = Common.CurrentLoginUserInfo.EmployeeID; lendingArchives.UPDATEDATE = DateTime.Now; lendingArchives.UPDATEUSERNAME = Common.CurrentLoginUserInfo.EmployeeName; client.AddArchivesReturnAsync(lendingArchives); } } } catch (Exception ex) { RefreshUI(RefreshedTypes.ProgressBar); Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), ex.Message.ToString()); } }