wenjianshanchu.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 qs_wenjian_wenjianshanchu : System.Web.UI.Page
  15. {
  16.     protected void Page_Load(object sender, EventArgs e)
  17.     {
  18.         int fid = Int32.Parse(this.Request.QueryString["f_id"]);
  19.         files fs = filesBLL.Select(fid);
  20.         if (fs.f_isreturn == 0)
  21.         {
  22.             filesBLL.Delete(fid);
  23.             this.Response.Write(string.Format(GetRedirect.WINALERT, "删除成功"));
  24.             this.Response.Write(string.Format(GetRedirect.REDIRECT, "jieshouwenjian.aspx"));
  25.         }
  26.         else 
  27.         {
  28.             string where = "fre_f_id='{0}'";
  29.             where = string.Format(where, fid);
  30.             IList<filerevert> list = filerevertBLL.Select(where);
  31.             filerevert ft = list[0];
  32.             int hid = ft.fre_id;
  33.             filerevertBLL.Delete(hid);
  34.             filesBLL.Delete(fid);
  35.             this.Response.Write(string.Format(GetRedirect.WINALERT, "清除回复,并删除文件"));
  36.             this.Response.Write(string.Format(GetRedirect.REDIRECT, "jieshouwenjian.aspx"));
  37.         }
  38.         
  39.         
  40.     }
  41. }