示例#1
0
        protected void BindScheme()
        {
            OnlineMFSchemeDetailsBo onlineMFSchemeDetailsBo = new OnlineMFSchemeDetailsBo();
            DataSet ds;

            if (ddlAMC.SelectedValue != "")
            {
                ds = onlineMFSchemeDetailsBo.GetSIPCustomeSchemePlan(customerVO.CustomerId, int.Parse(ddlAMC.SelectedValue), exchangeType == "Online" ? 1 : 0);
                ddlScheme.DataSource     = ds.Tables[0];
                ddlScheme.DataValueField = ds.Tables[0].Columns["PASP_SchemePlanCode"].ToString();
                ddlScheme.DataTextField  = ds.Tables[0].Columns["PASP_SchemePlanName"].ToString();
                ddlScheme.DataBind();
                ddlScheme.Items.Insert(0, new ListItem("All", "0"));
            }
        }
示例#2
0
        protected string Getschemecode(List <int> schemeList)
        {
            string CompareSchemeList = string.Empty;

            foreach (var item in schemeList)
            {
                CompareSchemeList = CompareSchemeList + item + ",";
            }
            string     DataValueField = CompareSchemeList.TrimEnd(',');
            CustomerVo customerVO     = (CustomerVo)Session["customerVo"];
            DataSet    ds             = onlineMFSchemeDetailsBo.GetSIPCustomeSchemePlan(0, 0, exchangeType == "Online" ? 1 : 0);

            ddlSchemeList1.DataSource     = ds.Tables[0];
            ddlSchemeList1.DataValueField = ds.Tables[0].Columns["PASP_SchemePlanCode"].ToString();
            ddlSchemeList1.DataTextField  = ds.Tables[0].Columns["PASP_SchemePlanName"].ToString();
            ddlSchemeList1.DataBind();
            ddlSchemeList1.SelectedValue = DataValueField;
            return(CompareSchemeList.TrimEnd(','));
        }