예제 #1
0
        /// <summary>
        /// 权限设置
        /// </summary>
        /// <param name="roleId"></param>
        /// <returns></returns>
        public ActionResult Permissions(int roleId)
        {
            ViewBag.ModuleTree = moduleService.GetModuleTree(new Qz.Core.Entity.Request <ViewModel.Tree>()
            {
                Obj = new ViewModel.Tree()
                {
                    ParentId = -1
                }
            });

            ViewBag.RoleModule = moduleService.GetModuleByRole(new Qz.Core.Entity.Request <Qz.GPS.DirectService.Parameter.Module.ByRole>()
            {
                Obj = new DirectService.Parameter.Module.ByRole()
                {
                    RoleId = roleId
                }
            });

            ViewBag.Role = roleId;

            return(View());
        }