Views/UserCenter/ModulePerms.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;
using MicroDBHelper;
using MicroDTHelper;
using MicroPublicHelper;
using MicroAuthHelper;
using Newtonsoft.Json.Linq;
public partial class Views_UserCenter_ModulePerms : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
//动作Action 可选值Add、Modify、View
string Action = MicroPublic.GetFriendlyUrlParm(0);
txtAction.Value = Action;
string ShortTableName = MicroPublic.GetFriendlyUrlParm(1);
txtShortTableName.Value = ShortTableName;
string ModuleID = MicroPublic.GetFriendlyUrlParm(2);
txtMID.Value = ModuleID;
//检查是否已经登录和页面唯一识别是否一致(ShortTableName)
MicroAuth.CheckAuth(ModuleID, ShortTableName);
//检查是否有页面浏览权限
MicroAuth.CheckBrowse(ModuleID);
if (!MicroAuth.CheckPermit(ModuleID, "3"))
{
btnOpenLink.Disabled = true;
btnOpenLink.Attributes.Add("class", "layui-btn layui-btn-sm layui-btn-disabled");
btnSave.Disabled = true;
btnSave.Attributes.Add("class", "layui-btn layui-btn-disabled");
btnSetDefault.Disabled = true;
btnSetDefault.Attributes.Add("class", "layui-btn layui-btn-disabled");
btnRecovery.Disabled = true;
btnRecovery.Attributes.Add("class", "layui-btn layui-btn-disabled");
}
}
protected string GetModulePerm()
{
DataTable ModuleDT = MicroDataTable.GetDataTable("Mod");
DataTable PermDT = MicroDataTable.GetDataTable("Perm");
DataTable ModulePermDT = MicroDataTable.GetDataTable("MPerm");
string Str = string.Empty;
try
{
//*****标题部分*****
后面还有 80 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。
