zcsc.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.BLL;
  12. using COM.OA.Entity;
  13. using System.Collections.Generic;
  14. public partial class wc_zcgl_zcsc : System.Web.UI.Page
  15. {
  16.     protected void Page_Load(object sender, EventArgs e)
  17.     {
  18.         users loginuser = Session["loginuser"] as users;
  19.         if (loginuser == null)
  20.         {
  21.             this.Response.Write(string.Format(GetRedirect.REDIRECT, "../login.aspx"));
  22.         }
  23.         else
  24.         {
  25.             int upid = Int32.Parse(this.Request["id"]);
  26.             int i = assetmanageBLL.Delete(upid);
  27.             if (i < 0)
  28.             {
  29.                 this.Response.Write(string.Format(GetRedirect.REDIRECT, "zcgl.aspx"));
  30.             }
  31.             else
  32.             {
  33.                 this.Response.Write(string.Format(GetRedirect.WINALERT, "删除失败!"));
  34.                 this.Response.Write(string.Format(GetRedirect.REDIRECT, "zcgl.aspx"));
  35.             }
  36.         }
  37.     }
  38. }