KingNET.PageLib/AdminLoginPageBase.cs

(开头部分) 5KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DMSFrame;
using System.Web;
using KingNET.PageLib.Helper;

namespace KingNET.PageLib
{
    public class AdminLoginPageBase : AdminPageBase, IAdminLoginPageBase
    {
        public AdminLoginPageBase()
        {
            this.Load += new System.EventHandler(this.CheckLogin);
        }
        private DataSet _UserRights = null;
        /// <summary>
        /// 当前用户功能权限、数据权限、组织机构信息
        /// </summary>
        /// <value>The user rights.</value>
        public DataSet UserRights
        {
            get
            {
                if (_UserRights == null)
                {
                    string strAppPath = ConfigHelper.ConfigPath + "\\CertifyPool";
                    string strPoolName = System.IO.Path.Combine(strAppPath, UserID.ToString() + ".cer");
                    _UserRights = new DataSet();
                    _UserRights.ReadXml(strPoolName);
                }
                return _UserRights;
            }
        }
        /// <summary>
        /// 当前用户ID
        /// </summary>
        public int UserID
        {
            get { return userTicket.UserID; }
        }

        /// <summary>
        /// 当前用户?
        /// </summary>
        public string UserName
        {
            get
            {
                return userTicket.UserName;
            }
        }
        private AdminTicket _UserTicket;
        /// <summary>
        /// 用户票据
        /// </summary>
        /// <value>The ticket.</value>
        protected AdminTicket userTicket
后面还有 105 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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