public void bindOpinionData(lmDatasets.Advisory.OpinionDataTable a) { ucMultiDropDown1.SetDataBinding(FM.Codes("LawyerList"), ""); UIHelper.ComboBoxInit("OpinionType", mccOpinionType, FM); ucContactSelectBox1.FM = FM; ucOfficeSelectBox1.AtMng = FM.AtMng; this.opinionBindingSource.DataSource = a.DataSet; this.opinionBindingSource.DataMember = a.TableName; atriumBE.DocManager dm = FM.GetDocMng(); OpenDocDialog = ((fMain)Application.OpenForms["fMain"]).OpenDocDialog; //ucDoc1.OpenDocDialog = ((fMain)Application.OpenForms["fMain"]).OpenDocDialog; //ucDoc1.Init(dm); ucDocView1.OpenDocDialog = ((fMain)Application.OpenForms["fMain"]).OpenDocDialog; ucDocView1.Init(dm); Advisory.OpinionRow or = CurrentRow(); LoadDocs(or); a.ColumnChanged += new DataColumnChangeEventHandler(a_ColumnChanged); FM.GetAdvisoryMng().GetOpinion().OnUpdate += new atLogic.UpdateEventHandler(ucOpinion_OnUpdate); ApplySecurity(CurrentRow()); }
private void countryCodeComboBox_SelectedValueChanged(object sender, EventArgs e) { if (countryCodeComboBox.SelectedValue != null) { atLogic.WhereClause wc = new atLogic.WhereClause(); DataTable dtC = FM.Codes("Province"); wc.Add("CountryCode", "=", countryCodeComboBox.SelectedValue.ToString()); DataView dvC = new DataView(dtC, wc.Filter(), "", DataViewRowState.CurrentRows); provinceCodeComboBox.SetDataBinding(dvC, ""); } //provinceCodeComboBox.SetDataBinding(new DataView(FM.Codes("Province"), "CountryCode='" + countryCodeComboBox.SelectedValue + "'", "ProvinceCode", DataViewRowState.CurrentRows), ""); if (countryCodeComboBox.Text == "Canada") { this.postalCodeEditBox.CharacterCasing = CharacterCasing.Upper; this.postalCodeEditBox.Mask = "L0L 0L0"; } else if (countryCodeComboBox.Text == "United States of America") { this.postalCodeEditBox.CharacterCasing = CharacterCasing.Upper; this.postalCodeEditBox.Mask = "00000"; } else { this.postalCodeEditBox.CharacterCasing = CharacterCasing.Normal; this.postalCodeEditBox.Mask = ""; this.ReqColor = Color.White; } }
public void BindEfileData(lmDatasets.atriumDB.EFileDataTable a) { UIHelper.ComboBoxInit(FM.Codes("CHILDFILETYPE"), ucFileTypeMcc, FM); UIHelper.ComboBoxInit(FM.AtMng.CodeDB.Status, ucStatusCodeMcc, FM); UIHelper.ComboBoxInit("ReturnCode", ucClosureCodeMcc, FM); UIHelper.ComboBoxInit(FM.Codes("CHILDMETATYPE"), ucMetaTypeMcc, FM); UIHelper.ComboBoxInit("LanguageCodeAll", ucMultiDropDown3, FM); UIHelper.ComboBoxInit("SecurityLevel", ucSecurity, FM); UIHelper.ComboBoxInit("FilePeriod", mccPeriod, FM); UIHelper.ComboBoxInit(FM.AtMng.GetGeneralRec("select DispositionAuthId, DispDescEng, DispDescFre from DispositionAuthority"), dispositionIducMultiDropDown, FM); UIHelper.ComboBoxInit(FM.AtMng.GetGeneralRec("select Id, LocationEng, LocationFre from FileLocation"), locationIducMultiDropDown, FM); UIHelper.ComboBoxInit("vLocation", locationIducMultiDropDown, FM); this.eFileBindingSource.DataSource = a.DataSet; this.eFileBindingSource.DataMember = a.TableName; a.ColumnChanged += new DataColumnChangeEventHandler(a_ColumnChanged); FM.EFile.OnUpdate += new atLogic.UpdateEventHandler(EFile_OnUpdate); //ApplySecurity(CurrentRow()); if (CurrentRow().GetArchiveBatchRows().Length == 0) { gbArchiving.Enabled = false; } }
public void bindData(lmDatasets.SST.SSTDecisionDataTable dt) { SSTM = FM.GetSSTMng(); if (SSTM.GetSSTDecision().CanDelete(dt[0])) { tsDelete.Enabled = Janus.Windows.UI.InheritableBoolean.True; } else { tsDelete.Enabled = Janus.Windows.UI.InheritableBoolean.False; } setBindingSources(); atLogic.WhereClause wc = new atLogic.WhereClause(); DataTable dtOutcome = FM.Codes("vOutcome", wc, true); UIHelper.ComboBoxInit("vDecisionType", sSTDecisionGridEX.DropDowns["ddDecisionType"], FM); UIHelper.ComboBoxInit(dtOutcome, sSTDecisionGridEX.DropDowns["ddOutcome"], FM); UIHelper.ComboBoxInit("vmemberlist", sSTDecisionGridEX.DropDowns["ddMemberList"], FM); UIHelper.ComboBoxInit("vDecisionType", decisionTypeucMultiDropDown, FM); // UIHelper.ComboBoxInit(dtOutcome, outcomeIducMultiDropDown, FM); FilterOutcomes(); memberIducContactSelectBox.FM = FM; dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); SSTM.GetSSTDecision().OnUpdate += new atLogic.UpdateEventHandler(ucSSTDecision_OnUpdate); }
public void bindBankruptcyData(CLAS.BankruptcyDataTable dt) { officeIDucOfficeSelectBox.AtMng = FM.AtMng; setBindingSources(); UIHelper.ComboBoxInit("BankruptcyOrderType", bankruptcyOrderTypeucMultiDropDown, FM); UIHelper.ComboBoxInit(FM.Codes("InsolvencyPeriod"), mccInsolvencyPeriod, FM); dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.GetCLASMng().GetBankruptcy().OnUpdate += new atLogic.UpdateEventHandler(ucBankruptcy_OnUpdate); }
private void FilterOutcomes() { atLogic.WhereClause wc = new atLogic.WhereClause(); wc.Add("DecisionType", "=", CurrentRow().DecisionType); DataTable dtOutcome = FM.Codes("vOutcome", wc, true); UIHelper.ComboBoxInit(dtOutcome, outcomeIducMultiDropDown, FM); }
public void BindPersonnelData(officeDB.OfficerDataTable dt) { officerDelegateGridEX.DropDowns["ddOfficer"].SetDataBinding(FM.Codes("vOfficerUserList"), ""); officerGridEX.DropDowns["ddPositionCode"].SetDataBinding(FM.Codes("PositionCode"), ""); DataView dvRole = new DataView(FM.Codes("RoleCode"), "RoleCode like 'G%'", "RoleCode", DataViewRowState.CurrentRows); officerRoleGridEX.DropDowns["ddRoleCode"].SetDataBinding(dvRole, ""); UIHelper.ComboBoxInit("AppealLevel", appealLevelDropDown, FM); LoadLabels(); assistantIducMultiDropDown.SetDataBinding(FM.OfficerByOffice(FM.CurrentFile.LeadOfficeId, false, true), ""); ucAddress.FM = FM; addressBindingSource.DataMember = FM.DB.Address.TableName; addressBindingSource.DataSource = FM.DB; ucAddress.DataSource = addressBindingSource; UIHelper.ComboBoxInit(FM.Codes("PositionCode"), positionCodeucMultiDropDown, FM); officerBindingSource.DataSource = dt.DataSet; officerBindingSource.DataMember = dt.TableName; officerBindingSource.Filter = "OfficeId=" + FM.CurrentFile.LeadOfficeId.ToString();; FM.LeadOfficeMng.DB.MemberProfile.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetMemberProfile().OnUpdate += new atLogic.UpdateEventHandler(ucOfficePersonnel_OnUpdate); dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetOfficer().OnUpdate += new atLogic.UpdateEventHandler(ucOfficePersonnel_OnUpdate); FM.LeadOfficeMng.DB.OfficerDelegate.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetOfficerDelegate().OnUpdate += new atLogic.UpdateEventHandler(ucOfficePersonnel_OnUpdate); FM.LeadOfficeMng.DB.OfficerRole.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetOfficerRole().OnUpdate += new atLogic.UpdateEventHandler(ucOfficePersonnel_OnUpdate); FM.LeadOfficeMng.DB.ContactEmail.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetContactEmail().OnUpdate += new atLogic.UpdateEventHandler(ucOfficePersonnel_OnUpdate); ucFSInbox.AtMng = FM.AtMng; ucFSPersonal.AtMng = FM.AtMng; ucFSSentItems.AtMng = FM.AtMng; ucFSShortcut.AtMng = FM.AtMng; officerGridEX.MoveFirst(); }
public void bindData(lmDatasets.SST.SSTCaseDataTable dt) { SSTM = FM.GetSSTMng(); //ucSSTCaseMatterIssues.DataSource = SSTM.DB.SSTCaseMatter; ucSSTCaseMatterIssues.FM = FM; setBindingSources(); atLogic.WhereClause wc = new atLogic.WhereClause(); if (!SSTM.DB.SSTCase[0].IsDecisionTypeNull()) { wc.Add("DecisionType", "=", SSTM.DB.SSTCase[0].DecisionType); } else { wc.Add("DecisionType", "=", 1); } DataTable dtOutcome = FM.Codes("vOutcome", wc, true); UIHelper.ComboBoxInit(dtOutcome, OutcomeMultiDropDown, FM); UIHelper.ComboBoxInit("Program", ProgramMultiDropDown, FM); UIHelper.ComboBoxInit("LeaveToAppealType", LeaveToAppealDecisionMultiDropDown, FM); UIHelper.ComboBoxInit("CrisisType", CrisisTypeMultiDropDown, FM); UIHelper.ComboBoxInit("vAppealLevel", LevelMultiDropDown, FM); UIHelper.ComboBoxInit("vCaseStatus", CaseStatusMultiDropDown, FM); UIHelper.ComboBoxInit("HearingMethod", HearingGridEX.DropDowns["ddHearingMethod"], FM); UIHelper.ComboBoxInit("HearingStatus", HearingGridEX.DropDowns["ddStatusHearing"], FM); UIHelper.ComboBoxInit("vBenefitList", BenefitMultiDropDown, FM); //UIHelper.ComboBoxInit("vLateIgnoreReason", ignoreReasonucMultiDropDown, FM); dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); SSTM.DB.SSTCaseMatter.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); SSTM.DB.SSTCaseMatter.RowDeleted += new DataRowChangeEventHandler(dt_RowDeleted); SSTM.GetSSTCase().OnUpdate += new atLogic.UpdateEventHandler(ucSSTCase_OnUpdate); SSTM.GetSSTCaseMatter().OnUpdate += new atLogic.UpdateEventHandler(ucSSTCase_OnUpdate); if (FM.CurrentFile.FileType == "RP" || FM.CurrentFile.FileType == "RE") { ckbADReturnToGD.Visible = true; } else { ckbADReturnToGD.Visible = false; } }
public void bindData(lmDatasets.SST.SSTCaseDataTable dt) { SSTM = FM.GetSSTMng(); setBindingSources(); UIHelper.ComboBoxInit(FM.Codes("vFlagCode"), FlagCodeMultiDropDown, FM); dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.DB.FileFlag.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); SSTM.GetSSTCase().OnUpdate += new atLogic.UpdateEventHandler(ucSSTCase_OnUpdate); FM.GetFileFlag().OnUpdate += new atLogic.UpdateEventHandler(ucSSTCase_OnUpdate); AddFileFlagButton.Enabled = false; }
private void provinceCodeComboBox_SelectedValueChanged(object sender, EventArgs e) { uiCity.DisplayMember = "City"; uiCity.ValueMember = "City"; object val = uiCity.Text; DataTable dt = FM.Codes("vCity"); atLogic.WhereClause whereCl = new atLogic.WhereClause(); if (provinceCodeComboBox.SelectedValue != null && provinceCodeComboBox.SelectedValue.ToString() != "") { whereCl.Add("ProvinceCode", "=", provinceCodeComboBox.SelectedValue.ToString()); // DataTable dt = FM.AtMng.GetGeneralRec("City", whereCl); uiCity.DataSource = new DataView(dt, whereCl.Filter(), "City", DataViewRowState.CurrentRows); } else { uiCity.DataSource = null; } uiCity.Text = val.ToString(); }
public void bindOfficeData(lmDatasets.officeDB.OfficeDataTable dt) { ucMultiDropDown1.SetDataBinding(FM.Codes("OfficeList"), ""); ucMultiDropDown2.SetDataBinding(FM.Codes("OfficeType"), ""); ucMultiDropDown3.SetDataBinding(FM.Codes("AppointmentType"), ""); ucMultiDropDown4.SetDataBinding(FM.Codes("CurrencyCode"), ""); UIHelper.ComboBoxInit("Department", mccDepartment, FM); UIHelper.ComboBoxInit(FM.Codes("OfficeList"), mccBranch, FM); UIHelper.ComboBoxInit(FM.Codes("TaxRate"), mccDefaultTaxRate, FM); officeBindingSource.DataSource = dt.DataSet; officeBindingSource.DataMember = dt.TableName; DataView dv; if (CurrentRow().IsAddressIdNull()) { atriumDB.AddressRow addr = (atriumDB.AddressRow)FM.GetAddress().Add(CurrentRow()); dv = new DataView(FM.DB.Address, "AddressId=" + addr.AddressId.ToString(), "", DataViewRowState.CurrentRows); } else { dv = new DataView(FM.DB.Address, "AddressId=" + CurrentRow().AddressId.ToString(), "", DataViewRowState.CurrentRows); } this.addressBindingSource.DataSource = dv; ucAddress1.FM = FM; ucAddress1.DataSource = addressBindingSource; dt.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.DB.Address.ColumnChanged += new DataColumnChangeEventHandler(dt_ColumnChanged); FM.LeadOfficeMng.GetOffice().OnUpdate += new atLogic.UpdateEventHandler(ucOfficeInfo_OnUpdate); FM.GetAddress().OnUpdate += new atLogic.UpdateEventHandler(ucOfficeInfo_OnUpdate); }