Esempio n. 1
0
        private void BindFolioNumber(int schemecode)
        {
            DataTable dt;

            try
            {
                dt = onlineMforderBo.GetCustomerFolioSchemeWise(customerVo.CustomerId, schemecode, exchangeType == "Online" ? 1 : 0);
                if (dt.Rows.Count > 0)
                {
                    ddlFolio.DataSource     = dt;
                    ddlFolio.DataValueField = dt.Columns["CMFA_AccountId"].ToString();
                    ddlFolio.DataTextField  = dt.Columns["CMFA_FolioNum"].ToString();
                    ddlFolio.DataBind();
                }
                //ddlFolio.Items.Insert(0, new ListItem("Select", "0"));
                ddlFolio.Items.Insert(0, new ListItem("New", "New"));
            }
            catch (BaseApplicationException Ex)
            {
                throw (Ex);
            }
        }
        private void BindFolioNumber(int amcCode)
        {
            ddlFolio.Items.Clear();
            DataTable dtScheme = new DataTable();

            try
            {
                dtScheme = onlineMforderBo.GetCustomerFolioSchemeWise(customerVo.CustomerId, amcCode, exchangeType == "Online" ? 1 : 0);
                //commonLookupBo.GetFolioNumberForSIP(Convert.ToInt32(ddlAmc.SelectedValue), customerVo.CustomerId);

                if (dtScheme.Rows.Count > 0)
                {
                    ddlFolio.DataSource     = dtScheme;
                    ddlFolio.DataTextField  = dtScheme.Columns["CMFA_FolioNum"].ToString();
                    ddlFolio.DataValueField = dtScheme.Columns["CMFA_AccountId"].ToString();
                    ddlFolio.DataBind();
                }
            }
            catch (BaseApplicationException Ex)
            {
                throw (Ex);
            }
        }