protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { ZWL.Common.PublicMethod.CheckSession(); ZWL.BLL.ERPXueXiXinDe Model = new ZWL.BLL.ERPXueXiXinDe(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtXinDeTitle.Text = Model.XinDeTitle.ToString(); this.txtXinDeContent.Text = Model.XinDeContent.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtShenPiContent.Text = Model.ShenPiContent.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.ERPXueXiXinDe Model = new ZWL.BLL.ERPXueXiXinDe(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.txtXinDeTitle.Text=Model.XinDeTitle.ToString(); this.txtXinDeContent.Text=Model.XinDeContent.ToString(); ZWL.Common.PublicMethod.SetSessionValue("WenJianList", Model.FuJianStr); ZWL.Common.PublicMethod.BindDDL(this.CheckBoxList1, ZWL.Common.PublicMethod.GetSessionValue("WenJianList")); this.txtShenPiContent.Text=Model.ShenPiContent.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.ERPXueXiXinDe Model = new ZWL.BLL.ERPXueXiXinDe(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblXinDeTitle.Text = Model.XinDeTitle.ToString(); this.lblXinDeContent.Text = Model.XinDeContent.ToString(); this.lblFuJianStr.Text = ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(), "../UpLoadFile/"); this.TextBox1.Text = Model.ShenPiContent.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.lblXinDeTitle.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.ERPXueXiXinDe Model = new ZWL.BLL.ERPXueXiXinDe(); Model.GetModel(int.Parse(Request.QueryString["ID"].ToString())); this.lblXinDeTitle.Text=Model.XinDeTitle.ToString(); this.lblXinDeContent.Text=Model.XinDeContent.ToString(); this.lblFuJianStr.Text=ZWL.Common.PublicMethod.GetWenJian(Model.FuJianStr.ToString(),"../UpLoadFile/"); this.lblShenPiContent.Text=Model.ShenPiContent.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.lblXinDeTitle.Text + ")"; MyRiZhi.IpStr = System.Web.HttpContext.Current.Request.UserHostAddress.ToString(); MyRiZhi.Add(); } }