protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPCarBaoXian Model = new ZWL.BLL.ERPCarBaoXian(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblCarName.Text = Model.CarName.ToString(); this.lblFeiYongName.Text = Model.FeiYongName.ToString(); this.lblProjectName.Text = Model.ProjectName.ToString(); this.lblBaoXianPrice.Text = Model.BaoXianPrice.ToString(); this.lblBaoXianDate.Text = Model.BaoXianDate.ToString(); this.lblTiXingDate.Text = Model.TiXingDate.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.lblCarName.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.ERPCarBaoXian Model = new ZWL.BLL.ERPCarBaoXian(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtCarName.Text = Model.CarName.ToString(); this.txtFeiYongName.Text = Model.FeiYongName.ToString(); this.txtProjectName.Text = Model.ProjectName.ToString(); this.txtBaoXianPrice.Text = Model.BaoXianPrice.ToString(); this.txtBaoXianDate.Text = Model.BaoXianDate.ToString(); this.txtTiXingDate.Text = Model.TiXingDate.ToString(); this.txtUserName.Text = Model.UserName.ToString(); this.txtTimeStr.Text = Model.TimeStr.ToString(); this.txtBackInfo.Text = Model.BackInfo.ToString(); } }