Beispiel #1
0
        private void BuildCombo()
        {
            AppUtil.BuildCombo(cmbBranch, SlmScr010Biz.GetBranchData());

            AppUtil.BuildCombo(cmbCardTypeId, CardTypeBiz.GetCardTypeList());
            AppUtil.BuildCombo(cmbMaritalStatus, SlmScr046Biz.GetMaritalDataList());
            AppUtil.BuildCombo(cmbOccupation, SlmScr010Biz.GetOccupationData(false));
            var complst = SlmScr034Biz.GetImportInsComCodeListData();

            //complst.RemoveAt(0);
            AppUtil.BuildCombo(cmbCompulCompCode, complst);
            AppUtil.BuildCombo(cmbVolCompanyCode, complst);
            AppUtil.BuildCombo(cmbVolTypeKey, SlmScr046Biz.GetCoverageType());
            var titlelist = SlmScr046Biz.GetTitleDataList();

            AppUtil.BuildCombo(cmbTitleId, titlelist);
            AppUtil.BuildCombo(cmbBenTitleId, titlelist);
            AppUtil.BuildCombo(cmbVolMktTitle, titlelist);
            AppUtil.BuildCombo(cmbDrv1TitleId, titlelist);
            AppUtil.BuildCombo(cmbDrv2TitleId, titlelist);
            AppUtil.BuildCombo(cmbBenTitleId, titlelist);
            AppUtil.BuildCombo(cmbGuar1Title, titlelist);
            AppUtil.BuildCombo(cmbGuar2Title, titlelist);
            AppUtil.BuildCombo(cmbGuar3Title, titlelist);
            AppUtil.BuildCombo(cmbBrandCode, SlmScr010Biz.GetBrandDataNew());
            AppUtil.BuildCombo(cmbProvinceRegis, SlmScr046Biz.GetProvinceDataId());
            AppUtil.BuildCombo(cmbCarByGovId, SlmScr046Biz.GetInsuranceTypeData());
            var relate = SlmScr046Biz.GetRelationData();

            AppUtil.BuildCombo(cmbGuar1Relation, relate);
            AppUtil.BuildCombo(cmbGuar2Relation, relate);
            AppUtil.BuildCombo(cmbGuar3Relation, relate);
        }
Beispiel #2
0
        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            BuildCombo(cmbOccupation, SlmScr010Biz.GetOccupationData(false));
            BuildCombo(cmbBrand, SlmScr010Biz.GetBrandDataNew(), "กรุณาระบุ");
            BuildCombo(cmbCarType, SlmScr010Biz.GetInsuranceCarTypeDataNew(), "กรุณาระบุ");
            BuildCombo(cmbProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbOProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbDProvince, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbCardType, CardTypeBiz.GetCardTypeList());
            BuildCombo(cmbDocBranch, BranchBiz.GetBranchList(1));
            BuildCombo(cmbProvinceRegis, SlmScr010Biz.GetProvinceDataNew());
            BuildCombo(cmbCountry, CountryBiz.GetCountryList());

            AppUtil.SetAutoCompleteDropdown(new DropDownList[] {
                cmbBrand,
                cmbModel,
                cmbCountry
            }
                                            , Page
                                            , this.ClientID + "_Autocomplete");
        }