/// <summary> /// Get Bind Orderstatus /// </summary> private void BindOrderStatus() { ddlOrderStatus.Items.Clear(); DataSet dsOrderStatus; DataTable dtOrderStatus; if (Request.QueryString["BondType"] == "FISDSD") { lblProductType.Text = "NCD Book"; } else if (Request.QueryString["BondType"] == "FITFTF") { lblProductType.Text = "TAX Free Book"; } else if (Request.QueryString["BondType"] == "FISSGB") { lblProductType.Text = "SGB Book"; } dsOrderStatus = OnlineMFOrderBo.GetOrderStatus(); dtOrderStatus = dsOrderStatus.Tables[0]; if (dtOrderStatus.Rows.Count > 0) { ddlOrderStatus.DataSource = dtOrderStatus; ddlOrderStatus.DataTextField = dtOrderStatus.Columns["WOS_OrderStep"].ToString(); ddlOrderStatus.DataValueField = dtOrderStatus.Columns["WOS_OrderStepCode"].ToString(); ddlOrderStatus.DataBind(); } ddlOrderStatus.Items.Insert(0, new ListItem("All", "0")); }
/// <summary> /// Get Bind Orderstatus /// </summary> /// private void BindOrderStatus() { ddlOrderstatus.Items.Clear(); DataSet dsOrderStatus; DataTable dtOrderStatus; dsOrderStatus = OnlineMFOrderBo.GetOrderStatus(); dtOrderStatus = dsOrderStatus.Tables[0]; if (dtOrderStatus.Rows.Count > 0) { ddlOrderstatus.DataSource = dtOrderStatus; ddlOrderstatus.DataTextField = dtOrderStatus.Columns["WOS_OrderStep"].ToString(); ddlOrderstatus.DataValueField = dtOrderStatus.Columns["WOS_OrderStepCode"].ToString(); ddlOrderstatus.DataBind(); } ddlOrderstatus.Items.Insert(0, new ListItem("All", "0")); }