liebieshanchu.aspx.cs

来自「OA自动化办公系统,就是OA自动化办公系统」· CS 代码 · 共 47 行

CS
47
字号
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;
using System.Collections.Generic;

public partial class qs_wenjian_liebieshanchu : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string id=this.Request.QueryString["ftype_id"];
        int fid = Int32.Parse(id);

        string where = "f_ftype_id={0}";
        where = string.Format(where, fid);
        IList<files> list = filesBLL.Select(where);
        foreach (files fs in list) 
        {
            fs.f_ftype_id = 1;
            filesBLL.Update(fs);
        }

        if (fid == 1)
        {
            this.Response.Write(string.Format(GetRedirect.WINALERT, "其他类别为默认类不能删除"));
            this.Response.Write(string.Format(GetRedirect.REDIRECT, "liebieguanli.aspx"));

        }
        else
        {

            filetypeBLL.Delete(fid);
            this.Response.Write(string.Format(GetRedirect.REDIRECT, "liebieguanli.aspx"));
        }


    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?