void OaPersonOfficeClient_UpdateApporvalTempletCompleted(object sender, UpdateApporvalTempletCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); if (e.Result > 0) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } if (e.UserState.ToString() == "Edit") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MATTERSAPPROVAL"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } else if (e.UserState.ToString() == "Audit") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSAUDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } else if (e.UserState.ToString() == "Submit") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("SUCCESSSUBMITAUDIT"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); } canSubmit = true; if (operationType == FormTypes.Edit || operationType == FormTypes.Resubmit) { UserInfo User = new UserInfo(); User.COMPANYID = approvalInfo.OWNERCOMPANYID; User.DEPARTMENTID = approvalInfo.OWNERDEPARTMENTID; User.POSTID = approvalInfo.OWNERPOSTID; User.USERID = approvalInfo.OWNERID; User.USERNAME = approvalInfo.OWNERNAME; //publicClient.UpdateContentAsync(approvalInfo.APPROVALID, approvalInfo.CONTENT, approvalInfo.OWNERCOMPANYID, "OA", "T_OA_APPROVAL"); publicClient.UpdateContentAsync(approvalInfo.APPROVALID, approvalInfo.CONTENT, User); //ctrFile.FormID = approvalInfo.APPROVALID; //ctrFile.Save(); } RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(saveType); } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), "修改失败", Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } }
void MeetingType_MeetingTypeUpdateCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e) { RefreshUI(RefreshedTypes.ProgressBar); if (!e.Cancelled) { UserInfo User = new UserInfo(); User.COMPANYID = TypeT.OWNERCOMPANYID; User.DEPARTMENTID = TypeT.OWNERDEPARTMENTID; User.POSTID = TypeT.OWNERPOSTID; User.USERID = TypeT.OWNERID; User.USERNAME = TypeT.OWNERNAME; //publicClient.UpdateContentAsync(tmpSendDocT.APPROVALID, tmpSendDocT.CONTENT, tmpSendDocT.OWNERCOMPANYID, "OA", "T_OA_APPROVAL"); publicClient.UpdateContentAsync(TypeT.MEETINGTYPEID, TypeT.CONTENT, User); Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "MEETINGTYPE")); RefreshUI(saveType); } else { Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message); } }
void DocTypeTemplateClient_DocTypeTemplateInfoUpdateCompleted(object sender, DocTypeTemplateInfoUpdateCompletedEventArgs e) { RefreshUI(RefreshedTypes.ProgressBar); if (!e.Cancelled) { if (e.Error == null) { if (e.StrResult != "") { //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("FAILED"), Utility.GetResourceStr(e.StrResult, "DOCTYPETEMPLATE")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr(e.StrResult, "DOCTYPETEMPLATE"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); } else { UserInfo User = new UserInfo(); User.COMPANYID = tmpDocTypeTemplateT.OWNERCOMPANYID; User.DEPARTMENTID = tmpDocTypeTemplateT.OWNERDEPARTMENTID; User.POSTID = tmpDocTypeTemplateT.OWNERPOSTID; User.USERID = tmpDocTypeTemplateT.OWNERID; User.USERNAME = tmpDocTypeTemplateT.OWNERNAME; //publicClient.UpdateContentAsync(tmpDocTypeTemplateT.SENDDOCTEMPLATEID, tmpDocTypeTemplateT.CONTENT, tmpDocTypeTemplateT.OWNERCOMPANYID, "OA", "T_OA_SENDDOCTEMPLATE", User); publicClient.UpdateContentAsync(tmpDocTypeTemplateT.SENDDOCTEMPLATEID, tmpDocTypeTemplateT.CONTENT, User); //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "DOCTYPETEMPLATE")); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("UPDATESUCCESSED", "DOCTYPETEMPLATE"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Information); RefreshUI(saveType); } } } else { //Utility.ShowCustomMessage(MessageTypes.Message, Utility.GetResourceStr("ERROR"), e.Error.Message); ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Error); return; } }