private void BindMappedIssues(string ModeOfIssue, string productType, int isOnlineIssue, string SubCategoryCode) { DataSet dsCommissionReceivable = commisionReceivableBo.GetIssuesStructureMapings(advisorVo.advisorId, "MappedIssue", ModeOfIssue, productType, isOnlineIssue, 0, SubCategoryCode); if (dsCommissionReceivable.Tables[0].Rows.Count > 0) { ddlIssueName.DataSource = dsCommissionReceivable.Tables[0]; ddlIssueName.DataTextField = dsCommissionReceivable.Tables[0].Columns["AIM_IssueName"].ToString(); ddlIssueName.DataValueField = dsCommissionReceivable.Tables[0].Columns["AIM_IssueId"].ToString(); ddlIssueName.DataBind(); ddlIssueName.Items.Insert(0, new ListItem("All", "0")); } }
public void GetMapped_Unmapped_Issues(string type, string issueType) { DataTable dtmappedIssues = new DataTable(); string product = string.Empty; int structureId = 0; if (Request.QueryString["Product"] != null) { product = Request.QueryString["Product"].ToString(); } if (Request.QueryString["ID"] != null) { structureId = Convert.ToInt32(Request.QueryString["ID"].Trim().ToString()); } dtmappedIssues = commisionReceivableBo.GetIssuesStructureMapings(advisorVo.advisorId, type, issueType, product, 0, structureId, null).Tables[0]; if (dtmappedIssues == null) { return; } if (dtmappedIssues.Rows.Count == 0) { return; } if (type == "Mapped") { gvMappedIssueList.DataSource = dtmappedIssues; gvMappedIssueList.DataBind(); if (Cache[userVo.UserId.ToString() + "MappedIssueList"] != null) { Cache.Remove(userVo.UserId.ToString() + "MappedIssueList"); } Cache.Insert(userVo.UserId.ToString() + "MappedIssueList", dtmappedIssues); } else if (type == "UnMapped") { ddlUnMappedIssues.Items.Clear(); ddlUnMappedIssues.DataSource = dtmappedIssues; ddlUnMappedIssues.DataTextField = "AIM_IssueName"; ddlUnMappedIssues.DataValueField = "AIM_IssueId"; ddlUnMappedIssues.DataBind(); ddlUnMappedIssues.Items.Insert(0, new System.Web.UI.WebControls.ListItem("--Select--", "0")); } }