0% found this document useful (0 votes)
55 views

Employee Management System (3)

Uploaded by

avijitmaji501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
55 views

Employee Management System (3)

Uploaded by

avijitmaji501
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 12

ACKNOWLEDGEMENT

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.

I am overwhelmed to express my thanks to The Administrative Officer for providing me an


infrastructure and moral support while carrying out this project in the school.

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

using this project.

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

 Java is Object oriented, Multi-threading language developed by Sun Microsystems in 1991.


 It is designed to be small, simple and portable across different platforms as well as OS.
Features of Java:
Syntax based on C++
 Object-oriented
 Support for Internet applications
 Extensive library of prewritten classes
 Portability among platforms
 Built-in networking security as JRE is inaccessible to other parts of computer
Java Programs:
 Applets:
 Small programs designed to add interactivity to Web sites
 Downloaded with the Web page and launched by the Internet browser
 Servlets :
 Run by Web server on the server
 Typically generate Web content
 Applications:
 Programs that run standalone on a client
SYSTEM DEVELOPMENT LIFE CYCLE (SDLC)

6
PROJECT PLAN

Life Cycle Model:

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.

DESIGN STRATEGY AND ARCHITECTURE


7
Data Flow Diagram:

Level 0: Context Level Diagram

Administrator

Login Insert Employee Update / View


Details Employee Details Logout

Employee
Management
System

Level 1: Administrator

Response

Insert/Delete/
Update Process

Request Employee DB

Response Success
Login Data Login
Administrator

Show Details Request


Process
Employee DB

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();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


String password=jPasswordField1.getText();
String username=jTextField1.getText();

if(password.contains("kva123") && (username.contains("admin")))


{
Admin_section as=new Admin_section();
as.setVisible(true);
9
}
else{
JOptionPane.showMessageDialog(null, "Incorrect Login details!!");
}
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


jPasswordField1.setText(null);
jTextField1.setText(null);
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


System.exit(0);
}

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 class Admin_section extends javax.swing.JFrame {

public Admin_section() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
Emp_reg rs=new Emp_reg();
rs.setVisible(true);
}

private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {


System.exit(0);
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


try {

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);
}
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


Update_emp su=new Update_emp();
su.setVisible(true);
}

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 class Emp_reg extends javax.swing.JFrame {

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());

String gender = null;


if(jRadioButton1.isSelected())
{
gender=jRadioButton1.getText();
}
if(jRadioButton2.isSelected())
{
gender=jRadioButton2.getText();
11
}
pstmt.setString(4,gender);

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);
}
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


jTextField1.setText(null);
jTextField2.setText(null);
jTextField3.setText(null);
jTextField4.setText(null);
jTextArea1.setText(null);
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


Admin_section as=new Admin_section();
as.setVisible(true);
}

RESULT AND DISCUSSION:

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

5) Data Flow Based Testing

6) Mutation Testing

B) Black Box Testing:

1) System Testing

2) Alpha Testing

3) Beta Testing

12
4) Acceptance Testing

Definition of Test Cases:

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

You might also like