QSMP.Web/Areas/System/Controllers/OrganizeController.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using QSMP.Web.Controllers;
using QSMP.Web.Filters;
using QSMP.Logic.Sys;
using QSMP.Entity.Sys;
using QSMP.Utility.Extension;
using QSMP.Utility.Format;
using QSMP.Utility.ResponseModels;
using QSMP.Utility.Operator;
namespace QSMP.Web.Areas.System.Controllers
{
public class OrganizeController : BaseController
{
private SysOrganizeLogic organizeLogic;
public OrganizeController()
{
organizeLogic = new SysOrganizeLogic();
}
[HttpGet, AuthorizeChecked]
public ActionResult Index()
{
return View();
}
[HttpPost, AuthorizeChecked]
public ActionResult Index(int pageIndex, int pageSize, string keyWord)
{
int totalCount = 0;
var pageData = organizeLogic.GetList(pageIndex, pageSize, keyWord, ref totalCount);
var result = new LayPadding<SysOrganize>()
{
result = true,
msg = "success",
list = pageData,
count = totalCount//pageData.Count
};
return Content(result.ToJson());
}
[HttpGet, AuthorizeChecked]
public ActionResult Form()
{
return View();
}
[HttpPost, AuthorizeChecked, ValidateAntiForgeryToken]
public ActionResult Form(SysOrganize model)
{
if (model.ParentId == "root" || model.ParentId == null)
{
model.ParentId = "0";
if (model.Type != 0) return Error("根组织只可以是公司类型");
}
后面还有 85 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
