Professional Documents
Culture Documents
CHAPTER 1
INTRODUCTION
The project titled CEK Salary management System is salary calculation software for a any
organization. The project CEK salary management system is developed in java.
This software
CHAPTER 02
SYSTEM STUDY
2.1SYSTEM ANALYSIS
Major task of CEK Salary Management System is Salary calculation of the staff in a college
or any organization .this system helps to overcome all the problem are facing by the manual
system.
Security of data
Ensure the data accuracy
Common error can be avoided
Minimize manual data entry
Greater efficiency
Better service
User friendless & interactive
Better Service
Staff register
o all information of the staff ie, name,photo,personal information
,position,section,bank details
Authorization details-Login
o Username
o Password
Attendance register contain daily attendance of staff
Complaints
Salary calculation
o AGP
o BP
o DP
o DA
o DP
o HRA
o Month, year
Deductions
o Pf subscription
o Pf loan
o Pf arrier
o Society loan repayment
o LIC
o TAX
o Other recoveries
2.2.1 OUTPUT
-9690
-LIB
-12880
-Trade Instructor
-16180
-Professor
Associative professor
9000
Assistant professor
6000
Daily wages-400/day
HB-3500/day(max 7500)
Demonstrator-410/day
Sweepers -140/day
Administrative assistive-14000/month
Security-400/day
Adhoc basic-9000/month
Computer programmer-410/day-max 9500/month
Junior system analyst-410/day max 9500/month
Hourly -250/hr max-12000
3. (BP+DP (AGP)):
4. DA (Dearness Allowance):
5. HRA (House Rent Allowance):
a) Actual HRA
b) Actual HRA-1/10 of salary
c) 50%salary
HRA=Actual-least one of (a/b/c)
DEDUCTIONS
1.
2.
3.
4.
5.
6.
TAX (%)
No tax
10%
20%
30%
CHAPTER 03
SYSTEM REQUIREMENTS
3.1 Software Requirements
3.1.1Front End:
JAVA
Java is a language which is simpler to understand, easier to implement and yet portable across
different platforms, than any other oops language. It is currently popular because it is
compiled to machine independent byte code. This allows programmers to write one kind of
CEK SALARY MANAGEMENT SYSTEM
program code for all platforms. Not only it is a powerful programming language built to
secure , cross- platform and international , but also java is being continually extended to
provide language feature and libraries that elegantly handle problems that are difficult in
traditional programming languages .
Java based systems are easier to understand and
express. Classes designed to fit the problem tend to express it better. Java produces a
maximum leverage with libraries .This is accomplished by casting libraries into new data
types (classes),so that bringing a library means adding new types to the language. Another
feature of java is its efficient error handling system, which adds to the robustness to the
system. Java exception handling is a way to guarantee that an error Is noticed, and that
something happens as a result . The primary motivation for selecting java is the easy use of
existing code in the form of class libraries.
Java was developed at sun Microsystems. Work on
java initially began with the goal of creating a platform-independent and OS for consumer
electronics . The original intent was to use C++, but as work progressed in this direction ,
developers identified that creating their own language would serve them better . The effort
towards consumer electronics led the java team , them known as First Person Inc .,towards
developing hardware and software for the delivery of video-on-demand with Time Warne
Today Java is both a programming language and an
environment for executing programs written in java language. Unlike traditional compilers ,
which convert source code into machine level instructions , the java compiler translates java
source code into instructions that are interpreted by the runtime java virtual machine. Java is
an interpreted language.
Java is the first programming language designed from
ground up with network programming in mind .The core API java includes classes and
interfaces that provide uniform access to a diverse set of a network protocols. As the internet
and network programming have evolved, java has maintained its cadence. New APIs and
toolkits have expanded the available options for the java network programmer
Features of java languages as follows :
OBJECT ORIENTED
INTERPRETED
Java
It is used by the developers to create java code. They include java
The 7.1.2 release includes significant enhancements and new features, including a
completely rewritten editor infrastructure support for additional languages, new productivity
features and simplified installation process that allows you to easily installed and configures
the IDE to meet your exact needs. Net Beans plugins allows you to extend the functionality
of Net Beans IDE as well as any other applications built on the top of Net Beans Platform.
The Net Beans Platform provides an application common requirement such as
menus document management and settings right out of the box. The Net Beans API are the
public interfaces and classes which are available to module writers they are divided into
specific APIs for dealing with different types of functionality. The condense and behavior of
the java source packages and its sub packages as classifies in the Net Beans API are the Net
Beans APIs
10
Operation speed
1.8GHz
Memory
RAM
2GB
Disk Storage:
Peripherals:
Keyboard
Mouse
Monitor
104 keys
Optical
Proper Resolution-1336*720
CHAPTER 04
DESIGN
4.1 Block Diagram
Manager
Attendanc
e
SALARY
Staf
Information
Complaints
11
Staf
4.2 ER DIAGRAM
Username
Password
Name
S_id
Department
Add/ remove
Password
Username
SALARY
Staf
Bank Name
View
Manage
r
Bank account
number
Register
View
IFSC
Complain
ts
S id
Reason
S id
AGP
BP
Add
Calculate
BP+DP
Salary
FN
HRA
AN
Gross Pay
12
Total
Salary Type
Attendance
Date of pay
S id
Name
LIC
PF arrier
Read
Deductions
S_ID
TAX
Other Recoveries
PF Loan
STAFF
Logi
n
View
salary
Salary
management
system
Complai
nts
Login,
Calculate
salary
Create staf,
cashier
MANAGER
Level 1
Add
staf
Manager
Username,
Staf
S_ID
View Salary
CEK SALARY MANAGEMENT SYSTEM
Actual
Salary
13
S_ID
LOGIN
S_I
D
Manage
r
S_I
D
Add Attendance
Calculate
Salary
Dat
Attendance
Salary
S_I
D
Read
Complaints
Reason
Complaints
Staf
Staf
Userna
me
passwo
View Salary
LOGIN
Da
Da
te
Total
View
attendance
SI
D
Register
Complaints
Date
Reason
Salary
Attendanc
e
Complaint
s
14
CHAPTER 5
CODING
Includes implementation of the design specified in the design document into executable
programming language code. The output of the coding phase is the source code for the
software that acts as input to the testing and maintenance phase.
5.1 MANAGER MODULE
Manager can access the system to control all details of the staff .i.e., staff Personal
information, salary information, attendance information.etc
1. Register Staff Add/Remove/Update Staff
2. Calculate Salary
3. Add Attendance
4. View Complaints
5. Manage User
6. Manage Payment
5.2 STAFF MODULE
Staff view only own personal information, salary information, attendance.etc
1. Registration(Login)
2. View Salary
3. View Attendance
4. Register Complaints
5. View Profile
6. Change password
CEK SALARY MANAGEMENT SYSTEM
15
7. Change photo
CHAPTER 6
SYSTEM TESTING
16
business process performs accurately to the documented specifications and contains clearly
defined inputs and expected results.
6.1.2 INTEGRATION TESTING
Integration tests are designed to test integrated software components to
determine if they actually run as one program. Testing is event driven and is more concerned
with the basic outcome of screens or fields. Integration tests demonstrate that although the
components were individually satisfaction, as shown by successfully unit testing, the
combination of components is correct and consistent. Integration testing is specifically aimed
at exposing the problems that arise from the combination of components.
Invalid Input
Functions
Output
17
18
19
CHAPTER 7
IMPLEMENTATION AND MAINTENANCE
Implementation is the process of bringing developed system into operational use and
turning it over to the user. An implementation plan is necessary, its major elements are
Training plans
Equivalent installation plans
Conversion plans
Training plan is necessary to ensure that all persons who are associated with the
system have the necessary knowledge and skills. An important activity in training is
management orientation.
Equipment implementation is an activity that is completed during the
development phase. The equipment related activities are: site operation, equipment
installation and hardware and software check out.
Conversion is the process of initiating all of the physical operations that
results directly in the turn over if the new system to the user. There are two parts:
Conversion plan
Changeover plan
Conversion plan includes procedure conversion, program conversion and file
conversion. Changeover plan specifies the method of change over from the old to new
system.
Implementation is the stage of project where the theoretical design is turned into
working system. In this stage the installation of the package in the real environment, to the
20
satisfaction of the intended user and the operation of the system. Implementation includes all
those activities that take place to convert from the old system to new one.
The implementation phase ends with an evaluation of the system after placing it into
operation for a period of time. Implementation is the third phase of the system process .In
order to achieve the objective and the expected performance the system has been developed
in a highly interactive and user-friendly manner.
The Maintenance phase requires much more effort and it has 3 kinds of activities
1. Corrective maintenance:
Correcting errors that were not discovered during the product development phase.
2. Perfective maintenance:
Improve the functionalities of the system according to the customers
requirements.
3. Adaptive maintenance:
Porting the software to work in a new environment.
CHAPTER 8
CEK SALARY MANAGEMENT SYSTEM
21
CONCLUSION
Our project is only a humble venture to satisfy the needs in the College staff salary
calculation. After we have completed the project we are sure the problems in the existing
system would overcome. The CEK SALARY MANAGEMENT SYSTEM process made
computerized to reduce human errors and to increase the efficiency. The main focus of this
project is to reduce human efforts. The maintenance of the records is made efficient, as all the
records are stored in the database, through which data can be retrieved easily. The navigation
control is provided and all the forms to navigate through the large amount of records. If the
numbers of records are very large then user has to just type in the search string and user gets
the results immediately. The editing is also made simpler. The system has been developed
using JAVA and My SQL, thus the system was able to process and update the database with
more ease. It helped in developing a total integrated system. The user has to just type in the
required field and press the update button to update the desired field.
Thus the project CEK SALARY MANAGEMENT SYSTEM can be altered in accordance
with the future requirements of the organization.
REFERANCES
CEK SALARY MANAGEMENT SYSTEM
22
ANNEXURE A
23
DATABASE TABLES
Server: localhost
Database: smgmt
Table: staf
Field
username
password
sid
name
dob
gender
address
email
qualification
department
position
dateofjoin
joblevel
bank
ifsc
accno
Type
Description
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
Unique
not null
Primary key
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
Type
varchar(50)
Longblob
Description
Primary key
Not null
Type
int(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
varchar(50)
Description
Primary key
Not null
Not null
Not null
Not null
Not null
Table: image
Field
SID
image
Table: attendence
Field
slno
Date
SID
Name
FN
AN
24
Type
int(50)
varchar(50)
varchar(500)
Description
Primary key
Not null
Not null
Table: salary
Field
SID
Name
pf_subs
pf_loan
pf_arrier
society_loan_repayme
nt
LIC
TAX
other
month
year
Total
Type
varchar(50)
varchar(50)
int(11)
int(11)
int(11)
int(11)
int(11)
int(11)
int(11)
varchar(11)
varchar(20)
int(11)
Description
Primary key
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
Table: deductions
Field
SID
Name
pf_subs
pf_loan
pf_arrier
society_loan_repayme
nt
LIC
TAX
other
month
year
Type
varchar(50)
varchar(50)
int(11)
int(11)
int(11)
int(11)
int(11)
int(11)
int(11)
varchar(11)
varchar(20)
Description
Primary key
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
25
int(11)
not null
Table: salaryreports
Field
SLNO
Month
Year
SID
Name
AGP
BP
DP
BP_p_DP
DA
HRA
Gross_Amount
PF_Subscription
PF_Loan
PF_arrier
Society_Loan_Repaym
ent
Type
int(20)
varchar(20)
varchar(20)
int(20)
varchar(20)
float
float
float
float
float
float
float
float
float
float
float
Description
Primary key
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
not null
26
float
float
float
float
float
not null
not null
not null
not null
not null
ANNEXURE B
SOURCE CODE
1.Staff module
package minismc;
import java.awt.Image;
import java.io.File;
import java.io.FileInputStream;
import java.sql.*;
import java.util.Random;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
import javax.swing.ImageIcon;
import javax.swing.JDialog;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
public class Register_Staff extends javax.swing.JFrame {
public Register_Staff() {
initComponents();
CEK SALARY MANAGEMENT SYSTEM
27
28
expression = "(0[1-9]|[1][0-9]|[2][0-9]|[3][0-1])+/(0[1-9]|1[012])+/[0[1-9]|[12][0-9]|3[01])]{2,4}";
Pattern pattern = Pattern.compile ( expression , Pattern.CASE_INSENSITIVE );
29
30
31
2.Salary Calculation
package minismc;
import com.itextpdf.text.BaseColor;
import com.itextpdf.text.Chunk;
import com.itextpdf.text.Document;
import com.itextpdf.text.DocumentException;
import com.itextpdf.text.Element;
import com.itextpdf.text.Paragraph;
import com.itextpdf.text.pdf.PdfPCell;
import com.itextpdf.text.pdf.PdfPTable;
import com.itextpdf.text.pdf.PdfWriter;
import static java.awt.Component.CENTER_ALIGNMENT;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
CEK SALARY MANAGEMENT SYSTEM
32
33
34
35
36
37
38
39
3. Attendance
package minismc;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.text.SimpleDateFormat;
import java.util.Date;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog;
import javax.swing.JOptionPane;
import javax.swing.Timer;
import net.proteanit.sql.DbUtils;
public class AddAttendence extends javax.swing.JFrame {
public AddAttendence() throws SQLException {
initComponents();
comb();
shdate();
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
A();
}
public void A() throws SQLException
{
String url1="jdbc:mysql://localhost:3306/smgmt";
String user1="root";
String pwd1="";
Connection con=DriverManager.getConnection(url1,user1,pwd1);
String query="SELECT * FROM `attendence`";
PreparedStatement Psmt=con.prepareStatement(query);
ResultSet rs=Psmt.executeQuery();
do {
jTable1.setModel(DbUtils.resultSetToTableModel(rs));
}while (rs.next());
}
public void comb() throws SQLException
{
String url1="jdbc:mysql://localhost:3306/smgmt";
CEK SALARY MANAGEMENT SYSTEM
40
41
42
4.COMPLAINTS
package minismc;
import java.sql.*;
import javax.swing.JOptionPane;
public class complaints extends javax.swing.JFrame {
public complaints() {
initComponents();
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String url="jdbc:mysql://localhost:3306/smgmt";
String user="root";
String pass="";
try {
Connection con=DriverManager.getConnection(url,user,pass);//
43
query="INSERT
INTO
`SMGMT`.`complaints`
(`SID`,
`Date`,
`Reason`)
VALUES
('"+jTextField1.getText()+"','"+jDate.getText()+"', '"+jTextArea1.getText()+"')";
PreparedStatement prsmt;
prsmt = con.prepareStatement(query);
int i=prsmt.executeUpdate();
if(i>0){
JOptionPane.showMessageDialog(null,"Complaint is Registered!");
System.out.println("Complaint is Registered!");
}
else {
JOptionPane.showMessageDialog(null,"Complaint is NOT Registered!");
}
} catch (Exception e) {
JOptionPane.showMessageDialog(null,e);
System.err.println(e);
}
}
}
5. SALARY REPORT
package minismc;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.logging.Level;
import java.util.logging.Logger;
import javax.swing.JDialog;
import net.proteanit.sql.DbUtils;
public class monthlySalaryreport extends javax.swing.JFrame {
public monthlySalaryreport() {
initComponents();
setDefaultCloseOperation(JDialog.HIDE_ON_CLOSE);
sidcomp();
}
void sidcomp()
{
String url1="jdbc:mysql://localhost:3306/smgmt";
44
45
ANNEXURE C
SCREEN SHOTS
1. Start page
2. Home page
46
3.About
47
4. Login
48
5.Manager home
6. Staff Module
CEK SALARY MANAGEMENT SYSTEM
49
7.Calculate Salary
50
8.Attendace
51
9.Salary Report
CEK SALARY MANAGEMENT SYSTEM
52
10.View complaints
53
11.Staff Home
12.User profile
54
13.User Salary
14.User Attendance
55
15. Complaints
56