Home > Software engineering >  About, the problem of net button
About, the problem of net button

Time:11-16

Background judgment button when landing in the.net allows top managers to see but you can't see that employees should be how to write about the hidden
Visible="False" I use this button, but either cannot see, or can't see,

CodePudding user response:

How to determine a user's "top management" or "employees"?

CodePudding user response:

reference 1/X - I - n reply:
how to judge whether a user is "top management" or "employees"?
is 1?? Top management can see all the buttons, she also can give other people permission, such as delete, she let others to see

CodePudding user response:

How to determine a user's "top management" or "employees"?

CodePudding user response:

The
reference X - I - n reply: 3/f
how to judge whether a user is "top management" or "employees"?
by permissions

CodePudding user response:

The
reference X - I - n reply: 3/f
how to judge whether a user is "top management" or "employees"?
the highest authority what all can see

CodePudding user response:

Can determine the user's identity is easy, if it is a top management, set the Visible=True, otherwise it is False,

CodePudding user response:

False can't quotes,
Write a method to judge whether the management, and then btnDelete Visible=IsManager (" username ")
Or a custom User class, for the login of the User to create a User object, btnDelete. Visible=User. IsManager

CodePudding user response:

But have you ever found that the current design is problematic, because see no see get this button, according to user's assigned permissions, rather than the user's role,
So you need to the user data list for this button to add a bit field, or simply create a permissions list, the corresponding is "button", "user", "whether the visible", a bit more professional practice is dedicated to create the corresponding level,

CodePudding user response:

reference X 8 floor - I - n reply:
but have you ever found that the current design is problematic, because see no see get this button, according to user's assigned permissions, rather than the user's role,
So you need to the user data list for this button to add a bit field, or simply create a permissions list, the corresponding is "button", "user", "whether the visible", a bit more professional practice is dedicated to create the corresponding level,
I have permission to watch

CodePudding user response:

That should do, after login, take to the user permissions, according to the permissions to display the button line ah,

CodePudding user response:

Without my permission list - this field now I'm bound by id to ids

CodePudding user response:

What is your problem?

CodePudding user response:

refer to 12th floor X - I - n reply:
what is your problem?
hidden book is now I have a question, is the man who landed only see information about yourself

CodePudding user response:

refer to 12th floor X - I - n reply:
what is your problem?
my question is now is lander can only see your personal information, button what's working, but the data how to hide

CodePudding user response:

What is architecture? The stand-alone client + database? Or CS?
Show only the personal information, show all people, access control, is the administrator can query all records, is ordinary users can only query records,

CodePudding user response:

reference X 15 floor - I - n reply:
what architecture? The stand-alone client + database? Or CS?
Show only the personal information, show all people, access control, is the administrator can query all records, is ordinary users can only query records,
is. Net

CodePudding user response:

reference X 15 floor - I - n reply:
what architecture? The stand-alone client + database? Or CS?
Show only the personal information, show all people, access control, is the administrator can query all records, is ordinary users can only query records,
problem solved thanks
  • Related