本章主要讲述Web权限管理系统的项目架构,及开发中需要的基本类和相关的CSS,JS文件。

1.1系统结构

本系统搭建开发工具为Visual Studio 2012,采用ASP.NET MVC 4.0技术开发。系统的框架图如下所示:

Web应用程序系统的多用户权限控制设计及实现-项目架构【3】

特别说明:系统需要用到的CSS文件在Content目录下,公有的JS文件在Scripts目录下。其下载链接为:https://files.cnblogs.com/files/wlandwl/CSS-JS.zip

系统页面前台展示主要运用EasyUI1.4.3的展示控件及其扩展控件,引用到Content目录。系统后台管理主要通过区域的方式开发,运用区域管理可以模块化的开发系统的功能,有助于中大型系统在后期的开发和维护。

1.2系统共有类

1.2.1数据表对应Model

Web应用程序系统的多用户权限控制设计及实现-项目架构【3】

AccountInfo.cs,主要管理账户的基本信息,及可以访问的目录信息,页面信息。

 1 using System;
 2 using System.Collections.Generic;
 3 using System.Linq;
 4 using System.Text;
 5 
 6 namespace Models
 7 {
 8     /// <summary>
 9     /// 用户信息
10     /// </summary>
11     public class AccountInfo
12     {
13         public string OperatorId { get; set; }   //用户ID
14         public string OperatorName { get; set; }  //用户名字
15         public string AliasName { get; set; }  //别名
16         public string Sex { get; set; }  //性别
17         public int IsOnStaff { get; set; }
18         public string OperatorGroupId { get; set; }   //用户组ID
19         public string OperatorGroupName { get; set; }   //用户组名称
20         public IList<Catalog> NavigationList { get; set; }  //用户能够访问的一级导航列表
21         public IList<Catalog> RightList { get; set; }  //用户权限列表    
22     }
23 }
AccountInfo.cs

相关文章:

  • 2021-08-03
  • 2021-11-09
  • 2021-12-05
  • 2021-08-17
猜你喜欢
  • 2021-07-26
  • 2021-11-23
  • 2021-10-06
  • 2021-08-10
  • 2021-06-13
  • 2022-01-12
  • 2022-02-01
相关资源
相似解决方案