private void ShowInfo(int _id) { BLL.customerBank bll = new BLL.customerBank(); DataSet ds = bll.GetList(0, "cb_id=" + _id, ""); if (ds != null && ds.Tables[0].Rows.Count > 0) { dr = ds.Tables[0].Rows[0]; //txtCusName.Text = dr["c_name"].ToString(); //hCusId.Value = dr["cb_cid"].ToString(); labCusName.Text = dr["c_name"].ToString(); txtBankName.Text = dr["cb_bankName"].ToString(); txtBankNum.Text = dr["cb_bankNum"].ToString(); txtBank.Text = dr["cb_bank"].ToString(); txtBankAddress.Text = dr["cb_bankAddress"].ToString(); if (Convert.ToBoolean(dr["cb_flag"])) { cbIsUse.Checked = true; } else { cbIsUse.Checked = false; } } }
private void RptBind(string _strWhere, string _orderby) { if (!this.isSearch) { this.page = DTRequest.GetQueryInt("page", 1); } else { this.page = 1; } BLL.customerBank bll = new BLL.customerBank(); this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount); this.rptList.DataBind(); //绑定页码 txtPageNum.Text = this.pageSize.ToString(); string pageUrl = Utils.CombUrlTxt("bank_list.aspx", "page={0}&txtCusName={1}&hCusId={2}&ddlisUse={3}", "__id__", _cusName, _cid, _isUse); PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8); }
private void DtBind() { dt = new DataTable(); BLL.customerBank bll = new BLL.customerBank(); dt = bll.GetList(0, "cb_cid=" + cid + " and cb_flag=1", "cb_id asc", false).Tables[0]; }