using System; using System.Collections.Generic; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; using System.Text; using System.Data; namespace Mtxfw.VipSite { public partial class admin_member_info2 : Mtxfw.Utility.MemberBase { public Mtxfw.DAL.user_info daoUser = new Mtxfw.DAL.user_info(); public Mtxfw.Utility.Config config = new Mtxfw.Utility.Config(""); Mtxfw.DAL.user_bank daoBank = new Mtxfw.DAL.user_bank(); protected String pid, cid, qid, shdz=""; Mtxfw.DAL.province daoPro = new Mtxfw.DAL.province(); public int gtype = 0; protected override void OnLoad(EventArgs e) { base.OnLoad(e); string hostname = Request.Url.Host; if (!IsPostBack) { if (Session["IFPassword"] == null) { Response.Redirect("/Member_IFPassword.aspx?Url=/Admin_Member_List0.aspx"); } if (IFStores != 1) { Mtxfw.Utility.Tools.Message("您没有权限!", "/gl.aspx"); } Page.Title = "查看会员信息 - " + config.webName; System.Data.DataSet Ds = daoPro.GetCacheList("", "1=1 Order by Id Asc", "Province"); System.Data.DataTable Dt = (Ds != null && Ds.Tables[0] != null) ? Ds.Tables[0] : null; Hidd_Url.Value = Request.UrlReferrer.ToString(); if (!String.IsNullOrEmpty(Request.QueryString["ID"])) { int ID = int.Parse(Request.QueryString["ID"].ToString()); Mtxfw.Model.user_info model = daoUser.GetModel(ID); if (model != null) { if (!IsPostBack) { string[] stra = config.webbank.Split('|'); foreach (string str in stra) { if (str != "") { DropBank.Items.Add(new ListItem(str, str)); } } Text_UserName.Text = model.UserName; Labelimg.Text = ""; Text_RealName.Text = model.RealName; Text_NCName.Text = model.NCName; Text_Phone.Text = model.Phone; Text_SFZ.Text = model.SFZ; Text_Address.Text = model.MailingAddress; for (int i = 0; i < DropBank.Items.Count; i++) { if (DropBank.Items[i].Value == model.RealName2) { DropBank.Items[i].Selected = true; } else { DropBank.Items[i].Selected = false; } } Text_BankCard.Text = model.Phone2; Text_BankName.Text = model.MTZNLConent; } pid = model.Province; cid = model.City; qid = model.County; GetProvince(); } } } } protected String GetProvince() { StringBuilder sb = new StringBuilder(); System.Data.DataSet Ds = daoPro.GetCacheList("", "1=1 Order by Id Asc", "Province"); System.Data.DataTable Dt = (Ds != null && Ds.Tables[0] != null) ? Ds.Tables[0] : null; foreach (System.Data.DataRow Dr in Dt.Rows) { sb.Append("\r\n"); } return sb.ToString(); } } }