protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); //绑定页面数据 ZWL.BLL.ERPUser MyBuMen = new ZWL.BLL.ERPUser(); MyBuMen.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.TextBox1.Text = MyBuMen.UserName; this.TextBox2.Text =ZWL.Common.DEncrypt.DESEncrypt.Decrypt(MyBuMen.UserPwd); this.TextBox3.Text = MyBuMen.TrueName; this.TextBox4.Text = MyBuMen.Serils; this.TextBox5.Text = MyBuMen.Department; this.TextBox6.Text = MyBuMen.JiaoSe; this.TextBox7.Text = MyBuMen.ZhiWei; this.TextBox8.Text = MyBuMen.ZaiGang; this.TextBox9.Text = MyBuMen.EmailStr; this.RadioButtonList1.SelectedValue = MyBuMen.IfLogin; this.TextBox10.Text = MyBuMen.Sex; this.TextBox11.Text = MyBuMen.BackInfo; this.TextBox12.Text = MyBuMen.BirthDay; this.TextBox13.Text = MyBuMen.MingZu; this.TextBox14.Text = MyBuMen.SFZSerils; this.TextBox15.Text = MyBuMen.HunYing; this.TextBox16.Text = MyBuMen.ZhengZhiMianMao; this.TextBox17.Text = MyBuMen.JiGuan; this.TextBox18.Text = MyBuMen.HuKou; this.TextBox19.Text = MyBuMen.XueLi; this.TextBox20.Text = MyBuMen.ZhiCheng; this.TextBox21.Text = MyBuMen.BiYeYuanXiao; this.TextBox22.Text = MyBuMen.ZhuanYe; this.TextBox23.Text = MyBuMen.CanJiaGongZuoTime; this.TextBox24.Text = MyBuMen.JiaRuBenDanWeiTime; this.TextBox25.Text = MyBuMen.JiaTingDianHua; this.TextBox26.Text = MyBuMen.JiaTingAddress; this.TextBox27.Text = MyBuMen.GangWeiBianDong; this.TextBox28.Text = MyBuMen.JiaoYueBeiJing; this.TextBox29.Text = MyBuMen.GongZuoJianLi; this.TextBox30.Text = MyBuMen.SheHuiGuanXi; this.TextBox31.Text = MyBuMen.JiangChengJiLu; this.TextBox32.Text = MyBuMen.ZhiWuQingKuang; this.TextBox33.Text = MyBuMen.PeiXunJiLu; this.TextBox34.Text = MyBuMen.DanBaoJiLu; this.TextBox35.Text = MyBuMen.NaoDongHeTong; this.TextBox36.Text = MyBuMen.SheBaoJiaoNa; this.TextBox37.Text = MyBuMen.TiJianJiLu; this.TextBox38.Text = MyBuMen.BeiZhuStr; ZWL.Common.PublicMethod.SetSessionValue("WenJianList", MyBuMen.FuJian); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { //RenShiInfo.aspx TypeStr=RS ZWL.Common.PublicMethod.CheckSession(); //绑定页面数据 ZWL.BLL.ERPUser MyBuMen = new ZWL.BLL.ERPUser(); MyBuMen.GetModel(int.Parse(Request.QueryString["ID"].ToString())); if (MyBuMen!=null) { this.Label1.Text = MyBuMen.UserName; this.HyperLink1.NavigateUrl = "../LanEmail/LanEmailAdd.aspx?UserName="******"&fanhui=0"; //this.Label2.Text = ZWL.Common.DEncrypt.DESEncrypt.Decrypt(MyBuMen.UserPwd); this.Label2.Text = "******"; this.Label3.Text = MyBuMen.TrueName; this.Label4.Text = MyBuMen.Serils; this.Label5.Text = MyBuMen.Department; this.Label6.Text = MyBuMen.JiaoSe; this.lbl_zn.Text = MyBuMen.GroupName; this.Label7.Text = MyBuMen.ZhiWei; this.Label8.Text = MyBuMen.ZaiGang; this.Label9.Text = MyBuMen.EmailStr; this.Label10.Text = MyBuMen.IfLogin; this.Label11.Text = MyBuMen.Sex; this.Label12.Text = MyBuMen.BackInfo; this.Label13.Text = MyBuMen.BirthDay; this.Label14.Text = MyBuMen.MingZu; this.Label15.Text = MyBuMen.SFZSerils; this.Label16.Text = MyBuMen.HunYing; this.Label17.Text = MyBuMen.ZhengZhiMianMao; this.Label18.Text = MyBuMen.JiGuan; this.Label19.Text = MyBuMen.HuKou; this.Label20.Text = MyBuMen.XueLi; this.Label21.Text = MyBuMen.ZhiCheng; this.Label22.Text = MyBuMen.BiYeYuanXiao; this.Label23.Text = MyBuMen.ZhuanYe; this.Label24.Text = MyBuMen.CanJiaGongZuoTime; this.Label25.Text = MyBuMen.JiaRuBenDanWeiTime; this.Label26.Text = MyBuMen.JiaTingDianHua; this.Label27.Text = MyBuMen.JiaTingAddress; this.Label28.Text = MyBuMen.GangWeiBianDong; this.Label29.Text = MyBuMen.JiaoYueBeiJing; this.Label30.Text = MyBuMen.GongZuoJianLi; this.Label31.Text = MyBuMen.SheHuiGuanXi; this.Label32.Text = MyBuMen.JiangChengJiLu; this.Label33.Text = MyBuMen.ZhiWuQingKuang; this.Label34.Text = MyBuMen.PeiXunJiLu; this.Label35.Text = MyBuMen.DanBaoJiLu; this.Label36.Text = MyBuMen.NaoDongHeTong; this.Label37.Text = MyBuMen.SheBaoJiaoNa; this.Label38.Text = MyBuMen.TiJianJiLu; this.Label39.Text = MyBuMen.BeiZhuStr; this.Label40.Text = ZWL.Common.PublicMethod.GetWenJian(MyBuMen.FuJian, "../UploadFile/"); } //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "查看用户信息(" + this.Label1.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }