wenjianshanchu.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.BLL;
- using COM.OA.Entity;
- using System.Collections.Generic;
- public partial class qs_wenjian_wenjianshanchu : System.Web.UI.Page
- {
- protected void Page_Load(object sender, EventArgs e)
- {
- int fid = Int32.Parse(this.Request.QueryString["f_id"]);
- files fs = filesBLL.Select(fid);
- if (fs.f_isreturn == 0)
- {
- filesBLL.Delete(fid);
- this.Response.Write(string.Format(GetRedirect.WINALERT, "删除成功"));
- this.Response.Write(string.Format(GetRedirect.REDIRECT, "jieshouwenjian.aspx"));
- }
- else
- {
- string where = "fre_f_id='{0}'";
- where = string.Format(where, fid);
- IList<filerevert> list = filerevertBLL.Select(where);
- filerevert ft = list[0];
- int hid = ft.fre_id;
- filerevertBLL.Delete(hid);
- filesBLL.Delete(fid);
- this.Response.Write(string.Format(GetRedirect.WINALERT, "清除回复,并删除文件"));
- this.Response.Write(string.Format(GetRedirect.REDIRECT, "jieshouwenjian.aspx"));
- }
- }
- }