lt_kuaisu.aspx.cs
资源名称:OASystem.rar [点击查看]
上传用户:lishan0805
上传日期:2019-12-08
资源大小:12048k
文件大小:1k
源码类别:
OA系统
开发平台:
C#
- using System;
- using System.Data;
- using System.Configuration;
- using System.Collections;
- using System.Web;
- using System.Web.Security;
- using System.Web.UI;
- using System.Web.UI.WebControls;
- using System.Web.UI.WebControls.WebParts;
- using System.Web.UI.HtmlControls;
- using COM.OA.Entity;
- using COM.OA.BLL;
- public partial class linminchao_bbs_lt_kuaisu : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- users loginuser = Session["loginuser"] as users;
- if (loginuser == null)
- {
- this.Response.Write(string.Format(GetRedirect.ALLREDIRECT, "../../login.aspx"));
- }
- else
- {
- bbsrevert bbsr = new bbsrevert();
- int lll = Int32.Parse(this.Request.QueryString["bbs_id"]);
- bbsr.br_revertcontent = this.Request.Form["content"];
- bbsr.br_u_id = loginuser.u_id;
- bbsr.br_bbs_id = Int32.Parse(this.Request.QueryString["bbs_id"]);
- bbsr.br_reverttime = DateTime.Now;
- int kk = bbsrevertBLL.Insert(bbsr);
- if (kk < 0)
- {
- this.Response.Write(string.Format(GetRedirect.REDIRECT, "lt_lookOne.aspx?bbs_id=" + lll + ""));
- }
- }
- }
- }