protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { GetSecurity(); ddlBind.BindDscFromList("IMFastFields", ddlFastFields, "SELECT", " -- Select Field -- "); txtStrCat.Text = string.Empty; txtEndCat.Text = string.Empty; txtCatList.Text = string.Empty; txtStrSize.Text = string.Empty; txtEndSize.Text = string.Empty; txtSizeList.Text = string.Empty; txtStrVar.Text = string.Empty; txtEndVar.Text = string.Empty; txtVarList.Text = string.Empty; ddlBind.BindDscFromTable("GERTARIFF", ddlStrHarmCd, "ALL", "ALL"); ddlBind.BindDscFromTable("GERTARIFF", ddlEndHarmCd, " ", " "); txtHarmCdList.Text = string.Empty; ddlBind.BindFromList("ItemPPICd", ddlStrPPI, "ALL", "ALL"); ddlBind.BindFromList("ItemPPICd", ddlEndPPI, " ", " "); txtPPIList.Text = string.Empty; txtStrDt.Text = string.Empty; txtEndDt.Text = string.Empty; } }
protected void Page_Load(object sender, EventArgs e) { sessionID = Session["UserName"].ToString().Trim() + Session["SessionID"].ToString().Trim(); Ajax.Utility.RegisterTypeForAjax(typeof(ItemStandardComments)); if (!IsPostBack) { ClearScreen(); Session["IMNLockStatus"] = ""; Session["IMNoteID"] = ""; GetSecurity(); ddlBind.BindFromList("ItemNotesCd", ddlTypeSearch, " ", " "); ddlBind.BindFromList("FormType", ddlFormSearch, " ", " "); ddlBind.BindFromList("ItemNotesCd", ddlCmntType, " ", " "); ddlBind.BindFromList("FormType", ddlFormCd, " ", " "); txtItemNo.Text = string.Empty; if (!string.IsNullOrEmpty(Request.QueryString["ItemNo"].ToString().Trim())) { txtItemNo.Text = Request.QueryString["ItemNo"].ToString().Trim(); btnHidSubmitItem_Click(btnHidSubmitItem, EventArgs.Empty); } smItemStdCmnt.SetFocus(txtItemNo); } }
protected void Page_Load(object sender, EventArgs e) { Ajax.Utility.RegisterTypeForAjax(typeof(TheoreticalFillRatePrompt)); if (!IsPostBack) { ddlBind.BindLoc_BranchComboValues(ddlStrLoc); // ddlStrLoc.Items.Insert(0, new ListItem("---- All ----", System.Web.HttpContext.Current.Session["BranchIDForALL"].ToString())); ddlStrLoc.Items.Insert(0, new ListItem("00 - Corp Summary", "00")); ddlBind.BindLoc_BranchComboValues(ddlEndLoc); ddlEndLoc.Items.Insert(0, new ListItem(" ", " ")); txtLocList.Text = string.Empty; txtStrCat.Text = string.Empty; txtEndCat.Text = string.Empty; txtCatList.Text = string.Empty; txtStrSize.Text = string.Empty; txtEndSize.Text = string.Empty; txtSizeList.Text = string.Empty; txtStrVar.Text = string.Empty; txtEndVar.Text = string.Empty; txtVarList.Text = string.Empty; ddlBind.BindFromList("CVCCodes", ddlStrCFV, "ALL", "ALL"); ddlBind.BindFromList("CVCCodes", ddlEndCFV, " ", " "); txtCFVList.Text = string.Empty; ddlBind.BindFromList("SVCCodes", ddlStrSVC, "ALL", "ALL"); ddlBind.BindFromList("SVCCodes", ddlEndSVC, " ", " "); txtSVCList.Text = string.Empty; ddlBind.BindFromList("SKUWebEnabled", ddlWeb, "", ""); ddlPkType.SelectedValue = "0"; txtRollingMonths.Text = string.Empty; txtPkgCdList.Text = string.Empty; txtPlatedCdList.Text = string.Empty; } }
private void BindDropDownList() { customerDetails.BindListControls(ddlIMLocation, "ListDesc", "ListValue", customerDetails.GetLocationList(), "-- Select --"); customerDetails.BindListControls(ddlAbcCode, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSlsRank"), "-- Select --"); customerDetails.BindListControls(ddlPriceCode, "ListDesc", "ListValue", customerDetails.GetListDetails("CustPriceCd"), "-- Select --"); customerDetails.BindListControls(ddlChainCode, "ListDesc", "ListValue", customerDetails.GetChainDetails(), "-- Select --"); customerDetails.BindListControls(ddlCustomerType, "ListDesc", "ListValue", customerDetails.GetListDetails("CustType"), "-- Select --"); customerDetails.BindListControls(ddlcSchedule1, "ListValue", "ListValue", customerDetails.GetListDetails("CustContractSchd1"), "-- Select --"); DataTable dtCustomerContractSchd = customerDetails.GetListDetails("CustContractSchd"); customerDetails.BindListControls(ddlcSchedule2, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlcSchedule3, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlcSchedule4, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlcSchedule5, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlcSchedule6, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlcSchedule7, "ListValue", "ListValue", dtCustomerContractSchd, "-- Select --"); customerDetails.BindListControls(ddlSODocSort, "ListDesc", "ListValue", customerDetails.GetListDetails("SODocSortInd"), "-- Select --"); customerDetails.BindListControls(ddlCustDefPrice, "ListDesc", "ListValue", customerDetails.GetListDetails("CustDefPriceSchd"), "-- Select --"); customerDetails.BindListControls(ddlCustPriceInd, "ListDesc", "ListValue", customerDetails.GetListDetails("CustPriceInd"), "-- Select --"); customerDetails.BindListControls(ddlSerialCode, "ListDesc", "ListValue", customerDetails.GetListDetails("YesNoInd"), "-- Select --"); customerDetails.BindListControls(ddlTypeOrder, "ListDesc", "ListValue", customerDetails.GetListDetails("SOEOrderTypes"), "-- Select --"); customerDetails.BindListControls(ddlShippingTerms, "ListDesc", "ListValue", customerDetails.GetListDetails("ShipTermsCode"), "-- Select --"); customerDetails.BindListControls(ddlReasonCode, "ListDesc", "ListValue", customerDetails.GetTableValues("REAS"), "-- Select --"); customerDetails.BindListControls(ddlClassTrade, "ListDesc", "ListValue", customerDetails.GetTableValues("TRD"), "-- Select --"); customerDetails.BindListControls(ddlRegion, "ListDesc", "ListValue", customerDetails.GetListDetails("SOEOrderTypes"), "-- Select --"); customerDetails.BindListControls(ddlSalesOrganization, "ListDesc", "ListValue", customerDetails.GetLocationList(), "-- Select --"); customerDetails.BindListControls(ddlTerritory, "ListDesc", "ListValue", customerDetails.GetListDetails("SalesTerritory"), "-- Select --"); customerDetails.BindListControls(ddlSalesRep, "ListDesc", "ListValue", customerDetails.GetSalesRep(), "-- Select --"); customerDetails.BindListControls(ddlcSupportRep, "ListDesc", "ListValue", customerDetails.GetSalesRep(), "-- Select --"); customerDetails.BindListControls(ddlSalesRank, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSlsRank"), "-- Select --"); customerDetails.BindListControls(ddlInvoiceIns, "ListDesc", "ListValue", customerDetails.GetListDetails("InvoiceInstr"), "-- Select --"); customerDetails.BindListControls(ddlInvDelivery, "ListDesc", "ListValue", customerDetails.GetListDetails("InvDeliveryInd"), "-- Select --"); customerDetails.BindListControls(ddlDiscountType, "ListDesc", "ListValue", customerDetails.GetListDetails("SalesDiscType"), "-- Select --"); customerDetails.BindListControls(ddlBuyGroup, "ListDesc", "ListValue", customerDetails.GetListDetails("BuyGrp"), "-- Select --"); customerDetails.BindListControls(ddlRebateGroup, "ListDesc", "ListValue", customerDetails.GetListDetails("CustRebateGrp"), "-- Select --"); customerDetails.BindListControls(ddlLOB, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSalesLOB"), "-- Select --"); customerDetails.BindListControls(ddlSIC, "ListDesc", "ListValue", customerDetails.GetListDetails("CustSalesSIC"), "-- Select --"); //customerDetails.BindListControls(ddlCertsInd, "ListDesc", "ListValue", customerDetails.GetListDetails("CertsRequiredInd"), "-- Select --"); _ddlBind.BindFromList("CertsRequiredInd", ddlCertsInd, "", "-- Select --"); }