示例#1
0
        private void BindSysBank()
        {
            IList <lgk.Model.tb_systemBank> ddlList = new lgk.BLL.tb_systemBank().GetModelList(" flag = 0 ");

            dropBank.Items.Clear();
            ListItem li = new ListItem();

            li.Value = "0";
            li.Text  = GetLanguage("PleaseSselect");//"-请选择-";
            dropBank.Items.Add(li);
            foreach (lgk.Model.tb_systemBank item in ddlList)
            {
                ListItem items    = new ListItem();
                string   bankname = item.BankName;
                items.Value = item.ID.ToString();
                items.Text  = bankname;
                items.Attributes["BankType"]    = item.BankType.ToString();
                items.Attributes["BankAccount"] = item.BankAccount.ToString();
                dropBank.Items.Add(items);
            }
        }
示例#2
0
        private void BindBank()
        {
            // List<List<string>> banklist = GetBanknameList();

            IList <lgk.Model.tb_systemBank> ddlList = new lgk.BLL.tb_systemBank().GetModelList("");

            dropBank.Items.Clear();
            ListItem li = new ListItem();

            li.Value = "0";
            li.Text  = GetLanguage("PleaseSselect");//"-请选择-";
            dropBank.Items.Add(li);
            foreach (lgk.Model.tb_systemBank item in ddlList)
            {
                ListItem items    = new ListItem();
                string   bankname = item.BankName;
                items.Value = item.BankName;
                items.Text  = bankname;
                dropBank.Items.Add(items);
            }
        }