protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPLiRun model = new ZWL.BLL.ERPLiRun(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblProjectName.Text = model.ProjectName; this.lblProjectSerils.Text = model.ProjectSerils; this.lblSumJinE.Text = model.SumJinE; this.lblFeiYong.Text = model.FeiYong; this.lblChengBen.Text = model.ChengBen; this.lblFangZu.Text = model.FangZu; this.lblShuiE.Text = model.ShuiE; this.lblGongZi.Text = model.GongZi; this.lblTiCheng.Text = model.TiCheng; this.lblQiTa.Text = model.QiTa; this.lblShiJi.Text = model.ShiJi; this.lblUserName.Text = model.UserName; this.lblTimeStr.Text = model.TimeStr.ToString(); //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "查看利润核算信息(" + this.lblProjectName.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.ERPLiRun model = new ZWL.BLL.ERPLiRun(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtProjectName.Text = model.ProjectName; this.txtProjectSerils.Text = model.ProjectSerils; this.txtSumJinE.Text = model.SumJinE; this.txtFeiYong.Text = model.FeiYong; this.txtChengBen.Text = model.ChengBen; this.txtFangZu.Text = model.FangZu; this.txtShuiE.Text = model.ShuiE; this.txtGongZi.Text = model.GongZi; this.txtTiCheng.Text = model.TiCheng; this.txtQiTa.Text = model.QiTa; this.txtShiJi.Text = model.ShiJi; } }