Account/UserLimitList.aspx.cs
(开头部分) 6KB这里只显示每个文件的开头 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 UserLimitList : System.Web.UI.Page
{
public UserLimitList_表 权限表 = new UserLimitList_表();
protected void Page_Load(object sender, EventArgs e)
{
#region 权限检查
if (Session["login"] == null || Session["login"].ToString() != "true")
{
Response.Write("<script>top.location.href='../Default.aspx';</script>");
Response.End();
return;
}
if (Session["userclass"] == null || Session["userclass"].ToString().Trim() != "超级用户")
{
Response.Write("<script>alert('缺少访问权限 !(只有超级用户才能使用此功能)');</script>");
Response.Write("<script>history.go(-1);</script>");
return;
}
#endregion
if (Request.QueryString["UserName"] == "")
{
权限表.查询("select * from 系统_权限 where 系统标识='BM_3HK0R6GAS' and 用户名称='" + TextBox1.Text + "'");
}
else
{
TextBox1.Text = Request.QueryString["UserName"];
权限表.查询("select * from 系统_权限 where 系统标识='BM_3HK0R6GAS' and 用户名称='" + System.Web.HttpUtility.UrlDecode(Request.QueryString["UserName"]) + "'");
}
权限表.DefaultView.Sort = "模块名称 ASC";
信息提示.Value = "";
}
public string isChecked(string modName)
{
if (权限表.DefaultView.Count > 0)
{
if (权限表.DefaultView.Find(modName) >= 0)
{
return "checked";
}
else
{
return "";
}
}
else
{
后面还有 143 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。