/// <summary> /// 新增假期记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientAtt_AddAttendanceDeductMasterCompleted(object sender, AddAttendanceDeductMasterCompletedEventArgs e) { if (e.Error == null) { if (string.IsNullOrEmpty(e.Result)) { return; } if (e.Result == "{SAVESUCCESSED}") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SAVESUCCESSED")); toolbar1.IsEnabled = true; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result.TrimStart(new char[] { '{' }).TrimEnd(new char[] { '}' }))); } FormType = FormTypes.Edit; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } RefreshUI(RefreshedTypes.All); }
/// <summary> /// 新增假期记录 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> void clientAtt_AddAttendanceDeductMasterCompleted(object sender, AddAttendanceDeductMasterCompletedEventArgs e) { if (e.Error == null) { if (string.IsNullOrEmpty(e.Result)) { return; } if (e.Result == "{SAVESUCCESSED}") { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SAVESUCCESSED")); toolbar1.IsEnabled = true; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Result.TrimStart(new char[] { '{' }).TrimEnd(new char[] { '}' }))); } FormType = FormTypes.Edit; } else { Utility.ShowCustomMessage(MessageTypes.Error, Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.Error.Message)); } RefreshUI(RefreshedTypes.All); }