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

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.Entity;
  12. using COM.OA.BLL;
  13. using System.Collections.Generic;
  14. public partial class rc_rc_notedelete : System.Web.UI.Page
  15. {
  16.     protected void Page_Load(object sender, EventArgs e)
  17.     {
  18.         COM.OA.Entity.users loginuser = Session["loginuser"] as COM.OA.Entity.users;
  19.         if (loginuser == null)
  20.         {
  21.             Response.Write("<script language='javascript'>parent.document.location.href='../login.aspx'</script>");
  22.         }
  23.         else
  24.         {
  25.             //取传递的参数docid
  26.             int tid = Int32.Parse(this.Request.QueryString["id"].ToString());
  27.             int flag = timeorderBLL.Delete(tid);
  28.             if (flag == 0)
  29.             {
  30.                 this.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "<script>alert('删除失败!!');</script>");
  31.             }
  32.             this.ClientScript.RegisterClientScriptBlock(this.GetType(), "alert", "<script>alert('删除成功!!');</script>");
  33.             this.Response.Redirect("rc_notemanage.aspx");
  34.         }
  35.     }
  36. }