protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string company_; string areaid_; BaseInfoLoader infoLoader = new BaseInfoLoader(); company_ = Misc.GetHtmlRequestValue(Request, "company"); areaid_ = Misc.GetHtmlRequestValue(Request, "areaid"); TxtCompany.Text = company_; //infoLoader.CompanyDropDrownListLoad(DdlCompany, false, true, true, company_); DdlArea.DataSource = DBHelper.createGridView(string.Format("select area_id value_,area text_ from jp_wh_area where company_id='{0}' and state='1'", company_)); DdlArea.DataTextField = "text_"; DdlArea.DataValueField = "value_"; DdlArea.DataBind(); DdlArea.SelectedIndex = DdlArea.Items.IndexOf(DdlArea.Items.FindByValue(areaid_)); GVLocDataBind(); } }
private void DdlProjectDataBind() { BaseInfoLoader baseInfoLoader = new BaseInfoLoader(); baseInfoLoader.ProjectDropDownListLoad(DdlProject, false, true, ((Authentication.LOGININFO)Session["USERINFO"]).UserID); }
private void DdlCompanyDataBind() { BaseInfoLoader baseInfoLoader = new BaseInfoLoader(); baseInfoLoader.CompanyDropDrownListLoad(DdlCompany, false, true, false, "YRO"); }
private void DdlPartUnitDataBind() { BaseInfoLoader baseInfoLoader = new BaseInfoLoader(); baseInfoLoader.PartUnitDropDownListLoad(DdlPartUnit, false, true); }
private void DdlProjectDataBind() { BaseInfoLoader baseInfoLoader = new BaseInfoLoader(); baseInfoLoader.ProjectDropDownListLoad(DdlProject, false, true, string.Empty); }
private void bindDDLData() { BaseInfoLoader baseInfoLoader = new BaseInfoLoader(); baseInfoLoader.PartUnitDropDownListLoad(DdlUnit, false, true); }