private void butOK_Click(object sender, EventArgs e) { if (GroupPermissions.Sync(_listGroupPermissions, _listGroupPermissionsOld)) { DataValid.SetInvalid(InvalidType.Security); } DialogResult = DialogResult.OK; }
private void butOK_Click(object sender, EventArgs e) { if (Prefs.UpdateInt(PrefName.ReportsPPOwriteoffDefaultToProcDate, comboReportWriteoff.SelectedIndex) | Prefs.UpdateBool(PrefName.ReportsShowPatNum, checkReportsShowPatNum.Checked) | Prefs.UpdateBool(PrefName.ReportPandIschedProdSubtractsWO, checkReportProdWO.Checked) | Prefs.UpdateBool(PrefName.ReportPandIhasClinicInfo, checkReportPIClinicInfo.Checked) | Prefs.UpdateBool(PrefName.ReportPandIhasClinicBreakdown, checkReportPIClinic.Checked) | Prefs.UpdateBool(PrefName.ProviderPayrollAllowToday, checkProviderPayrollAllowToday.Checked) | Prefs.UpdateBool(PrefName.NetProdDetailUseSnapshotToday, checkNetProdDetailUseSnapshotToday.Checked) | Prefs.UpdateBool(PrefName.ReportsWrapColumns, checkReportPrintWrapColumns.Checked) | Prefs.UpdateBool(PrefName.ReportsIncompleteProcsNoNotes, checkReportsIncompleteProcsNoNotes.Checked) | Prefs.UpdateBool(PrefName.ReportsIncompleteProcsUnsigned, checkReportsIncompleteProcsUnsigned.Checked) | Prefs.UpdateBool(PrefName.TreatFinderProcsAllGeneral, checkBenefitAssumeGeneral.Checked) | Prefs.UpdateBool(PrefName.ReportsShowHistory, checkReportsShowHistory.Checked) | Prefs.UpdateBool(PrefName.OutstandingInsReportDateFilterTab, checkOutstandingRpDateTab.Checked) | Prefs.UpdateBool(PrefName.ReportsDoShowHiddenTPPrepayments, checkReportDisplayUnearnedTP.Checked) ) { changed = true; } if (UpdateReportingServer()) { ConnectionStore.ClearConnectionDictionary(); changed = true; } if (changed) { DataValid.SetInvalid(InvalidType.Prefs); } if (Security.IsAuthorized(Permissions.SecurityAdmin)) { GroupPermissions.Sync(userControlReportSetup.ListGroupPermissionsForReports, userControlReportSetup.ListGroupPermissionsOld); if (userControlReportSetup.ListGroupPermissionsForReports.Exists(x => x.UserGroupNum == _userGroupNum)) { HasReportPerms = true; } DataValid.SetInvalid(InvalidType.Security); } if (DisplayReports.Sync(userControlReportSetup.ListDisplayReportAll)) { DataValid.SetInvalid(InvalidType.DisplayReports); } DialogResult = DialogResult.OK; }