Exemple #1
0
 private void BindFolioNumber()
 {
     dsCustomerAccounts         = customerAccountBo.GetCustomerMFAccounts(portfolioId, "MF", schemePlanCode);
     dtCustomerAccounts         = dsCustomerAccounts.Tables[0];
     ddlFolioNum.DataSource     = dtCustomerAccounts;
     ddlFolioNum.DataTextField  = "CMFA_FolioNum";
     ddlFolioNum.DataValueField = "CMFA_AccountId";
     ddlFolioNum.DataBind();
     ddlFolioNum.Items.Insert(0, new ListItem("Select a Folio Number", "Select a Folio Number"));
 }
Exemple #2
0
        /// <summary>
        /// Binds all the Dropdowns with the necessary data
        /// </summary>
        private void BindDropDowns(string path)
        {
            userVo      = (UserVo)Session["userVo"];
            customerVo  = (CustomerVo)Session["CustomerVo"];
            portfolioId = int.Parse(Session[SessionContents.PortfolioId].ToString());

            //Bind the Systematic Transaction Types to dropdown
            dtSystematicTransactionType      = XMLBo.GetSystematicTransactionType(path);
            ddlSystematicType.DataSource     = dtSystematicTransactionType;
            ddlSystematicType.DataTextField  = "SystematicType";
            ddlSystematicType.DataValueField = "SystemationTypeCode";
            ddlSystematicType.DataBind();
            ddlSystematicType.Items.Insert(0, "Select a Transaction Type");

            // Bind the Frequency to dropdown
            dtFrequency                 = assetBo.GetFrequencyCode(path);
            ddlFrequency.DataSource     = dtFrequency;
            ddlFrequency.DataTextField  = "Frequency";
            ddlFrequency.DataValueField = "FrequencyCode";
            ddlFrequency.DataBind();
            ddlFrequency.Items.Insert(0, "Select Frequency");

            //Bind the Customer Account Details to dropdown
            if (schemePlanCode != 0)
            {
                dsCustomerMFAccounts = customerAccountBo.GetCustomerMFAccounts(portfolioId, AssetGroupCode, schemePlanCode);
            }
            else
            {
                dsCustomerMFAccounts = customerAccountBo.GetCustomerMFAccounts(portfolioId, AssetGroupCode, 0);
            }

            ddlMFAccount.DataSource     = dsCustomerMFAccounts.Tables[0];
            ddlMFAccount.DataTextField  = "CMFA_FolioNum";
            ddlMFAccount.DataValueField = "CMFA_AccountId";
            ddlMFAccount.DataBind();
            ddlMFAccount.Items.Insert(0, "Select a Folio");
        }