protected void BindAMC() { try { ddlAMC.Items.Clear(); DataSet ds = new DataSet(); DataTable dtAmc = new DataTable(); dtAmc = commonLookupBo.GetProdAmc(); if (dtAmc.Rows.Count > 0) { ddlAMC.DataSource = dtAmc; ddlAMC.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlAMC.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlAMC.DataBind(); ddlAMC.Items.Insert(0, new ListItem("All", "0")); } ddlAMC.Items.Insert(0, new ListItem("Select", "Select")); } catch (BaseApplicationException Ex) { throw Ex; } catch (Exception Ex) { BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); NameValueCollection FunctionInfo = new NameValueCollection(); FunctionInfo.Add("Method", "OnlineSchemeSetUp.ascx:BindAmcDropDown()"); object[] objects = new object[3]; FunctionInfo = exBase.AddObject(FunctionInfo, objects); exBase.AdditionalInformation = FunctionInfo; ExceptionManager.Publish(exBase); throw exBase; } }
//private void BindAMC() //{ // try // { // ddlAmc.Items.Clear(); // DataSet ds = new DataSet(); // DataTable dtAmc = new DataTable(); // ds = OnlineMFOrderBo.GetTransAllAmcDetails(customerId); // dtAmc = ds.Tables[0]; // if (dtAmc.Rows.Count > 0) // { // ddlAmc.DataSource = dtAmc; // ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); // ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); // ddlAmc.DataBind(); // //BindFolioNumber(int.Parse(ddlAmc.SelectedValue)); // } // ddlAmc.Items.Insert(0, new ListItem("All", "0")); // } // catch (BaseApplicationException Ex) // { // throw Ex; // } // catch (Exception Ex) // { // BaseApplicationException exBase = new BaseApplicationException(Ex.Message, Ex); // NameValueCollection FunctionInfo = new NameValueCollection(); // FunctionInfo.Add("Method", "OnlineSchemeSetUp.ascx:BindAmcDropDown()"); // object[] objects = new object[3]; // FunctionInfo = exBase.AddObject(FunctionInfo, objects); // exBase.AdditionalInformation = FunctionInfo; // ExceptionManager.Publish(exBase); // throw exBase; // } //} protected void BindAMC() { ddlAmc.Items.Clear(); if (ddlAmc.SelectedIndex == 0) { return; } DataTable dtAmc = commonLookupBo.GetProdAmc(0, true); if (dtAmc == null) { return; } if (dtAmc.Rows.Count > 0) { ddlAmc.DataSource = dtAmc; ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlAmc.DataBind(); } ddlAmc.Items.Insert(0, new ListItem("All", "0")); }
protected void BindProductAmc() { ddlProductAmc.Items.Clear(); if (ddlProductAmc.SelectedIndex == 0) { return; } DataTable dtAmc = boCommon.GetProdAmc(0, true); if (dtAmc == null) { return; } if (dtAmc.Rows.Count > 0) { ddlProductAmc.DataSource = dtAmc; ddlProductAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlProductAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlProductAmc.DataBind(); } ddlProductAmc.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--SELECT--", "0")); ddlProductAmc.SelectedIndex = 0; }
private void BindAMC1() { DataTable dtGetAMCList = new DataTable(); CommonLookupBo commonLookupBo = new CommonLookupBo(); dtGetAMCList = commonLookupBo.GetProdAmc(0, exchangeType == "Online" ? true : false); ddlAMC1.DataSource = dtGetAMCList; ddlAMC1.DataTextField = dtGetAMCList.Columns["PA_AMCName"].ToString(); ddlAMC1.DataValueField = dtGetAMCList.Columns["PA_AMCCode"].ToString(); ddlAMC1.DataBind(); ddlAMC1.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select AMC", "0")); ddlAMC2.DataSource = dtGetAMCList; ddlAMC2.DataTextField = dtGetAMCList.Columns["PA_AMCName"].ToString(); ddlAMC2.DataValueField = dtGetAMCList.Columns["PA_AMCCode"].ToString(); ddlAMC2.DataBind(); ddlAMC2.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select AMC", "0")); ddlAMC3.DataSource = dtGetAMCList; ddlAMC3.DataTextField = dtGetAMCList.Columns["PA_AMCName"].ToString(); ddlAMC3.DataValueField = dtGetAMCList.Columns["PA_AMCCode"].ToString(); ddlAMC3.DataBind(); ddlAMC3.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select AMC", "0")); ddlAMC4.DataSource = dtGetAMCList; ddlAMC4.DataTextField = dtGetAMCList.Columns["PA_AMCName"].ToString(); ddlAMC4.DataValueField = dtGetAMCList.Columns["PA_AMCCode"].ToString(); ddlAMC4.DataBind(); ddlAMC4.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select AMC", "0")); }
private void BindAMC() { DataTable dtGetAMCList = new DataTable(); CommonLookupBo commonLookupBo = new CommonLookupBo(); dtGetAMCList = commonLookupBo.GetProdAmc(0, true); ddlAMC.DataSource = dtGetAMCList; ddlAMC.DataTextField = dtGetAMCList.Columns["PA_AMCName"].ToString(); ddlAMC.DataValueField = dtGetAMCList.Columns["PA_AMCCode"].ToString(); ddlAMC.DataBind(); ddlAMC.Items.Insert(0, new System.Web.UI.WebControls.ListItem("Select AMC", "0")); }
//<summary> // Gets the list of Product AMC //</summary> //<param name="pAmcRequest"> The personal settings request. </param> //<returns> ProductAmcLookupResponse </returns> ProductAmcLookupResponse IWerpCommonLookupContract.GetProductAmcList(ProductAmcLookupRequest pAmcRequest) { ProductAmcLookupResponse response = new ProductAmcLookupResponse(); try { DataTable dtAmcData; if (string.IsNullOrEmpty(pAmcRequest.AmcCode)) { dtAmcData = BoCommonLookup.GetProdAmc(); } else { dtAmcData = BoCommonLookup.GetProdAmc(int.Parse(pAmcRequest.AmcCode)); } foreach (DataRow row in dtAmcData.Rows) { response.ProductAmcListResponse.ProductAMCList.Add(new KeyValuePair <string, string>(row["PA_AMCCode"].ToString(), row["PA_AMCName"].ToString())); } response.SetServiceResult(true, WerpErrorDto.E_SUCCESS, null); } catch (FormatException ex) { response.SetServiceResult(false, WerpErrorDto.E_INVALID_INPUT, ex.Message); } catch (DataException ex) { response.SetServiceResult(false, WerpErrorDto.E_DATABASE, ex.Message); } catch (Exception ex) { response.SetServiceResult(false, WerpErrorDto.E_GENERIC, ex.Message); } finally { } return(response); }
protected void BindAmcForDrillDown() { DataTable dtAmc = new DataTable(); dtAmc = commonLookupBo.GetProdAmc(); if (dtAmc.Rows.Count > 0) { ddlAmc.DataSource = dtAmc; ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlAmc.DataBind(); ddlAmc.Items.Insert(0, new ListItem("Select", "0")); } }
protected void AmcBind() { ddlAmc.Items.Clear(); DataTable dtAmc = new DataTable(); dtAmc = commonLookupBo.GetProdAmc(0, true); if (dtAmc.Rows.Count > 0) { ddlAmc.DataSource = dtAmc; ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlAmc.DataBind(); ddlAmc.Items.Insert(0, new ListItem("--SELECT--", "0")); } }
public ArrayList GetAMCList() { ArrayList list = new ArrayList(); CommonLookupBo commonLookupBo = new CommonLookupBo(); PriceBo priceBo = new PriceBo(); DataTable dtGetAMCList = new DataTable(); dtGetAMCList = commonLookupBo.GetProdAmc(); foreach (DataRow dr in dtGetAMCList.Rows) { list.Add(new System.Web.UI.WebControls.ListItem( dr["PA_AMCName"].ToString(), dr["PA_AMCCode"].ToString() )); } return(list); }
public void ddlAmc_OnSelectedIndexChanged(object sender, EventArgs e) { //Reset dependent controls ddlFolio.SelectedIndex = 0; ddlScheme.SelectedIndex = 0; if (ddlAmc.SelectedIndex == 0) { return; } BindFolioNumber(Convert.ToInt32(ddlAmc.SelectedValue)); //BindSchemes(Convert.ToInt32(ddlAmc.SelectedValue), ddlCategory.SelectedValue); BindSchemes(); DataTable dtAmc = commonLookupBo.GetProdAmc(int.Parse(ddlAmc.SelectedValue), true); lnkFactSheet.PostBackUrl = dtAmc.Rows[0]["PA_Url"].ToString(); }
protected void BindAmc() { ddlAmc.Items.Clear(); if (ddlAmc.SelectedIndex == 0) { return; } DataTable dtAmc = commonLookupBo.GetProdAmc(0, (ddlMode.SelectedItem.ToString() == "Online") ? true : false); if (dtAmc == null) { return; } if (dtAmc.Rows.Count > 0) { ddlAmc.DataSource = dtAmc; ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); ddlAmc.DataBind(); } //DataSet ds = new DataSet(); //DataTable dtAmc = new DataTable(); //ds = OnlineMFOrderBo.GetOrderAmcDetails(customerId); //dtAmc = ds.Tables[0]; //if (dtAmc.Rows.Count > 0) //{ // ddlAmc.DataSource = dtAmc; // ddlAmc.DataValueField = dtAmc.Columns["PA_AMCCode"].ToString(); // ddlAmc.DataTextField = dtAmc.Columns["PA_AMCName"].ToString(); // ddlAmc.DataBind(); // //BindFolioNumber(int.Parse(ddlAmc.SelectedValue)); //} ddlAmc.Items.Insert(0, new ListItem("All", "0")); }