Welcome to the employee management system! This documentation is divided into many different parts. We recommended you get started with installation. This program is made in java with the JFrame GUI package. Feel free to view the code at github.com/ningsongshen/employee-management-system. It’s open source!
Coming soon
The homepage displays the name of the program. It also has a text area below with information that you, the user, can add about your company. Underneath, there are statistics that are automatically generated from all the employee information available.
These areas of the homepage may be blank or have zero values if employees have not been added or a previous file has not been loaded yet. Try adding an employee or a file to see the results.
To add an employee to the system, click on the ‘Add’ tab on the left hand side of the page. Many input fields will appear, and information is entered into these fields. You must specify whether this employee is full time or part time, and the available fields will update accordingly.
Employee Number - this is the reference number for the employee and cannot be changed
First Name - this is the first (and possibly middle) name of the employee
Last name - this is the last name/family name of the employee
Sex - this is the sex of the employee. Use the drop down to select one. There is an option for non-disclosure.
Location - this is the main work location/office that the employee works at. This can be changed if needed.
Deduct Rate - this is the total deductions for the salary in decimals. (to get percentage, multiply by 100%)
After this, you will need to decide whether or not this employee if full time or part time. Don’t worry, this is not a permanent decision and can be changed later. Fill in the required fields for the type of employee that this person will be.
Most fields are required. An error message will appear if you leave a field blank or input an invalid entry:
Once you click submit, a confirmation dialog will open:
Please review the information and ensure that it is accurate. Then, click ok and the employee will be added to the system.
Note: the employee number cannot be edited after creation.
To search for an employee in the system, click on the ‘Search’ tab on the left hand side of the page. There will be a text input field for the employee number, and a search bar underneath. After entering the employee number you wish to search for, click search. The text area underneath will update with the employee’s information.
If the employee does not exist, it will let you know that. Searching by employee names is not available yet.
The search page also has the functions to remove and edit the employee, see below.
Removing an employee is the second step in searching for the employee to remove, and so this feature is under the ‘search’ tab. After an employee’s information is retrieved, pressing the ‘Delete’ button will pop up a confirmation dialog, and clicking yes will remove the employee. Clicking no will cancel the operation.
Editing the employee is the second step in searching for the employee to edit, and so this feature is under the ‘search’ tab. After and employee’s information is retrieved, pressing the ‘edit’ button will pop up an editing dialog. This dialog looks nearly identical to the add employee page, and the fields that are available for editing can be modified. The type of employee and employee number cannot be changed, so if this information is to be changed, treat the employee as a new employee and add it to the system.
Viewing all employees can be done by clicking the ‘view all’ tab on the left hand side of the page. There will be a chart that is empty. To see the employees currently in the system, click the ‘refresh’ button at the bottom of the page. This action will update the table to reflect the current employees in the system. Make sure you click the ‘refresh’ button every time you access this page to ensure you have the latest information.
If when you click refresh there is nothing displayed, the likely issue is that there are no employees in the system or a file has not been loaded. Try adding some employees or loading in a previously used file.
If when you click refresh there is no change, you probably made no changes to any employees. Try making a change.
To save the entire system to a specific location, press ‘Save As’. A file chooser dialog will pop up, and ask for a location and a name. The program will then save the file at your specified location and name. To save the file again, choose the same file name and location to save. The ‘save’ function will be implemented in the near future. Make sure to save before you exit the program, or you risk the loss of all your data. To ensure data security and stability, please DO NOT edit the file by opening it in another program. There is a risk of changing the file format, and this could cause severe data loss.
Make sure you continuously save your file as you work, to ensure that there is no data loss. The developers are not responsible for any damages caused by using this program.
When a database is saved as, the hashtable data is stored in a text file with the suffix -[DO NOT EDIT].txt The information is in the following format:
employeeType/employeeNumber/firstName/lastName/sex/workLocation/deductionRate/yearlySalary/hourlyWage/hourPerWeek/weeksPerYear
Each attribute is separated with a / delimeter and each employee is stored on a new line. Note: the format of the information stored is generic for all employee types. any information that is not associated with a specific employee type will be saved as null (i.e. for a line that stores a full time employee, the attributes for hourlyWage, hoursPerWeek, and weeksPerYear will be saved as null).
Opening this file can help with debugging, and finding out what went wrong. You can also manually change the data in the file, but be careful to not modify the structure.
Click on File > Open. This will pop up a confirmation dialog warning of the deletion of the current information is the new system is opened. Make sure to save the current data before opening a new system. A file chooser will pop up once you acknowledge the warning, and choose the file with the name that you saved last time. It will have a [DO NOT EDIT] appended to it. This action will open your file and load it into the system. Then, you are ready to do everything else like before: add, save, modify, etc.
Please make sure the file is of the correct type, and is compatible with the employee management system. This means that it must have been created with the system, and should have the [DO NOT EDIT] appended to the end of it.
The home tab will be updates to display the file path of your archive file:
To update the program to its latest version, click on Help > Check for Updates. This action will automatically update the system if one is found. If no updates are found, you will be informed of that. The updates button will only check once every instance. To check for updates again, please restart the program.
The program has a unique and special feature that will allow you to customize the program. Adding your own customizations means adding your favourite colours, company colours, or adding colours that are easy on the eye. Currently, only the background colour customizer is available, and others will be added in future updates.
Currently, dark colours may hide text and that will hinder the operation of the program. In future updates, there will be an option for light colour text. For now, choose a lighter coloured background.
To open another instance of the program, press File > New. This is a completely new instance, and is unaffected by the original instance. Use it to work on multiple files concurrently. In fact, there are virtually unlimited instances that can be opened. To test it, try holding down Ctrl+N for 10 seconds.
To exit a window, click the X button on the top right. If you have multiple windows open and wish to exit all of them, go to File > Exit All Windows or press ctrl + shift + E. Please ensure that all your work is saved before you close, as it will not confirm your exit. This is to ensure a speedy and efficient exit.