public fSelectFeatures(atriumBE.atriumManager atmng, SecurityDB.secRuleRow ruleRow) { InitializeComponent(); secFeatureGridEX.RootTable.Caption = "Available Features for: " + ruleRow.RuleName; List <SecurityDB.secFeatureRow> availableFeatures = new List <SecurityDB.secFeatureRow>(); SecurityDB.secPermissionRow[] establishedRulePerms = (SecurityDB.secPermissionRow[])atmng.SecurityManager.DB.secPermission.Select("RuleId=" + ruleRow.RuleId); foreach (SecurityDB.secFeatureRow fr in atmng.SecurityManager.DB.secFeature) { bool featureImplemented = false; foreach (SecurityDB.secPermissionRow secr in establishedRulePerms) { if (secr.FeatureId == fr.FeatureId) { featureImplemented = true; } } if (!featureImplemented) { availableFeatures.Add(fr); } } if (availableFeatures.Count == 0) { MessageBox.Show("All features are already implemented on this rule"); } secFeatureBindingSource.DataSource = availableFeatures; }
public SecurityManager(atriumBE.atriumManager atmng) : base(atmng.AppMan) { base.DAL = atmng.DALMngr; myatMng = atmng; MyDS = new SecurityDB(); MyDS.EnforceConstraints = false; }
public void Init(string filename, DataConfigType configtype, atriumBE.atriumManager atmng) { AtMng = atmng; lblConfigFile.Text = filename; lblDB.Text = AtMng.AppMan.ServerInfo.serverName; ConfigType = configtype; CreateDTsSetDS(configtype); configFileDataset = new DataSet(); configFileDataset.ReadXml(filename); DoCompare(configtype); }
public fTagPicker(atriumBE.atriumManager Atmng, string firstStepCode, LawMate.UserControls.ucDoc ucDoc1) { InitializeComponent(); myucDoc1 = ucDoc1; atmng = Atmng; ddTableBindingSource.DataSource = atmng.GetGeneralRec("select * from vTemplateTags order by objectalias,tablename"); ddTableBindingSource.Filter = "StepCode is null or StepCode='" + firstStepCode + "'"; ddFieldBindingSource.DataSource = atmng.DB; this.DialogResult = DialogResult.Cancel; }
public fSelectRelatedFields(atriumBE.atriumManager atmng, string TableName, string ObjectAlias) { InitializeComponent(); ddFieldGridEX.RootTable.Caption = ObjectAlias + " (" + TableName + ")"; if (atmng.DB.ddField.Rows.Count == 0) { //atmng.GetddTable().Load(); atmng.GetddField().Load(); } ddFieldBindingSource.DataSource = atmng.DB.ddField; ddFieldBindingSource.Filter = "AllowInRelatedFields=1 and TableName='" + TableName + "'"; ddFieldGridEX.CheckAllRecords(); }
public fWorkloadView(WorkloadQuery wlQuery, bool pExpectsReturnValue, atriumBE.FileManager fm, object contactId) { InitializeComponent(); atmng = fm.AtMng; fmNew = fm; myWorkloadQuery = wlQuery; currentContactId = contactId; UIHelper.ComboBoxInit("LanguageCode", languageCodeucMultiDropDown, fm); UIHelper.ComboBoxInit("NativeLanguage", ucMultiDDNativeLanguage, fm); ucAddress1.FM = fm; addressBindingSource.DataMember = fmNew.DB.Address.TableName; addressBindingSource.DataSource = fmNew.DB; contactBindingSource.DataMember = "Contact";// .Contact.Select("", "", DataViewRowState.Added); contactBindingSource.DataSource = fmNew.DB; // addressBindingSource.DataSource = fmNew.DB.Address.Select("", "", DataViewRowState.Added); ucAddress1.DataSource = addressBindingSource; ExpectsReturnValue = pExpectsReturnValue; if (wlQuery == WorkloadQuery.ParticipantSearch) { pnlAll.Closed = true; pnlParticipant.Closed = false; pnlNewCoontact.Closed = true; this.Text = Properties.Resources.ParticipantSearch; tbSearchName.Focus(); } else { pnlParticipant.Closed = true; pnlAll.Closed = false; pnlNewCoontact.Closed = true; this.Text = Properties.Resources.WorkloadDistribution; tbSearchName.Focus(); } }
public fTriangle(lmDatasets.ActivityConfig.ACSeriesRow acr, atriumBE.atriumManager Atmng) { InitializeComponent(); atmng = Atmng; ucWorkflowLegend1.InitLegend(Atmng.GetFile()); ucWorkflowHeader1.Init(Atmng); pnlLeft.Activate(); this.WindowState = FormWindowState.Maximized; UIHelper.ComboBoxInit("vSeriesType", seriesGridEX.DropDowns["ddSeriesType"], atmng.GetFile()); seriesBindingSource.DataSource = atmng.acMng.DB; myServer = atmng.AppMan.ServerInfo.helpUrl; //cmdMailConnectors.Checked = Janus.Windows.UI.InheritableBoolean.True; uiCheckBox1.Checked = true; ACSr = acr; Sr = acr.SeriesRow; InitDiagram(); Navigate(ACSr); // InitDiagram(); }
public fTriangle(atriumBE.atriumManager Atmng) { InitializeComponent(); atmng = Atmng; ucWorkflowLegend1.InitLegend(Atmng.GetFile()); ucWorkflowHeader1.Init(Atmng); uiPanel1.Activate(); UIHelper.ComboBoxInit("vSeriesType", seriesGridEX.DropDowns["ddSeriesType"], atmng.GetFile()); seriesBindingSource.DataSource = atmng.acMng.DB; myServer = atmng.AppMan.ServerInfo.helpUrl; this.WindowState = FormWindowState.Maximized; //cmdMailConnectors.Checked = Janus.Windows.UI.InheritableBoolean.True; uiCheckBox1.Checked = true; //ACSr = acr; flowOrSeriesPassedOnConstructor = false; Sr = CurrentSeries(); Navigate(Sr); // InitDiagram(); }
public void Init(atriumBE.atriumManager atmng) { Atmng = atmng; }