void permClient_UserRoleApplyBatchAddRoleEntityPermissionInfosCompleted(object sender, UserRoleApplyBatchAddRoleEntityPermissionInfosCompletedEventArgs e) { RefreshUI(RefreshedTypes.HideProgressBar); EntityBrowser entBrowser = this.FindParentByType<EntityBrowser>(); entBrowser.FormType = FormTypes.Edit; RefreshUI(RefreshedTypes.AuditInfo); RefreshUI(RefreshedTypes.All); if (e.Result) { if (e.Error != null && e.Error.Message != "") { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } if(EntityMenuCustomer.SelectedMenus.Count() >0) EntityMenuCustomer.PermissionAppSave();//保存自定义权限 ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("SUCCESSED"), Utility.GetResourceStr("ADDSUCCESSED", "PERMISSIONAPP"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } else { ComfirmWindow.ConfirmationBoxs(Utility.GetResourceStr("ERROR"), Utility.GetResourceStr("SAVEFAILED", "PERMISSIONAPP"), Utility.GetResourceStr("CONFIRM"), MessageIcon.Exclamation); return; } }