Dbms_Report
Dbms_Report
NMVPM's
Nutan Maharashtra Institute of Engineering and Technology Talegaon
Dabhade, Pune
Mini Project
On
EMPLOYEE MANAGEMENT SYSTEM
BY
1. Shubham Patange TE 39
2. Saurabh Autade TE 04
3. Mayuri Kinge TE 17
4. Prachi Aglawe TE 02
of
Prof. Mahesh Chinchole
2023-2024
PCET's
NMVPM's
Nutan Maharashtra Institute of Engineering and Technology Talegaon
Dabhade, Pune
CERTIFICATE
MANAGEMENT SYSTEM”
1. Shubham Patange TE 39
2. Saurabh Autade TE 04
3. Mayuri Kinge TE 17
4. Prachi Aglawe TE 02
2023-24
ACKNOWLEDGEMENT
It gives us immense pleasure in presenting the report
on " EMPLOYEE MANAGEMENT SYSTEM"
1. Introduction
Everything has been digitised in our age of ever-increasing technology. The human
workforce hasgrown as a result of the abundance of job options. As a result, a system that
can handle the data of such a vast number of people in a company is required. Because of
its user-friendly design, this project makes the process of keeping records easier. The
"EMPLOYEE MANAGEMENT SYSTEM" was created to address the issues that plagued
the previous manual system. This programme is designed to eliminate, and in some cases,
decrease, the problems that the current system has.
To eliminate data entry mistakes, the software is kept as simple as possible. When inputting
incorrect data, it also displays an error notice. The user doesn’t require any formal expertise
to operate this system. The admin will be able to add new employees to this project.
Employee data may also be seen and printed by the administrator. Admins can also remove
an employee and change their details.
2. Scope
The GUI and the features added to this system are the basic ones. In future, there will be a
better Graphical User Interface and there will be more features added to this system. If
Graphical User Interface is improved then this system will be more user friendly and more
features added will make this system a lot better and HR will be able to perform more
operations. the specific functionalities and features that will be included in the employee
management system, such as employee information management, attendance tracking,
performance evaluation, leave management, payroll, training, and compliance.
3. REQUIREMENTS
IntelliJ IDEA:-provides a set of inspections that are built-in static code analysis tools.
SWING- Swing is a Java GUI widget toolkit. It's part of Oracle's Java Foundation Classes
(JFC),which provides an API for creating-graphical-user-interfaces for Java programmes.
Swing was created to give a more advanced collection of graphical user interface
components than the previous Abstract Window Toolkit (AWT). Swing offers a pluggable
look and feel that allows applications to have alook &feel that is unconnected to the
underlying platform, as well as a look & feel that emulates the look & feel of numerous
platforms.
SQL- SQL (Structured Query Language) is a computer language that is used to manage
data in arelational database management system (RDBMS) or for stream processing in a
relational data stream management system (RDSMS). It's especially beneficial for dealing
with structured data,or data that has relationships between entities and variables.
4.DATABASE NORMALIZATION
In the given data, we have various attributes related to a person, including name, date of
birth, salary, address, contact number, email, education, occupation, and some numbers.
To normalize this data, you would typically create multiple tables that relate to each other
through keys (usually primary and foreign keys).
TABLE 1 : EMPLOYEE
2. Name
3. Father’s name
4. Salary
Table 2: EmployeeContact
1. EmpID
2. Address
3. Contact no.
4. Email
Table 3: EmployeeDetails
1. EmpID
2. Designation
3. Education
4. Aadhar no.
By normalizing the data in this way, you reduce data redundancy and improve data integrity. It
also allows for more efficient querying and maintenance of the database.
5. Relational Database Design
1. Define the Entity-Relationship Diagram (ERD):
Employee Entity (Employee2 Table):
Attributes: name, fname, dob, salary, address, phone, email, education, designation, aadhar, and
empID.
Login Entity (Login3 Table):
Attributes: username, password.
Relationships:
There is a relationship between Employee and Login based on the common attribute empID. An
empID in the Employee table corresponds to an empID in the Login table.
2. Create Tables :
Create a table using create table table_name syntax
You can add sample data to the tables using SQL `INSERT` statements.
Consider creating indexes and constraints (e.g., unique constraints, primary keys) based On
project.
Test the database schema, run queries, and optimize as needed for your specific project
requirements.
8.GRAPHICAL USER INTERFACE
1. User Interface
2. Login frame – This is the login frame of this system where user have to enter the required
credentials to have access for the main dashboard.
3.Main Dashboard – After login in, user is directed to the main dashboard of this system
where user can perform various operations like adding an employee, deleting an employee,
update information about employee
4.Add employee – Here user have to enter all the required credentials to add anew
employee to the system.
5.Remove employee – User has to enter the employee id in order to delete hisinformation from
the system.
9. SOURCE CODE
1. Front end:
Splash class :-
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
public class Splash extends JFrame implements ActionListener {
Splash()
{
getContentPane().setBackground(Color.WHITE);
setLayout(null);
image.add(clickhere);
setSize(1170, 650);
setLocation(200, 50);
setVisible(true);
while(true) {
heading.setVisible(false);
heading.setVisible(true);
}
}
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
Login() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);
setSize(600, 300);
setLocation(450, 200);
setVisible(true);
}
public void actionPerformed(ActionEvent ae) {
try {
String username = tfusername.getText();
String password = tfpassword.getText();
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();
}
}
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
Home() {
setLayout(null);
setSize(1120, 630);
setLocation(250, 100);
setVisible(true);
}
public void actionPerformed(ActionEvent ae) {
if (ae.getSource() == add) {
setVisible(false);
new AddEmployee();
} else {
}
}
import java.awt.*;
import javax.swing.*;
import java.util.*;
import java.awt.event.*;
AddEmployee() {
getContentPane().setBackground(Color.WHITE);
setLayout(null);
String courses[] = {"BBA", "BCA", "BA", "BSC", "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);
setSize(900, 700);
setLocation(300, 50);
setVisible(true);
}
try {
Conn conn = new Conn();
String query = "insert into employee2 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 e) {
e.printStackTrace();
}
} else {
setVisible(false);
new Home();
}
}
class Conn {
Connection c;
Statement s;
public Conn()
{
try
{
Class.forName("com.mysql.cj.jdbc.Driver");
c=DriverManager.getConnection("jdbc:mysql:///employeemanagementsystem","root",
“*******");
s = c.createStatement();
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
2. Backend:-
MYSQL
use employeemanagementsystem;
The goal of the initiative is to digitise personnel databases in businesses and provide
administrators access to computers. Employees and administrators use software as an
information system.
The user 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 using the
Employee Management System.