Employee Management System (3)
Employee Management System (3)
Apart from the efforts of me, the success of any project depends largely on the encouragement and
guidelines of many others. I take this opportunity to express my gratitude to the people who have been
instrumental in the successful completion of this project.
I express deep sense of gratitude to almighty God for giving me strength for the successful
completion of the project.
I express my heartfelt gratitude to my parents for constant encouragement while carrying out this
project.
I gratefully acknowledge the contribution of the individuals who contributed in bringing this project
up to this level, who continues to look after me despite my flaws,
I express my deep sense of gratitude to the luminary Mr. Avijit Jana, The Principal, Kharagpur
Vision Academy, who has been continuously motivating and extending their helping hand to us.
My sincere thanks to Miss Monami Mandal, A guide, Mentor all the above a friend, who critically
reviewed my project and helped in solving each and every problem, occurred during implementation of the
project
The guidance and support received from all the members who contributed and who are contributing
to this project, was vital for the success of the project. I am grateful for their constant support and help.
4
EMPLOYEE MANAGEMENT SYSTEM
INTRODUCTION
Employee Management System can be used by administrative offices to maintain the records of employees
easily. Achieving this objective is difficult using a manual system as the information is scattered, can be
redundant and collecting relevant information may be very time consuming. All these problems are solved
Employee Management System is intended to be a stand-alone product and should not depend on the
availability of other website. The system will also have an administrator who has full-fledged rights with
regards to performing all actions related to control and management of the website.
FEATURES:
Secure
Easy to use
Reliable and accurate
No need of paper work
OBJECTIVES:
Online registration of employees
Maintenance of employee records
Searching employee records
USERS VIEWS:
Administrator
TECHNOLOGIES USED
Front end as:
Apache NetBeans IDE 12.2
Back end as:
MySQL
Database:
MySQL
Querying language:
MySQL
SPECIFIC REQUIREMENTS:
5
External interface utilised:
HARDWARE
1. Minimum 5 GB space in HDD
2. IBN Net vista Pentium 4 1.7 GHz
3. 256 MB DDR SDRAM
4. GB ULTRA HDD 7200 RPM
5. 48 x CD ROM
6. 15 `` colour monitor
SOFTWARE
1. Apache NetBeans IDE 12.2
2. Windows 7 or Windows 10
3. JDBC Connector
4. MySQL
INTRODUCTION TO JAVA
6
PROJECT PLAN
Here in this project a simple Waterfall model is taken as the life cycle model. Now the basic steps that
consists the waterfall model are—
Feasibility Analysis
System Requirement
Specification
Design
Coding
Testing
Maintenance
The systems development life cycle is a project management technique that divides complex projects
into smaller, more easily managed segments or phases. Segmenting projects allows managers to verify the
successful completion of project phases before allocating resources to subsequent phases.
Software development projects typically include initiation, planning, design, development, testing,
implementation, and maintenance phases. However, the phases may be divided differently depending on the
organization involved.
For example, initial project activities might be designated as request, requirements-definition, and
planning phases, or initiation, concept-development, and planning phases. End users of the system under
development should be involved in reviewing the output of each phase to ensure the system is being built to
deliver the needed functionality.
Administrator
Employee
Management
System
Level 1: Administrator
Response
Insert/Delete/
Update Process
Request Employee DB
Response Success
Login Data Login
Administrator
8
Data Dictionary:
Employee:
IMPLEMENTATION DETAILS
Code for Each Page of the Project:
ADMINISTRATOR MODULE
Admin_Login.java
package ems;
import javax.swing.JOptionPane;
import java.awt.Toolkit;
import java.awt.event.WindowEvent;
import ems.Admin_section;
public class Admin_Login extends javax.swing.JFrame {
public Admin_Login() {
initComponents();
}
Admin_section.java
package ems;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public Admin_section() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Emp_reg rs=new Emp_reg();
rs.setVisible(true);
}
Class.forName("com.mysql.cj.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/EMP","root","1234");
PreparedStatement ps=con.prepareStatement("select * from Employee");
ResultSet rs=ps.executeQuery();
while(rs.next()){
String eid=rs.getString("Emp_id");
String ename=rs.getString("Emp_name");
String address=rs.getString("Address");
String gender=rs.getString("Gender");
String department=rs.getString("Department");
10
String phone=rs.getString("Phone_no");
String tbData[]={eid,ename,address,gender,department,phone};
DefaultTableModel tblModel=(DefaultTableModel) jTable1.getModel();
tblModel.addRow(tbData);
con.close();
}catch (Exception e) {
JOptionPane.showMessageDialog(null,e);
}
}
Emp_reg.java
package ems;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import javax.swing.JOptionPane;
import ems.Admin_section;
public Emp_reg() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try {
Class.forName("com.mysql.cj.jdbc.Driver");
Connection
con=DriverManager.getConnection("jdbc:mysql://localhost:3306/EMP","root","1234");
String sq="insert into Employee values(?,?,?,?,?,?)";
PreparedStatement pstmt=con.prepareStatement(sq);
pstmt.setString(1,jTextField1.getText());
pstmt.setString(2, jTextField2.getText());
pstmt.setString(3, jTextArea1.getText());
pstmt.setString(5, jTextField3.getText());
pstmt.setString(6, jTextField4.getText());
pstmt.executeUpdate();
JOptionPane.showMessageDialog(null,"Insertion Successful");
con.close();
}catch (Exception e) {
JOptionPane.showMessageDialog(null,e);
}
}
Testing:
Testing is the process of finding differences between the expected behaviour specific by the system models and the
observed behaviour of the system.
Types of Testing:
A) White Box Testing:
1) Statement Coverage
2) Branch Coverage
3) Condition Coverage
4) Path Coverage
6) Mutation Testing
1) System Testing
2) Alpha Testing
3) Beta Testing
12
4) Acceptance Testing
A Test Case is a set of input data and expected results that exercise the component with the purpose of causing failures
and detecting faults. Test Cases are classified into Black Box Testing and White Box Testing. Black Box Test mainly
focuses on the input and output behaviour of the components and White Box Test focuses on the internal structure of
the components.
PROJECT SNAPSHOTS:
Now some of the outputs Web Pages are shown below to demonstrate the result of the project “Employee
Management System”------
1. Admin_Login Page:
2. Admin_section Page:
3. Emp_reg Page:
13
4. Update_emp Page:
BIBLIOGRAPHY
Web Resources:
https://www.edureka.co/blog/netbeans-tutorial/
https://netbeans.apache.org/kb/docs/java/quickstart.html
https://www.w3schools.com/java/java_oop.asp
Book Resources:
https://cbseacademic.nic.in/skill-education-books.html
CONCLUSION
The Employee Management System is developed using Apache NetBeans and MySQL fully meets the
objectives of the system for which it has been developed. The system is operated at a high level of efficiency
and all the employees, administrators and the Company associated with the system understand its advantage.
The system solves the problem. It was intended to solve as requirement specification.
14
15