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; } }
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; } }