xmlerWeb/Manage/Manage.Master.cs

(完整代码) 1KB

using System;
using System.Collections;
using System.Configuration;
using System.Data;

using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;
using xmler.xmlerBLL;
using xmler.xmlerModel;

namespace xmler.Web.Manage
{
    public partial class Manage : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindMenuList();
        }

        private void BindMenuList()
        {
       

            BasicResourceInfoBLL bll = new BasicResourceInfoBLL();
            UserMaster model = new UserMaster();
            model = Common.LoginUtil.GetUserMasterFromCookie(Request.Cookies[Common.PublicConst.ManageCookieName], "manage");
            DataSet ds = bll.GetList(model.RoleID, "");
            //获取菜单权限资源
            DataRow[] arrrow0 = ds.Tables[0].Select("URL<>''", "ResourceOrder asc");
            DataTable dt = ds.Tables[0].Clone();
            foreach (DataRow tempObjRow in arrrow0)
            {
                dt.ImportRow(tempObjRow);
            }
            rptlist.DataSource = dt;
            rptlist.DataBind();
            //获取命令权限资源
            DataRow[] arrrow = ds.Tables[0].Select("URL='' or URL is null");
            string permissions = "";
            foreach (DataRow tempObjRow in arrrow)
            {
                permissions += tempObjRow["EresourceName"].ToString();
            }
            model.Permissions = permissions;
            Common.LoginUtil.WriteCookie(model);
        }
    }
}

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

AI 解读 AI

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

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