lt_updateHF.aspx.cs
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:2k
源码类别:

OA系统

开发平台:

C#

  1. using System;
  2. using System.Data;
  3. using System.Configuration;
  4. using System.Collections;
  5. using System.Web;
  6. using System.Web.Security;
  7. using System.Web.UI;
  8. using System.Web.UI.WebControls;
  9. using System.Web.UI.WebControls.WebParts;
  10. using System.Web.UI.HtmlControls;
  11. using COM.OA.BLL;
  12. using COM.OA.Entity;
  13. public partial class linminchao_bbs_lt_updateHF : System.Web.UI.Page
  14. {
  15.     protected void Page_Load(object sender, EventArgs e)
  16.     {
  17.         users loginuser = Session["loginuser"] as users;
  18.         if (loginuser == null)
  19.         {
  20.             this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../../login.aspx"));
  21.         }
  22.         else
  23.         {
  24.             if (!IsPostBack)
  25.             {
  26.                 int bbs_id = Int32.Parse(this.Request["bbs_id"]);
  27.                 int id = Int32.Parse(this.Request["id"]);
  28.                 bbsrevert br = bbsrevertBLL.Select(id);
  29.                 this.hf.Value = id.ToString();
  30.                 this.bt.Value = this.Request["bt"];
  31.                 this.FreeTextBox1.Text = br.br_revertcontent;
  32.                 Session.Add("hfid", id);
  33.             }
  34.         }
  35.         
  36.     }
  37.     protected void submit1_ServerClick(object sender, EventArgs e)
  38.     {
  39.         int hfid = Int32.Parse(Session["hfid"].ToString());
  40.         bbsrevert br = bbsrevertBLL.Select(hfid);
  41.         br.br_revertcontent = this.FreeTextBox1.Text;
  42.         int ii = bbsrevertBLL.Update(br);
  43.         if (ii < 0)
  44.         {
  45.             this.Response.Write(string.Format(GetRedirect.REDIRECT, "lt_lookOne.aspx?bbs_id=" + br.br_bbs_id + ""));
  46.         }
  47.     }
  48. }