예제 #1
0
        /// <summary>
        /// 绑定银行
        /// </summary>
        private void BindBank()
        {
            //if (currentCulture == "en-us")
            //{
            //    txtLevel.Value = levelBLL.GetLevelName(LoginUser.LevelID, "en-us");
            //}
            //else
            //{
            //    txtLevel.Value = levelBLL.GetLevelName(LoginUser.LevelID, "");
            //}

            //decimal dRegMoney = getParamInt("Level1") * getParamAmount("billMoney");
            //txtRegMoney.Value = dRegMoney.ToString("0.00");

            string strBankName = new lgk.BLL.tb_bankName().GetModel(1).BankName;

            string[] a         = strBankName.Split('|');
            ListItem item_list = new ListItem();

            item_list.Value = "0";
            item_list.Text  = "-请选择-";
            this.dropBank.Items.Add(item_list);
            foreach (string b in a)
            {
                ListItem item_list1 = new ListItem();
                item_list1.Value = b;
                item_list1.Text  = b;
                this.dropBank.Items.Add(item_list1);
            }

            // bind_DropDownList(dropProvince,provinceBLL.GetList("").Tables[0],"provinceID","province" );  //银行省份
        }
예제 #2
0
        /// <summary>
        /// 获取银行集合
        /// </summary>
        /// <returns></returns>
        private List <List <string> > GetBanknameList()
        {
            string strbandname = new lgk.BLL.tb_bankName().GetModel(1).BankName;

            string[] s = strbandname.Split('|');
            List <List <string> > banklist = new List <List <string> >();

            if (s.Length < 2)
            {
                return(banklist);
            }
            string[] cnlist = s[0].Split(',');
            string[] enlist = s[1].Split(',');

            int count = 0;

            if (cnlist.Length > enlist.Length)
            {
                count = enlist.Length;
            }
            else
            {
                count = cnlist.Length;
            }
            for (int i = 0; i < count; i++)
            {
                List <string> list = new List <string>();
                list.Add(cnlist[i]);
                list.Add(enlist[i]);
                banklist.Add(list);
            }

            return(banklist);
        }
예제 #3
0
        //public void BindDdl()
        //{
        //    ddlQuestion.Items.Add(new ListItem(GetLanguage("PleaseSselect"), "0"));
        //    ddlQuestion.Items.Add(new ListItem(GetLanguage("YourNameIs"), "1"));
        //    ddlQuestion.Items.Add(new ListItem(GetLanguage("YourHome"), "2"));
        //    ddlQuestion.Items.Add(new ListItem(GetLanguage("YourPeople"), "3"));
        //}

        /// <summary>
        /// 绑定銀行
        /// </summary>
        private void BindBank()
        {
            #region 绑定银行所在地
            if (Language == "zh-cn")
            {
                bind_DropDownList(dropProvince, provinceBLL.GetList("").Tables[0], "provinceID", "province"); //銀行省份
            }
            else
            {
                bind_DropDownList(dropProvince, provinceBLL.GetList("").Tables[0], "provinceID", "provinceen"); //銀行省份
            }
            #endregion

            #region 绑定银行
            string   strBankName = new lgk.BLL.tb_bankName().GetModel(1).BankName;
            string[] s           = strBankName.Split('|');

            dropBank.Items.Clear();
            strBankName = s[0];
            if (s.Length < 2)
            {
                return;
            }
            if (currentCulture == "en-us")
            {
                strBankName = s[1];
            }
            string[] a         = strBankName.Split(',');
            ListItem item_list = new ListItem();
            item_list.Value = "0";
            item_list.Text  = GetLanguage("PleaseSselect");//"-请选择-"
            this.dropBank.Items.Add(item_list);
            foreach (string b in a)
            {
                ListItem item_list1 = new ListItem();
                item_list1.Value = b;
                item_list1.Text  = b;
                this.dropBank.Items.Add(item_list1);
            }
            #endregion
        }
예제 #4
0
        /// <summary>
        /// 绑定银行
        /// </summary>
        private void ddlBankName()
        {
            string strbandname = new lgk.BLL.tb_bankName().GetModel(1).BankName;

            string[] a = strbandname.Split(',');
            ddlBank.Items.Clear();
            foreach (string b in a)
            {
                ListItem item_list1 = new ListItem();
                item_list1.Value = b;
                item_list1.Text  = b;
                this.ddlBank.Items.Add(item_list1);
            }
        }
예제 #5
0
        public void BankBind()
        {
            string strBankName = new lgk.BLL.tb_bankName().GetModel(1).BankName;

            string[] a         = strBankName.Split(',');
            ListItem item_list = new ListItem();

            item_list.Value = "0";
            item_list.Text  = GetLanguage("PleaseSselect");//"-请选择-"
            this.OutBank.Items.Add(item_list);
            foreach (string b in a)
            {
                ListItem item_list1 = new ListItem();
                item_list1.Value = b;
                item_list1.Text  = b;
                this.OutBank.Items.Add(item_list1);
            }
        }
예제 #6
0
        /// <summary>
        /// 绑定银行
        /// </summary>
        private void BindBank()
        {
            bind_DropDownList(dropProvince, provinceBLL.GetList("").Tables[0], "provinceID", "province"); //銀行省份

            #region 绑定银行
            string strBankName = new lgk.BLL.tb_bankName().GetModel(1).BankName;

            string[] a         = strBankName.Split(',');
            ListItem item_list = new ListItem();
            item_list.Value = "0";
            item_list.Text  = GetLanguage("PleaseSselect");//"-请选择-"
            this.dropBank.Items.Add(item_list);
            foreach (string b in a)
            {
                ListItem item_list1 = new ListItem();
                item_list1.Value = b;
                item_list1.Text  = b;
                this.dropBank.Items.Add(item_list1);
            }
            #endregion
        }