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"); }
private void InitialControl() { AppUtil.SetIntTextBox(txtWorkStartHourPopup); AppUtil.SetIntTextBox(txtWorkStartMinPopup); AppUtil.SetIntTextBox(txtWorkEndHourPopup); AppUtil.SetIntTextBox(txtWorkEndMinPopup); AppUtil.SetTimeControlScript(txtWorkStartHourPopup, txtWorkStartMinPopup); AppUtil.SetTimeControlScript(txtWorkEndHourPopup, txtWorkEndMinPopup); //Search cmbChannelSearch.DataSource = ChannelBiz.GetChannelList(); cmbChannelSearch.DataTextField = "TextField"; cmbChannelSearch.DataValueField = "ValueField"; cmbChannelSearch.DataBind(); cmbChannelSearch.Items.Insert(0, new ListItem("", "")); //Popup cmbChannelPopup.DataSource = ChannelBiz.GetChannelList(); cmbChannelPopup.DataTextField = "TextField"; cmbChannelPopup.DataValueField = "ValueField"; cmbChannelPopup.DataBind(); cmbChannelPopup.Items.Insert(0, new ListItem("", "")); //UpperBranch cmbUpperBranchPopup.DataSource = BranchBiz.GetBranchList(1); cmbUpperBranchPopup.DataTextField = "TextField"; cmbUpperBranchPopup.DataValueField = "ValueField"; cmbUpperBranchPopup.DataBind(); cmbUpperBranchPopup.Items.Insert(0, new ListItem("", "")); //จังหวัด cmbProvince.DataSource = SlmScr010Biz.GetProvinceDataNew(); cmbProvince.DataTextField = "TextField"; cmbProvince.DataValueField = "ValueField"; cmbProvince.DataBind(); cmbProvince.Items.Insert(0, new ListItem("", "")); }