0% found this document useful (0 votes)
335 views27 pages

Ip Project

This document describes an employee management system project created by a student. It includes an introduction to the project, descriptions of the system implementation including hardware, software and controls used, the database design, source code for various forms, and outputs. The project was created to automate functions of a school for a student's Informatics Practices course.

Uploaded by

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

Ip Project

This document describes an employee management system project created by a student. It includes an introduction to the project, descriptions of the system implementation including hardware, software and controls used, the database design, source code for various forms, and outputs. The project was created to automate functions of a school for a student's Informatics Practices course.

Uploaded by

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

2017-18

INFORMATICS
PRACTICES(IP)
PROJECT

SUBMITTED BY: SAGAR KUMAR

GUIDED BY: Mr. GAGAN CHADHA

CLASS: XII ‘D’

ROLL NO: 42

BOARD ROLL NO: 2724651

ARMY PUBLIC
SCHOOL , JALANDHAR
CANTT.
Certificate
This is to certify that SAGAR KUMAR, a student
of class XII-D has successfully completed the
project entitled EMPLOYEE MANAGEMENT
SYSTEM under the guidance of MR. GAGAN
CHADHA (PGT, Computer Science) during the
year 2017-18 in partial fulfillment of CBSE
AISSCE Examination 2018 conducted by CBSE,
New Delhi. This report or a similar report on the
topic has not been submitted for any other
examination and does not form a part of any
other course undergone by the candidate.

Signature of external examiner Signature of IP teacher


ACKNOWLEDGEMENT

In the accomplishment of this project successfully, many


people have best owned upon me their blessings and the
heart pledged support. This time I am utilizing to thank all
the people who have been concerned with project.

Primarily I would thank god for being able to complete


this project with success. Then I would like to thank my
principal Mrs Gurvinder Sohi and IP teacher Mr. Gagan
Chadha, whom valuable guidance has been the ones that
helped me patch this project and make it full proof
success. His suggestions and instructions has served as the
major contributor towards the completion of the project.

Then I would like to thank my parents and friends who


have helped me with their valuable suggestions and their
guidance has been helpful in various phases of the
completion of the project.

Last, but not the least, I would like to thank CBSE for
giving us the opportunity to undertake this project.
INDEX

1. CERTIFICATE
2. ACKNOWLEDGEMENT
3. TITLE OF PROJECT
4. INTRODUCTION
5. SYSTEM IMPLEMENTATION
6. DATABASE DESIGN
7. SOURCE CODE
8. DESIGN AND OUTPUT
9. USER MANUAL
10. BIBLIOGRAPHY
TITLE OF PROJECT

EMPLOYEE
MANAGEMENT SYSTEM
INTRODUCTION
This software project is developed to automate the functionalities
of a School. The purpose of the software project is to develop the
Management Information System (MIS) to automate the record of
the students with a view to enhance the decision making of the
functionaries.

A MIS mainly consists of a computerized database, a collection of


inter-related tables for a particular subject or purpose, capable to
produce different reports relevant to the user. An application
program is tied with the database for easy access and interface to
the database. Using Application program or front-end, we can store,
retrieve and manage all information in proper way.

This software, being simple in design and working, does not require
much of training to users, and can be used as a powerful tool for
automating a school System.

During coding and design of the software Project, Java NetBeans


IDE, a powerful front-end tool is used for getting Graphical User
Interface (GUI) based integrated platform and coding simplicity. As a
back-end a powerful, open source RDBMS, My SQL is used as per
requirement of the CBSE curriculum of Informatics Practices Course.
SYSTEM
IMPLEMENTATION
THE HARDWARE USED:
While developing the software, the used hardware are:
 PC with Intel Core 2 Duo processor
 PC with 2 GB RAM
 Standard I/O devices like Keyboard and Mouse etc.

THE SOFTWARES USED:


 Microsoft Windows® 10 Pro as Operating System.
 Netbeans IDE 8.0.1 as Front-end Development
Environment.
 MySQL as back-end server with Database.
 Microsoft Office Powerpoint 2016 and Microsoft Office
Word 2016 for documentation.
JAVA NETBEANS CONTROL USED:

Label: A label is a component which is used to


display simple text or as a label for another
component.
 
Text Field: The Text Field component is a text input
field in which users can enter single line of text.

Password Field: This component allows


confidential input like passwords which are single
line.

Radio Buttons: Radio buttons are groups of buttons


in which, by convention, only one
button at a time can be selected.
 
Button Group: This is an invisible component which
is just used to associate several radio buttons.
 
Button: This component is used to support events
like clicked and double clicked.
References: CBSE Text Book
SOURCE CODE
The software project for employee management
contains various forms along with programming codes.
Forms (JFrames) and their event coding are given
below.
1. LOADING SCREEN:
Coding for Loading Page
public static void main(String args[]) {
Splashscreen Splash=new Splashscreen();
Splash.setVisible(true);
password Start=new password();
try {
for(int i=0;i <= 100; i++){
Thread.sleep(20);
Splash.loadingnumber.setText(Integer.toString(i)+"%");
Splash.loadingbar.setValue(i);
if(i==100){
Splash.setVisible(false);
Start.setVisible(true);
}
}
}catch(InterruptedException e){
2. FORM: LOGIN

LOGIN FORM DESIGN


Coding for Login Page

Coading for Enter button:

jToggleButton2ActionPerformed(java.awt.event.ActionEvent evt) {

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

if(password.contains("1234")&& Username.contains("apsjrc")){
jTextField1.setText("");
jPasswordField1.setText("");
close();

main m = new main();


m.setVisible(true);

}else{
JOptionPane.showMessageDialog(null, "Incorrect Password\nClick or
Try again.2","Worng Password",JOptionPane.ERROR_MESSAGE);
jPasswordField1.setText("");
jTextField1.setText("");

}
Coading for Enter button:

jToggleButton1ActionPerformed(java.awt.event.ActionEvent evt) {

System.exit(0);
3. FORM: MAIN PAGE

EMPLOYEE MANAGEMENT FORM


DESIGN
Coding for Main Page

Coading for Add Record button:


addrecord obj=new addrecord();
obj.setVisible(true);
this.setVisible(false);

Coading for Search Record button:

search s=new search();


s.setVisible(true);
this.setVisible(false);
}

Coading for Update Record button:

modifyrc m=new modifyrc();


m.setVisible(true);
this.setVisible(false);

Coading for Delete Record button:

delrc d=new delrc();


d.setVisible(true);
this.setVisible(false);
4. FORM: ADD RECORD
ADD RECORD FORM DESIGN
Coding for Main Page
Coading for Submit button:

String empno,empname ,salary,address,Phoneno,Age,gender;


empno=jTextField1.getText();
empname=jTextField2.getText();
salary=jTextField3.getText();
address=jTextArea1.getText();
Phoneno=jTextField5.getText();
Age=jTextField6.getText();
gender=jTextField4.getText();
d.setVisible(true);
this.setVisible(false);

try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/dbms",
"root", "1234");
Statement stmt = (Statement) con.createStatement();
stmt.executeUpdate("INSERT INTO emp VALUES
('"+empno+"','"+empname+"','"+address+"','"+salary+"','"+Age+"','"+Phoneno+"',
'"+gender+"');");
JOptionPane.showMessageDialog(this,"Recrod Saved");
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextArea1.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextField4.setText("");
}
catch( HeadlessException | ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
5. FORM: SEARCH RECORD

SEARCH RECORD FORM DESIGN


Coding For Search Button:
tring eno,Eid,Ename;
eno=JOptionPane.showInputDialog("Enter Emp no:");
try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:330
6/dbms","root", "1234");
Statement stmt = (Statement) con.createStatement();
ResultSet rs = stmt.executeQuery("Select * from emp where
Empno="+eno+";");
if(rs.next())
{
Eid=rs.getString("EmpNo");
Ename=rs.getString("EmpName");
jTextField1.setText(Eid);
jTextField2.setText(Ename);

}
else
JOptionPane.showMessageDialog(this,"Recrod not found");

}
catch( HeadlessException | ClassNotFoundException | SQLException e)
JOptionPane.showMessageDialog(this,e.getMessage());

Coding for Back to home page:

main obj=new main();


obj.setVisible(true);
this.setVisible(false);
5. FORM: UPDATE RECORD
UPDATE RECORD FORM DESIGN
Coading For View Record Button:
String empno,empname,salary ,address ,Phoneno ,Age ,gender;
empno=jTextField1.getText();
empname=jTextField2.getText();
salary=jTextField3.getText();
Phoneno=jTextField4.getText();
gender=jTextField5.getText();
Age=jTextField6.getText();
address=jTextArea1.getText();

try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:330
6/dbms","root", "1234");
Statement stmt = (Statement) con.createStatement();
stmt.executeUpdate("update emp set
EmpNo="+empno+","+"EmpName='"+empname+"' ,"+"address='"+add
ress+"',"+"salary='"+salary+"',"+"Age='"+Age+"',"+"Phoneno='"+Phonen
o+"',"+"gender='"+gender+"';");

}
catch(ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
}
JOptionPane.showMessageDialog(this,"Record Updated");
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextArea1.setText("");
}
else
JOptionPane.showMessageDialog(this,"Record not found");
}
catch(HeadlessException | ClassNotFoundException |
SQLException e)
{
JOptionPane.showMessageDialog(this,e.getMessage());

Coading For Update Record:


String empno,empname,salary ,address ,Phoneno ,Age ,gender;
empno=jTextField1.getText();
empname=jTextField2.getText();
salary=jTextField3.getText();
Phoneno=jTextField4.getText();
gender=jTextField5.getText();
Age=jTextField6.getText();
address=jTextArea1.getText();
try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:330
6/dbms","root", "1234");
Statement stmt = (Statement) con.createStatement();
stmt.executeUpdate("update emp set
EmpNo="+empno+","+"EmpName='"+empname+"' ,"+"address='"+add
ress+"',"+"salary='"+salary+"',"+"Age='"+Age+"',"+"Phoneno='"+Phonen
o+"',"+"gender='"+gender+"';");

}
catch(ClassNotFoundException | SQLException e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
}
JOptionPane.showMessageDialog(this,"Record Updated");
jTextField1.setText("");
jTextField2.setText("");
jTextField3.setText("");
jTextField4.setText("");
jTextField5.setText("");
jTextField6.setText("");
jTextArea1.setText("");
5. FORM: DELETE RECORD

DELETE FORM DESIGN


Coading For Search Button:

String eno,Eid,Ename;
eno=JOptionPane.showInputDialog("Enter Emp no:");
try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:
3306/dbms","root", "1234");
Statement stmt = (Statement) con.createStatement();
ResultSet rs = stmt.executeQuery("Select * from emp where
Empno="+eno+";");
if(rs.next())
{
Eid=rs.getString("EmpNo");
Ename=rs.getString("EmpName");
jTextField1.setText(Eid);
jTextField2.setText(Ename);

}
else
JOptionPane.showMessageDialog(this,"Recrod not found");
}
catch(HeadlessException | ClassNotFoundException |
SQLException e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
Coading For Delete Button:
String Eid,Ename;
Eid=JOptionPane.showInputDialog("Enter Emp no whose record do you
want to delete:");
int found=1;

try{
Class.forName("java.sql.DriverManager");
Connection con =
(Connection)DriverManager.getConnection("jdbc:mysql://localhost:3306/db
ms","root", "1234");
Statement stmt = (Statement) con.createStatement();
ResultSet rs = stmt.executeQuery("Select * from emp where
Empno="+Eid+";");
if(rs.next())
{
found=JOptionPane.showConfirmDialog(this,"Are you sure");
if(found==0)
{
stmt.executeUpdate("delete from emp where EmpNo="+Eid+";");
JOptionPane.showMessageDialog(this,"Record Deleted");
}
}
else
JOptionPane.showMessageDialog(this,"Recrod not found");

}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
}

jTextField1.setText("");
jTextField2.setText("");
BIBLIOGRAPHY

 CBSE Class-12 Informatics Practices book


 Informatics Practices-12 book by Sumita
Arora
 www.stackoverflow.com
 www.mysql.org
 www.netbeans.org
 Various Websites of Discussion Forum and
software development activities.

You might also like