Easyui permission system Crazy talent-Basic permission management framework

Source: Internet
Author: User

I have read this article about crazy talent-Basic permission management framework. It is a permission system developed by easyui but is not open-source. Just recently, the company has to do something small, so I have enough time to do it myself. The Database Design of permissions is not described in detail here. There are many articles in the garden. I have obtained this permission using su Fei's article. What he does is

1. One user can correspond to multiple roles, and one role can correspond to multiple users. Many-to-many relationship

2. One role can correspond to multiple functions, and one function can correspond to multiple roles. Many-to-many relationship

3. One user can correspond to multiple functions, and one function can correspond to multiple users. Many-to-many relationship

This is a little different from him. First, one user can only correspond to one role, and one role can correspond to multiple users. I did not search for permission design articles in the garden before, and I did not think much about it. Anyway, it is enough for small projects in the company.

Okay, my personal description is limited.

First, the first engineering drawing:

MVC3 uses a Japanese framework S2Dao.

Interface:

Administrator Group permission settings:

 

You can modify the permission to delete a new group.

Administrator list:

 

Add the Administrator account and associated groups here. In the previous table design, a user corresponds to all the functions of a group ..

Administrator permissions:

 

Set the permissions of an administrator here, and the permission range can be smaller than or equal to the permissions of the group. After the permissions are set, for example, the admin account has only the modified permissions on the list page. After you log on with the admin account, the add and delete buttons on the activation list will be removed. Achieve the purpose of functional control.

 

The corresponding add and delete buttons will not be deleted, and it took two days to make them simple and well-designed. It can only be used for systems with low requirements. That's it.

Source code: click here

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.