. Net general permission management system

Source: Internet
Author: User

In spring, the acegi framework makes general permission management very good, but it is very difficult to implement the same functions under. net,
Although. Net also has a spring framework, it needs to be universal, and the pressure is very high when there are not enough manpower. I have been absent for more than a year.
I have done. net. I have made several more projects in Java this year. I hope that the Language C #, which is more elegant than Java, will not make me suffer.
Goals:
The company's organizational structure is combined with permission management, with the granularity of data rows.

So far, the permission configuration function has been completed, but the judgment on the permissions of logon users has not yet been designed. Now I have an idea:
  1. Create a Superform so that all winforms inherit it;
  2. There is a method in Superform, which is based on the user's permissions, and then adds, deletes, queries, and changes in its subwindow for authorization. If you have the permissions, it can be used by clicking the button, otherwise it will not be available;
  3. The onload event of the sub-window calls this method in the parent window to set whether the button is available or not.

There is a problem here, that is, the add, delete, query, and modify button names in each sub-window are different. Although currently, our system uses custom controls for the buttons, its type is controllable, but it is difficult to control it if it is menu.
For the menu, it seems that the logo should be written to death as the initial data of the database.
I want to use AOP to intercept acegi, but because there are too many winforms, if all are managed using spring, it will consume a lot of system resources, currently, both the optical business method and Dao account for dozens of MB of resources.

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.