///// <summary> ///// Binds the summary dropdownlist. ///// </summary> //private void BindTransactionTypeDropdownlist() //{ // string[] TransactionTypeItems = { selectItem, unbilledTransactionItem, unSettledTransactionItem }; // foreach (string s in TransactionTypeItems) // { // ListItem newItem = new ListItem(); // newItem.Text = s.Split('|')[0]; // newItem.Value = s.Split('|')[1]; // if (s.Split('|')[0].Replace(" ", "").ToLower() == selectItem) // newItem.Selected = true; // ddlSelectTransactionType.Items.Add(newItem); // } //} /// <summary> /// Binds the transaction type dropdownlist. /// </summary> /// <remarks></remarks> private void BindTransactionTypeDropdownlist() { DropdownHdrManager dhm = new DropdownHdrManager(); List <DropDown_HdrDTO> list = dhm.SearchDllHeader("Unbilled_Transactions").ToList(); if (list.Count > 0) { ddlSelectTransactionType.DataSource = dhm.SearchDllDetail(list[0].DropDown_Hdr_Id); ddlSelectTransactionType.DataTextField = "Description"; ddlSelectTransactionType.DataValueField = "DropDown_Dtl_Id"; ddlSelectTransactionType.DataBind(); ddlSelectTransactionType.Items.Insert(0, new ListItem(Constants.selectItemTransactionType, "0")); } }
/// <summary> /// Loadtermses this instance. /// </summary> /// <remarks></remarks> private void Loadterms() { DropdownHdrManager dhm = new DropdownHdrManager(); List <DropDown_HdrDTO> list = dhm.SearchDllHeader("Loan_Terms").ToList(); if (list.Count > 0) { ddlterms.DataSource = dhm.SearchDllDetail(list[0].DropDown_Hdr_Id); ddlterms.DataTextField = "Description"; ddlterms.DataValueField = "DropDown_Dtl_Id"; ddlterms.DataBind(); } else { lblMessage.Text = Constants.termNotfound; } }
/// <summary> /// Loads the plans. /// </summary> /// <remarks></remarks> private void LoadPlans() { DropdownHdrManager dhm = new DropdownHdrManager(); List <DropDown_HdrDTO> list = dhm.SearchDllHeader("Balance_Transfer_Plan").ToList(); if (list.Count > 0) { ddlPLan.DataSource = dhm.SearchDllDetail(list[0].DropDown_Hdr_Id); ddlPLan.DataTextField = "Description"; ddlPLan.DataValueField = "DropDown_Dtl_Id"; ddlPLan.DataBind(); ddlPLan.Items.Insert(0, new ListItem(Constants.DDLPlan, "-1")); } else { lblMessage.Text = Constants.planNotfound; } }
/// <summary> /// Loads the relation. /// </summary> /// <remarks></remarks> private void LoadRelation() { DropdownHdrManager dhm = new DropdownHdrManager(); List <DropDown_HdrDTO> list = dhm.SearchDllHeader("AddON Card Request").ToList(); if (list.Count > 0) { ddlRelation.DataSource = dhm.SearchDllDetail(list[0].DropDown_Hdr_Id); ddlRelation.DataTextField = "Description"; ddlRelation.DataValueField = "DropDown_Dtl_Id"; ddlRelation.DataBind(); ddlRelation.Items.Insert(0, new ListItem("Select Relation", "0")); } else { lblMessage.Text = Constants.RelationNotfound; } }
private void LoadDispatchTypes() { DropdownHdrManager dhm = new DropdownHdrManager(); List <DropDown_HdrDTO> list = dhm.SearchDllHeader("Dispatch_types").ToList(); if (list.Count > 0) { ddlDispatchDtlOf.DataSource = dhm.SearchDllDetail(list[0].DropDown_Hdr_Id); ddlDispatchDtlOf.DataTextField = "Description"; ddlDispatchDtlOf.DataValueField = "DropDown_Dtl_Id"; ddlDispatchDtlOf.DataBind(); ddlDispatchDtlOf.Items.Insert(0, new ListItem("---Select---", "-1")); } else { lblMessage.Text = Constants.DispatchNotfound; DivMessage.Attributes.CssStyle.Add("display", "block"); } }