protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPKaoHeRW Model = new ZWL.BLL.ERPKaoHeRW(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtRenWuName.Text = Model.RenWuName.ToString(); this.txtFenZhi.Text = Model.FenZhi.ToString(); this.txtRenWuNeiRong.Text = Model.RenWuNeiRong.ToString(); this.txtBackInfo.Text = Model.BackInfo.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.ERPKaoHeRW Model = new ZWL.BLL.ERPKaoHeRW(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblRenWuName.Text = Model.RenWuName.ToString(); this.lblFenZhi.Text = Model.FenZhi.ToString(); this.lblRenWuNeiRong.Text = Model.RenWuNeiRong.ToString(); this.lblBackInfo.Text = Model.BackInfo.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.lblRenWuName.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }