QiFeng.ZWY.MagWeb/Controllers/JurisdictionController.cs

(开头部分) 21KB

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

using Newtonsoft.Json;
using QiFeng.LMSD.Bll;
using QiFeng.LMSD.Model;
using QiFeng.LMSD.Model.Dto;
using QiFeng.LMSD.Utility;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace QiFeng.LMSD.MagWeb.Controllers
{
    [Authorization]
    public class JurisdictionController : BaseController
    {
        private readonly McDepartmentsBll _mcDepartmentsBll = new McDepartmentsBll();
        private readonly McRolesBll _mcRolesBll = new McRolesBll();
        private readonly McAccountsBll _mcAccountsBll = new McAccountsBll();
        private readonly JurisdictionBll _jurisdictionBll = new JurisdictionBll();
        private readonly ModulesBll _modulesBll = new ModulesBll();

        #region 部门管理
        /// <summary>
        /// 部门列表
        /// </summary>
        /// <returns></returns>
        // GET: Jurisdiction
        [PermissionFilter]
        public ActionResult DepartmentList()
        {
            return View();
        }

        /// <summary>
        /// 分页获取数据
        /// </summary>
        /// <param name="draw"></param>
        /// <param name="start"></param>
        /// <param name="length"></param>
        /// <returns></returns>
        [HttpPost]
        [QiFeng.LMSD.Model.Attributes.Skip]
        public JsonResult DepartmentListing(int draw, int start, int length)
        {
            int order;
            int.TryParse(Request["order[0][column]"], out order);
            var direction = Request["order[0][dir]"];
            var orderByColumns = new[] { "DepartmentName", "UpdateDate" };
            var search = Request["search[value]"];
            var pageIndex = start / length + 1;

            var theList = _mcDepartmentsBll.GetPagingList(draw, pageIndex, length, SqlSafe(search),
                orderByColumns[order] + " " + direction, CurrentUser.IsMagAccount, McModuleList);


            var jsonResult = Json(theList);
            jsonResult.MaxJsonLength = int.MaxValue;

            return jsonResult;
后面还有 579 行代码,解锁后查看完整代码

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

AI 解读 AI

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

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