/// <summary> /// 保存 /// </summary> public bool SaveMaster(FormTypes FormType) { bool flag = false; try { List <SMT.SaaS.FrameworkUI.Validator.ValidatorBase> validators = Group1.ValidateAll(); if (validators.Count > 0) { return(false); } CheckSubmitForm(FormType, out flag); if (!flag) { return(false); } if (FormType == FormTypes.New) { clientAtt.AddSchedulingTemplateMasterAsync(SchedulingTemplateMaster); } else { clientAtt.ModifySchedulingTemplateMasterAsync(SchedulingTemplateMaster); } } catch (Exception ex) { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(ex.Message)); } return(flag); }