Beispiel #1
0
        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;
            }
        }
Beispiel #2
0
        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;
        }