Click here to Skip to main content
15,880,503 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
In this assignment, you are required to develop a web application for an Employee System. This system consists of two main features: Employee salary and employee leave. The first feature (salary) gives detailed information of an employee’s salary including basic salary, allowances, and bonus. The second feature (leave) allows employees to retrieve information regarding their annual leave and get leave in case they need to do so.

Requirements:
• Employee class must be selected – show a message if not selected.
• Employee name must be selected – show a message if not selected.
• If an employee clicks on Give Bonus button, a message must be shown that says “You must be an admin”.
• If the bonus is not in the range of 2 to 6%, a message must be shown that says “The bonus must be in the range of 2 to 6%”.

so basically that's the project I have done it but am facing a problem with point number 3 which is If an employee clicks on Give Bonus button, a message must be shown that says “You must be an admin”.

What I have tried:

I have tried everything but am not able to connect them.

can someone help me fix the issue?
Posted
Updated 26-Mar-21 2:41am
Comments
CHill60 26-Mar-21 8:36am    
The "What I have tried:" section is for you to share your code that you are having problems with. Only then are we able to help you. We will not write this code for you.
Laith Abusaad 26-Mar-21 9:30am    
oh ok sorry, first time using.
CHill60 26-Mar-21 9:38am    
That's ok. You can use the "Improve question" link to update your post.
The more relevant information you put into your questions, the better the chance that someone can help you :-)
PIEBALDconsult 26-Mar-21 10:01am    
What does your database look like?

1 solution

Are you maintaining the logged-in user type? I mean Admin or Employee? You can assign a group to the logged-in user and then check it on the click event of button control.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900