Home > Back-end >  Delphi enters sells saves the employee permissions problems?
Delphi enters sells saves the employee permissions problems?

Time:11-11

It took me a permission table to store employees operation privileges, such as adding bills, change bills, delete the billing,
Allowed in table form is 1, otherwise 0, so I want to ask is:
Bill bill if need to add, modify, delete the bill button in judging whether the employees have permission?
If so, there are N in a software more buttons, each menu is to determine, under the otherwise do, did the teacher give some experience! Thank you very much!

CodePudding user response:

Simple method for each permission to do a set of interface, the user login according to the limits of his power to choose a set, of course, involving important data modification and deletion or want instant verify permissions,

CodePudding user response:

1, permissions list, is what can access control software, such as menu, button, such as permissions have serial number and name

2, the character sheet, it is the people in the same permissions as a character

3, role authorization table, the table record what role permissions, this table is the permissions and permissions corresponding just 1 point, are here to add a few role several permissions



1, access number written in the main window menu hint or on the tag, software to enter, just read from a role authorization table corresponding to the role of authority, the main window menu one by one to role permission lookup to have this permission, have showed that, there is no
will not display2, after the functional window, each button also find permissions from the role authorization, has showed, no don't show, this can be done in the baseform, after the inheritance can automatically judge authority
  • Related