Final Project Documentation PDF

Download as pdf or txt
Download as pdf or txt
You are on page 1of 36

EMPLOYEE MANAGEMENT SYSTEM

PROJECT DOCUMENTATION

NAME : R.A. MADARA NIRMAN PERERA


REG NO : NUG/A 009664
BATCH NO : 346 MANAGEMENT SYSTEM 1
EMPLOYEE
1. Acknowledgement

I would like to express my sincere gratitude to my lecture Ms. Hasara Perera of Esoft Metro
Campus. She gave me helpful advice and sparing her valuable time from the very early stage
of this project.

Especially, I would like to extend my heartfelt gratitude to thank to the Manager of Ceylon
Biscuits Limited.

Finally, I would like to thank my close friends and also I must remind my parents, who stay
with my success and failures throughout our life and their support and encouragement
extremely helped my achieving all goals of my life.

EMPLOYEE MANAGEMENT SYSTEM 2


2. Table of Content

1. Acknowledgement……………………………………………………… 2

2. Table of Content………………………………………………………... 3

3. Introduction

3.1. Company Overview…………………………………. 5


3.2. Existing System with Drawbacks……………………. 6
3.3. Proposed System…………………………….............. 7
4. Diagrams
4.1. ER Diagram…………………………………………. 8
4.2. Use Case Diagram…………………………………… 9
5. Methodology
5.1. Software Development Model…………………………… 10
5.2. Functional and Non- Functional Requirements…………. 12
6. Interface Design and Coding
6.1. Login Window…………………………………………… 14
6.2. Main Menu………………………………………………. 18
6.3. Employee Window……………………………………… 20
6.3.1. Search Button……………………………… .. 20
6.3.2. Save Button………………………………….. 22
6.3.3. Update Button……………………………….. 25
6.3.4. Delete Button……………………………….. 28
6.3.5. Coding for Exit Buttons and Back Button… 31

7. Test Plan………………………………………………………………… 33

EMPLOYEE MANAGEMENT SYSTEM 3


8. Future Improvements…………………………………………………… 35
. 9. Conclusion…………………………………………………………… 36

EMPLOYEE MANAGEMENT SYSTEM 4


3. Introduction.

3.1. Company Overview.

Ceylon Biscuits Limited (branded CBL, commonly called Munchee) is a Sri Lankan food
manufacturer, the maker of Munchee biscuits and one of the oldest biscuit makers in Sri Lanka.
The company owns 60% of the domestic market share in Sri Lanka.

In July 1968 opened a new biscuit factory at Pannipitiya to produce the high-protein biscuit for
CARE. The factory was operated by Ceylon Biscuits Limited, a newly created subsidiary of
Williams (Williams owned 30%, the Wickramasingha family 30%, E. B. Creasy (an English
trading company) 30%, the workers 5% and other shareholders 5%). CBL imported two biscuit
manufacturing lines from Germany, one for the nutritional biscuit and the other for consumer
biscuit production. CBL's involvement with the school biscuit programme continued until
1988, when the programme was terminated. With the introduction of the second plant CBL
introduced a range of biscuits to the market under the brand name Munchee. These included
two of its own innovations, Hawaiian Cookies and Milk Short Cake, together with generic
biscuits nice, ginger and date biscuits.

In 1991 the company expanded into chocolate production, under the brand Ritzbury, importing
a chocolate machine for individual chocolates and an enrobing plant to make chocolate coated
biscuits and wafers. The chocolate production business was further expanded to include
chocolate fingers following the acquisition of the Maharaja Organization's Baker's Man biscuit
factory in the mid-1990s.. In September 2000 CBL took a 79% controlling share in Soy Foods
(Lanka) Limited and their brand Lanka Soy, which, despite being the pioneer in the local soy
products market, only had a 15% market share. In 2002 the company established CBL Foods
International (CBL Foods) in nearby Rannala. CBL Foods enabled the company to establish a
bakery line, producing cakes under the brand Tiara. The new factory commenced operations in
2004. CBL also shifted its chocolate manufacturing to the new plant. In 2014, CBL introduced
thei own supermarket chain Star United. As of 2014, there were 30 franchised supermarkets
within the country. At present this is one of the leading biscuit, chocolate and confectionery
manufacturers and marketers in Asia.

EMPLOYEE MANAGEMENT SYSTEM 5


3.2. Existing system with drawback.

The present employee management system is a manual system. This consumes more
manpower, time and large volume of stationery. Manual Handling of employee information
poses a number of challenges. 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. Finding employee details is not easy in this system. So proper system I
required.

➢ I can point out the existing system drawback as follow,


➢ Insufficient storage space.
➢ Lack of security.
➢ Time consuming.
➢ Difficulty in a modification of data.
➢ Increases cost.
➢ Duplication of data entry.

EMPLOYEE MANAGEMENT SYSTEM 6


3.3. Proposed System.

This project based on Microsoft Visual Studio and C # coding. This propose employee
management system helps them in many ways. they can add, edit and delete employee details
of the company. Users can register and login to view all entries of the employees. The software
features functionalities such as login and registration, add, edit or delete employee records and
also view their entries. You can access all details in few minutes. So, I think this new system
is efficient.

EMPLOYEE MANAGEMENT SYSTEM 7


4. Diagrams

4.1. ER Diagram

Employee ID
Email
TP

Full Name
Gender

Employee

Department ID

Department
Has Department
TP

Email
Department
Name

Role

Name Description

EMPLOYEE MANAGEMENT SYSTEM 8


4.2. Use Case Diagram

EMPLOYEE MANAGEMENT
SYSTEM

Employee
Information

Department
Information
Department

Role Information
Employee

Save Data

Search Data

Update Data

Role

Delete Data

Admin

EMPLOYEE MANAGEMENT SYSTEM 9


5. Methodology

5.1. Software Development Model.

I used Waterfall Model for creating this Employee Management System. This is the
earliest SLDC approach was used for develop this software. In this approach, the entire
process of software development is divided in separate steps. The outcome of one step
act as the input for the next step sequentially. Every step has to be completed before the
next step starts and there is no over lapping of the steps. We can see Waterfall Model
steps in below.

Requirements Analysis &


Definition

System & Software


Design

Implementation & Unit


Testing

Integration & System


Testing

Operations &
Maintenance

EMPLOYEE MANAGEMENT SYSTEM 10


1. Requirements Analysis and Definition.

Conducted a comprehensive analysis of the existing database and developed a plan that
defines the objectives, scope and structure of the entire system.

2. System and Software Design.

The requirement specification from first phase is studied in this phase and the system design is
prepared. This management system design helps in specifying hardware and system
requirement and defining the overall system architecture.

The management system that has been designed by C# Programming Language and Visual
Studio Sever can user for the database management.

3. Implementation and Unit Testing.

During this step, the new management system software design is realized as a set of programs
or program units.

4. Integration and System Testing.

The units developed at this stage are integrated into a system and then its faults and failures are
discovered.

5. Operations and Maintenance.

There are some issues which come up in the user environment. To fix those issues are released.
Also, to enrich the product some better versions are released. Maintenance is done to deliver
these changes in the user environment.

EMPLOYEE MANAGEMENT SYSTEM 11


5.2. Functional and Non – Functional Requirements.

• Functional Requirements

❖ Add and update employee data


❖ Delete employee details
❖ Store employee details
❖ Searching employee details

• Non – Functional Requirements

❖ Costs
❖ Network bandwidth
❖ Security

EMPLOYEE MANAGEMENT SYSTEM 12


Functional and Non - Functional Requirements.

Functional Requirements Non- Functional Requirements

Admin can login to the Employee The software should be portable. So moving
Management System using the given Email from one OS to other OS doesn’t create any
and Password. problem.

Employee Management System contain


details of the Employees in working in Protect privacy of Employees information.
CBL.

Admin can save, search, update and delete


Give to good user experience for user.
Employees Database.

Can changed Email and Password for


To view the details of employee at any time.
security purpose in the Organization.

EMPLOYEE MANAGEMENT SYSTEM 13


6. Interface Design and Coding

6.1. Login Window.


• Interface of the login page views as below.

Figure 1

• When we login the employee management system, we need to enter the


Email and Password in to the textboxes at first.
• After entering the Email and Password right, we can click “Login” button
for login system.
• Email is “[email protected]
• Password is “1234”

EMPLOYEE MANAGEMENT SYSTEM 14


Figure 2

• After entering the right details, you can click “Login” button for enter the
system.
• Then you can see the next page by clicking “OK” on the appeared message
box as shown below.

EMPLOYEE MANAGEMENT SYSTEM 15


Figure 3

• If you want to Exit the system, you can click “Exit” button.
• You enter wrong details, you won’t be able to access the employee
management system and it is shown as below in the message box, “Login
Failed”.
• In this Figure, Email is wrong. (Figure 4)

Figure 4

EMPLOYEE MANAGEMENT SYSTEM 16


Code for the “Login Window”
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Employee_Management_System
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void label1_Click(object sender, EventArgs e)


{

private void buttonLogin_Click(object sender, EventArgs e)


{
string email = textBoxEmail.Text;
string password = textBoxPassword.Text;
if(email == "[email protected]" && password == "1234")

{
MessageBox.Show("Login Success!");
}

else

MessageBox. Show("Login Failed!");

}
private void buttonExit_Click(object sender, EventArgs e)
{
Application.Exit();

Figure 5

EMPLOYEE MANAGEMENT SYSTEM 17


6.2. Main Menu Window
• User given correct details above, he/she can access to login main menu in this
system.

Figure 6

• Main Menu is access to the Employee window.


• When user click on “Employee”, it will open the “Employee Window.”
• When user click on “Back” button, user can leave Main Menu and
conducted to the earlier Page.
• When user click on “Exit” button, user will be logged out.

EMPLOYEE MANAGEMENT SYSTEM 18


Coding for the Main Menu Window.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Employee_Management_System
{
public partial class Main_Menu : Form
{
public Main_Menu()
{
InitializeComponent();
}

private void Main_Menu_Load (object sender, EventArgs e)

private void buttonEmployee_Click(object sender, EventArgs e)


{
//Go to Employee_Window

Employee_Window obj = new Employee_Window();


obj.Show();
this.Hide();

Figure 7

EMPLOYEE MANAGEMENT SYSTEM 19


6.3. Employee Window.
• Now you can see the “Employee Window” as below, by clicking the button
named, “Employee”.

Figure 8

6.3.1. Search Button


• If you want to search information about an employee, you have to enter the
employee “Full Name” in the given space (below search employee)

Figure 9

EMPLOYEE MANAGEMENT SYSTEM 20


• In this figure, I have entered the employee Full Name – “K.L. Sadun
Weerasekara” and clicked “Search” button so all information is displayed.

Coding for the Search Button in the Employee Window.

private void buttonSearch_Click_1(object sender, EventArgs e)


{
try
{

string query_search = "SELECT * FROM Employee WHERE FullName ='" +


textBox5.Text + "'";

SqlCommand cmnd = new SqlCommand(query_search, con);


con.Open();
SqlDataReader r = cmnd.ExecuteReader();
while (r.Read())
{
textBox1.Text = r[1].ToString();
textBox2.Text = r[2].ToString();
textBox3.Text = r[3].ToString();
comboBox1.Text = r[4].ToString();

}
}
catch (Exception ex)
{
MessageBox.Show("Error while Searching" + ex);
}

finally
{
//closing the connection
con.Close();
}

Figure 10

EMPLOYEE MANAGEMENT SYSTEM 21


6.3.2. Save Button (Insert Button)
• Now you can see saving data of a new employee.

Figure 11

• This figure shows the information of the database, before saving the data of the
new employee.

Figure 12

EMPLOYEE MANAGEMENT SYSTEM 22


• Now you can see after saving the new employee data in employee table.

Figure 13

EMPLOYEE MANAGEMENT SYSTEM 23


Coding for the Save Button in Employee Window.

private void buttonSave_Click(object sender, EventArgs e)


{
try
{//taking data from the GUI
string FullName = textBox1.Text;
string Email = textBox2.Text;
int TP = int. Parse (textBox3.Text);
string Gender= comboBox1.Text;
//sql query
string query_insert = "insert into Employee
values('"+FullName+"','"+Email+"',"+TP+",'"+Gender+"')";
// SQL command
SqlCommand cmnd = new SqlCommand(query_insert,con);
con.Open();
cmnd.ExecuteNonQuery();
//Successful Message after the execution
MessageBox.Show("Saved Successfully !");

}
catch (Exception ex)
{
MessageBox.Show("Error While Saving"+ex);

}
finally {
//closing the connection
con.Close();
}

Figure 14

EMPLOYEE MANAGEMENT SYSTEM 24


6.3.3. Update Button.
• Next you can see how change save data as below. First you can search the employee
using his or her Employee Full Name and you can change the information should be
updated. Finally, click on the “Update” button in the employee window as below.
• This figure display search information before the update.

Figure 15

• This figure shows after the information, which has been updated.

Figure 16

EMPLOYEE MANAGEMENT SYSTEM 25


• This figure shows the information of the employee in the database before update.

Figure 17

• This is the information included after the update as below. (Employee TP


Updated)

Figure 18

EMPLOYEE MANAGEMENT SYSTEM 26


Coding for the Update Button in the Employee Window.

private void button3_Click(object sender, EventArgs e)


{
try
{//taking data from the GUI
string FullName = textBox1.Text;
string Email = textBox2.Text;
int TP = int.Parse(textBox3.Text);
string Gender = comboBox1.Text;
//sql query
string query_update = "update Employee set FullName= '" + FullName +
"', Email='" + Email + "', TP= " + TP + ", Gender= '" + Gender + "'Where Email=
'"+Email+"'";

// SQL command
SqlCommand cmnd = new SqlCommand(query_update, con);
con.Open();
cmnd.ExecuteNonQuery();
//Successful Message after the execution
MessageBox.Show("Update Successfully !");

}
catch (Exception ex)
{
MessageBox.Show("Error While Updating" + ex);

}
finally
{
//closing the connection
con.Close();
}

Figure 19

EMPLOYEE MANAGEMENT SYSTEM 27


6.3.4. Delete Button.
• Finally, we can see how to delete information of a particular Employee.
• We can search the information of the employee by entering the employee Full Name.
• After we can click on the “Delete” button for deleting information of the employee from
the database as below.
• Now we can see before deleting data.

Figure 20

• After deleting data.

Figure 21

EMPLOYEE MANAGEMENT SYSTEM 28


• Now we can see how the information in the database was shown before deleting the
employee table.

Figure 22

• This is how it show like after deleting the data from the employee table in the
database.

Figure 23

EMPLOYEE MANAGEMENT SYSTEM 29


Coding for the Delete Button in the Employee Window.

private void buttonDelete_Click(object sender, EventArgs e)


{
try
{
string deletesql = "delete from Employee where FullName='"+
textBox5.Teet+ "'";
//SQL command
SqlCommand cmnd = new SqlCommand(deletesql, con);
con.Open();
cmnd.ExecuteNonQuery();
//Successfull Message after the execution
MessageBox.Show("Deleted !");

}
catch(Exception ex)
{
MessageBox.Show("Error While Deleting" + ex);

}
finally
{
//closing the connection
con.Close();

}
}

}
Figure 24

EMPLOYEE MANAGEMENT SYSTEM 30


6.3.5. Coding for Exit Buttons and Back Buttons.

Coding for Exit Button in Login Page.

private void buttonExit_Click(object sender, EventArgs e)


{
Application.Exit();

}
Figure 25

Coding for Back Button in Main Menu.

private void buttonBack_Click(object sender, EventArgs e)


{
this.Close();
Form1 obj = new Form1();
obj.Show();
}

Figure 26

Coding for Exit Button in Main Menu.

private void buttonExit_Click(object sender, EventArgs e)


{
Application.Exit();
}
Figure 27

EMPLOYEE MANAGEMENT SYSTEM 31


Coding for Back Button in Employee Window.

}
private void buttonBack_Click(object sender, EventArgs e)
{
this.Close();
Main_Menu Obj = new Main_Menu();
Obj.Show();
}

Figure 28

Coding for Exit Button in Employee Window.

private void buttonExit_Click(object sender, EventArgs e)


{
Application.Exit();
}

}
}

Figure 29

EMPLOYEE MANAGEMENT SYSTEM 32


7. Test Plan.

7.1.Test Procedure.

According to the project proposal’s time frame the testing procedure held from day 16
to day 23.

7.2.Tested Items.

All the function (Login, Save, Search, Update and Delete) have been tested and the
following table will display that software has reach its requirements.

Function Test Case Solution

Email: [email protected] Login Successful!


Password: 1234 (Figure 3)
Login
Email: admin#@cbl.lk Login Failed
Password: 1234 (Figure 4)

Search Employee
Search
Full Name: K.L.Sadun Figure 9
Employee
Weerasekara.
Full Name: W.A.Yashodha
Karunapala.
Figure 11
Save Email: [email protected]
Figure 12
Employee TP: 0777754066
Figure 13
Gender: Female.

Figure 15
Update Employee
Update Figure 16
Full Name: S.D.Rasika Cabral.
Employee Figure 17
TP: 0719507600
Figure 18

Deleted Data
Delete Employee Figure 20
Delete
Full Name: W.A. Yashodha Figure 21
Employee
Karunapala. Figure 22
Figure 23

EMPLOYEE MANAGEMENT SYSTEM 33


Test Plan Test Value Expected Result Real Result

Login Page

Incorrect Email
1 Login Failed Login Failed
Correct Password

Correct Email
Login Success! Login Success!
Correct Password

Employee

Save Button Error while saving Error while saving

Saved Saved
Save Button
Successfully Successfully

Error while Error in searching


Search Button
searching data

Search Button All fields are filled All fields are filled
2

Error while Error in updating


Update Button
updating data

Update Update
Update Button
Successfully Successfully

Error while Error in deleting


Delete Button
deleting data

Delete Button Deleted Deleted

EMPLOYEE MANAGEMENT SYSTEM 34


8. Future Improvements.

In the future will try to develop this software more reliable and flexible. We hope to add new
features in this system.

• More details of employees.


• Add Departments and Employee Roles details.
• Hope to add this system data visualization technology to represent data in better
understanding.

EMPLOYEE MANAGEMENT SYSTEM 35


9. Conclusion.

This project report given information how to develop Employee Management System
using Micro Soft Visual Studio and C# Coding. When developed this project I could
learn how to create database in Management System. I used Waterfall Software
Development Model to develop this software.

This Management System could save, search, update and delete data in database.
I think this Employee Management System is user friendly and easy to manage user.
Now, this Employee Management System represent only Employee Details but we
hope to add Departments and Employee’s Roles in the future. I could improve my
Programming, Software Development and Database knowledge expansion after created
this project.

-The End-

Thank You.

EMPLOYEE MANAGEMENT SYSTEM 36

You might also like