protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOfficething Model = new ZWL.BLL.ERPOfficething(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtShenQingThing.Text = Model.ShenQingThing.ToString(); this.txtTypeStr.Text = Model.TypeStr.ToString(); this.txtShengQingNum.Text = Model.ShengQingNum.ToString(); this.txtNowState.Text = Model.NowState.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPOfficething Model = new ZWL.BLL.ERPOfficething(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblShenQingThing.Text = Model.ShenQingThing.ToString(); this.lblTypeStr.Text = Model.TypeStr.ToString(); this.lblShengQingNum.Text = Model.ShengQingNum.ToString(); this.lblNowState.Text = Model.NowState.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看办公用品信息(" + this.lblShenQingThing.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }