Web8/_Code/Admin/AdminBase.cs

(开头部分) 1KB

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

using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Tc
{
    public class AdminBase : System.Web.UI.Page
    {
        #region 当前登陆的管理员

        private int? _MyId;

        /// <summary>
        /// 当前登陆用户id
        /// </summary>
        protected int MyId
        {
            get
            {
                if (!_MyId.HasValue)
                {
                    _MyId = LibAdmin.GetCurrentAdmin().ID;
                }

                return _MyId.Value;
            }
        }

        private Tc.Model.TcAdmin _My;

        /// <summary>
        /// 当前登陆用户信息
        /// </summary>
        protected Tc.Model.TcAdmin My
        {
            get
            {
                if (_My == null)
                    _My = LibAdmin.GetCurrentAdmin();
                return _My;
            }
        }

        #endregion 当前登陆的管理员

        protected override void OnInit(EventArgs e)
        {
            base.OnInit(e);
            int id = MyId;
        }

        /// <summary>
        ///  弹出对话框
        /// </summary>
        /// <param name="message">提示信息</param>
        /// <param name="tourl">对话框关闭后的,页面跳转地址</param>
        protected void Alert(string message)
        {
            Alert(message, "");
后面还有 18 行代码,购买后查看完整代码

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

AI 解读 AI

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

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