code/Athena0.0.1/Web/Areas/SystemManage/Controllers/RoleController.cs
(开头部分) 19KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using Athena.model;
using Athena.basedal;
using Athena.Idal;
using Athena.dal;
using Athena.tool.Code;
using Web.Controllers.JqGrid;
using Athena.common.Util.WebControl;
using Athena.bll;
using Web.Models;
//项目名称:Athena标准开发框架
//版本:0.0.1
//开发团队成员:周庆 王露 张婷婷 陈祚松 张梦丽 艾美珍 胡凯雨 陈兰兰 夏萍萍 康文洋 易传佳
//模块及代码页功能描述:角色控制器(周庆)
//最后修改时间:2018-01-25
//修改日志:
//2017-12-19 新增前端为ACE相关的方法(王露)
namespace Web.Areas.SystemManage.Controllers
{
public class RoleController : WebController
{
private Context db = new Context();
public RoleController()
{
#region BootstrapTemplate
this.noauth_actions.Add("RoleForm");
this.noauth_actions.Add("RoleGetGridJson");
this.noauth_actions.Add("RoleDetails");
this.noauth_actions.Add("RoleGetFormJson");
this.noauth_actions.Add("RoleSubmitForm");
this.noauth_actions.Add("RoleDeleteForm");
this.noauth_actions.Add("RolecopyAndPasteForm");
this.noauth_actions.Add("RoleGetPermissionTree");
this.noauth_actions.Add("RoleActionAuthorityTree");
#endregion
#region ACE
this.noauth_actions.Add("RoleIndex");
this.noauth_actions.Add("RoleGetModels");
this.noauth_actions.Add("RoleSaveRoleResourceMap");
this.noauth_actions.Add("RoleSaveRoleActionMap");
this.noauth_actions.Add("RoleAdd");
this.noauth_actions.Add("RoleUpdate");
this.noauth_actions.Add("RoleDelete");
this.noauth_actions.Add("RoleGetPermissionActionTree");
this.noauth_actions.Add("RoleGetACEPermissionTree");
#endregion
}
public override ActionResult Index()
{
if (this.ctx.Session["accctx"] != null)
{
this.ViewBag.actions = ((AccountsPrincipal)this.ctx.Session["accctx"]).Actions.Where(a => a.controlername == "User").Where(a => a.actiontype == 0).ToList<action>(); ;
List<action> actionss = ((AccountsPrincipal)this.ctx.Session["accctx"]).Actions.Where(a => a.controlername == "User").Where(a => a.actiontype == 0).ToList<action>(); ;
后面还有 423 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 积分/个。 规则说明
AI 解读
登录后可用,每次 10 积分,解读结果公开显示在下面。
还没有人解读过这个文件。
