EMPLOYEE MANAGEMENT
SYSTEM
A MINI PROJECT REPORT
Submitted By
S.KARPAGAM(16CS037)
M.KALEESWARI (16CS034)
K.KAVITHA(16CS041)
In partial fulfillment for the award of the degree of
BACHELOR OF ENGINEERING
in
COMPUTER SCIENCE & ENGINEERING
P.S.R. ENGINEERING COLLEGE, SIVAKASI - 626140
(An Autonomous Institution affiliated to Anna university, Chennai.)
SIVAKASI-626140
Oct-2018
1
BONAFIDE CERTIFICATE
Certificate that this project report “EMPLOYEE MANAGEMENT
SYSTEM” is the bonafide work of “M.KALEESWARI (16CS034)” who carried
out the project work under my supervision.
SIGNATURE SIGNATURE
Mr.S.EDWIN RAJA M.Tech., Dr.K.RUBASOUNDAR M.E.,Ph.D.,
Assistant professor, HEAD OF THE DEPARTMENT
Computer Science & Engineering, Computer Science & Engineering,
P.S.R. ENGINEERING COLLEGE, P.S.R. ENGINEERING COLLEGE,
Sivakasi - 626 140 Sivakasi - 626 140
Submitted for the VIVA_VOICE examination held on _____________.
INTERNAL EXAMINER EXTERNAL EXAMINER
2
ACKNOWLEDGEMENT
We take this opportunity to all those who helped us towards successful
completion of this mini project. At the very outset we thank the almighty for this
profuse blessings showered on us.
We thank our Beloved parents whose encouragement and support help
us to complete our project successfully.
We wish to express our cordial gratitude to our Honorable
Correspondent Thiru. R. SOLAISAMY and Director Er. Mrs. S.
VIGNESWARI B.Tech., for the patronage, excellent facilities provided for us
during the project.
We extend our sincere thanks to our cherished Head of the Department
Dr. K. RubaSoundar., M.E., Ph.D., for this encouragement and guidance.
We wish to express our sincere thanks to Mr. S. Edwin Raja M.Tech.,
Assistant Professor and Ms. A. Alagulakshmi M.E., Assistant Professor for
having helped us in all aspects.
We also bound to thank all Faculty and Non-Teaching Staff
Members of our department whose support and cooperation also contributed much
to complete this project work.
SIGNATURE
M.KALEESWARI
3
TABLE OF CONTENT
CHAPTER NO. TITLE PAGE
1. Introduction 2
2. System Requirements 4
2.1 Hardware Requirements
2.2 Software Requirements
3. Tools 4
4. System Implementation 5
4.1 Login
4.2 Employee Information
4.3 Employee Details
4.4 Shift Scheduling
4.5 Employee Attendance
4.6 Apply for Leave
5. Conclusion 14
6. Appendix 15
LIST OF FIGURE
FIGURE NO. FIGURE CAPTION PAGE NO.
4
5.1 Login
5.2 Employee Information
5.3 Employee Details
5.4 Shift Scheduling
5.5 Employee Attendance
5.6 Apply for leave
LIST OF TABLES
TABLE NO. FIGURE CAPTION PAGE NO.
5.1.1 Login
5.2.1 Employee
Information(Registration)
5.4.1 Shift Scheduling
Abstract
This Employee management system project is developed using C#
language. Here, the user can add, edit, view, and remove employees records and
manage wages according to their departments. This project is easy to operate and
5
understood by the users. It is user friendly and just asks the user to follow step by
step operations by giving him few options. It is fast and can perform many
operations. It can allocate employees to different departments at different posts.
Database should store all personal details of employees such as date of birth full
name etc. This is designed to assist in strategic planning, and will help you ensure
that your organization is equipped with the right level of human resources for your
future goals. Also, for those busy executive who are always on the go, our systems
come with remote access features, which will allow you to manage your workforce
anytime, at all times.
Chapter 1
Introduction
Introduction to C#:
6
C# is a general-purpose, modern and object-oriented programming language
pronounced as “C sharp”. It was developed by Microsoft led by Anders Hejlsberg
and his team within the .Net initiative and was approved by European Computer
Manufacturers Association (ECMA) and International Standards Organization
(ISO). C# is among the languages for Common Language Infrastructure and the
current version of C# is version 7.2. C# is a lot similar to Java syntactically and is
easy for the users who have knowledge of C, C++ or Java. Since the C# is a lot
similar to other widely used languages syntactically, it is easier to code and learn in
C# Programs can be written in C# in any of the widely used text editors like
Notepad++or on any of the compilers. After writing the program save the file with
the extension .cs.
C# programs run on the .NET Framework, an integral component of Windows that
includes a virtual execution system called the common language runtime (CLR)
and a unified set of class libraries. The CLR is the commercial implementation by
Microsoft of the common language infrastructure (CLI), an international standard
that is the basis for creating execution and development environments in which
languages and libraries work together seamlessly.
Introduction to Employee Management System:
Employees are the backbone of any company, management of employee
performance plays a major role in deciding the success of the organization. This
7
system makes the process of scheduling much easier and computerized. By this
system the manager or top level designated employee can fix the schedule of any
employee working under him. Employee Management System is a distributed
application, developed to maintain the details of employees working in any
organization. The EMS has been developed to override the problems prevailing in
the practicing manual system. It maintains the information about the personal and
official details of the employees. The records are maintained in registers. Time
consuming process,Complicated searching, editing & updating. Helps in
maintaining the computerized employee details. Calculate the salary,Easy
attendance marking. Easy calculation of various leave in categories. Computerized
Events& Requests Management. Create new users to the system accordingly.
Provide computerized system for maintaining records. More efficient& reliable.
Less time consuming and easy to use. Huge data storage with less computer
memory. Avoid Human errors & efforts for Maintaining daily data. Avoid Data
manipulations. Also avoids Data inconsistency & redundancy.
Chapter 2
System Requirements
2.1: Hardware Requirements
8
Processor : Intel® core ™ i3.
RAM : 4 GB RAM.
Hard disk drive : 250 GB.
Monitor : 17” inches.
2.2 : Software Requirements
Operating system : Windows.
Front End : Visual Basic 2010.
Back End : Ms-Access.
Chapter 3
Tools
Front end
C# is used as a programming language. it is easy to use, flexible and efficient.
Back end
Microsoft Access is used for the database.
Chapter 4
System Implementaion
9
4.1Login form
Figure 4.1
Figure 4.1 show the login page of employee management system user
should enter the user name in the first text box and password in the second text box
if the username and password is correct then you successfully login and if the
username and password is incorrect then you should not enter the management
system. The button Add is to add the new employee .otherwise you leave the
page.
4.1 Database
10
4.1.1 Login
COLOUMN NAME DATA TYPE CONSTRAINTS
Username Varchar(50) Not Null
Password Varchar(50) Not Null
4.2 Employee Information
Figure 4.2
Figure4.2 show the page of add the new employee ,here employee should fill the
details what it require.After give the details click the button Apply it apply to the
database then you add to as employee.
11
4.2 Database
4.2.1 Employee Information
COLOUMN NAME DATA TYPE CONSTRAINTS
Employee Name Varchar(50) Not Null
Enter Password Varchar(50) Not Null
Re-enter Password Varchar(50) Not Null
Date Of Birth Varchar(50) Not Null
Gender Varchar(50) Not Null
Date Of Joining Varchar(50)(Date) Not Null
Department Varchar(50) Not Null
4.3 Employee Details
12
Figure 4.3
The figure 4.3 shows that the employee want to save,update and the delete details
it is done in the page .particularly this page show fill the details it require and the
save changes.
4.3 Database
13
4.4 Employee Details
Figure 4.4
14
The figure 4.4 shows that if employee want update the details then employee
update the details by using this page and after click the update button details are
store to the database.
4.5 Employee Details
Figure 4.5
The figure 4.5 shows that if the employee details are delete then after click
the button delete it delete the details from the database.The next is used
leave or go to the next page.
15
4.6 Employee shift Scheduling
Figure 4.6
The figure 4.6 shows that if we want to schedule the time of employee by
this page .Fill the required details and click the button apply .After click
apply button the schedule time to employee and store to the database.
4.6 Database
16
4.4.1 Shift scheduling
COLOUMN NAME DATA TYPE CONSTRAINTS
Employee Id Varchar(50) Not Null
Employee Name Varchar(50) Not Null
Shift Time Varchar(50)(Time) Not Null
Department Varchar(50) Not Null
4.7 Employee Attendance
Figure 4.7
The figure 4.7 shows that if we want to give the attendance to the
employeethen the fill id,name,date,in time,out time,department and click the add
button then attendance is added to the employee in the database.
17
4.8 Apply for leave
Figure 4.8
The figure 4.8 shows that if employee want to apply for the leave then fill
the required details of id,name,application status ,leave type,no. of days.After
click the apply button leave will be applied for you and store to the datebase.
18
4.9 Thank you form
Figure 4.9
The figure 4.9 shows that the last page of the management system and thank you.
Chapter 5
Conclusion
From the proper analysis of employee management system we conclude
the it will reduce the manual record . This Employee Management System is
a ready source of information. It performs as a readily available source of
information between the organization and the employee.Employee management
systems are highly efficient. A member of the organization can easily retrieve
information about his/her colleague whenever required, and that too on short
notice.Updated data,Employee management systems also allow for
confidentiality
19
Chapter 6
Appendix
Form 1:Login form
using System;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
usingSystem.Threading.Tasks;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceemployee_manage
{
publicpartialclassForm1 :Form
{
OleDbConnection con;
OleDbCommandcmd;
OleDbDataReaderdr;
public Form1()
{
InitializeComponent();
20
}
privatevoid button1_Click_1(object sender, EventArgs e)
{
string username = textBox1.Text;
string password = textBox2.Text;
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "SELECT * FROM login where username='" +
textBox1.Text + "' AND password='" + textBox2.Text + "'";
dr = cmd.ExecuteReader();
if (dr.Read())
{
MessageBox.Show("login successfully ");
Form3 obj1 =newForm3();
obj1.Show();
this.Hide();
}
else{
MessageBox.Show("Username or password is incorrect");
}
con.Close();
}
21
privatevoid button2_Click_1(object sender, EventArgs e)
{
Form2obj = newForm2();
obj.Show();
this.Hide();
}
}
Form 2:Employee Information
using System;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
usingSystem.Threading.Tasks;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceemployee_manage
{
publicpartialclassForm2 :Form
{
OleDbConnection con;
OleDbCommandcmd;
OleDbDataReaderdr;
22
public Form2()
{
InitializeComponent();
}
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO employee info(Employee
Name,Enterpassword,Renterpassword,Date of birth,Gender,Date of
joining,Department) values('" + textBox1.Text + "','" + textBox2.Text + "','" +
textBox3.Text + "','" + radioButton1.Text + "','" + textBox5.Text + "','" +
comboBox1.Text +"')";
cmd.ExecuteNonQuery();
MessageBox.Show("Details success");
Form3 obj1 = newForm3();
obj1.Show();
this.Hide();
}
privatevoid button2_Click(object sender, EventArgs e)
{
Form1ob = newForm1();
23
ob.Show();
this.Hide();
}
privatevoid button3_Click(object sender, EventArgs e)
{
Form3 obj1 = newForm3();
obj1.Show();
this.Hide();
}
}
}
Form 3: Employee Details
using System;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
usingSystem.Threading.Tasks;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
24
namespaceemployee_manage
{
publicpartialclassForm3 :Form
{
public Form3()
{
InitializeComponent();
}
privatevoid button1_Click(object sender, EventArgs e)
{
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO (Employee
id,firstname,lastname,age,Gender,Date of joining,Department,address,emailid)
values('" + textBox1.Text + "','" + textBox2.Text + "','" + textBox3.Text + "','" +
textBox4.Text + "','" + radioButton1.Text + "','" + textBox5.Text + "','" +
comboBox1.Text + "','" + textBox6.Text + "','" + textBox7.Text + "')";
cmd.ExecuteNonQuery();
MessageBox.Show("saved success");
Form4 obj2 = newForm4();
obj2.Show();
this.Hide();
}
25
privatevoid button2_Click(object sender, EventArgs e)
{
string Message = "your details are updated";
MessageBox.Show(Message);
}
privatevoid button3_Click(object sender, EventArgs e)
{
string Message = "your details are deleted";
MessageBox.Show(Message);
}
privatevoid button4_Click(object sender, EventArgs e)
{
Form4 obj2 = newForm4();
obj2.Show();
this.Hide();
}
}
}
Form 4: Employee Shift Scheduling
using System;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
usingSystem.Threading.Tasks;
26
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceemployee_manage
{
publicpartialclassForm4 :Form
{
public Form4()
{
InitializeComponent();
}
privatevoid button1_Click(object sender, EventArgs e)
{
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO schedule (Employee id,
name,shifttime,Department) values('" + textBox1.Text + "','" + comboBox1.Text +
"','"+ comboBox2 +"')";
cmd.ExecuteNonQuery();
string Message = "your schedule time is applied";
MessageBox.Show(Message);
27
}
privatevoid button2_Click(object sender, EventArgs e)
{
Form1ob = newForm1();
ob.Show();
this.Hide();
}
privatevoid button3_Click(object sender, EventArgs e)
{
Form5 obj3 = newForm5();
obj3.Show();
this.Hide();
}
privatevoid Form4_Load(object sender, EventArgs e)
{
}
}
}
Form 5: Employee Attendance
using System;
usingSystem.Collections.Generic;
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
28
usingSystem.Threading.Tasks;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceemployee_manage
{
publicpartialclassForm5 :Form
{
public Form5()
{
InitializeComponent();
}
privatevoid button1_Click(object sender, EventArgs e)
{
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO Attendance (Employee id,
name,date,intime,outtime,absence day) values('" + textBox1.Text + "','" +
textBox3.Text + "','" + textBox4.Text + "','" + textBox5.Text + "','" +
textBox6.Text + "')";
cmd.ExecuteNonQuery();
string Message = "your attendace is added";
29
MessageBox.Show(Message);
}
privatevoid button2_Click(object sender, EventArgs e)
{
Form1ob = newForm1();
ob.Show();
this.Hide();
}
privatevoid button3_Click(object sender, EventArgs e)
{
Form6 obj4 = newForm6();
obj4.Show();
this.Hide();
}
privatevoid Form5_Load(object sender, EventArgs e)
{
}
}
}
Form 6: Apply for leave
using System;
usingSystem.Collections.Generic;
30
usingSystem.ComponentModel;
usingSystem.Data;
usingSystem.Data.OleDb;
usingSystem.Threading.Tasks;
usingSystem.Drawing;
usingSystem.Linq;
usingSystem.Text;
usingSystem.Windows.Forms;
namespaceemployee_manage
{
publicpartialclassForm6 :Form
{
public Form6()
{
InitializeComponent();
}
privatevoid comboBox1_SelectedIndexChanged(object sender, EventArgs e)
{
privatevoid button1_Click_1(object sender, EventArgs e)
{
31
con = newOleDbConnection(@"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\c#\employee manage\Database2.mdb");
cmd = newOleDbCommand();
con.Open();
cmd.Connection = con;
cmd.CommandText = "INSERT INTO leave (Employee id,
name,applistaus,leavetype,no. day) values('" + textBox1.Text + "','" +
comboBox1.Text + "','" + comboBox2.Text + "','" + comboBox3.Text + "')";
cmd.ExecuteNonQuery();
string Message = "your leave is applied";
MessageBox.Show(Message);
}
privatevoid button2_Click_1(object sender, EventArgs e)
{
Form7 obj5 = newForm7();
obj5.Show();
this.Hide();
}
}
32
Reference
1. S.Thamarai Selvi and R. Murugesan “A TextBook on C#” ,pearson
Education ,2003.
2. Stephen C.perry,” Core C# and .Net”,Pearson Education,2006.
33