0% found this document useful (0 votes)
95 views35 pages

Latest Documentation

Uploaded by

Rupesh Khatri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views35 pages

Latest Documentation

Uploaded by

Rupesh Khatri
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPT, PDF, TXT or read online on Scribd
You are on page 1/ 35

1

PURBANCHAL UNIVERSITY
[GOMENDRA MULTIPLE
COLLEGE]

[EMPLOYEE RECORD SYSTEM]

IN PARTIAL FULFILLMENT OF THE


REQUIREMENT FOR THE DEGREE OF [BCA IT]
Submitted by

Rupesh Khatri (313662)

Under the supervision of [Bhawesh Kafle]


[10][2078]
2

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:

...................................

(External Examiner Name) External Examiner


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.

A special acknowledgement goes to my classmates who helped me in completing the project


by exchanging interesting ideas and sharing their experience.

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

TITLE PAGE NO.

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

Manual handling of employee information poses a number of challenges. This is evident in


procedures such as leave management where an employee is required to fill in a form which
may take several weeks or months to be approved. The use of paper work in handling some of
these processes could lead to human error, papers may end up in the wrong hands and not
forgetting the fact that this is time consuming. A number of current systems lack employee
self-service meaning employees are not able to access and manage their personal information
directly without having to go through their HR departments or their managers. Another
challenge is that multi-national companies will have all the employee information stored at
the headquarters of the company making it difficult to access the employee information from
remote places when needed at short notice.

The aforementioned problems can be tackled by designing and implementing a web-based HR


management system. This system will maintain employee information in a database by fully
privacy and authority access. The project is aimed at setting up employee information system
about the status of the employee, the educational background and the work experience in
order to help monitor the performance and achievements of the employee through a password
protected system.
8

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.

The objectives of this system include:


 Develop a well-designed database to store employee information.

 A user friendly front-end for the user to interact with the system.

 Easy retrieval of employee information.

 Ability to sort employee queries by departments.

 Remove details of employees that no longer working in the organization.


9

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;

 Generating employee reports and views.


 System controls such as access levels, who views what.
 System is also designed to ensure software and hardware compatibility on upgrade.
 Easy navigation from page to page is ensured to make the system user friendly.

System requirements

HARDWARE
Processor Intel®Pentium®CPU and the latest
Memory 4MB-6mb
Disk space 70MB
Display800x600 colors
11

SOFTWARE

Operating system Windows 7 and latest


Database management systems MySQL
Runtime environment Apache server
System type 32bit and 64-bit Operating System

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

System Flow Chart


The flow chart shows the flow of activities by system users. The activities begin with either
the employee or the system administrator logging in the system from the user interface. If the
log in is successful for both the admin and employee they proceed to their different activities
else will be taken back to the login interface. The admin who successfully logs in can add an
employee, update employee particulars as well as view reports. An employee who successful
logs in just views his/her particulars and the whole process is terminated by the logging out of
the system.
13

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.

Strength of the developed system

 The system can be customized to serve several organizations that desire to manage
employee information in a more advanced way.

 The system is easy to use and doesn't require basic training.

 The system can easily be upgraded to do more other


functionalities.

 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

#include <stdio.h> #include <stdlib.h> #include <time.h> #include <string.h>


//Used macro
#define maximum_year 9999
#define minumum_year 1900
#define maximumUname 30

#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)

//structure to store date typedef struct


{
int yyyy; int mm; int dd;
} Date;
15

typedef struct
{

char uname[maximumUname]; char pass[maximumPassword];


} sFileHeader;
//Elements of structure
typedef struct// to call in program
{

char tatay[fname];// declare the character data type


char ngalan_sang_empleyado[empname];// declare the character data type
char address_sang_empleyado[empaddress];// declare the character data type
Date petsa_nga_ngsulod_ang_empleyado;// declare the integer data type

unsigned int empleyado_id; // declare the integer data type float


empleyado_sweldo;
} s_EmployeesInfo;
//Align the message
void printMessageCenter(const char* message)

{
int length =0; int position = 0;

//calculate how many space need to print length = (78 - strlen(message))/2;


printf("\t\t\t");
for(position =0 ; position < length ; position++)
{
//print space printf(" ");

//print message printf("%s",message);


}
16

//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)
{

return (((year % 4 == 0) && (year % 100 != 0)) ||


(year % 400 == 0));
}
// returns 1 if given date is valid. int isValidDate(Date *validDate)
17

{
//check range of year,month and day

if (validDate->yyyy > maximum_year || validDate-


>yyyy < minumum_year)
return 0;

if (validDate->mm < 1 || validDate->mm > 12) return


0;
if (validDate->dd < 1 || validDate->dd > 31) return 0;

//Handle feb days in leap year if (validDate->mm == 2)


{

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

printf("File is not opened\n"); exit(1);


}
headMessage("ADD NEW EMPLOYEES");
printf("\n\n\t\t\tENTER YOUR DETAILS BELOW:");
printf("\n\t\t\t---------------------------------------------------------------------------\n");
printf("\n\t\t\tEmployee ID = "); fflush(stdin);
scanf("%u",&addEmployeeInfoInDataBase.empleyado_id); do
{
printf("\n\t\t\tFather Name = "); fflush(stdin);
fgets(addEmployeeInfoInDataBase.tatay,fname,stdin); status =
isNameValid(addEmployeeInfoInDataBase.tatay); if (!status)
{
printf("\n\t\t\tName contain invalid character. Please enter again.");

}
}

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
{

printf("\n\t\t\tEmployee Address = "); fflush(stdin);

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);

//check date petsa_nga_ngsulod_ang_empleyado


status = isValidDate(&addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado);
if (!status)
{
printf("\n\t\t\tPlease enter a valid date.\n");

}
20

}
while(!status);
fwrite(&addEmployeeInfoInDataBase,sizeof(addEmployeeInfoInDataBase), 1, fp);

fclose(fp);
}
// search employee
void searchEmployee()
{
int found = 0;

int employeeId =0;


s_EmployeesInfo addEmployeeInfoInDataBase = {0}; FILE *fp = NULL;
fp = fopen(filename,"rb"); if(fp == NULL)

{
printf("\n\t\t\tFile is not opened\n"); exit(1);
}
headMessage("SEARCH EMPLOYEE");

//put the control on employee detail


if (fseek(fp,fileheadersize,SEEK_SET) != 0)
{
fclose(fp);
printf("\n\t\t\tFacing issue while reading file\n"); exit(1);
}
printf("\n\n\t\t\tEnter employee ID NO to search:"); fflush(stdin);
scanf("%u",&employeeId);
while (fread (&addEmployeeInfoInDataBase, sizeof(addEmployeeInfoInDataBase), 1,
fp))
{
21

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);

printf("\n\n\n\t\t\tPress any key to go to main menu....."); fflush(stdin);


getchar();
}
22

// view employees function void viewEmployee()


{

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)
{

printf("File is not opened\n"); exit(1);


}
if (fseek(fp,fileheadersize,SEEK_SET) != 0)
{
fclose(fp);
printf("Facing issue while reading file\n"); exit(1);
}
//Print employee count
printf("\n\t\t\tEmployee Count = %d\n\n",countEmployee);

while (fread (&addEmployeeInfoInDataBase, sizeof(addEmployeeInfoInDataBase), 1, fp))


{
printf("\t\t\tEmployee id = %u\n",addEmployeeInfoInDataBase.empleyado_id);
printf("\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("\t\t\tEmployee Address =
%s",addEmployeeInfoInDataBase.address_sang_empleyado);
printf("\t\t\tEmployee Admission Date(day/month/year) = (%d/%d/%d)\n\
n",addEmployeeInfoInDataBase.petsa_nga_ngsulod_ang_empleyado.dd,
23

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;

int employeeDelete = 0; sFileHeader fileHeaderInfo = {0};


s_EmployeesInfo addEmployeeInfoInDataBase = {0}; FILE *fp =
NULL;
FILE *tmpFp = NULL;
headMessage("Delete employee Details"); fp = fopen(filename,"rb");
if(fp == NULL)
{

printf("File is not opened\n"); exit(1);


}
24

tmpFp = fopen("tmp.bin","wb"); if(tmpFp == NULL)

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;
}
}

(found)? printf("\n\t\t\tRecord deleted successfully....."):printf("\n\t\t\tRecord not found");


fclose(fp);
fclose(tmpFp);
remove(filename); rename("tmp.bin",filename);
}
//function to update credential void updateCredential(void)
{
sFileHeader fileHeaderInfo = {0};
25

FILE *fp = NULL;


unsigned char userName[maximumUname] = {0};

unsigned char pass[maximumUname] = {0};


headMessage("Update Credential");

fp = fopen(filename,"rb+"); if(fp == NULL)


{
printf("File is not opened\n"); exit(1);
}

fread (&fileHeaderInfo,fileheadersize, 1, fp); if


(fseek(fp,0,SEEK_SET) != 0)
{
fclose(fp);
printf("\n\t\t\tFacing issue while updating password\n");
exit(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);

printf("\n\t\t\tYour Password has been changed successfully");


printf("\n\t\t\ttLogin Again:");
fflush(stdin);
26

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| [1] ADD EMPLOYEE |");


printf("\n\t\t\t\t\t| |");
printf("\n\t\t\t\t\t| [2] SEARCH EMPLOYEE |");

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| [4] DELETE EMPLOYEE |");

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");

printf("\n\n\n\t\t\tPLEASE SELECT YOUR CHOICE IN THE ABOVE BOX:


"); scanf("%d",&choice);
switch(choice)
{
case 1:

addEmployeeInDataBase(); break;
case 2:
27

searchEmployee(); break;
case 3:

viewEmployee(); break;
case 4:
deleteEmployee(); break;

case 5:

updateCredential(); break;
case 0:

printf("\n\n\n\t\t\t\tTHANK YOU FOR USING THIS SYSTEM !!!\n\n\n\n\


n"); exit(1);
break; default:
printf("\n\n\n\t\t\tINVALID INPUT!!! Try again...");
} //Switch Ended
}
while(choice!=0); //Loop Ended
}

//login password void login()


{

unsigned char userName[maximumUname] = {0}; unsigned char


pass[maximumPassword] = {0};
int L=0;
sFileHeader fileHeaderInfo = {0}; FILE *fp = NULL;
headMessage("Login"); fp = fopen(filename,"rb");
28

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;

// If file does not exists if (fp != NULL)


{
status = 1;

// File exists hence close file fclose(fp);


}
return status;
}
void init()

{
FILE *fp = NULL;
int status = 0;
const char defaultUsername[] ="aticleworld\
n"; const char defaultPassword[]
="aticleworld\n";

sFileHeader fileHeaderInfo = {0}; status =


isFileExists(filename); if(!status)
{
//create the binary file
30

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

This page helps us to search an employee detail.


33

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).

 Wilson, (2002). Key Concepts in Information and Knowledge Management. Retrieved


from: www.tlu.ee

 Joshua O. (2016, January). Office Management System (Case Study Faculty of


Computer Science and Information Tech., Bayero University Kano). Retrieved from:
http://www.academia.edu.

 Blouin, F. (1996). Electronic records research and development conference. Available


at: http://www.umich.edu/e-recs/Report.

 Mujaheed Baita. (2019). Attendance Management System (Case Study Bayero


University Kano). Retrieved from: http://www.academia.edu.

 Review of literature on employee management:


https://www.ukessays.com/essays/management/review-of-literature-on-employee-
management-management-essay.php

You might also like