Admin/system/!/rms/module/Default.aspx.cs

(开头部分) 4KB

这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。

using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

[UAP.Role]
public partial class __uap_Module_Default : UAP.UI.TreePage
{
    protected override void OnInit(EventArgs e)
    {
        if (!UAP.Role.isTopAdmin)
        {
            addss.Visible = false;
            edits.Visible = false;
        }
        base.OnInit(e);
    }

    #region Tree

    protected override string Table
    {
        get
        {
            return "uap_module";
        }
    }

    protected override string Condition
    {
        get
        {
            if (UAP.Role.isTopAdmin) return "";
            string[] path = DataBase.getColumn(UAP.Role.Module.LegalSqlFromRole(""), 0);
            string[] _sysid_s = UAP.Data.MicrosoftSQL._SYSID_.getSYSIDenum(path, 0);
            return "isactive>0 and _sysid_ in ('" + string.Join("','", _sysid_s) + "')";
        }
    }

    protected override string Columns
    {
        get
        {
            return "i=id,s=name,p=iparent,t=itype,a=isactive,g=tag";
        }
    }

    #endregion;

    public int del(int id)
    {
        return DataBase.Procedure("uap_module$delete", new { id = id });
    }

    #region Edit

    public void edit()
    {
        UAP.JSON x = UAP.JSON.NEW.Include(Request.QueryString).CheckType<int>("itype");
后面还有 129 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。