Hl.WebMain/AdmPage/Sys/Menu/List.aspx.cs

(开头部分) 2KB

这里只显示每个文件的开头 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 Hl.Code;
using Hl.WebMain.Common;

namespace Hl.WebMain.AdmPage.Sys.Menu
{
    public partial class List : System.Web.UI.Page
    {
        #region "全局变量"

        public string InsertPath = SystemHelper.GetCurrentPagePath() + "Edit.aspx?op=Insert";//增加-路径
        public string DeletePath = SystemHelper.GetCurrentPagePath() + "List.aspx?op=Delete";//删除-路径
        public string UpdatePath = SystemHelper.GetCurrentPagePath() + "Edit.aspx?op=Editor";//修改-路径
        public string GoLookPath = SystemHelper.GetCurrentPagePath() + "Look.aspx?op=Editor";//查看-路径
        public string SelectPath = "/Handler/PubHandler.ashx?op=SelectTreeList&TopNum=&Fields=*&TbJoin=&TbName=AdmMenu&SWhere=&SortBy=SortNumber ASC";//查询-路径
        public string ParmString
        {
            get
            {
                return "&InsertPath=" + HttpUtility.UrlEncode(InsertPath) +
                       "&DeletePath=" + HttpUtility.UrlEncode(DeletePath) +
                       "&UpdatePath=" + HttpUtility.UrlEncode(UpdatePath) +
                       "&GoLookPath=" + HttpUtility.UrlEncode(GoLookPath) +
                       "&RandomNows=" + new Random().Next(1000, 9999).ToString();
            }
        }

        #endregion

        #region "页面加载"

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                Test_Perm();
            }
        }

        #endregion

        #region "绑定数据"

        protected void Test_Perm()
        {
            WebPermHelper.TestMenu((int)WebMenuKeyId.系统菜单管理,
                                   new List<WebPermOperItem>() { 
                                      new WebPermOperItem(ToolOperInsert,"新增"),
                                      new WebPermOperItem(ToolOperDelete,"删除"),
                                      new WebPermOperItem(ToolOperUpdate,"编辑"),
                                   }
            );
        }

后面还有 3 行代码,购买后查看完整代码

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

AI 解读 AI

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

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