protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPCustomHuiFang model = new ZWL.BLL.ERPCustomHuiFang(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblCustomName.Text = model.CustomName; this.lblHuiFangTitle.Text = model.HuiFangTitle; this.lblHuiFangType.Text = model.HuiFangType; this.lblHuiFangResult.Text = model.HuiFangResult; this.lblHuiFangTime.Text = model.HuiFangTime; this.lblUserName.Text = model.UserName; this.lblTimeStr.Text = model.TimeStr.ToString(); this.lblIFShare.Text = model.IFShare; this.lblCusBakA.Text = model.CusBakA; this.lblCusBakB.Text = model.CusBakB; this.lblCusBakC.Text = model.CusBakC; this.lblCusBakD.Text = model.CusBakD; this.lblCusBakE.Text = model.CusBakE; //写系统日志 ZWL.BLL.ERPRiZhi MyRiZhi = new ZWL.BLL.ERPRiZhi(); MyRiZhi.UserName = ZWL.Common.PublicMethod.GetSessionValue("UserName"); MyRiZhi.DoSomething = "用户查看回访信息(" + this.lblCustomName.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.ERPCustomHuiFang model = new ZWL.BLL.ERPCustomHuiFang(); model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtCustomName.Text = model.CustomName; this.txtHuiFangTitle.Text = model.HuiFangTitle; this.txtHuiFangType.Text = model.HuiFangType; this.txtHuiFangResult.Text = model.HuiFangResult; this.txtHuiFangTime.Text = model.HuiFangTime; this.Label1.Text = model.UserName; this.Label2.Text = model.TimeStr.ToString(); this.txtIFShare.Text = model.IFShare; this.txtCusBakA.Text = model.CusBakA; this.txtCusBakB.Text = model.CusBakB; this.txtCusBakC.Text = model.CusBakC; this.txtCusBakD.Text = model.CusBakD; this.txtCusBakE.Text = model.CusBakE; } }