protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPSource Model = new ZWL.BLL.ERPSource(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblSourceName.Text = Model.SourceName.ToString(); this.lblShengQingUser.Text = Model.ShengQingUser.ToString(); this.lblShiYongUser.Text = Model.ShiYongUser.ToString(); this.lblShiYongShiXian.Text = Model.ShiYongShiXian.ToString(); this.lblSourceMiaoShu.Text = Model.SourceMiaoShu.ToString(); this.lblNowState.Text = Model.NowState.ToString(); this.lblUserName.Text = Model.UserName.ToString(); this.lblTimeStr.Text = Model.TimeStr.ToString(); this.lblBackInfo.Text = Model.BackInfo.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看资源申请信息(" + this.lblSourceName.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.ERPSource Model = new ZWL.BLL.ERPSource(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtSourceName.Text = Model.SourceName.ToString(); this.txtShengQingUser.Text = Model.ShengQingUser.ToString(); this.txtShiYongUser.Text = Model.ShiYongUser.ToString(); this.txtShiYongShiXian.Text = Model.ShiYongShiXian.ToString(); this.txtSourceMiaoShu.Text = Model.SourceMiaoShu.ToString(); this.txtNowState.Text = Model.NowState.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); } }