Account/UserLimit.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using System.Data.SqlClient;
namespace 客户订单管理2
{
public partial class UserLimit : System.Web.UI.Page
{
public UserLimit_表 部门表 = new UserLimit_表();
public UserLimit_表 用户表 = new UserLimit_表();
public UserLimit_表 级别表 = new UserLimit_表();
int i = 0;
protected void Page_Load(object sender, EventArgs e)
{
#region 权限检查
if (Session["login"] == null || Session["login"].ToString() != "true")
{
Response.Redirect("/Default.aspx");
return;
}
if (Session["userclass"] == null || Session["userclass"].ToString().Trim() != "超级用户")
{
Response.Write("<script>alert('缺少访问权限 !(只有超级用户才能使用此功能)');</script>");
Response.Write("<script>history.go(-1);</script>");
return;
}
#endregion
Session["pageTitle"] = "";
部门表.查询("select 部门名称 from 系统_部门 order by 部门编码");
用户表.查询("select 用户名称 from 系统_用户 where 部门名称='" + 部门表.Rows[i]["部门名称"] + "' order by 用户编码");
级别表.查询("select 用户级别 from 系统_级别");
if (页码.Value == "")
{
系统.系统日志(Session["username"].ToString(), "用户权限管理");
页码.Value = "0";
}
}
}
public class UserLimit_表 : DataTable
{
string 连接 = System.Configuration.ConfigurationManager.ConnectionStrings["默认连接_3HK0R6GAS"].ConnectionString;
public int count = -1;
SqlCommandBuilder scb;
SqlDataAdapter 数据适配器;
SqlConnection 数据连接;
SqlCommand sqlCmd = new SqlCommand();
public int 打开(string sql)
{
数据连接 = new SqlConnection(连接);
数据适配器 = new SqlDataAdapter();
数据适配器.SelectCommand = new SqlCommand(sql, 数据连接);
scb = new SqlCommandBuilder(数据适配器);
后面还有 98 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。