Пример #1
0
        private void LoadBankList()
        {
            DataTable dt = FirmAccountInfoManager.GetList("");

            rpBankList.DataSource = dt;
            rpBankList.DataBind();
        }
Пример #2
0
        /// <summary>
        /// 绑定银行信息
        /// </summary>
        private void Load_Bank()
        {
            DataTable dtBanks = FirmAccountInfoManager.GetList("");
            DataRow   dr      = dtBanks.NewRow();

            dr["bankname"] = "——请选择——";
            dr["id"]       = "0";
            dtBanks.Rows.InsertAt(dr, 0);
            ddlBank.DataTextField  = "bankname";
            ddlBank.DataValueField = "id";
            ddlBank.DataSource     = dtBanks;
            ddlBank.DataBind();
        }
Пример #3
0
        /// <summary>
        /// 加载支付帐号信息
        /// </summary>
        private void LoadPayAccount()
        {
            this.payAccount.Items.Clear();
            this.payAccount.Items.Add(new ListItem("——请选择——", "0"));
            DataTable dt = FirmAccountInfoManager.GetList("");

            for (int i = 0; i < dt.Rows.Count; i++)
            {
                ListItem adItem = new ListItem();
                adItem.Text  = "开户银行:" + dt.Rows[i]["bankname"].ToString() + ", 银行帐号:" + dt.Rows[i]["account"].ToString() + ", 开户名称:" + dt.Rows[i]["accountUser"].ToString();
                adItem.Value = dt.Rows[i]["bankname"].ToString() + "," + dt.Rows[i]["account"].ToString() + "," + dt.Rows[i]["accountUser"].ToString() + "," + dt.Rows[i]["id"].ToString();
                this.payAccount.Items.Add(adItem);
            }
        }
Пример #4
0
        /// <summary>
        /// 绑定银行
        /// </summary>
        private void BindBank()
        {
            ddlAcount.Items.Clear();
            DataTable dt = FirmAccountInfoManager.GetList("");
            DataRow   dr = dt.NewRow();

            dr["bankname"] = "——请选择——";
            dr["id"]       = "0";
            dt.Rows.InsertAt(dr, 0);
            ddlAcount.DataTextField  = "bankname";
            ddlAcount.DataValueField = "id";
            ddlAcount.DataSource     = dt;
            ddlAcount.DataBind();
        }
Пример #5
0
        /// <summary>
        /// 加载银行信息
        /// </summary>
        private void LoadBank(string bank = "")
        {
            if (ddlUnit.SelectedIndex < 0)
            {
                return;
            }
            DataTable dtBanks = FirmAccountInfoManager.GetList(string.Format(" firmid={0}", ddlUnit.SelectedValue));

            DdlBank.DataTextField  = "bankname";
            DdlBank.DataValueField = "id";
            DdlBank.DataSource     = dtBanks;
            DdlBank.DataBind();

            if (!string.IsNullOrEmpty(bank))
            {
                ListItem item = DdlBank.Items.FindByText(bank);
                if (item != null)
                {
                    DdlBank.SelectedIndex = DdlBank.Items.IndexOf(item);
                }
            }
        }