protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblCustomName.Text = model.CustomName; this.lblNameStr.Text = model.NameStr; this.lblSex.Text = model.Sex; this.lblBirthDay.Text = model.BirthDay; this.lblSuoChuJiaoSe.Text = model.SuoChuJiaoSe; this.lblZhiWu.Text = model.ZhiWu; this.lblPeiOu.Text = model.PeiOu; this.lblZiNv.Text = model.ZiNv; this.lblDanWieDianHua.Text = model.DanWieDianHua; this.lblDanWeiChuanZhen.Text = model.DanWeiChuanZhen; this.lblJiaTingZhuZhi.Text = model.JiaTingZhuZhi; this.lblJiaTingYouBian.Text = model.JiaTingYouBian; this.lblJiaTingDianHua.Text = model.JiaTingDianHua; this.lblShouJi.Text = model.ShouJi; this.lblXiaoLingTong.Text = model.XiaoLingTong; this.lblEmail.Text = model.Email; this.lblQQ.Text = model.QQ; this.lblMsn.Text = model.Msn; this.lblBackInfo.Text = model.BackInfo; this.lblUserName.Text = model.UserName; this.lblTimeStr.Text = model.TimeStr.ToString(); this.lblIFShare.Text = model.IFShare; this.lblCusBakA.Text = model.CusBakA; this.lblCusBakB.Text = model.CusBakB; this.lblCusBakC.Text = model.CusBakC; this.lblCusBakD.Text = model.CusBakD; this.lblCusBakE.Text = model.CusBakE; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看联系人信息(" + this.lblCustomName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPLinkMan model = new ZWL.BLL.ERPLinkMan(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtCustomName.Text = model.CustomName; this.txtNameStr.Text = model.NameStr; this.txtSex.Text = model.Sex; this.txtBirthDay.Text = model.BirthDay; this.txtSuoChuJiaoSe.Text = model.SuoChuJiaoSe; this.txtZhiWu.Text = model.ZhiWu; this.txtPeiOu.Text = model.PeiOu; this.txtZiNv.Text = model.ZiNv; this.txtDanWieDianHua.Text = model.DanWieDianHua; this.txtDanWeiChuanZhen.Text = model.DanWeiChuanZhen; this.txtJiaTingZhuZhi.Text = model.JiaTingZhuZhi; this.txtJiaTingYouBian.Text = model.JiaTingYouBian; this.txtJiaTingDianHua.Text = model.JiaTingDianHua; this.txtShouJi.Text = model.ShouJi; this.txtXiaoLingTong.Text = model.XiaoLingTong; this.txtEmail.Text = model.Email; this.txtQQ.Text = model.QQ; this.txtMsn.Text = model.Msn; this.txtBackInfo.Text = model.BackInfo; this.Label1.Text = model.UserName; this.Label2.Text = model.TimeStr.ToString(); this.txtIFShare.Text = model.IFShare; this.txtCusBakA.Text = model.CusBakA; this.txtCusBakB.Text = model.CusBakB; this.txtCusBakC.Text = model.CusBakC; this.txtCusBakD.Text = model.CusBakD; this.txtCusBakE.Text = model.CusBakE; } }