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

A

PROJECT
ON

“ ”
Submitted to

In the partial fulfillment of


Bca(Computer Application)Final Year

Submitted by
Yugal kishor
Shailendra Kumar Mishra

Under the guidance of


Swami ranjan
Department of B.C.A

G.J. COLLEGE,BIHTA
2023-24
G.J. COLLEGE,BIHTA
(2023 - 2024)

This is to certify that Mr yugal kishor & shailesh kumar mishra has completed
their project on the topic of “ EMPLOYEE MANAGEMENT SYSTEM”
prescribed by G.J. COLLEGE,BIHTA for BCA (Computer Application) – 3rd year

. Date:

Place: Patna

Sumit kumar

Project Guide

External Examiner Internal Examiner


ACKNOWLEDGEMENT
We take this opportunity to express our deep gratitude and whole hearted thanks to
project guide Prof. Swami ranjan, Coordinator for his guidance throughout this work.
We are very much thankful to him for his constant encouragement, support and
kindness.

We are also grateful to our teachers Prof. suraj kumar for their encouragement, help
and support from time to time.

We also wish to express our sincere thanks to Principal D.r for providing us wide range
of opportunities, facilities and inspiration to gatherprofessional knowledge and
material without which this project could not have been completed.

Date: 1.) Yugal kishor


Place: Patna 2.) Shailesh kumar mishra
DECLARATION

We Yugal kishor , Shailesh kumar mishra hereby honestly declare that the work

entitled “EMPLOYEE MANAGEMENT SYSTEM” submitted by us at G.J. COLLEGE,BIHTA

in partial fulfillment of requirement for the award of B.CA.

(Computer Application) degree by, Pattlipura University, Patna has not been

submitted elsewhere for the award of any degree, during the academic session

2021-2024. The project has been developed and completed by us

independently under the supervision of the subject teacher and project guide.

Date:
Place:Patna
1) Yugal kishor

2) Shailesh kumar mishra


INDEX
Sr no Particulars Page Signature Remarks
no
1 Introduction

2 Objectives

3 Preliminary System Analysis


3.1 Preliminary Investigation
3.2 Present System in Use
3.3 Flaws in Present System
3.4 Need for New System
3.5 Feasibilty Study
4 Project Category

5 Software and Hard Required Specification

6 Detailed System Analysis

7 System Design

8 Testing and validation checks

9 System Security Measures

10 Implementation, evaluation, and maintenance

11 Future Scope of project

12 Conclusion

13 Bibilography and Refrence


INTRODUCTION
INTRODUCTION
The "Employee Management System" has been developed to override
the problems prevailing in the practicing manual system. This software
is supported to eliminate and, in some cases, reduce the hardships
faced by this existing system. Moreover, this system is designed for the
particular need of the company to carry out operations in a smo oth and
effective manner.

The application is reduced as much as possible to avoid errors while


entering the data. It also provides error message while entering invalid
data. No formal knowledge is needed for the user to use this system.
Thus, by this all it proves it is user-friendly. Employee Management
System, as described above, can lead to error free, secure, reliable and
fast management system. It can assist the user to concentrate on their
other activities rather to concentrate on the record keeping . Thus, it
will help organization in better utilization of resources.

Every organization, whether big or small, has challenges to overcome


and managing the information of new employee data of employee.
Every Employee Management System has different Employee needs;
therefore, we design exclusive employee management systems that are
adapted to your managerial requirements. This is designed to assist in
strategic planning, and will help you ensure that your organization is
equipped with the right level of information and details 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.
The Application includes:

 Login Form

 Admin Page

 Employee Information

 View Employee

 Add Employee

 Update Employee

 Delete Employee

These systems will ultimately allow you to better manage resources.


OBJECTIVE
OBJECTIVES

The main objective of the Project on Employee Management System is to manage the

details Employee data base and information. It manages all the information about

Employee data base and information. The project is totally built at administrative end

and thus only the administrator is guaranteed the access. The purpose of the project is

to build a web-based application program to reduce the manual work for managing

the Employee data base and information. It tracks all the details about the Employee

data base and information, etc.

1. The objectives of a Employee management system is to operate a Office with

efficiency and at reduced costs. The system being entirely automated streamlines all

the tasks involved in operations of the Employee.

2. The activities of Employee data base and information, cataloging, indexing,

circulation recording and stock checking are done by the software. Such software

eliminates the need for repetitive manual work and minimizes the chances of errors.

3. The Employee management system software helps in reducing operational costs.

Managing a office manually is labor intensive and an immense amount of paperwork

is involved. An automated system reduces the need for manpower and stationery. This

leads to lower operational costs.

4. The system saves time for both the employee and the official. With just a click the

user can search for the Employee data base and information. The employee can

answer queries with ease regarding the information of employee.


5. Adding, removing or editing the database is a simple process. Adding new members

or cancelling existing memberships can be done with ease. 11

6. Stock checking and verification of information of employee can be done within a


few hours. The automated system saves a considerable amount of time as opposed to
the manual system.

7. The Employee management system software makes the office a smart one by
organizing the Employee data base and information. This enables users to search for
Employee data base and information.

8. Employee need access to authentic information. An advanced organized office is an


integral part of any office.

9. In this digital age a web-based Employee management system would be ideal for
employee who can access the office’s database on their smartphones.

10. The main objective of the Project of Employee Management System is to manage
the details of users as well as employee.

11. It also manages all the information about Employee data base and information.
PRELIMINARY
SYSTEM
ANALYSIS
Preliminary investigation
The first step in the System Development Life Cycle (SDLC) is the identification of the
need. This is the user request to change, improve or enhance an existing system.
Because there is likely to be a stream of such requests, standard procedures must be
established to deal with them. The initial investigation is one way of this solutions. In
this process, the development team visit the customer and studies their system. They
investigate the need for possible software automation of the given system by the end
of the preliminary investigation. Our project furnish the document that hold the
different recommendation of the needs of the user.

Present system in Use :


Present system comprises all the information related to Employee data base and
information. Current system also contains information about employee and employee
information. It contains registration option to users. Without registration nobody can
use this system

Flaws In Present System


Present system has various limitations. Present System is difficult to use. User
interface not shown properly. Fast report generations is not possible. search the
employee information is difficult Security issues occurring sometimes. Information
about issue or employee information are not properly maintained.
Need For New System:

A current system is not compatible because the current system is a bit complicated to
use. The new system is designed to be easy for the user to use. Admin can get all the
information about employee according to the new system. The new system includes
employee’s mobile number, address, employee id, salary , designation, education, dob,
aadhar number all information are stored in this new system so we can easily search
them.
Feasibility Study
Feasibility Study
Feasibility study of a system means whether the system is practically possible to build or
not. It also evaluates the benefits of the new system. A feasibility study is an analysis of
how a successfully a project can be completed, according factors that affect is such as
Economical, behavioral, Technical and Operational. Project Manager use feasibility
studies to determine potential positive and negative outcomes of the project before
investing a consideration of amount of time and money into it. The software that has to
be developed is analyze in details and the system which is to be developed in technically,
operationally and economically feasible or not is taken care of. The feasibility study
means not to solve the problems completely but also to acquire the scope and work ability
of the problem by giving various solutions to give problem and picking up one of the best
solutions.

1. Technical Feasibility:

Technical Feasibility one of the studies that must be conducted after a project has
been identified. Technical Feasibility means to solve the problems related to hardware
and software. It refers to the technical resources needed to develop the new
application. The analyst must find out whether current technologies are sufficient for
proposed system. In “Employee Management System” web-based application is
developed in Intellij idea community edition, which can be easily run on any system
with the required configuration

2. Behavioral Feasibility:

It is natural observation that people are resistant to change and computers have
know to facilitate change. When the user system has been developed or when a step
is taken to convert a manual system to the computerized system, it is a significant
factor to know the reaction of the user staff as they are once who will judge the
working of the new system. It is checked as to what percentage of staff members are
against the change and one who support it.
3. Operational Feasibility:

Operational feasibility ascertains how well the implementation of a project fits in with
the current organizational structure. The solutions to a current problem must come as
close as possible to a perfect fit with the organizational structure and be able to be
applied to solve other arising problems. The opportunities that come along the way
during the solution implementation must be able to be harnessed for even easier
implementation
PROJECT CATEGORY
Project Category
A category of project is web-based application named “Employee Management
System”. Login Form and Main Window are designed by using Java language with
swing module. MySQL are used for the database connection with Java.

Programming Language and Database Connectivity Used In Project:

Java:
Java is a high-level, class-based, object-oriented programming language
that is designed to have as few implementation dependencies as possible.
It is a general-purpose programming language intended to let
programmers write once, run anywhere, meaning that compiled Java code
can run on all platforms that support Java without the need to recompile.
Java applications are typically compiled to bytecode that can run on any
Java virtual machine regardless of the underlying computer architecture.
The syntax of Java is similar to C and C++, but has fewer low-level facilities
than either of them. The Java runtime provides dynamic capabilities that
are typically not available in traditional compiled languages. As of 2019,
Java was one of the most popular programming languages in use
according to GitHub, particularly for client–server web applications, with
a reported 9 million developers.

My-SQL

MySQL is a Relational Database Management System (RDBMS) developed


by Oracle that is based on Structured Query Language (SQL). MySQL is one
of the most recognizable technologies in the modern big data ecosystem.
Often called the most popular database and currently enjoying
widespread, effective use regardless of industry, it’s clear that anyone
involved with enterprise data or general IT should at least aim for a basic
familiarity of MySQL. With MySQL, even those new to relational systems
can immediately build fast, powerful, and secure data storage systems .
MySQL’s programmatic syntax and interfaces are also perfect gateways

into the wide world of other popular query languages and structured data
stores.

A database is a structured collection of data. It may be anything from a


simple shopping list to a picture gallery or a place to hold the vast
amounts of information in a corporate network. In particular, a relational
database is a digital store collecting data and organizing it according to
the relational model. In this model, tables consist of rows and columns,
and relationships between data elements all follow a strict logical
structure. An RDBMS is simply the set of software tools used to actually
implement, manage, and query such a database.

MySQL is integral to many of the most popular software stacks for


building and maintaining everything from customer-facing web
applications to powerful, datadriven B2B services. Its open-source nature,
stability, and rich feature set, paired with ongoing development and
support from Oracle, have meant that internet-critical organizations such
as Facebook, Twitter, Wikipedia, and YouTube all employ MySQL
backends.
SOFTWARE
AND
HARDWARE
REQUIREMENT
SPECIFICATION
Hardware
Hardware is a term that refers to all the physical parts that make up a
computer. The internal hardware devices that make up the computer.
Various devices which are essentials to form a hardware is called as
components.
Following are the hardware specifications that is required to develop this project
is as follows.

1. Computer components like Monitor, Keyboard, Mouse, CPU, Keyboard.


2. Minimum 1 GB ram for smooth working of application.
3. 250 GB Hard Disk or More. CD ROM Drive.

Software

Computer software, or simply software, is a collection of data or computer


instructions that tell the computer how to work. This is in contrast to physical
hardware, from which the system is build and actually performs the work.
 Front End- Java

 Back End- MySQL Workbench

 Text Editors- Intellij idea

Operating System

 Windows 10
Detailed System Analysis
Data Flow Diagram

Employee
Reports
User Management

system

Database
Number of Modules And Process Logic

 Modules used in Project:

from swing import*

import javax.swing

from java.awt.*;
from java.awt.event.action.listener.*;
from swing import awt.event.*;
import random
import time
import datetime
import mysql.connector
from time import strftime
Data Structures and Tables

1)Registration:
This is a MySQL Database in which the Administrator can manage the
Employee Registration details.
2) Employee Details:
This is a MySQL Database in which the Administrator can manage the User
details of Library Management System.
SYSTEM DESIGN
Form Design

1) Admin
This Is Employee Management System Front Page. You To Login From
Here After Click To Continue. You Have To Click On The Click On
Continue. You Go To Login Page.

2.)Login

This is the Library Management System Login Form. You have to


enter Username and Password on it. There are also options like New
User Registration and Forget Password
.

3.)Home

This is the Main Window of the Library Management System. From


here the Admin uses this system.
4.)Add employee

This Is The Add Employee Page. In This Page We Add New


Employee Details.

5.)View Employee

This Is The View Employee Page. In This Page We Can See


Employee Information By There Employee Id.
6.) Update Employee

This is the update employee page. In this page we can


update information of employee by using employee id.
7.)Remove Employee

This Is The Remove Employee Page. In this Page We Can


Remove The Employee Information By Using Employee Id.
Source code

1) Admin front and login:


package Employee.Managment.System;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.awt.event.*;
public class splash extends JFrame implements ActionListener {
splash(){
Object color;
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel heading = new JLabel("EMPLOYEE MANAGEMENT SYSTEM");


heading.setBounds(80,30, 1200,60);
heading.setFont(new Font("serif",Font.PLAIN,60));
heading.setForeground(Color.RED);
add (heading);
ImageIcon i1= new
ImageIcon(ClassLoader.getSystemResource("icons/front.jpg"));
Image i2 = i1.getImage().getScaledInstance(1100,700,
Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(50,100,1050,500);
add(image);

JButton clickhere = new JButton("CLICK HERE TO CONTINUE");


clickhere.setBounds(400,400,300,70);
clickhere.setBackground(Color.BLACK);
clickhere.setForeground(Color.WHITE);
clickhere.addActionListener(this);
add(clickhere);
setSize(1170, 650);
setLocation(200, 50);
setVisible(true);
while(true){
heading.setVisible(false);
try{
Thread.sleep(500);
}
catch (Exception e){

}
heading.setVisible(true);
try{
Thread.sleep(500);
}
catch (Exception e){

}
}
}

public void actionPerformed( ActionEvent ae) {


setVisible(false);
new Login();
}

public static void main(String args[]){

new splash();
}
}

package Employee.Managment.System;

import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.ResultSet;
import java.sql.*;
public class Login extends JFrame implements ActionListener {
JTextField tfusername, tfpassword;
Login(){
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel lblusername = new JLabel("username");


lblusername.setBounds(40,20,100,30);
add(lblusername);

tfusername= new JTextField();


tfusername.setBounds(150,20,150,30);
add(tfusername);

JLabel lblpassword= new JLabel("password");


lblpassword.setBounds(40,70,100,30);
add(lblpassword);

tfpassword= new JTextField();


tfpassword.setBounds(150,70,150,30);
add(tfpassword);

JButton Login = new JButton("LOGIN");


Login.setBounds(150,140,150,30);
Login.setBackground(Color.BLACK);
Login.setForeground(Color.WHITE);
Login.addActionListener(this);
add(Login);
ImageIcon i1= new
ImageIcon(ClassLoader.getSystemResource("icons/second.jpg"));
Image i2 = i1.getImage().getScaledInstance(200,200,
Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(350,0,200,200);
add(image);

setSize(600,300);
setLocation(450,200);
setVisible(true);
}
@Override
public void actionPerformed(ActionEvent ae) {
try{
String username = tfusername.getText();
String password = tfpassword.getText();

conn c = new conn();


String query = "select * from login where username =
'"+username+"' and password = '"+password+"'";

ResultSet rs = c.s.executeQuery(query);
if (rs.next()){
setVisible(false);
new home();
}else {
JOptionPane.showMessageDialog(null, "Invalid username or
password");
setVisible(false);
}

}catch (Exception e){


e.printStackTrace();
}
}

public static void main (String[]args){


new Login ();
}

private class Conn {


}
}
2)Main Homescreen;

package Employee.Managment.System;
import javax.swing.*;
import java.awt.*;
import com.toedter.calendar.JDateChooser;
import java.util.*;
import java.awt.event.*;
public class AddEmployee extends JFrame implements ActionListener {
Random ran = new Random();
int number = ran.nextInt(999999);
JTextField tfname, tffname, tfaddress, tfphone, tfaadhar, tfemail,
tfsalary, tfdesignation;
JDateChooser dcdob;
JComboBox cbeducation;
JLabel lblempId;
JButton add, back;

AddEmployee() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel heading = new JLabel("Add Employee Detail");


heading.setBounds(320, 30, 500, 50);
heading.setFont(new Font("SAN SERIF", Font.BOLD, 25));
add(heading);

JLabel labelname = new JLabel("Name");


labelname.setBounds(50, 150, 150, 30);
labelname.setFont((new Font("serif", Font.PLAIN, 20)));
add(labelname);

tfname = new JTextField();


tfname.setBounds(200, 150, 150, 30);
add(tfname);

JLabel labelfname = new JLabel("Father's Name");


labelfname.setBounds(400, 150, 150, 30);
labelname.setFont(new Font("serif", Font.PLAIN, 20));
add(labelfname);

tffname = new JTextField();


tffname.setBounds(600, 150, 150, 30);
add(tffname);

JLabel labeldob = new JLabel("Date of Birth");


labeldob.setBounds(50, 200, 150, 30);
labeldob.setFont(new Font("serif", Font.PLAIN, 20));
add(labeldob);

dcdob = new JDateChooser();


dcdob.setBounds(200, 200, 150, 30);
add(dcdob);

JLabel labelsalary = new JLabel("Salary");


labelsalary.setBounds(400, 200, 150, 30);
labelsalary.setFont(new Font("serif", Font.PLAIN, 20));
add(labelsalary);
tfsalary = new JTextField();
tfsalary.setBounds(600, 200, 150, 30);
add(tfsalary);

JLabel labeladdress = new JLabel("Address");


labeladdress.setBounds(50, 250, 150, 30);
labeladdress.setFont(new Font("serif", Font.PLAIN, 20));
add(labeladdress);

tfaddress = new JTextField();


tfaddress.setBounds(200, 250, 150, 30);
add(tfaddress);

JLabel labelphone = new JLabel("phone");


labelphone.setBounds(400, 250, 150, 30);
labelphone.setFont(new Font("serif", Font.PLAIN, 20));
add(labelphone);

tfphone = new JTextField();


tfphone.setBounds(600, 250, 150, 30);
add(tfphone);

JLabel labelemail = new JLabel("Email");


labelemail.setBounds(50, 300, 150, 30);
labelemail.setFont(new Font("serif", Font.PLAIN, 20));
add(labelemail);

tfemail = new JTextField("" + number);


tfemail.setBounds(200, 300, 150, 30);
add(tfemail);

JLabel labeleducation = new JLabel("Highest Education");


labeleducation.setBounds(400, 300, 150, 30);
labeleducation.setFont(new Font("serif", Font.PLAIN, 20));
add(labeleducation);

String courses[] = {"BCA", "BBA", "BA", "B.COM", "BTech", "MBA",


"MCA", "MA", "MTech", "MSc", "Phd"};
cbeducation = new JComboBox(courses);
cbeducation.setBackground(Color.WHITE);
cbeducation.setBounds(600, 300, 150, 30);
add(cbeducation);

JLabel labeldesignation = new JLabel("Designation");


labeldesignation.setBounds(50, 350, 150, 30);
labeldesignation.setFont((new Font("serif", Font.PLAIN, 20)));
add(labeldesignation);

tfdesignation = new JTextField();


tfdesignation.setBounds(200, 350, 150, 30);
add(tfdesignation);

JLabel labelaadhar = new JLabel("Aadhar Number");


labelaadhar.setBounds(400, 350, 150, 30);
labelaadhar.setFont(new Font("serif", Font.PLAIN, 20));
add(labelaadhar);

tfaadhar = new JTextField();


tfaadhar.setBounds(600, 350, 150, 30);
add(tfaadhar);

JLabel labelempId = new JLabel("Employeee id");


labelempId.setBounds(50, 400, 150, 30);
labelempId.setFont(new Font("serif", Font.PLAIN, 20));
add(labelempId);

JLabel lblempId = new JLabel("" + number);


lblempId.setBounds(200, 400, 150, 30);
lblempId.setFont(new Font("serif", Font.PLAIN, 20));
add(lblempId);

add = new JButton("Add Details");


add.setBounds(250, 550, 150, 40);
add.addActionListener(this);
add.setBackground(Color.BLACK);
add.setForeground(Color.WHITE);
add(add);

back = new JButton("Back");


back.setBounds(450, 550, 150, 40);
back.addActionListener(this);
back.setBackground(Color.BLACK);
back.setForeground(Color.WHITE);
add(back);

setSize(900, 700);
setLocation(300, 50);
setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == add) {
String name = tfname.getText();
String fname = tffname.getText();
String dob = ((JTextField)
dcdob.getDateEditor().getUiComponent()).getText();
String salary = tfsalary.getText();
String address = tfaddress.getText();
String phone = tfphone.getText();
String email = tfemail.getText();
String education = (String) cbeducation.getSelectedItem();
String designation = tfdesignation.getText();
String aadhar = tfaadhar.getText();
String empId =lblempId.getText();

try {
conn conn = new conn();
String query = "insert into employee values('" + name + "',
'" + fname + "','" + dob + "','" + salary + "', '" + address + "','" +
phone + "', '" + email + "', '" + education + "','" + designation + "', '"
+ aadhar + "', '" + empId + "')";
conn.s.executeUpdate(query);
JOptionPane.showMessageDialog(null, "Details added
successfully");
setVisible(false);
new home();
} catch (Exception ae) {
ae.printStackTrace();
}

} else {
setVisible(false);
new home();
}
}

public static void main(String[] args) {

AddEmployee addEmployee = new AddEmployee();


}
}
package Employee.Managment.System;
import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;
import java.sql.ResultSet;
import java.sql.*;
import net.proteanit.sql.DbUtils;
import java.awt.event.*;

public class ViewEmployee extends JFrame implements ActionListener {


JTable table;
Choice employeeId;
JButton search, print, update, back;

ViewEmployee() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel searchlbl = new JLabel("Search by Employee Id");


searchlbl.setBounds(20, 20, 150, 20);
add(searchlbl);

employeeId = new Choice();


employeeId.setBounds(180, 20, 150, 20);
add(employeeId);

try {
conn c = new conn();
ResultSet rs = c.s.executeQuery("select * from employee");

while (rs.next()) {
employeeId.add(rs.getString("empid"));
}
} catch (Exception e) {
e.printStackTrace();
}

table = new JTable();


try {
conn c = new conn();
ResultSet rs = c.s.executeQuery("select * from employee");
table.setModel(DbUtils.resultSetToTableModel(rs));

} catch (Exception e) {
e.printStackTrace();
}
JScrollPane jsp = new JScrollPane(table);
jsp.setBounds(0, 100, 900, 600);
add(jsp);

search = new JButton("Search");


search.setBounds(20, 70, 00, 20);
search.addActionListener(this);
add(search);

print = new JButton("Print");


print.setBounds(120, 70, 00, 20);
print.addActionListener(this);
add(print);

update = new JButton("Update");


update.setBounds(220, 70, 00, 20);
update.addActionListener(this);
add(update);

back = new JButton("Back");


back.setBounds(320, 70, 00, 20);
back.addActionListener(this);
add(back);

setSize(900, 700);
setLocation(300, 100);
setVisible(true);
}

public static void main(String[] args) {

new ViewEmployee();
}

@Override
public void actionPerformed(ActionEvent ae) {
if (ae.getSource() == search) {

} else if (ae.getSource() == print) {

} else if (ae.getSource() == update) {


} else {
setVisible(false);
new home();
}
}
}
package Employee.Managment.System;
import javax.swing.*;
import java.awt.*;
import com.toedter.calendar.JDateChooser;
import java.util.*;
import java.awt.event.*;
public class update extends JFrame implements ActionListener {

private final JDateChooser dcdob;


JTextField tfeducation, tffname, tfaddress, tfphone, tfaadhar, tfemail,
tfsalary, tfdesignation;
JLabel lblempId;
JButton add, back;

update() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel heading = new JLabel("update Employee Detail");


heading.setBounds(320, 30, 500, 50);
heading.setFont(new Font("SAN SERIF", Font.BOLD, 25));
add(heading);

JLabel labelname = new JLabel("Name");


labelname.setBounds(50, 150, 150, 30);
labelname.setFont((new Font("serif", Font.PLAIN, 20)));
add(labelname);

JLabel lblname = new JLabel();


lblname.setBounds(200, 150, 150, 30);
add(lblname);

JLabel labelfname = new JLabel("Father's Name");


labelfname.setBounds(400, 150, 150, 30);
labelname.setFont(new Font("serif", Font.PLAIN, 20));
add(labelfname);

tffname = new JTextField();


tffname.setBounds(600, 150, 150, 30);
add(tffname);

JLabel lbldob = new JLabel("Date of Birth");


lbldob.setBounds(50, 200, 150, 30);
lbldob.setFont(new Font("serif", Font.PLAIN, 20));
add(lbldob);

dcdob = new JDateChooser();


dcdob.setBounds(200, 200, 150, 30);
add(dcdob);

JLabel labelsalary = new JLabel("Salary");


labelsalary.setBounds(400, 200, 150, 30);
labelsalary.setFont(new Font("serif", Font.PLAIN, 20));
add(labelsalary);

tfsalary = new JTextField();


tfsalary.setBounds(600, 200, 150, 30);
add(tfsalary);

JLabel labeladdress = new JLabel("Address");


labeladdress.setBounds(50, 250, 150, 30);
labeladdress.setFont(new Font("serif", Font.PLAIN, 20));
add(labeladdress);

tfaddress = new JTextField();


tfaddress.setBounds(200, 250, 150, 30);
add(tfaddress);

JLabel labelphone = new JLabel("phone");


labelphone.setBounds(400, 250, 150, 30);
labelphone.setFont(new Font("serif", Font.PLAIN, 20));
add(labelphone);

tfphone = new JTextField();


tfphone.setBounds(600, 250, 150, 30);
add(tfphone);

JLabel labelemail = new JLabel("Email");


labelemail.setBounds(50, 300, 150, 30);
labelemail.setFont(new Font("serif", Font.PLAIN, 20));
add(labelemail);

String number = null;


tfemail = new JTextField("" + number);
tfemail.setBounds(200, 300, 150, 30);
add(tfemail);

JLabel labeleducation = new JLabel("Highest Education");


labeleducation.setBounds(400, 300, 150, 30);
labeleducation.setFont(new Font("serif", Font.PLAIN, 20));
add(labeleducation);

tfeducation = new JTextField();


tfeducation.setBounds(600, 300, 150, 30);
add(tfeducation);

JLabel labeldesignation = new JLabel("Designation");


labeldesignation.setBounds(50, 350, 150, 30);
labeldesignation.setFont((new Font("serif", Font.PLAIN, 20)));
add(labeldesignation);

tfdesignation = new JTextField();


tfdesignation.setBounds(200, 350, 150, 30);
add(tfdesignation);

JLabel labelaadhar = new JLabel("Aadhar Number");


labelaadhar.setBounds(400, 350, 150, 30);
labelaadhar.setFont(new Font("serif", Font.PLAIN, 20));
add(labelaadhar);

JLabel lblaadhar = new JLabel();


lblaadhar.setBounds(600, 350, 150, 30);
add(lblaadhar);

JLabel labelempId = new JLabel("Employeee id");


labelempId.setBounds(50, 400, 150, 30);
labelempId.setFont(new Font("serif", Font.PLAIN, 20));
add(labelempId);

JLabel lblempId = new JLabel();


lblempId.setBounds(200, 400, 150, 30);
lblempId.setFont(new Font("serif", Font.PLAIN, 20));
add(lblempId);

add = new JButton("Add Details");


add.setBounds(250, 550, 150, 40);
add.addActionListener(this);
add.setBackground(Color.BLACK);
add.setForeground(Color.WHITE);
add(add);

back = new JButton("Back");


back.setBounds(450, 550, 150, 40);
back.addActionListener(this);
back.setBackground(Color.BLACK);
back.setForeground(Color.WHITE);
add(back);

setSize(900, 700);
setLocation(300, 50);
setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == add) {
Label tfname = null;
String name = tfname.getText();
String fname = tffname.getText();
String dob = ((JTextField)
dcdob.getDateEditor().getUiComponent()).getText();
String salary = tfsalary.getText();
String address = tfaddress.getText();
String phone = tfphone.getText();
String email = tfemail.getText();
ComboBoxModel<Object> cbeducation = null;
String education = (String) cbeducation.getSelectedItem();
String designation = tfdesignation.getText();
String aadhar = tfaadhar.getText();
String empId =lblempId.getText();

try {
conn conn = new conn();
String query = "insert into employee values('" + name + "',
'" + fname + "','" + dob + "','" + salary + "', '" + address + "','" +
phone + "', '" + email + "', '" + education + "','" + designation + "', '"
+ aadhar + "', '" + empId + "')";
conn.s.executeUpdate(query);
JOptionPane.showMessageDialog(null, "Details updated
successfully");
setVisible(false);
new home();
} catch (Exception ae) {
ae.printStackTrace();
}

} else {
setVisible(false);
new home();
}
}

public static void main(String[] args) {

update updateEmployee = new update();


}
}
package Employee.Managment.System;
import javax.swing.*;
import java.awt.*;
import com.toedter.calendar.JDateChooser;
import java.util.*;
import java.awt.event.*;
public class update extends JFrame implements ActionListener {

private final JDateChooser dcdob;


JTextField tfeducation, tffname, tfaddress, tfphone, tfaadhar, tfemail,
tfsalary, tfdesignation;
JLabel lblempId;
JButton add, back;

update() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel heading = new JLabel("update Employee Detail");


heading.setBounds(320, 30, 500, 50);
heading.setFont(new Font("SAN SERIF", Font.BOLD, 25));
add(heading);

JLabel labelname = new JLabel("Name");


labelname.setBounds(50, 150, 150, 30);
labelname.setFont((new Font("serif", Font.PLAIN, 20)));
add(labelname);

JLabel lblname = new JLabel();


lblname.setBounds(200, 150, 150, 30);
add(lblname);

JLabel labelfname = new JLabel("Father's Name");


labelfname.setBounds(400, 150, 150, 30);
labelname.setFont(new Font("serif", Font.PLAIN, 20));
add(labelfname);

tffname = new JTextField();


tffname.setBounds(600, 150, 150, 30);
add(tffname);

JLabel lbldob = new JLabel("Date of Birth");


lbldob.setBounds(50, 200, 150, 30);
lbldob.setFont(new Font("serif", Font.PLAIN, 20));
add(lbldob);

dcdob = new JDateChooser();


dcdob.setBounds(200, 200, 150, 30);
add(dcdob);

JLabel labelsalary = new JLabel("Salary");


labelsalary.setBounds(400, 200, 150, 30);
labelsalary.setFont(new Font("serif", Font.PLAIN, 20));
add(labelsalary);

tfsalary = new JTextField();


tfsalary.setBounds(600, 200, 150, 30);
add(tfsalary);

JLabel labeladdress = new JLabel("Address");


labeladdress.setBounds(50, 250, 150, 30);
labeladdress.setFont(new Font("serif", Font.PLAIN, 20));
add(labeladdress);

tfaddress = new JTextField();


tfaddress.setBounds(200, 250, 150, 30);
add(tfaddress);

JLabel labelphone = new JLabel("phone");


labelphone.setBounds(400, 250, 150, 30);
labelphone.setFont(new Font("serif", Font.PLAIN, 20));
add(labelphone);

tfphone = new JTextField();


tfphone.setBounds(600, 250, 150, 30);
add(tfphone);

JLabel labelemail = new JLabel("Email");


labelemail.setBounds(50, 300, 150, 30);
labelemail.setFont(new Font("serif", Font.PLAIN, 20));
add(labelemail);

String number = null;


tfemail = new JTextField("" + number);
tfemail.setBounds(200, 300, 150, 30);
add(tfemail);

JLabel labeleducation = new JLabel("Highest Education");


labeleducation.setBounds(400, 300, 150, 30);
labeleducation.setFont(new Font("serif", Font.PLAIN, 20));
add(labeleducation);

tfeducation = new JTextField();


tfeducation.setBounds(600, 300, 150, 30);
add(tfeducation);

JLabel labeldesignation = new JLabel("Designation");


labeldesignation.setBounds(50, 350, 150, 30);
labeldesignation.setFont((new Font("serif", Font.PLAIN, 20)));
add(labeldesignation);

tfdesignation = new JTextField();


tfdesignation.setBounds(200, 350, 150, 30);
add(tfdesignation);

JLabel labelaadhar = new JLabel("Aadhar Number");


labelaadhar.setBounds(400, 350, 150, 30);
labelaadhar.setFont(new Font("serif", Font.PLAIN, 20));
add(labelaadhar);

JLabel lblaadhar = new JLabel();


lblaadhar.setBounds(600, 350, 150, 30);
add(lblaadhar);

JLabel labelempId = new JLabel("Employeee id");


labelempId.setBounds(50, 400, 150, 30);
labelempId.setFont(new Font("serif", Font.PLAIN, 20));
add(labelempId);

JLabel lblempId = new JLabel();


lblempId.setBounds(200, 400, 150, 30);
lblempId.setFont(new Font("serif", Font.PLAIN, 20));
add(lblempId);

add = new JButton("Add Details");


add.setBounds(250, 550, 150, 40);
add.addActionListener(this);
add.setBackground(Color.BLACK);
add.setForeground(Color.WHITE);
add(add);

back = new JButton("Back");


back.setBounds(450, 550, 150, 40);
back.addActionListener(this);
back.setBackground(Color.BLACK);
back.setForeground(Color.WHITE);
add(back);

setSize(900, 700);
setLocation(300, 50);
setVisible(true);
}

public void actionPerformed(ActionEvent e) {


if (e.getSource() == add) {
Label tfname = null;
String name = tfname.getText();
String fname = tffname.getText();
String dob = ((JTextField)
dcdob.getDateEditor().getUiComponent()).getText();
String salary = tfsalary.getText();
String address = tfaddress.getText();
String phone = tfphone.getText();
String email = tfemail.getText();
ComboBoxModel<Object> cbeducation = null;
String education = (String) cbeducation.getSelectedItem();
String designation = tfdesignation.getText();
String aadhar = tfaadhar.getText();
String empId =lblempId.getText();

try {
conn conn = new conn();
String query = "insert into employee values('" + name + "',
'" + fname + "','" + dob + "','" + salary + "', '" + address + "','" +
phone + "', '" + email + "', '" + education + "','" + designation + "', '"
+ aadhar + "', '" + empId + "')";
conn.s.executeUpdate(query);
JOptionPane.showMessageDialog(null, "Details updated
successfully");
setVisible(false);
new home();
} catch (Exception ae) {
ae.printStackTrace();
}
} else {
setVisible(false);
new home();
}
}

public static void main(String[] args) {

update updateEmployee = new update();


}
}
package Employee.Management.System;

import Employee.Managment.System.conn;
import Employee.Managment.System.home;

import javax.swing.*;
import java.awt.*;
import java.sql.*;
import java.awt.event.*;

public class RemoveEmployee extends JFrame implements ActionListener {

Choice cEmpId;
JButton delete, back;

public RemoveEmployee() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);

JLabel labelempId = new JLabel("Employee Id");


labelempId.setBounds(50, 50, 100, 30);
add(labelempId);

cEmpId = new Choice();


cEmpId.setBounds(200, 50, 150, 30);
add(cEmpId);

try {
conn c = new conn();
String query = "select * from employee";
ResultSet rs = c.s.executeQuery(query);
while(rs.next()) {
cEmpId.add(rs.getString("emplid"));
}
} catch (Exception e) {
e.printStackTrace();
}

JLabel labelname = new JLabel("Name");


labelname.setBounds(50, 100, 100, 30);
add(labelname);

JLabel lblname = new JLabel();


lblname.setBounds(200, 100, 100, 30);
add(lblname);

JLabel labelphone = new JLabel("Phone");


labelphone.setBounds(50, 150, 100, 30);
add(labelphone);
JLabel lblphone = new JLabel();
lblphone.setBounds(200, 150, 100, 30);
add(lblphone);

JLabel labelemail = new JLabel("Email");


labelemail.setBounds(50, 200, 100, 30);
add(labelemail);

JLabel lblemail = new JLabel();


lblemail.setBounds(200, 200, 100, 30);
add(lblemail);

try {
conn c = new conn();
String query = "select * from employee where emplid =
'"+cEmpId.getSelectedItem()+"'";
ResultSet rs = c.s.executeQuery(query);
while(rs.next()) {
lblname.setText(rs.getString("name"));
lblphone.setText(rs.getString("phone"));
lblemail.setText(rs.getString("email"));
}
} catch (Exception e) {
e.printStackTrace();
}

cEmpId.addItemListener(new ItemListener() {
public void itemStateChanged(ItemEvent ie) {
try {
conn c = new conn();
String query = "select * from employee where emplid =
'"+cEmpId.getSelectedItem()+"'";
ResultSet rs = c.s.executeQuery(query);
while(rs.next()) {
lblname.setText(rs.getString("name"));
lblphone.setText(rs.getString("phone"));
lblemail.setText(rs.getString("email"));
}
} catch (Exception e) {
e.printStackTrace();
}
}
});

delete = new JButton("Delete");


delete.setBounds(80, 300, 100,30);
delete.setBackground(Color.BLACK);
delete.setForeground(Color.WHITE);
delete.addActionListener(this);
add(delete);

back = new JButton("Back");


back.setBounds(220, 300, 100,30);
back.setBackground(Color.BLACK);
back.setForeground(Color.WHITE);
back.addActionListener(this);
add(back);

ImageIcon i1 = new
ImageIcon(ClassLoader.getSystemResource("icons/delete.png"));
Image i2 = i1.getImage().getScaledInstance(600, 400,
Image.SCALE_DEFAULT);
ImageIcon i3 = new ImageIcon(i2);
JLabel image = new JLabel(i3);
image.setBounds(350, 0, 600, 400);
add(image);

setSize(1000, 400);
setLocation(300, 150);
setVisible(true);
}

public void actionPerformed(ActionEvent ae) {


if (ae.getSource() == delete) {
try {
conn c = new conn();
String query = "delete from employee where emplid =
'"+cEmpId.getSelectedItem()+"'";
c.s.executeUpdate(query);
JOptionPane.showMessageDialog(null, "Employee Information
Deleted Sucessfully");
setVisible(false);
new home();
} catch (Exception e) {
e.printStackTrace();
}
} else {
setVisible(false);
new home();
}
}

public static void main(String[] args) {


new RemoveEmployee();
}
}
Input Screen and Output Screen

1)Add Employee

Input: Admin can add data of members in Employee Management System. To add new or
old member's data, the Admin has to enter the Member's First Name, Last Name, Contact, PRN
No and other details. Then click on ‘Add employee’.

Ouput: When the admin clicks on the ‘Add Employee’ button, Admin will see the message
'Member has been Inserted' on the screen.
2)View Employee
Input:
Admin can add data of members in Employee Management System. To add new
or old member's data, the Admin has to enter the Member's First Name, Last Name,
Contact, PRN No and other details. Then click on ‘Add employee’.

Output: When the admin clicks on the ‘View Employee’ button, Admin will
see the message 'Member has been Inserted' on the screen
.3)Update employee

Input:
Admin can add data of members in Employee Management System. To add new
or old member's data, the Admin has to enter the Member's First Name, Last Name,
Contact, PRN No and other details. Then click on ‘Add employee’.

Output: When the admin clicks on the ‘Add Employee’ button, Admin will see the
message 'Member has been Inserted' on the screen.

c
4)Remove Employee
Input;

User has to enter the employee id in order to delete his


information from the system.

Output
TESTING AND
VALIDATION CHECKS
Testing
System Testing Of Software Or Hardware Is Testing Conducted On A Complete, Integrated System To
Evaluate The System's Compliance With Its Specified Requirements. System Testing Falls Within The
Scope Of Black-Box Testing, And As Such, Should Require No Knowledge Of The Inner Design Of The
Code Or Logic. As A Rule, System Testing Takes, As Its Input, All Of The "Integrated" Software
Components That Have Passed Integration Testing And Also The Software System Itself Integrated
With Any Applicable Hardware System(S). The Purpose Of Integration Testing Is To Detect Any
Inconsistencies Between The Software Units That Are Integrated Together (Called Assemblages) Or
Between Any Of The Assemblages And The Hardware. System Testing Is A More Limited Type Of
Testing; It Seeks To Detect Defects Both Within The "Inter-Assemblages" And Also Within The
System As A Whole. Our Project Went Through Two Levels Of Testing: 1.Unit Testing 2.Integration
Testing

UNIT TESTING:

Unit testing is undertaken when a module has been created and successfully reviewed. In order to
test a single module, we need to provide a complete environment i.e., besides the module we would
require:

 The procedures belonging to other modules that the module under test calls.

 Non local data structures that module accesses.

 A procedure to call the functions of the module under test with appropriate
TESTING
Test ID Test- Test- Expected Output Remark
Purpose Condition Ouput
Check If user details are not Grant access Access Test
TC1
correctly, display
username or to main granted to successful
error message
password dashboard main
dashboard
To add new If user already exists New user New user Test
TC2
error message should
user to the should be added successful
be displayed
system added successfully
To view If employee exists, Employee Employee Test
TC3
then information
existing information information successful
should be displayed
employee should be displayed
else error message
should be displayed displayed
information
To remove If employee exists Employee Employee Test
TC4
then employee
an employee should be removed successful
should be removed
removed successfully
else error message
should be displayed

Update If employee existed, Employee Employee Test


TC5
then information
employee information information successful
should be updated
information should be updated
updated successfully
SYSTEM SECURITY
MEASURES
System security measures
Security of a computer system is a crucial task. It is a process of ensuring confidentiality A
system is said to be secure if its resources are used and accessed as intended under all the
circumstances, but no system can guarantee absolute security from several of the various
threats and unauthorized access.

Security measures will be taken:


• Strong passwords:
This first measure is taken that users may use special characters in their passwords and
password get strong.
• Confidentiality
If any users are sharing their personal details in login form it will be secure safely as only users
can access such information.

 Hidden Password:
Whenever user input the password in login form, then password show in * (Asterisk) format.
IMPLEMENTATION,
EVALUATION AND
MAINTENANCE
Implementation
The design of a management information system may seem to management to be an
expensive project, the cost of getting the MIS on line satisfactorily may often be comparable
to that of its design, and the implementation has been accomplished when the outputs of the
MIS are continuously utilized by decision makers. Once the design has been completed, there
are four basic methods for implementing the MIS.

These are following:

1. Install the system in a new operation or organization.


2. Cut off the old system and install the new:
This produces a time gap during which no system is in operation. Practically, installation requires one
or two days for small companies or small systems.

3. Cut over by segments:

This method is also referred as” phasing in” the new system. Small parts or subsystems are
substituted for the old. In the case of upgrading old systems, this may be a very desirable method.

4. Operate in parallel and cut over:


The New System Is Installed And Operated In Parallel With The Current System Until It Has Been
Checked Out, Then Only The Current System Is Cut Out. This Method Is Expensive Because Of Personal
And Related Costs. Its Big Advantages Are That The System Is Fairly Well Debugged When It Becomes
The Essential Information System
Evolution

After the MIS has been operating smoothly for a short period of time, an evaluation of each
step in the design and of the final system performance should be made. Evaluation should
not be delayed beyond the time when the system’s analysts have completed most of the
debugging. The longer the delay, the more difficult it will be for designer to remember
important details. The evaluation should be made by the customer as well as by the designers.

Maintenance

Control and maintenance of the system are the responsibilities of the line managers. Control
of the systems means the operation of the system as it was designed to operate. Sometimes,
well-intentioned people or operators may make unauthorized changes to improve the
system, changes that are not approved or documented. Maintenance is closely related to
control. Maintenance is that ongoing activity that keeps the MIS at the highest levels of
effectiveness and efficiency within cost constraints. Maintenance is directed towards
reducing errors due to design, reducing errors due to environmental changes and improving
the system’s scope and services
FUTURE SCOPE

OF PROJECT
FUTURE SCOPE OF PROJECT

Our web-based application “Employee Management System” which provides complete


information about Users like employee information and databases. We will add more content
on them in future. In our web-based application right now, only employee and information
with their information available but in future we will add Online Lectures, Links, etc.

We will also provide more images in GUI related to our web-based application in future. We
will try to find out more about this topic and add in future. We will try to make this application
more attractive so that visitor cannot get bored while using it. We will provide login id to each
and every user so that he can access our website from anywhere through log in id and
password. In future we add some major facilities like apply for new job. We will also provide
more images in GUI related to our web-based application in future. We will try to find out
more about this topic and add in future. We will try to make this application more attractive
so that visitor cannot get bored while using it. We will provide login id to each and every user
so that he can access our website from anywhere through log in id and password. In future
we add some major facilities like apply for new job.
CONCLUSION
The Goal Of The Initiative Is To Digitise Personnel Databases In Business And
Provide Administrators Access To Computers. Employees And Administrators
Use As An Information System. The Users Can Store His Or Her Database Safe
And Secure For An Indefinite Amount Of Time Here. Adding, Deleting,
Accessing And Changing Employee Information Is Simple And Easy Uses The
Employee Management System.
BIBLIOGRAPHY

&

REFERENCE
BIBLIOGRAPHY & REFERENCES :

 Websites References:
https://www.tutorialspoint.com/index.html

https://www.javatpoint.com/

https://www.w3schools.com/

https://html.com/

 Books References:

Head First Java: A Brain-Friendly Guide

Programming with Java: Powerful Object-Oriented Programming

The Pragmatic Programme


A
PROJECT SYNOPSIS
ON

“ ”
Submitted to

In the partial fulfillment of


Bca.(Computer Application)Final Year

Synopsis Submitted by
Yugal kishor
Shailesh kumar Mishra

Under the guidance of


Swami ranjan
Department of bca

G.J. COLLEGE,BIHTA
2023-24
1.Introduction: (Write 4 To 5 Lines)

Employee Management System is Employee Management software for monitoring and controlling
the employee in a office.

This project of “EMPLOYEE MANAGEMENT” of gives us the complete information about the
EMPLOYEE.

We can enter the record of new EMPLOYEE and retrieve the details of MEMBER available in the
office.

2. Objectives of the project: (Write only 5 points)

This project makes a convenient way for the OFFICE to keep the records of employee, borrowing and
returning of books.

It will help the management to do the work at ease. It can assist the staff in capturing the effort spent
on their respective working areas.

The Employee Management System is an application forassisting a office in managing a employee


information in an office.

3. Project Category: Web based Application.

4. Tools/ Platform/ Languages to be used: Java and MYSQL

5. Scope of future application: (Write 4 to 5 points):

To assist the staff in capturing the effort spent on their respective working areas. To utilize
resources in an efficient manner by increasing their productivity through automation. The
system generates types of information that can be used for various purposes. The system
would provide basic set of features to add/update members, add/update employee, and
manage check in specifications for the systems based on the client’s statement of need.

Submitted By: Approved By,

Swami ranjan

Yugal kishor Project Guide

Shailesh kumar mishra

You might also like