private void BindDropDowns(string path)
        {
            DataSet   ds;
            DataTable dt = XMLBo.GetStates(path);

            ddlState.DataSource     = dt;
            ddlState.DataValueField = "StateCode";
            ddlState.DataTextField  = "StateName";
            ddlState.DataBind();
            ddlState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

            dt = XMLBo.GetAdviserBranchType(path);
            ddlBranchAssociateType.DataSource     = dt;
            ddlBranchAssociateType.DataValueField = "XABRT_BranchTypeCode";
            ddlBranchAssociateType.DataTextField  = "XABRT_BranchType";
            ddlBranchAssociateType.DataBind();
            ddlBranchAssociateType.Items.Insert(0, new ListItem("Select a Type", "Select a Type"));

            ds = adviserAssociateCategoryBo.GetAdviserAssociateCategory(advisorVo.advisorId);
            dt = ds.Tables[0];
            ddlAssociateCategory.DataSource     = dt;
            ddlAssociateCategory.DataValueField = "AssociateCategoryId";
            ddlAssociateCategory.DataTextField  = "AssociateCategoryName";
            ddlAssociateCategory.DataBind();
            ddlAssociateCategory.Items.Insert(0, new ListItem("Select Associate Category", "Select Associate Category"));
        }
        private void BindSatesToDP(string path)
        {
            try
            {
                // Bind State Drop Downs
                dtStates = XMLBo.GetStates(path);
                ddlBankAdrState.DataSource     = dtStates;
                ddlBankAdrState.DataTextField  = "StateName";
                ddlBankAdrState.DataValueField = "StateCode";
                ddlBankAdrState.DataBind();
                ddlBankAdrState.Items.Insert(0, new ListItem("Select", "Select"));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "EditCustomerBankAccount.ascx:BindBranchDropDown()");

                object[] objects = new object[2];
                objects[0]   = path;
                objects[1]   = dtStates;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        private void BindDropDowns(string path)
        {
            DataTable dtStates = XMLBo.GetStates(path);

            ddlCorrAdrState.DataSource     = dtStates;
            ddlCorrAdrState.DataValueField = "StateCode";
            ddlCorrAdrState.DataTextField  = "StateName";
            ddlCorrAdrState.DataBind();
            ddlCorrAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));


            ddlPermAdrState.DataSource     = dtStates;
            ddlPermAdrState.DataValueField = "StateCode";
            ddlPermAdrState.DataTextField  = "StateName";
            ddlPermAdrState.DataBind();
            ddlPermAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

            if (customerVo.Type.ToUpper().ToString() == "IND")
            {
                dtCustomerSubType = XMLBo.GetCustomerSubType(path, "IND");
            }
            else
            {
                dtCustomerSubType = XMLBo.GetCustomerSubType(path, "NIND");
            }
            ddlCustomerSubType.DataSource     = dtCustomerSubType;
            ddlCustomerSubType.DataTextField  = "CustomerTypeName";
            ddlCustomerSubType.DataValueField = "CustomerSubTypeCode";
            ddlCustomerSubType.DataBind();
            ddlCustomerSubType.SelectedValue = customerVo.SubType;
        }
Esempio n. 4
0
 protected void BindState()
 {
     dtStates                = XMLBo.GetStates(path);
     ddlState.DataSource     = dtStates;
     ddlState.DataTextField  = "StateName";
     ddlState.DataValueField = "StateCode";
     ddlState.DataBind();
     ddlState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
 }
Esempio n. 5
0
        private void LoadStates()
        {
            DataTable dtStates = XMLBo.GetStates(path);

            ddlState.DataSource     = dtStates;
            ddlState.DataValueField = "StateCode";
            ddlState.DataTextField  = "StateName";
            ddlState.DataBind();
            ddlState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
        }
Esempio n. 6
0
        private void BindDropDowns(PropertyVo propertyVo, CustomerAccountsVo customerAccountsVo, string path)
        {
            try
            {
                userVo                        = (UserVo)Session["userVo"];
                customerVo                    = (CustomerVo)Session["CustomerVo"];
                dtMeasureCode                 = XMLBo.GetMeasureCode(path, AssetGroupCode);
                ddlMeasureCode.DataSource     = dtMeasureCode;
                ddlMeasureCode.DataTextField  = "Measure";
                ddlMeasureCode.DataValueField = "MeasureCode";
                ddlMeasureCode.DataBind();
                ddlMeasureCode.Items.Insert(0, new ListItem("Select a Measure Code", "Select a Measure Code"));

                // Bind the Instrument Category for an Asset
                dsInstrumentCategory            = assetBo.GetAssetInstrumentCategory(AssetGroupCode);
                ddlInstrumentCat.DataSource     = dsInstrumentCategory.Tables[0];
                ddlInstrumentCat.DataTextField  = "PAIC_AssetInstrumentCategoryName";
                ddlInstrumentCat.DataValueField = "PAIC_AssetInstrumentCategoryCode";
                ddlInstrumentCat.DataBind();
                ddlInstrumentCat.Items.Insert(0, new ListItem("Select an Instrument Category", "Select an Instrument Category"));

                ddlInstrumentSubCat.Items.Clear();


                // Bind State Drop Downs
                dtStates                = XMLBo.GetStates(path);
                ddlState.DataSource     = dtStates;
                ddlState.DataTextField  = "StateName";
                ddlState.DataValueField = "StateCode";
                ddlState.DataBind();
                ddlState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "PortfolioPropertyEntry.ascx:BindDropDowns()");
                object[] objects = new object[5];
                objects[0]   = userVo;
                objects[1]   = propertyVo;
                objects[2]   = customerAccountsVo;
                objects[3]   = path;
                objects[4]   = customerVo;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
Esempio n. 7
0
        private void BindDropDowns(string path)
        {
            dtMaritalStatus                 = XMLBo.GetMaritalStatus(path);
            ddlMaritalStatus.DataSource     = dtMaritalStatus;
            ddlMaritalStatus.DataTextField  = "MaritalStatus";
            ddlMaritalStatus.DataValueField = "MaritalStatusCode";
            ddlMaritalStatus.DataBind();
            ddlMaritalStatus.Items.Insert(0, new ListItem("Select a Status", "Select a Status"));

            dtNationality                 = XMLBo.GetNationality(path);
            ddlNationality.DataSource     = dtNationality;
            ddlNationality.DataTextField  = "Nationality";
            ddlNationality.DataValueField = "NationalityCode";
            ddlNationality.DataBind();
            ddlNationality.Items.Insert(0, new ListItem("Select a Nationality", "Select a Nationality"));

            dtOccupation                 = XMLBo.GetOccupation(path);
            ddlOccupation.DataSource     = dtOccupation;
            ddlOccupation.DataTextField  = "Occupation";
            ddlOccupation.DataValueField = "OccupationCode";
            ddlOccupation.DataBind();
            ddlOccupation.Items.Insert(0, new ListItem("Select an Occupation", "Select a Occupation"));

            dtQualification                 = XMLBo.GetQualification(path);
            ddlQualification.DataSource     = dtQualification;
            ddlQualification.DataTextField  = "Qualification";
            ddlQualification.DataValueField = "QualificationCode";
            ddlQualification.DataBind();
            ddlQualification.Items.Insert(0, new ListItem("Select a Qualification", "Select a Qualification"));

            dtStates = XMLBo.GetStates(path);
            ddlCorrAdrState.DataSource     = dtStates;
            ddlCorrAdrState.DataTextField  = "StateName";
            ddlCorrAdrState.DataValueField = "StateCode";
            ddlCorrAdrState.DataBind();
            ddlCorrAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

            ddlPermAdrState.DataSource     = dtStates;
            ddlPermAdrState.DataTextField  = "StateName";
            ddlPermAdrState.DataValueField = "StateCode";
            ddlPermAdrState.DataBind();
            ddlPermAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

            ddlOfcAdrState.DataSource     = dtStates;
            ddlOfcAdrState.DataTextField  = "StateName";
            ddlOfcAdrState.DataValueField = "StateCode";
            ddlOfcAdrState.DataBind();
            ddlOfcAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
        }
        private void BindDropDowns(string path)
        {
            try
            {
                dtAccountType                 = XMLBo.GetBankAccountTypes(path);
                ddlAccountType.DataSource     = dtAccountType;
                ddlAccountType.DataTextField  = "BankAccountType";
                ddlAccountType.DataValueField = "BankAccountTypeCode";
                ddlAccountType.DataBind();
                ddlAccountType.Items.Insert(0, new ListItem("Select an Account Type", "Select an Account Type"));

                dtModeofOperation                 = XMLBo.GetModeOfHolding(path);
                ddlModeOfOperation.DataSource     = dtModeofOperation;
                ddlModeOfOperation.DataTextField  = "ModeOfHolding";
                ddlModeOfOperation.DataValueField = "ModeOfHoldingCode";
                ddlModeOfOperation.DataBind();
                ddlModeOfOperation.Items.Insert(0, new ListItem("Select a Mode of Holding", "Select a Mode of Holding"));

                dtStates = XMLBo.GetStates(path);
                ddlBankAdrState.DataSource     = dtStates;
                ddlBankAdrState.DataTextField  = "StateName";
                ddlBankAdrState.DataValueField = "StateCode";
                ddlBankAdrState.DataBind();
                ddlBankAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
            }

            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }
            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "AddBankDetails.ascx:BindDropDowns()");
                object[] objects = new object[4];
                objects[0]   = path;
                objects[1]   = dtAccountType;
                objects[2]   = dtModeofOperation;
                objects[3]   = dtStates;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        private void BindDropDowns(string path)
        {
            // Bind Business Type Drop Downs
            dt = XMLBo.GetBusinessType(path);
            ddlBusinessType.DataSource     = dt;
            ddlBusinessType.DataTextField  = "BusinessType";
            ddlBusinessType.DataValueField = "BusinessTypeCode";
            ddlBusinessType.DataBind();
            ddlBusinessType.Items.Insert(0, new ListItem("Select a Business Type", "Select a Business Type"));


            dtStates                = XMLBo.GetStates(path);
            ddlState.DataSource     = dtStates;
            ddlState.DataTextField  = "StateName";
            ddlState.DataValueField = "StateCode";
            ddlState.DataBind();
            ddlState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
        }
Esempio n. 10
0
        private void BindDropDowns(string path)
        {
            DataTable dt = null;

            try
            {
                // Bind States Drop Down
                dt = XMLBo.GetStates(path);

                ddlCorrAdrState.DataSource     = dt;
                ddlCorrAdrState.DataTextField  = "StateName";
                ddlCorrAdrState.DataValueField = "StateCode";
                ddlCorrAdrState.DataBind();
                ddlCorrAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

                ddlPermAdrState.DataSource     = dt;
                ddlPermAdrState.DataTextField  = "StateName";
                ddlPermAdrState.DataValueField = "StateCode";
                ddlPermAdrState.DataBind();
                ddlPermAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();
                FunctionInfo.Add("Method", "CustomerNonIndividualAdd.ascx:BindDropDowns()");
                object[] objects = new object[2];
                objects[0]   = path;
                objects[1]   = dt;
                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }
        private void BindDropDowns()
        {
            AdvisorVo advisorVo = new AdvisorVo();

            try
            {
                dtMaritalStatus                 = XMLBo.GetMaritalStatus(path);
                ddlMaritalStatus.DataSource     = dtMaritalStatus;
                ddlMaritalStatus.DataTextField  = "MaritalStatus";
                ddlMaritalStatus.DataValueField = "MaritalStatusCode";
                ddlMaritalStatus.DataBind();
                ddlMaritalStatus.Items.Insert(0, new ListItem("Select a Status", "Select a Status"));

                dtNationality                 = XMLBo.GetNationality(path);
                ddlNationality.DataSource     = dtNationality;
                ddlNationality.DataTextField  = "Nationality";
                ddlNationality.DataValueField = "NationalityCode";
                ddlNationality.DataBind();
                ddlNationality.Items.Insert(0, new ListItem("Select a Nationality", "Select a Nationality"));

                dtOccupation                 = XMLBo.GetOccupation(path);
                ddlOccupation.DataSource     = dtOccupation;
                ddlOccupation.DataTextField  = "Occupation";
                ddlOccupation.DataValueField = "OccupationCode";
                ddlOccupation.DataBind();
                ddlOccupation.Items.Insert(0, new ListItem("Select a Occupation", "Select a Occupation"));

                dtQualification                 = XMLBo.GetQualification(path);
                ddlQualification.DataSource     = dtQualification;
                ddlQualification.DataTextField  = "Qualification";
                ddlQualification.DataValueField = "QualificationCode";
                ddlQualification.DataBind();
                ddlQualification.Items.Insert(0, new ListItem("Select a Qualification", "Select a Qualification"));

                dtState = XMLBo.GetStates(path);

                ddlCorrAdrState.DataSource     = dtState;
                ddlCorrAdrState.DataTextField  = "StateName";
                ddlCorrAdrState.DataValueField = "StateCode";
                ddlCorrAdrState.DataBind();
                ddlCorrAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

                ddlPermAdrState.DataSource     = dtState;
                ddlPermAdrState.DataTextField  = "StateName";
                ddlPermAdrState.DataValueField = "StateCode";
                ddlPermAdrState.DataBind();
                ddlPermAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

                ddlOfcAdrState.DataSource     = dtState;
                ddlOfcAdrState.DataTextField  = "StateName";
                ddlOfcAdrState.DataValueField = "StateCode";
                ddlOfcAdrState.DataBind();
                ddlOfcAdrState.Items.Insert(0, new ListItem("Select a State", "Select a State"));

                if (customerVo.Type.ToUpper().ToString() == "IND")
                {
                    dtCustomerSubType = XMLBo.GetCustomerSubType(path, "IND");
                }
                else
                {
                    dtCustomerSubType = XMLBo.GetCustomerSubType(path, "NIND");
                }
                ddlCustomerSubType.DataSource     = dtCustomerSubType;
                ddlCustomerSubType.DataTextField  = "CustomerTypeName";
                ddlCustomerSubType.DataValueField = "CustomerSubTypeCode";
                ddlCustomerSubType.DataBind();
                ddlCustomerSubType.SelectedValue = customerVo.SubType;
            }
            catch (BaseApplicationException Ex)
            {
                throw Ex;
            }

            catch (Exception Ex)
            {
                BaseApplicationException exBase       = new BaseApplicationException(Ex.Message, Ex);
                NameValueCollection      FunctionInfo = new NameValueCollection();

                FunctionInfo.Add("Method", "EditCustomerIndividualProfile.ascx:BindDropDowns()");

                object[] objects = new object[0];

                FunctionInfo = exBase.AddObject(FunctionInfo, objects);
                exBase.AdditionalInformation = FunctionInfo;
                ExceptionManager.Publish(exBase);
                throw exBase;
            }
        }