Latest Documentation
Latest Documentation
PURBANCHAL UNIVERSITY
[GOMENDRA MULTIPLE
COLLEGE]
CERTIFICATE
The undersigned certify that they have read and recommended end semester project entitled
“EMPLOYEE RECORD SYSTEM” submitted by [Rupesh Khatri] in partial fulfillment for
the degree of Bachelor of Computer application.
................................
(Bhawesh Kafle) Supervisor
Full designation: Organization:
...................................
...................................
(Rupak Khanal)
Campus Chief Full designation: Organization:
3
ACKNOWLEDGEMENT
I would like to express my greatest appreciation to the all individuals who have helped and
supported me throughout the project. I am thankful to my computer teacher for his ongoing
support during the project, from initial advice, and encouragement, which led to the final
report of this project. I would also like to thank my college computer lab.
I wish to thank my parents as well for their undivided support and interest who inspired me
and encouraged me to go my own way, without whom I would be unable to complete my
project.
At the end, I want to thank my friends who displayed appreciation to my work and motivated
me to continue my work.
4
ABSTRACT
This project report provides a detail of what I found out about the employee records system
and provides a theoretic layout of the electronic system that I designed at the end of the
project. The content of this report is summarized in various chapters.
Employee record system, is a simple system where you can record all the company employee
data such as Name, Age, Salary, etc., where the assigned admin can be the only one to have
access to this system. The assigned admin that is signed in this system is the only person that
can manage to Create, Read, Update, and Delete the employee's record. This system is already
making sure that all the data and files will be secured and can't be accessed by others that is
not authorized or registered as an admin user.
It saves lots of time and has no error in employees records hence preventing clashes between
HR Team and employees. So that both employer and employee can focus on their work to
develop their company.
5
TABLE OF CONTENTS
Acknowledgement I
Abstract II
Chapters 1: Introduction.................................................................................................. 6
2: Problem statement........................................................................................ 7
3: Objectives..................................................................................................... 8
4: Background study......................................................................................... 9
5: Requirement Document................................................................................ 10
6: System design............................................................................................... 11
7: Development................................................................................................. 13
8: Testing.......................................................................................................... 14
9: Project Result................................................................................................ 31
10: Future enhancements................................................................................... 33
11: Conclusion................................................................................................... 34
References: ..................................................................................................................... 35
6
INTRODUCTION
Every organization keeps a record of their staff. Staff records play a crucial role in staff
management. Every organization requires these records to calculate pay, manage workforce
and see performance of employees. Management of all these records is a challenging task and
time-consuming process for the HR team, which can be reduced by using ERS that is the
Employee Record System. Human resources are an important part of any organization and
responsible for the success of an organization. Organizations invest highly on the
management of employees. HRIS is a human resource information system that manages
inventory control and accounting. ERS is also an informatics system that is useful in saving
time, power and money of owner, HR’s and manager. All organizations both private and
public, have necessities of employee record systems.
The concept of record keeping is not new. The records management profession is as old as the
first societal groups, because the need of a memory arises naturally in any organization. The
most ancient forms of memory were oral and the most ancient keepers of records were the
remembrances, individuals entrusted with the task of memorizing rules, contracts, sentences
and transmitting them by recitation to their juniors. However, there have been major
inventions that have had a significant impact on records management, for example writing,
paper, typewriter, microfilming, and computer.
Today the computer is performing all the traditional functions of records management and
managing records in ways that were not feasible before the computer age. Most institutions
like academic, governmental, and commercial institutions need some system to address
questions related to tracking and storing of data about their employees. Electronic Staff Data
Record System commonly provides solution for the access, review, upload and download of
the electronic documents about employees.
7
PROBLEM STATEMENT
OBJECTIVES
In this world of growing technologies everything has been computerized. With large number
of work opportunities, the Human workforce has increased. Thus, there is a need of a system
which can handle the data of such a large number of Employees. This project simplifies the
task of maintaining records because of its user-friendly nature.
The objective of this project is to provide a comprehensive approach towards the management
of employee information. This will be done by designing and implementing an HR
management system that will bring up a major paradigm shift in the way that employee
information is handled.
A user friendly front-end for the user to interact with the system.
BACKGROUND STUDY
Employees are the backbone of any company therefore their management plays a major role
in deciding the success of an organization. Human Resource Management Software makes it
easy for the employer to keep track of all records. This software allows the administrator to
edit employees, add new employees as well as evaluate an employee’s performance.
Employees can be managed efficiently without having to retype back their information in the
database. You can check to see if there are duplicate positions/employees in the
database.
Large and even small and medium sized companies have always implemented a system
(whether electronically or manually) to be able to manage its employees effectively. The
effective management of these records ensures sound decisions based on full, accurate and
up- to-date information to be made. This also ensures that any decision made can be traced,
scrutinized and justified if necessary. The ever-changing trend in technology brought the
necessity for the automation of everything from paper-and-pen based to absolute computer
domination. The overwhelming emergence of computers paved way to easier access of
information that leads to increased production, efficiency and reliability.
A flexible and easy to use Employee Management software solution for small and medium
sized companies provides modules for personnel information management thereby
organization and companies are able to manage the crucial organization asset – people. The
combination of these modules into one application assures the perfect platform for re-
engineering and aligning Human Resource processes along with the organizational goals.
10
REQUIREMENT DOCUMENT
Requirements involve interacting with the user of the system and finding out what they would
want the system to do. This helps come out with user requirements, operational that is
functional and non-functional requirements and system requirements.
User requirements
From the system study, it was established that users want a system which shall be easy to use,
efficient in delivery, secure, granting, centralized access of information as well as resource
optimization.
Operational requirements
Non functional
The system is designed in the black color, that is the design for user interface.
The system was also designed in English language since it is for official use.
Functional
Functional requirements are those that directly affect the performance of the system and
include
the following;
System requirements
HARDWARE
Processor Intel®Pentium®CPU and the latest
Memory 4MB-6mb
Disk space 70MB
Display800x600 colors
11
SOFTWARE
SYSTEM DESIGN
System Design is the process of describing the components, interfaces and architecture of a
system that meets or satisfy the required specifications. It defines how the system operates
and interacts with external users with the intention of describing how the system is in
nature and
what it
does whichin
general
captures
the
system’s behavior.
Architectural Design
This is very important because it describes the systems hardware, software and network
environment of the to-be system. There are various approaches to the systems architectural
design that is Server-based Architecture, Client-based Architecture and Client-server based
Architecture.
This study used the client server-based architecture where basic components of the system
functions that is to say the application logic, presentation logic, data storage and data access
logic are shared among the clients and the server.
User interface
Design
The User interface is the system that helps users communicate with the computer and/or
application. The system interfaces define how systems exchange information with other
systems.
User interface includes screen displays that provide navigation through the system, screens,
forms that
capture data and
reports.
Process design
This shows how data flows through the system describing major processes of data input,
process, output
as
well as
storage.
12
DEVELOPMENT
The new proposed system captures more of the employee records with much emphasis on
existing documents about employees that accumulate over time. Data is processed by
generating document views in soft copy PDF format which can be downloaded when needed,
printed or just viewed on full screen. The system boundary is that it only captures more about
employee documented records not emphasizing on financial record management and other
records catered by other departments such as the recruitment records and payroll systems.
The developed system comes with various features especially data capture, store, retrieval and
storage of employee information. The system comes in place to replace hard paper form of
keeping employee information in box files. It is user friendly and easy to use and meeting the
current organizational level.
The system can be customized to serve several organizations that desire to manage
employee information in a more advanced way.
Information can easily be modified to cater for the dynamic nature in human resource
management.
Weakness of the existing system
The system is space consuming since files of various employees accumulate as new
employees are hired and the organization growth.
It is tiresome and time consuming to use especially searching for specific information
about the employee.
14
TESTING
The system is supposed to be tested for any bugs by the IT staff at the organization before
being deployed for use by the entire organization. The proper way of testing this system is
carrying out user acceptance tests to find out whether it satisfies the user requirements, the
quality assurance tests to find out whether it matches the organizations quality standards and
the validation tests to see whether it caters for mistakes and errors.
CODE TO BE TEST
#define maximumPassword 20
#define filename "EmployeeRecordSystem.bin"
// Macro related to the Employees info #define fname 50
#define empname 50
#define empaddress 300
#define fileheadersize sizeof(sFileHeader)
typedef struct
{
{
int length =0; int position = 0;
//Head message
void headMessage(const char *message)
}
//Validate name
int isNameValid(const char *name)
{
int validName = 1; int length = 0;
int index = 0;
length = strlen(name);
for(index =0; index <length ; ++index)
{
if(!(isalpha(name[index])) && (name[index] != '\n') && (name[index] != '
'))
{
validName = 0; break;
}
}
return validName;
}
// Function to check leap year.
//Function returns 1 if leap year int IsLeapYear(int year)
{
{
//check range of year,month and day
if (IsLeapYear(validDate->yyyy)) return
(validDate->dd <= 29);
else
return (validDate->dd <= 28);
}
//handle months which has only 30 days
if (validDate->mm == 4 || validDate->mm == 6 ||
validDate->mm == 9 || validDate->mm == 11)
return (validDate->dd <= 30); return 1;
}
// Add employee in list
void addEmployeeInDataBase()
{
s_EmployeesInfo addEmployeeInfoInDataBase =
{0}; FILE *fp = NULL;
int status = 0;
fp = fopen(filename,"ab+"); if(fp == NULL)
18
}
}
while(!status); do
{
printf("\n\t\t\tEmployee Name = "); fflush(stdin);
fgets(addEmployeeInfoInDataBase.ngalan_sang_empleyado,empname,stdin);
status =
isNameValid(addEmployeeInfoInDataBase.ngalan_sang_empleyado);
if (!status)
{
printf("\n\t\t\tName contain invalid character. Please enter again.");
19
}
}
while(!status); do
{
fgets(addEmployeeInfoInDataBase.address_sang_empleyado,fname,stdin); status =
isNameValid(addEmployeeInfoInDataBase.address_sang_empleyado); if (!status)
{
printf("\n\t\t\tName contain invalid character. Please enter again.");
}
}
while(!status); printf("\n\t\t\tEmployee Salary = "); fflush(stdin);
scanf("%f",&addEmployeeInfoInDataBase.empleyado_sweldo); do
{
//get date year,month and day from user printf("\n\t\t\tEnter date in format
(day/month/year): ");
scanf("%d/%d/%d",&addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.dd,&
addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.mm,&addEmployeeInfoInD
a taBase.petsa_nga_ngsulod_ang_empleyado.yyyy);
}
20
}
while(!status);
fwrite(&addEmployeeInfoInDataBase,sizeof(addEmployeeInfoInDataBase), 1, fp);
fclose(fp);
}
// search employee
void searchEmployee()
{
int found = 0;
{
printf("\n\t\t\tFile is not opened\n"); exit(1);
}
headMessage("SEARCH EMPLOYEE");
if(addEmployeeInfoInDataBase.empleyado_id == employeeId)
{
found = 1; break;
}
}
if(found)
{
printf("\n\t\t\tEmployee id = %d\n",addEmployeeInfoInDataBase.empleyado_id);
printf("\n\t\t\tEmployee name =
%s",addEmployeeInfoInDataBase.ngalan_sang_empleyado);
printf("\t\t\tEmployee Salary = %f\
n",addEmployeeInfoInDataBase.empleyado_sweldo); printf("\t\t\tFather Name =
%s",addEmployeeInfoInDataBase.tatay); printf("\n\t\t\tEmployee Address =
%s",addEmployeeInfoInDataBase.address_sang_empleyado);
printf("\t\t\tEmployee Admission Date(day/month/year) =
(%d/%d/%d)",addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.dd,
addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.mm,
addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.yyyy);
}
else
{
printf("\n\t\t\tNo Record");
}
fclose(fp);
int found = 0;
s_EmployeesInfo addEmployeeInfoInDataBase = {0}; FILE *fp = NULL;
unsigned int countEmployee = 1; headMessage("VIEW EMPLOYEE DETAILS");
fp = fopen(filename,"rb"); if(fp == NULL)
{
addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.mm,
addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.yyyy)
;
found = 1;
++countEmployee;
}
fclose(fp); if(!found)
{
printf("\n\t\t\tNo Record");
}
printf("\n\n\t\t\tPress any key to go to main menu....."); fflush(stdin);
getchar();
}
// Delete employee entry void deleteEmployee()
{
int found = 0;
fclose(fp);
printf("File is not opened\n"); exit(1);
}
fread (&fileHeaderInfo,fileheadersize, 1, fp);
fwrite(&fileHeaderInfo,fileheadersize, 1, tmpFp);
printf("\n\t\t\tEnter employee ID NO. for delete:"); scanf("%d",&employeeDelete);
while (fread (&addEmployeeInfoInDataBase, sizeof(addEmployeeInfoInDataBase), 1, fp))
{
if(addEmployeeInfoInDataBase.empleyado_id != employeeDelete)
{
fwrite(&addEmployeeInfoInDataBase,sizeof(addEmployeeInfoInDataBase), 1, tmpFp);
}
else
{
found = 1;
}
}
}
printf("\n\n\t\t\tNew Username:"); fflush(stdin);
fgets(userName,maximumUname,stdin); printf("\n\n\t\t\tNew
Password:");
fflush(stdin); fgets(pass,maximumPassword,stdin);
strncpy(fileHeaderInfo.uname,userName,sizeof(userName));
strncpy(fileHeaderInfo.pass,pass,sizeof(pass));
fwrite(&fileHeaderInfo,fileheadersize, 1, fp);
fclose(fp);
getchar();
exit(1);
}
//Display menu void menu()
{
int choice = 0; do
{
headMessage("MAIN MENU");
printf("\n\t\t\tMAIN MENU\n\t\t\t\t\t
");
printf("\n\t\t\t\t\t| |");
printf("\n\t\t\t\t\t| [3] VIEW EMPLOYEE
printf("\n\t\t\t\t\t| |");
|");
printf("\n\t\t\t\t\t| |");
printf("\n\t\t\t\t\t| [5] UPDATE PASSWORD
printf("\n\t\t\t\t\t| |");
|");
printf("\n\t\t\t\t\t| [0] EXIT
|\n\t\t\t\t\t \n\t\t\t\t\t\t\t\t");
addEmployeeInDataBase(); break;
case 2:
27
searchEmployee(); break;
case 3:
viewEmployee(); break;
case 4:
deleteEmployee(); break;
case 5:
updateCredential(); break;
case 0:
if(fp == NULL)
{
printf("File is not opened\n"); exit(1);
}
fread (&fileHeaderInfo,fileheadersize, 1, fp); fclose(fp);
do
{
printf("\n\n\n\t\t\t\tUsername:"); fgets(userName,maximumUname,stdin); printf("\n\
t\t\t\tPassword:"); fgets(pass,maximumPassword,stdin);
if((!strcmp(userName,fileHeaderInfo.uname)) && (!
strcmp(pass,fileHeaderInfo.pass)))
{
menu();
}
else
{
printf("\t\t\t\tLogin Failed Enter Again Username & Password\n\n"); L++;
}
}
while(L<=3); if(L>3)
{
headMessage("Login Failed");
29
printf("\t\t\t\tSorry,Unknown User.");
getch(); system("cls");
}
}
//Check file exist or not
int isFileExists(const char *path)
{
// Try to open file
FILE *fp = fopen(path, "rb"); int status = 0;
{
FILE *fp = NULL;
int status = 0;
const char defaultUsername[] ="aticleworld\
n"; const char defaultPassword[]
="aticleworld\n";
fp = fopen(filename,"wb");
if(fp != NULL)
{
//Copy default password
strncpy(fileHeaderInfo.pass,defaultPassword,sizeof(defaultPassword));
strncpy(fileHeaderInfo.uname,defaultUsername,sizeof(defaultUsername))
; fwrite(&fileHeaderInfo,fileheadersize, 1, fp);
fclose(fp);
}
}
}
int main()
{
init();
login(); return 0;
}
31
PROJECT RESULT
On system testing, the results were that many more, documents about the employee can only
be seen as pictures.
System Implementation
The system was implemented as shown in the following screen shots;
INDEX PAGE
This is the page that is displayed on screen when we start the project. It’s from here that the
admin and or the employee logs into the
system.
RECORD PAGE
32
On logging in by user, the system asks you to put the records of your employee on this page
where you select options to proceed. The user has all rights on the system as shown in the
screenshot.
VIEW PAGE
This page shows the list of employees who have been working there.
SEARCH PAGE
FUTURE
ENHANCEMENTS
As a future work, some additional stuff could be implemented and integrated into the
application code making it much more reliable and flexible; especially what concerns in the
record management
module.
Apparently, the role of such systems is basic and essential within each company that wants to
keep a really good control and record concerning its personnel data, functionality and
performance on all levels in its structure. Every organization, in nowadays, has the necessity
of managing its staff on a really good level as the staff has definitely the greatest merit of
building up a company
as such as it
is.
The well managed employee means giving the appropriate financial award-ness and all kind
of benefits as such as they have been deserved. That’s why the development of such systems
is not just a programming business – a lot of people are ordinarily involved in such projects
and one of the basic requirements is the reliability of the system, especially what concerns the
storage of data and all of the operations that will be performed upon it.
34
CONCLUSION
There were so many challenges faced in the existing system that needed to be addressed and
these have given rise to development of this system. The challenges helped determine what
the developed system addresses. In case of new challenges sighted with use of the new
system, this calls for system upgrade or addition or more features to mitigate such problems.
The employee records system developed is a secure and user-friendly application which can
be used to manage employee records effectively and efficiently.
The developed system is subject to development by integration of more other special features
and so it’s open for more study.
The developed system is flexible and can therefore be customized for use by other
organizations to manage employee records effectively.
Conclusively, proper utilization of this system will help optimize resources at the organization
and increase the effective flow of business since human resource management lies at the fore
front of organizational growth and this is well achieved by having an efficient mechanism of
managing their records.
35
REFERENCES
Nevogt, D. (2016) Employee management system: Why and how to start using One.
Available at: http://blog.hubstaff.com/employee-management-system/ (Accessed: 5
October 2016).