Master.CanYinWu.Web/Controllers/AdminController.cs

(开头部分) 30KB

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

using Master.CanYinWu.BLL;
using Master.CanYinWu.Entity;
using Master.CanYinWu.Utility;
using Master.CanYinWu.Utility.Infrastructure;
using Master.CanYinWu.Web.App_Start.Filter;
using System;
using System.Collections.Generic;
using System.Drawing;
using System.Linq;
using System.Threading.Tasks;
using System.Web.Mvc;
using Master.CanYinWu.Utility.Cache;
using System.Web;
using Master.CanYinWu.DAL.System;
using System.Net.Mail;
using Master.CanYinWu.DAL.Customer;
using static Master.CanYinWu.Utility.Enums;

namespace Master.CanYinWu.Web.Controllers
{
    [LoginCheck]
    public class AdminController : BaseController
    {
        private AdminBLL bll = new AdminBLL();
        private OperationLogBLL logBll = new OperationLogBLL();
        private StoreBLL storeBll = new StoreBLL();
        private MemberBLL memberBLL = new MemberBLL();
        private OrderBLL orderBLL = new OrderBLL();
        private CustomerTypeLevelDAL typeLevelDal = new CustomerTypeLevelDAL();
        private CategoryBLL categoryBLL = new CategoryBLL();
        private SupplierBLL supplierBLL = new SupplierBLL();


        /// <summary>
        /// 推送的客户列表
        /// </summary>
        /// <param name="messageId"></param>
        /// <returns></returns>
        public ActionResult SendUser(int messageId=0)
        {
            ViewBag.MessageId = messageId;
            return View();
        }
        

        // GET: Admin   
        #region 默认首页
        public async Task<ActionResult> Index()
        {
            ViewBag.ParentNameList = await new MenuBLL().GetParentList();
            var admin = OperatorProvider<OperatorModel>.Provider.GetCurrentModel();
            if (admin == null)
            {
                return HttpNotFound();
            }
            int roleId = 0;
            if (admin.RoleId == 0)
            {
                var model = await bll.GetModel(admin.AdminId);
                if (model == null)
后面还有 728 行代码,购买后查看完整代码

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

AI 解读 AI

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

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