0% found this document useful (0 votes)
30 views70 pages

Wa0001

The document is a project report on the Payroll Management System submitted by Khushi Sanjay Potphode for her Bachelor of Science in Information Technology. It outlines the need for a computerized payroll system to replace the existing manual processes, highlighting the advantages of efficiency, accuracy, and user-friendliness. The report includes system analysis, design, features, and objectives of the proposed system, emphasizing its ability to streamline payroll management and improve organizational operations.

Uploaded by

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

Wa0001

The document is a project report on the Payroll Management System submitted by Khushi Sanjay Potphode for her Bachelor of Science in Information Technology. It outlines the need for a computerized payroll system to replace the existing manual processes, highlighting the advantages of efficiency, accuracy, and user-friendliness. The report includes system analysis, design, features, and objectives of the proposed system, emphasizing its ability to streamline payroll management and improve organizational operations.

Uploaded by

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

1

PayRoll Management System

PAYROLL MANAGEMENT SYSTEM


A Project Report

Submitted in partial fulfillment of the


Requirements for the award of the Degree of

BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY)


By

Khushi Sanjay Potphode


Seat Number- 1071298

Under the esteemed guidance of

Mrs. MANASVI WADHAWAL


Asst. Prof.

DEPARTMENT OF INFORMATION TECHNOLOGY


G.M.VEDAK COLLEGE OF SCIENCE , TALA
(Affiliated to University of Mumbai)
TALA-402111

MAHARASHTRA
2023-24

2
SHRI. GOPINATH MAHADEV VEDAK PRATISHTHAN’S

G.M.VEDAK COLLEGE OF SCIENCE, TALA

DEPARTMENT OF COMPUTER SCIENCE & INFORMATION TECHNOLOGY

CERTIFICATE

This is to certify that Project entitled “PAYROLL MANAGEMENT


SYSTEM” Submitted by Ms. Khushi Sanjay Potphode As per the syllabus
in fulfillment for the completion of B.Sc. Degree in (Information
Technology) of University of Mumbai. This is also to certify that this is
original work of the candidate done during the academic year 2023-2024.

Exam seat no: 1071298 Date:

Place: Tala

Project Guide
Mrs. Manasvi Wadhawal

External Examiner Head Of Department

3
PayRoll Management System

ACKNOWLEDGEMENT

“Success is to be measured not so much by the position that one has reached in life, but
as by the obstacle which he has had to overcome while trying to succeed.”

I would like to extend our heartiest thanks with a deep sense of gratitude and respect to
all those who provides me immense help and guidance during my study period.

I would like to thank our Head of Department as well as my Project Guide Prof.
Manasvi Wadhawal for providing a vision about the system and gave me an opportunity to
undertake such a great challenging and innovative work.

I have been greatly benefited from their regular critical reviews and inspiration
throughout my work.

I am grateful to them for their guidance, encouragement, understanding and insightful


support in the development process.

I am also thankful to entire staff of IT for their constant encouragement, suggestions


and moral support throughout the duration of my project. Last but not the least I would like to
mention here that I am greatly indebted to each and everybody who has been associated with
my project at any stage but whose name does not find a place in this acknowledgement.

With sincere regards,

Ms. Khushi S. Potphode

4
PayRoll Management System

DECLARATION

I hereby declare that the project entitled, “PAYROLL MANAGEMENT SYSTEM”


done at G.M.VEDAK COLLEGE OF SCIENCE, TALA has not been in any case
duplicated to submit to any other university for the award of any degree. To the best of my
knowledge otherthan me, no one has submitted to any other university.

The project is done in partial fulfillment of the requirements for the award of degree of
BACHELOR OF SCIENCE (INFORMATION TECHNOLOGY) to be submitted as final
semester project as part of our curriculum.

Name and Signature of the Student

Ms. Khushi Potphode

5
PayRoll Management System

SYNOPSIS
Payroll is very simple, flexible and user-friendly Management software. That takes
care of all your requirements relating to accounting and management of employees Payroll.
Payroll stores complete records of the employees, Bonus, Advance, generates Pay-slips and
Register Attendance, Computes all allowances and deductions and generates all statutory
reports.
Payroll is only salary processing software with good and wide-industry range of
clients. It offers very high flexibility in defining various allowances, deductions: leave rules
etc. for the employees and all formula for P.F etc. are definable and changeable at User's end.

Payroll Application has been designed for the purpose of maintaining details of
various allowances and deductions that needs to be given to the employees of the organization.
Also, it generates the salary sheet of the employees of the organization that assists the accounts
department in many ways. Main Objectives:

There are multiple objectives behind the designing and implementation of the Module:
• To prepare the detailed salary record of all the employees in an organization

• To generate Pay-In-Slip through the calculation of salary

• Proper usage of manpower

• To maintain Allowances, Deductions, Savings and Arrears details for the employees

• To generate reports in user-defined formats

• To generate various important reports that provides valuable information to the top-level
management

6
PayRoll Management System

CONTENT
Chapter Name.
1. System Study
1.1 Existing System
1.2 Drawbacks Of Existing System
1.3 Need for a New System

2. Introduction to Payroll Management System.


2.1 Features

3. Proposed system.
3.1 Working
3.2 Objective/Advantages of New System

4. System Analysis
4.1 Analysis
4.2 Problem Understanding

5. Requirement Analysis
5.1 Requirements Specification
5.2 Constraints

6. System Design 7.
Platform Used
7.1 Hardware Requirement
7.2 Software Requirement
7.3 Front End Tool: C#.NET
7.4 Languages Used

8. Data Flow Diagram


9. ER (Entity Relationship ) Diagram
10. Used Case Diagram
11. Activity Diagram
12. Class Diagram
13. Sequence Diagram
14.Database Table
15. Snapshots
16. Coding
17. Conclusion and Future Work
17.1Limitations and Future Enhancements:
17.1.1Advantages
7
PayRoll Management System
17.1.1Disadvantages
17.1.2 Scope
17.1.3 17.1.3 Limitation

18. Reference

8
PayRoll Management System

Chapter 1
SYSTEM STUDY

In system study we study the existing system and new proposed system. In system
study we study that what are the drawbacks, and limitations exist. What are the needs of the
existing system? And also study what is the new proposed system, and how new proposed
system removes the limitations and drawbacks of the existing system. In this Section we study
the advantages of the new proposed system.

1.1 Existing system


This Organization is maintaining most of their day-to-day transactions data in the
registers (i.e. manually). The employees of the organization are doing the whole work manually.
All the work is done manually (i.e. maintained in registers) so different employees are
appointed for the maintenance of registers containing all the information related to the
organization It is very time consuming and is also not error free in some situations. In existing
manual system databases calculations are difficult to perform so report generation as very much
difficult.

1.2 Drawbacks of Existing System


Generally whenever we implement a new system it is developed to eliminate the
shortcomings of an existing system. The computerized system has more edge over the manual
system. It is because of accuracy, high speed, quick result, diligence etc. The existing system
is totally based on manual system. Existing system has many drawbacks in comparison of
computerized system
1. Time Consuming: High time consumption is the main weakness of the existing system. A
lot of time is wasted in searching records from different files, which resulted in loss of time,
and moreover workload also increases. Also a lot of time is wasted in duplicating the same
entries in different registers. The overall checking of the records and modifications if
necessary has to be made at several places which is time consuming and error prone.

2. Service and Working Conditions: With the unusual delay due to various reasons (such as
non-availability of record or absence of an employee etc.) the customer suffers a lot. Without
any firm reason he has to wait which disfigures the working conditions.

3. Difficulties in Retrieving Information: Sometimes, to get any of any type of instant


information more than one document needs to be searched. This requires the opening of both
files and then combining the information to get the required information. Further the files
may not be indexed according to the need, which causes difficulty in retrieving information.

4. Difficult for the Top Management to analyze data: Top management faces lots of
problems to know about the details of the Current Transactions, Current Bookings, Current
Cancellation and Employee as all is maintained at the lower level. Except for the media and

9
PayRoll Management System

their reliable resources they have nobody to ask about the current outputs and the overall
results to be generated along with the reports at the end of the year.

5. Not Easy to understandable by new user: To understand the manual system the user have
to get more practice and have a grape all fields that help by other employee and have to be
in contact with that person. If the person was in leave the user can get the information from
him.

6. Need more space to store: Here by using the paper work system the user need to maintain
all the documents in proper way to avoid the difficulty in action and need more space to store
these documents because they can't destroy the old documents.

7. Very Expensive: The existing manual system is very expensive method as lot of paper work
has to be done and lot of wastage of manpower, which increase the expanses of existing
system

8. Data sharing: The different user in the different department cannot share data
simultaneously.

9. Security feature are not prominent in the existing system.

1.3 Need For a New System


To enhance the working of the fine Tech organization, which was completely handled
manually, the improvement was thought on the basis of computerizing the major activities. The
following factors were foreseen for the improvisation:
1. Identify the Opportunity to Improve Business Functions: It has been identified that
computerization process is necessity and what business benefits can be derived by
implementing this improvement. It will lead to better transaction handling in terms of speed,
reliability and accuraсу.
2. Improves Services and Working Conditions: To improve the working conditions of
existing system in every parts of Tour & Travel Org. Customer services are need to improve
to a greater extent.

3. User friendly: To make the system user friendly this system using window as its run time
environment and is developed using Visual Studio 2008, which is very user-friendly rapid
application developed tool. Because in the existing system register work was very difficult
to handled by each user and was boring job.

4. Data Security: The proposed will also prevent unauthorized access to the system. At the
very beginning, the user name and password is to be entered by the user and if it is correct
only then the permission to use the software is given to user. There are different users
according to different roles and one user can't use the resources given to another user.

5. Data Redundancy: The data is stored only once which can be accessed by any one at any
time and at any place. So it can be minimized but cannot be removed completely

1
0
PayRoll Management System

6. Easy to Access: In this database project, data can be easily access through computer
networking.

7. Cost Reduction: It requires less amount of Cost as compared to existing system.

8. Time & Efforts Reduction: It requires fewer amounts of time and efforts.

10
PayRoll Management System

Chapter 2
Introduction to Payroll Management System

A user friendly GUI (Graphical User Interface) based software "Payroll Management
System" has been developed for organization, keeping in view the requirements of employees
to prepare salary. The objective of the project was to computerize the payroll system which was
earlier being handled manually every precaution has been taken at each process involved in the
complex task of salary preparation. By computerization it implies that all process handling is
entirely being done by computer. All the records necessary for the processes involved in the
salary calculation are stored in a computer based record keeping system using a back-end tool.
All the processes handling is done at the front-end by using a front-end. The project provides
sample facilities to its users. The most important of the facilities are the report generation and
printing which provides user with the hard copies of the data also.

2.1 Features:
Preparation of salary.
Printing of Windows Based user friendly software.
Maintenance of rich electronic records of employees available at station.
Bonus
Advance
Pay slips.
Attendance record.
Standard report generation

11
PayRoll Management System

Chapter 3
PROPOSED SYSTEM

This consists of Payroll System. All these transactions need to be carefully understood
and taken into consideration. The system also contains a lot of data redundancy at various
stages. One of the objectives of the new system would he to stores data in an efficient and
nonredundant form and hence increase overall efficiency of the system.
The new system should ensure of simple and easy data entry procedures through
suggestive looking form. There are quite a number of lengthy calculations being done on the
acquired data. These calculations should be thoroughly understood. The new system should be
able to perform all these calculations automatically and efficiently.
Numerous kinds of queries are done on large amounts of accumulated data, to find out the
desired data. The new system should provide efficient, simple, fast and smarter procedures for
retrieval of exhaustive types of data from the database.
Finally, there are quite a number of reports that are generated during the normal
working of the system. Each of these required reports should be understood very carefully and
the new system shall provide easy and efficient methods for generation of these reports.

3.1 Working

The working of the project is based on payroll system for performing its working it use Visual
Basic.NET as a front-end and SQL as a back-end. In which user perform all its functions in
Visual Basic.NET environment and all database stores in the database oracle. This proposed
system reserve the ticket on request of the user and also refund the unconfirmed orders after
lasing the commission them, All the calculations are automatically and efficiently performed.
The new computerized system has an edge over the manual system. The beneficial features of
new computerized system are the following:
1. Improves Services and Working Conditions: The proposed system improves the existing
working conditions in each step of inventory control system Customer services are improved
to a greater extent. The whole process is very easy and efficient.

2. User Friendly: The new system is using windows as its runtime environment and is
developed using Visual Basic.NET which is very user friendly rapid application development
tool. The new system is totally graphical and user just has to select his desired option and the
next step will be taken immediately and automatically by the system.

3. Less Time Consumption: Another aspect of system, which will reduce the time
consumption, I its speed. The speed of system is measured in terms of response time i.e. the
time it takes to respond to user's request. Computer is an electronic device which can

12
PayRoll Management System

manipulate, modifies, retrieve and store information very speedily so it will be able to report
within a fraction of time

3.2 Objective/Advantages of New System:


To overcome these above stated limitations in the Payroll Management System, we propose a
new system that is computerized system of "Payroll Management System". The proposed
system would store all the information captured in different registers that will be linked with
each other and will provide direct and immediate access. Using a computerized system, we will
do storing of data. All the addition, deletion, modification, printing will be done through
computer for faster accessing. This proposed system would set free from all the burdens
mentioned in limitations of existing system.
1. Fast and Efficient: As compared to existing manual system, in proposed system the user can
get the information fast, easily and efficiently from the computer since information is a single
click away from the user.

2. Reliable and Accurate: As in proposed system the information is stored and processed in
computers so that data will be more reliable and accurate.

3. Centralized Data: In the existing system most of data records are kept in registers and some
data are maintained in Microsoft Excel due to this system the placement of the data is not at
one particular place. But in proposed system each and every record is maintained on computer,
which leads to the centralization of data and every user which have the access to system can
retrieve the data at ease.

4. Low Operation and Maintenance Cost: The proposed system is not very costly as it doesn't
includes many costs and overhead expenses like file management, stationary charges etc.

5. Non-Redundant Information: As in proposed system data maintained on the computers so


inconsistency doesn't occurs whichever leads to problem like duplication of data. As in our
project most of the inventory codes are Auto Generated hence There is no chance of duplication
of the master records.

6. User Friendly: Proposed system is very user friendly. We have applied many check and
balances (i.e. validation rules) in the proposed system so that a less knowledgeable person can
also enter the data error free and at an ease.

7. Easy to Access: As compared to existing system, in proposed system the user can easily and
efficiently access the information from the computer only if the user is given the right of the
same. In the proposed system we have used the concept of level of access. We have created the
users to access the database. So depending upon the type of hierarchy we can assign different
rights for the user.

8. No Documentation: As everything is stored on the computer so there is any need of


documentation or maintaining the files or registers.

13
PayRoll Management System

Chapter 4
SYSTEM ANALYSIS

4.1 Analysis
Analysis is a detailed study of the various operations performed by a system and their
relationship within and outside of the system. A key question is: What must be done to solve
the problem? One aspect of analysis is defining the boundaries of the system and determining
whether or not a candidate system should consider other related systems. During analysis
data are collected on the available files, decision points and transactions handled by the
present system. Some logical system models and tools are used in analysis are data flow
diagrams, interviews, on-sight observations and questionnaires etc. The interview is a
commonly used tool in analysis. It requires special skills and sensitivity to the subjects being
interviewed. Bias in data collection and interpretation can be a problem. Training, experience
and common sense are required for collection of the information needed to do the analysis.
Once analysis is completed, the analyst has a firm understanding of what is to be done. The
next step is to decide how the problem might be solved. Thus, in system design, we move
from the logical to the physical aspect of the life cycle.

4.2 Problem Understanding


One of the most difficult tasks is developing a clear in depth of the problem being
investigated, without which it becomes impossible to specify the requirements for a new
project with any accuracy. In the manual system the main problem was to understand the
large and typical database and short form of information about any Employee Several
questions should be proposed for this as:

1. What is the problem?


In the manual system large amount of data handle is very difficult. It is difficult to
access the required data from saved registers. And also large amount of data is very
difficult store.
2. What are its causes?
Due to store the data in large registers in manual system nobody can search and easily
access the records of the employee at a time. In manual system records war search one
by one that were very time consuming.
3. Why is it important that the problem be solved?
The main point of view to solve the problems to change the manual system is fulfilling
the required of the Management .Because nowadays very large amount of data need to
be transferred.
4. What are the possible solutions to the problem?
The solution of this problem is developed the computerized version of the manual system,
which is less time consuming, and easy to handle.

14
PayRoll Management System

Chapter 5
REQUIREMENT ANALYSIS

5.1 Requirements Specification


The proposed project full fill all the requirement of the user although it related to booking of
the tickets or with calculations and it also provides all the necessary features which is needed
by the user of the software It is a structured, precise document, which defines each and every
system service and constraint in detail. It may also be known as The functional specification
and is generally used as basis for a contract between the user and the software developer.
Functional Requirements The proposed project fulfills all the functional requirements of
the organization. These are those requirements that define the functionality of the software
system. Like of a, Attendance of a employee, making Pay slip. They are descriptions of the
project functions.
Non-Functional Requirements These are those requirements that place a constraint under
the system operates for example response time or on the development process such as the
choice of the programming language.

5.2 Constrain
The company functions manually. This system has a lot of problems as the work done is very
time consuming and sometimes errors also creep in, so there was an urgent need to develop
a system, which is simple .error free and suits the working of the institution. The software
"Payroll Management System" is such software, which will serve to these purposes.
Constraints are validations, which are used to check that the software is working properly. The
software also has some constraints, which make it a successful application

15
PayRoll Management System

Chapters 6
SYSTEM DESIGN
The development of the Transaction Control Software consisted of studying of the
existing manual system and developing an efficient computerized system that emphasizes on
easy storage and retrieval of data in the database.
The new system should ensure of simple and easy data entry procedures through
suggestive looking form. There are quite a number of lengthy calculations being done on the
acquired data. These calculations should be thoroughly understood. The new system should
be able to perform all these calculations automatically and efficiently.
There are quite a number of reports that are generated during the normal working of
the system. Each of these required reports should be understood very carefully and the new
system shall provide easy and efficient methods for generation of these reports. Moreover,
the new system should provide a very easy to use interface, so that user should feel at home
throughout the working of the system.

16
PayRoll Management System

Chapter 7
PLATFORM USED

7.1 Hardware Requirement


Hardware is the term given to the machinery itself and to the various individual
pieces of equipment. It refers to the physical devices of a computer system. Thus, the input,
storage processing control and the output devices are hardware.
Following are the minimum hardware and software specifications that are required
for efficient performance of the system. Using a higher configuration than specified below
can enhance the system performance further

Hardware Are Specifications


 Processor 11th Gen Intel(R) Core ™ i5
 RAM 8.00 GB (for best performance)
 Keyboard 83 Standard keys
 Hard disk 3.10GHz

7.2 Software Requirement


Software means a collection of program where the objective is to enhance the
capabilities of the hardware machine. The following defines the software of the proposed
system developments:

Software Specification
 Visual Studio .NET 2015
 C# Language
 SQL

7.3 Front End Tool: C#.NET

WHAT IS C#.NET: C# is an elegant and type-safe object-oriented language that enables


developers to build a variety of secure and robust applications that run on the .NET
Framework. You can use C# to create Windows client applications, XML Web services,
distributed components, client-server applications, database applications, and much, much
more. Visual C# provides an advanced code editor, convenient user interface designers,

17
PayRoll Management System

integrated debugger, and many other tools to make it easier to develop applications based on
the C# language and the .NET Framework.

C#: C# syntax is highly expressive, yet it is also simple and easy to learn. The curlybrace
syntax of C# will be instantly recognizable to anyone familiar with C, C++ or Java.
Developers who know any of these languages are typically able to begin to work
productively in C# within a very short time. C# syntax simplifies many of the
complexities of C++ and provides powerful features such as nullable value types,
enumerations, delegates, lambda expressions and direct memory access, which are not
found in Java. C# supports generic methods and types, which provide increased type
safety and performance, and iterators, which enable implementers of collection classes to
define custom iteration behaviors that are simple to use by client code.
LanguageIntegrated Query (LINQ) expressions make the strongly-typed query a
firstclass language construct.

7.4 Languages Used


SQL: SQL (Structured Query Language) is a query language. It can define the structure of the
data, modify data in the database and specify security constraints. SQL is a simple and powerful
database access language and the standard language for relational database management
system. SQL uses a combination of relational calculus constructs all the operations made to the
data in an oracle database are performed using SQL declaration.

18
PayRoll Management System

DETAIL LIFECYCLE
OF
THE PROJECT

19
PayRoll Management System

Chapter 8
DATA FLOW Diagram
A Data Flow Diagram (DFD) is a diagram that describes the flow of data and the processes
that change or transform data throughout a system. It's a structured analysis and design tool
that can be used for flowcharting in place of, or in association with, information oriented and
process oriented system flowcharts. When analysts prepare the Data Flow Diagram, they
specify the user needs at a level of detail that virtually determines the information flow into
and out of the system and the required data resources. This network is constructed by using
a set of symbols that do not imply a physical implementation. The Data Flow Diagram
reviews the current physical system, prepares input and output specification, specifies the
implementation plan etc. Four basic symbols are used to construct data flow diagrams. They
are symbols that represent data source, data flows, and data transformations and data storage.
The points at which data are transformed are represented by enclosed figures, usually circles,
which are called nodes.

RULES FOR CONSTRUCTING A DATA FLOW DIAGRAM:


• Arrows should not cross each other.
• Squares, Circles and files must bear names.
• Decomposed data flow squares and circles can have same names.
• Choose meaningful names for dataflow.
• Draw all data flows around the outside of the diagram

Zero Level Data Flow Diagram (0 Level DFD)

This is the Zero Level DFD of Payroll Management System, where we have elaborated
the high level process of Payroll. It’s a basic overview of the whole Payroll Management
System or process being analysed or modulated. It’s designed to be an at-a-glance view of Task,
Pay Receipt and Department showing the system as a single high-level process, with its
relationship to external entities of Employee, Admin . It should be easily understood by a wide

audience, including Employee, Admin In zero level DFD of Payroll Management System, we
have described the high level flow of the Payroll system.

20
PayRoll Management System

First Level Data Flow Diagram (1st Level DFD)

First Level DFD (1st Level) of Payroll Management System shows how the system is divided
into sub-systems (processes), each of which deals with one or more of the data flows to or from
an external agent, and which together provide all of the functionality of the Payroll
Management System as a whole. It also identifies internal data stores of Department, Pay-Slip,
Salary, Employee, Bonus and Advance, Attendance that must be present in order for the Payroll
system to do its job, and shows the flow of data between the various parts of Employee, Pay-
Slip, Department, Attendance, Bonus and Advance of the system. DFD Level 1 provides a more
detailed breakout of pieces of the 1st level DFD. You will highlight the main functionalities of
Payroll.

21
PayRoll Management System

Second Level Data Flow Diagram (2nd Level DFD)

DFD Level 2 then goes one step deeper into parts of Level 1 of Payroll. It may require more
functionalities of Payroll to reach the necessary level of detail about the Payroll functioning.
First Level DFD (1st Level) of Payroll Management System shows how the system is divided
into sub-systems (processes). The 2nd Level DFD contains more details of Department,
PaySlip, Bonus and Advance, Salary, Attendance and Employee

22
PayRoll Management System

Chapter no 9
E-R (entity- relationship ) Diagram

 An Entity Relationship Diagram (ERD) is a visual representation of different data using


conventions that describe how these data are related to each other

 While able to describe just about any system, ER diagrams are most often associated with
complex databases that are used in software engineering and IT networks. In particular, ER
diagrams are frequently used during the design stage of a development process in order to
identify different system elements and their relationships with each other

23
PayRoll Management System

Chapter no.10
USE-CASE Diagram
This Use Case Diagram is a graphic depiction of the interactions among the elements
of Payroll Management System. It represents the methodology used in system analysis to
identify, clarify, and organize system requirements of Payroll Management System. The main
actors of Payroll Management System in this Use Case Diagram are: Super Admin, System
User,
Accountant, Employee, who perform the different type of use cases such as Login, Add New
Employee, Add new Bonus and Advance Salary, Manage Attendance, Manage Employee
Salary Details, Manage Department, Manage Salary Issue, Generate Payroll, Logout and Full
Payroll Management System Operations. Major elements of the UML use case diagram of
Payroll Management System are shown on the picture below.

24
PayRoll Management System

Chapter no.11
ACTIVITY Diagram
This is the Activity UML diagram of Payroll Management System which shows the
flows between the activity of Salary, Payments, Employee. The main activity involved in this
UML Activity Diagram of Payroll Management System are as follows:

• Salary Activity
• Bonus and Advance Activity
• Employee Activity
• Attendance Activity
• Total Paid Amount
• Pay-Slip Activity

25
PayRoll Management System

Chapter no.12

CLASS Diagram

A class diagram in the Unified Modeling Language (UML) is a type of static structure
diagram that describes the structure of a system by showing the system's classes, their
attributes, operations (or methods), and the relationships among objects.

The class diagram is the main building block of object-oriented modeling. It is used both for
general conceptual modeling of the systematic of the application, and for detailed modeling
translating the models into programming code. Class diagrams can also be used for data
modeling. The classes in a class diagram represent both the main elements, interactions in the
application, and the classes to be programmed.

In the diagram, classes are represented with boxes that contain three compartments:

• The top compartment contains the name of the class. It is printed in bold and centered, and

the first letter is capitalized.


• The middle compartment contains the attributes of the class. They are left-aligned and the

first letter is lowercase.


• The bottom compartment contains the operations the class can execute. They are also

leftaligned and the first letter is lowercase.

In the design of a system, a number of classes are identified and grouped together in a class
diagram that helps to determine the static relations between them. With detailed modelling,
the classes of the conceptual design are often split into a number of subclasses.

In order to further describe the behavior of systems, these class diagrams can be complemented
by a state diagram or UML state machine.

26
PayRoll Management System

27
PayRoll Management System

Chapter no.13
SEQUENCE Diagram
This sequence diagram shows object interactions arranged in time sequence. It depicts the
objects and classes involved in the scenario and the sequence of messages exchanged between
the objects needed to carry out the functionality of the scenario. Sequence diagrams are
typically associated with use case realizations in the Logical View of the system under
development.

Sequence diagrams are sometimes called event diagrams or event scenarios.

28
PayRoll Management System

Chapter no.14
DATABASE TABLES

• Employees Table

• Bonus Table

29
PayRoll Management System

• Advance Table

• Attendance Table

30
PayRoll Management System

• Issue Salary Table

31
PayRoll Management System
CHAPTER 15
SNAPSHOTS

*Login Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Payroll_Management_System
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}

private void Form1_Load(object sender, EventArgs e)


{

private void btnLogin_Click(object sender, EventArgs e)


{
if(txtUserName.Text == "" || txtPassword.Text == "")
{
MessageBox.Show("Missing Information");
}else if (txtUserName.Text == "khushi" && txtPassword.Text == "7061")
32
PayRoll Management System

{
Dashboard ds = new Dashboard();
ds.Show();
this.Hide();

}
else
{
MessageBox.Show("Wrong Admin or Password");
}
}

private void btnClose_Click(object sender, EventArgs e)


{
Application.Exit();
}
}
}

33
PayRoll Management System

*Home Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data; using
System.Drawing; using
System.Linq; using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms; using
System.Data.SqlClient; namespace
PayRoll_Management
{
public partial class Form1 : Form
{
SqlConnection con = new SqlConnection("Data Source=DESKTOP-
NPHCRPV;Initial Catalog=PayRollManagement;Integrated
Security=True"); public
Form1()
{
InitializeComponent();
CountEmployee();
CountManagers();
SumSalary();
SumBonus(); }
public void CountEmployee()
{ con.Open();
SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) from

34
PayRoll Management System
EmployeeTb1", con);
DataTable dt = new DataTable(); sda.Fill(dt);
EmpLb.Text = dt.Rows[0][0].ToString(); con.Close();

}
public void CountManagers()
{
String Pos = "Manager";
con.Open();
SqlDataAdapter sda = new SqlDataAdapter("Select Count(*) from
EmployeeTb1 where EmpPosition='"+Pos+"'", con);
DataTable dt = new DataTable(); sda.Fill(dt);
ManaLb.Text = dt.Rows[0][0].ToString(); con.Close();

}
public void SumSalary()
{

con.Open();
SqlDataAdapter sda = new SqlDataAdapter("Select Sum(EmpSBalance)
from SalaryTb", con);
DataTable dt = new DataTable();
sda.Fill(dt);
SalaryLb.Text ="Rs" +dt.Rows[0][0].ToString(); con.Close();

}
public void SumBonus()
{

con.Open();
SqlDataAdapter sda = new SqlDataAdapter("Select Sum(EmpSBonusAm)
from SalaryTb", con);
DataTable dt = new DataTable();
sda.Fill(dt);
BonusLb.Text ="Rs" +dt.Rows[0][0].ToString(); con.Close();

private void label8_Click(object sender, EventArgs e)


{
Employees Obj = new Employees();
Obj.Show();
}

private void guna2PictureBox10_Click(object sender, EventArgs e)


{
Application.Exit();
}
35
PayRoll Management System
private void label9_Click(object sender, EventArgs e)
{
Bonus Obj = new Bonus();
Obj.Show();
}
private void label10_Click(object sender, EventArgs e)
{
Advance Obj = new Advance();
Obj.Show();
}

private void label11_Click(object sender, EventArgs e)


{
Attendance Obj = new Attendance();
Obj.Show();
}

private void label12_Click(object sender, EventArgs e)


{
Salary Obj = new Salary();
Obj.Show();
}
}
}

36
PayRoll Management System

*Employees Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Payroll_Management_System
{
public partial class Employees : Form
{
SqlConnection con = new SqlConnection("Data Source=SURAJSAKPAL\\SQLEXPRESS;Initial
Catalog=PayrollManagment;Integrated Security = True");
public Employees()
{
InitializeComponent();
ShowEmployee();

private void label15_Click(object sender, EventArgs e)


{
37
PayRoll Management System
salary Obj = new salary();
Obj.Show();
}
private void Clear()
{
EmpName.Text = "";
EmpAddress.Text = "";
EmpNumber.Text = "";
EmpSalary.Text = "";
EmpGender.SelectedIndex = 0;
EmpPosition.SelectedIndex = 0;
EmpQuali.SelectedIndex = 0;

}
private void ShowEmployee()
{
con.Open();
String Query = "Select * from EmployeeTb1";
SqlDataAdapter sda = new SqlDataAdapter(Query, con);
SqlCommandBuilder Builder = new SqlCommandBuilder(sda);
var ds = new DataSet();
sda.Fill(ds);
EmpDGV.DataSource = ds.Tables[0];
con.Close();
}

private void Employees_Load(object sender, EventArgs e)


{

}
private void label14_Click(object sender, EventArgs e)
{
Dashboard Obj = new Dashboard();
Obj.Show();
}

private void label13_Click(object sender, EventArgs e)


{
Employees Obj = new Employees();
Obj.Show();
}

private void gunaButton1_Click(object sender, EventArgs e)


{
Application.Exit();
}

private void label16_Click(object sender, EventArgs e)


{
Attendance obj = new Attendance();
obj.Show();
}

38
PayRoll Management System

private void btnSave_Click(object sender, EventArgs e)


{
if (EmpName.Text == "" || EmpNumber.Text == "" ||EmpGender.SelectedIndex == -1 ||
EmpAddress.Text == "" ||EmpSalary.Text == "" || EmpQuali.SelectedIndex == -1
||EmpPosition.SelectedIndex == -1)
{
MessageBox.Show("Missing Information");
}
else
{
con.Open();
SqlCommand cmd = new SqlCommand("insert into EmployeeTb1(EmpName, EmpGender,
EmpDOB, EmpPhoneNumber, EmpAdd,EmpPosition, EmpJoinDate, EmpQuali, EmpBaseSalary) values(@EN, @EG,
@ED, @EP, @EA, @EPos, @EJD, @EQ, @EBS)", con);
cmd.Parameters.AddWithValue("@EN", EmpName.Text);
cmd.Parameters.AddWithValue("@EG", EmpGender.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@ED", EmpDOB.Value.Date);
cmd.Parameters.AddWithValue("@EP", EmpNumber.Text);
cmd.Parameters.AddWithValue("@EA", EmpAddress.Text);
cmd.Parameters.AddWithValue("@EPos", EmpPosition.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@EJD", EmpJoinDate.Value.Date);
cmd.Parameters.AddWithValue("@EQ", EmpQuali.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@EBS", EmpSalary.Text);
cmd.ExecuteNonQuery();
MessageBox.Show("Employee Saved");
con.Close();
ShowEmployee();
Clear();
/* try
{

}
catch //(Exception Ex)
{
//MessageBox.Show(Ex.Message);
}*/
}
}
int key = 0;
private void EmpDVG_CellContentClick(object sender, DataGridViewCellEventArgs e)
{
EmpName.Text =EmpDGV.SelectedRows[0].Cells[1].Value.ToString();
EmpGender.SelectedItem =EmpDGV.SelectedRows[0].Cells[2].Value.ToString();
EmpDOB.Text =EmpDGV.SelectedRows[0].Cells[3].Value.ToString();
EmpNumber.Text =EmpDGV.SelectedRows[0].Cells[4].Value.ToString();
EmpAddress.Text =EmpDGV.SelectedRows[0].Cells[5].Value.ToString();
EmpPosition.SelectedItem =EmpDGV.SelectedRows[0].Cells[6].Value.ToString();
EmpJoinDate.Text =EmpDGV.SelectedRows[0].Cells[7].Value.ToString();
EmpQuali.SelectedItem =EmpDGV.SelectedRows[0].Cells[8].Value.ToString();
EmpSalary.Text =EmpDGV.SelectedRows[0].Cells[9].Value.ToString();
if (EmpName.Text == "")
{
key = 0;
}
else
{
key =Convert.ToInt32(EmpDGV.SelectedRows[0].Cells[0].Value.ToString());
}
}
private void btnEdit_Click(object sender, EventArgs e)

39
PayRoll Management System

{
if (EmpName.Text == "" || EmpNumber.Text == "" ||EmpGender.SelectedIndex == -1 ||EmpAddress.Text
== "" ||EmpSalary.Text == "" || EmpQuali.SelectedIndex == -1
||EmpPosition.SelectedIndex == -1)
{
MessageBox.Show("Missing Information");
}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("Update EmployeeTb1 Set EmpName = @EN,
EmpGender = @EG, EmpDOB = @ED,EmpPhoneNumber = @EP, EmpAdd = @EA, EmpPosition = @EPos, EmpJoinDate
= @EJD,EmpQuali = @EQ, EmpBaseSalary = @EBS where EmpId = @EmpKey" , con);
cmd.Parameters.AddWithValue("@EN",EmpName.Text);
cmd.Parameters.AddWithValue("@EG",EmpGender.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@ED",EmpDOB.Value.Date);
cmd.Parameters.AddWithValue("@EP",EmpNumber.Text);
cmd.Parameters.AddWithValue("@EA", EmpAddress.Text);
cmd.Parameters.AddWithValue("@EPos",EmpPosition.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@EJD",EmpJoinDate.Value.Date);
cmd.Parameters.AddWithValue("@EQ",EmpQuali.SelectedItem.ToString());
cmd.Parameters.AddWithValue("@EBS",EmpSalary.Text);
cmd.Parameters.AddWithValue("@EmpKey", key);
cmd.ExecuteNonQuery();
MessageBox.Show("Employee Updated");
con.Close();
ShowEmployee();
Clear();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}

private void btnDelete_Click(object sender, EventArgs e)


{
if (key == 0)
{
MessageBox.Show("Missing Information");
}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("Delete from EmployeeTb1 Where EmpId =
@EmpKey", con);

cmd.Parameters.AddWithValue("@EmpKey", key);

cmd.ExecuteNonQuery();
MessageBox.Show("Employee Deleted");
con.Close();
ShowEmployee();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}

31
0
PayRoll Management System

*Bonus Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Payroll_Management_System
{
public partial class bonus : Form
{
SqlConnection con = new SqlConnection("Data Source=SURAJSAKPAL\\SQLEXPRESS;Initial
Catalog=PayrollManagment;Integrated Security = True");

public bonus()
{
InitializeComponent();
ShowBonus();
}
private void Clear()
{
BNameTb.Text = "";
BAmountTb.Text = "";
Key = 0;
}
private void ShowBonus()
{

31
1
PayRoll Management System

con.Open();
String Query = "Select * from Bonus";
SqlDataAdapter sda = new SqlDataAdapter(Query, con);
SqlCommandBuilder Builder = new SqlCommandBuilder(sda);
var ds = new DataSet(); sda.Fill(ds);
BonusDGV.DataSource = ds.Tables[0]; con.Close();
}
private void label17_Click(object sender, EventArgs e)
{
Dashboard obj = new Dashboard();
obj.Show();
}

private void label16_Click(object sender, EventArgs e)


{
Employees obj = new Employees();
obj.Show();
}

private void label15_Click(object sender, EventArgs e)


{
Advancs obj = new Advancs();
obj.Show();
}

private void label13_Click(object sender, EventArgs e)


{
Attendance obj = new Attendance();
obj.Show();
}

private void label12_Click(object sender, EventArgs e)


{
salary obj = new salary();
obj.Show();
}

private void gunaButton1_Click(object sender, EventArgs e)


{
Application.Exit();
}

private void btnSave_Click(object sender, EventArgs e)


{
if (BNameTb.Text == "" || BAmountTb.Text == "")
{
MessageBox.Show("Missing Information");
}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("insert into Bonus(Bname, BAmount)values(@BN,
@BA)", con);
cmd.Parameters.AddWithValue("@BN", BNameTb.Text);
cmd.Parameters.AddWithValue("@BA", BAmountTb.Text);
cmd.ExecuteNonQuery(); MessageBox.Show("Bonus Saved");
con.Close(); ShowBonus();
Clear();
}
catch (Exception Ex)

31
2
PayRoll Management System

{
MessageBox.Show(Ex.Message);
}
}
}

private void btnEdit_Click(object sender, EventArgs e)


{
if (BNameTb.Text == "" || BAmountTb.Text == "")
{
MessageBox.Show("Missing Information");
}
else
{
try
{
con.Open(); SqlCommand cmd = new SqlCommand("Update Bonus Set Bname = @BN,
BAmount = @BA Where BId = @BKey", con);
cmd.Parameters.AddWithValue("@BN", BNameTb.Text);
cmd.Parameters.AddWithValue("@BA", BAmountTb.Text);
cmd.Parameters.AddWithValue("@BKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Bonus Updated");
con.Close(); ShowBonus();
Clear();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}

private void btnDelete_Click(object sender, EventArgs e)


{
if (Key == 0)
{
MessageBox.Show("Select The I Bonus");
}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("Delete from Bonus Where BId = @BKey", con);
cmd.Parameters.AddWithValue("@BKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Bonus Deleted");
con.Close(); ShowBonus();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}
private void label7_Click(object sender, EventArgs e)
{
Form1 Obj = new Form1();

40
PayRoll Management System

Obj.Show();
}
private void label8_Click(object sender, EventArgs e)
{
Employees Obj = new Employees();
Obj.Show();
}
int Key = 0;
private void BonusDGV_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{
BNameTb.Text = BonusDGV.SelectedRows[0].Cells[1].Value.ToString();
BAmountTb.Text = BonusDGV.SelectedRows[0].Cells[2].Value.ToString();
if (BNameTb.Text == "")
{
Key = 0;
}
else
{
Key = Convert.ToInt32(BonusDGV.SelectedRows[0].Cells[0].Value.ToString());
}
}
}
}

41
PayRoll Management System

*Advance Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Payroll_Management_System
{
public partial class Advancs : Form
{
SqlConnection con = new SqlConnection("Data Source=SURAJSAKPAL\\SQLEXPRESS;Initial
Catalog=PayrollManagment;Integrated Security = True");
public Advancs()
{
InitializeComponent();
ShowAdvance();
}

private void Clear()


{
ANameTb.Text = "";
AAmountTb.Text = "";

42
PayRoll Management System

Key = 0;
}
private void ShowAdvance()
{
con.Open();
String Query = "Select * from AdvanceTb2";
SqlDataAdapter sda = new SqlDataAdapter(Query, con);
SqlCommandBuilder Builder = new SqlCommandBuilder(sda);
var ds = new DataSet(); sda.Fill(ds);
ADGV.DataSource = ds.Tables[0]; con.Close();
}
private void label17_Click(object sender, EventArgs e)
{
Dashboard obj = new Dashboard();
obj.Show();
}

private void label16_Click(object sender, EventArgs e)


{
Employees obj = new Employees();
obj.Show();
}

private void label14_Click(object sender, EventArgs e)


{
bonus obj = new bonus();
obj.Show();
}

private void label15_Click(object sender, EventArgs e)


{
Advancs obj = new Advancs();
obj.Show();
}

private void label13_Click(object sender, EventArgs e)


{
Attendance obj = new Attendance();
obj.Show();
}

private void label12_Click(object sender, EventArgs e)


{
salary obj = new salary();
obj.Show();
}

private void Advancs_Load(object sender, EventArgs e)


{

private void gunaButton1_Click(object sender, EventArgs e)


{
Application.Exit();
}

private void btnSave_Click(object sender, EventArgs e)


{
if (ANameTb.Text == "" || ANameTb.Text == "")
{
MessageBox.Show("Missing Information");

43
PayRoll Management System

}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("insert into AdvanceTb2(AdName,
AdAmount)values(@BN, @BA)", con);
cmd.Parameters.AddWithValue("@BN", ANameTb.Text);
cmd.Parameters.AddWithValue("@BA", AAmountTb.Text);
cmd.ExecuteNonQuery();
MessageBox.Show("Advance Saved");
con.Close(); ShowAdvance();
Clear();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}
private void btnDelete_Click(object sender, EventArgs e)
{
if (Key == 0)
{
MessageBox.Show("Select The I Advance");

}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("Delete from AdvanceTb2 Where AID = @AKey",
con);
cmd.Parameters.AddWithValue("@AKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Advance Deleted");
con.Close(); ShowAdvance();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}
int Key = 0;
private void ADGV_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{
ANameTb.Text = ADGV.SelectedRows[0].Cells[1].Value.ToString();
AAmountTb.Text = ADGV.SelectedRows[0].Cells[2].Value.ToString();
if (ANameTb.Text == "")
{
Key = 0;
}
else
{
Key = Convert.ToInt32(ADGV.SelectedRows[0].Cells[0].Value.ToString());
}
}

private void btnEdit_Click_1(object sender, EventArgs e)

44
PayRoll Management System

{
if (ANameTb.Text == "" || ANameTb.Text == "")
{
MessageBox.Show("Missing Information");
}
else
{

try
{
con.Open();
SqlCommand cmd = new SqlCommand("Update AdvanceTb2 Set AdName = @BN, AdAmount
= @BA Where AID = @AKey", con);
cmd.Parameters.AddWithValue("@BN", ANameTb.Text);
cmd.Parameters.AddWithValue("@BA", AAmountTb.Text);
cmd.Parameters.AddWithValue("@AKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Advance Updated");
con.Close(); ShowAdvance();
Clear();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}

}
}
}
}

45
PayRoll Management System

*Attendance Page

*Coding
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using System.Data.SqlClient;

namespace Payroll_Management_System
{

public partial class Attendance : Form


{
SqlConnection con = new SqlConnection("Data Source=SURAJSAKPAL\\SQLEXPRESS;Initial
Catalog=PayrollManagment;Integrated Security = True");

public Attendance()
{
InitializeComponent();
ShowAttendance();
GetEmployees();
}
private void Clear()
{

46
PayRoll Management System

AtNameTb.Text = "";
AtAbsentTb.Text = "";
AtPresentTb.Text = "";
AtExcusedTb.Text = "";
Key = 0;
}
private void ShowAttendance()
{
con.Open();
String Query = "Select * from AttendanceTb1";
SqlDataAdapter sda = new SqlDataAdapter(Query, con);
SqlCommandBuilder Builder = new SqlCommandBuilder(sda);
var ds = new DataSet(); sda.Fill(ds);
AtDGV.DataSource = ds.Tables[0]; con.Close();
}
private void GetEmployees()
{
con.Open();
SqlCommand cmd = new SqlCommand("Select * from EmployeeTb1", con);
SqlDataReader Rdr;
Rdr = cmd.ExecuteReader(); DataTable
dt = new DataTable();
dt.Columns.Add("EmpId", typeof(int));
dt.Load(Rdr);
AtEmpIdTb.ValueMember = "EmpId";
AtEmpIdTb.DataSource = dt; con.Close();
}
private void GetEmployeeName()
{
con.Open();
String Query = " Select * from EmployeeTb1 where EmpId=" +
AtEmpIdTb.SelectedValue.ToString() + "";
SqlCommand Cmd = new SqlCommand(Query, con);
DataTable dt = new DataTable();
SqlDataAdapter sda = new SqlDataAdapter(Cmd); sda.Fill(dt);
foreach (DataRow dr in dt.Rows)
{
AtNameTb.Text = dr["EmpName"].ToString();
}
con.Close();
}
private void label17_Click(object sender, EventArgs e)
{
Dashboard obj = new Dashboard();
obj.Show();
}

private void label16_Click(object sender, EventArgs e)


{
Employees obj = new Employees();
obj.Show();
}

private void label14_Click(object sender, EventArgs e)


{
bonus obj = new bonus();
obj.Show();
}

private void label15_Click(object sender, EventArgs e)


{
Advancs obj = new Advancs();

47
PayRoll Management System

obj.Show();
}

private void label13_Click(object sender, EventArgs e)


{
Attendance obj = new Attendance();
obj.Show();
}

private void label12_Click(object sender, EventArgs e)


{
salary obj = new salary();
obj.Show();
}
private void gunaTextBox1_TextChanged(object sender, EventArgs e)
{

private void gunaButton1_Click(object sender, EventArgs e)


{
Application.Exit();
}

private void btnSave_Click(object sender, EventArgs e)


{
if (AtNameTb.Text == "" || AtPresentTb.Text == "" || AtEmpIdTb.SelectedIndex == -1 ||
AtAbsentTb.Text == "" ||AtExcusedTb.Text == "")
{
MessageBox.Show("Missing Information");

}
else
{
try
{

con.Open();
SqlCommand cmd = new SqlCommand("insert into AttendanceTb1(AtId, AtName,
AtPresent, AtAbsent, AtExcused,AtPeriod)values(@AtI, @AtN, @AtP, @AtA, @AtE, @AtPe)", con);
cmd.Parameters.AddWithValue("@AtN", AtNameTb.Text);
cmd.Parameters.AddWithValue("@AtI", AtEmpIdTb.Text);
cmd.Parameters.AddWithValue("@AtP", AtPresentTb.Text);
cmd.Parameters.AddWithValue("@AtA", AtAbsentTb.Text);
cmd.Parameters.AddWithValue("@AtE", AtExcusedTb.Text);
cmd.Parameters.AddWithValue("@AtPe", AtPeriodTb.Value.Date);
cmd.ExecuteNonQuery();
MessageBox.Show("Attendance Saved");
con.Close(); ShowAttendance();
Clear();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}
}
private void btnEdit_Click(object sender, EventArgs e)
{
if (AtNameTb.Text == "" || AtPresentTb.Text == "" || AtEmpIdTb.SelectedIndex == -1 ||
AtAbsentTb.Text == "" ||AtExcusedTb.Text == "")
{

48
PayRoll Management System

MessageBox.Show("Missing Information");
}
else
{
con.Open();
SqlCommand cmd = new SqlCommand("Update AttendanceTb1 Set AtId = @ATI,AtName =
@AtN, AtPresent = @AtP, AtAbsent = @AtA, AtExcused = @AtE,AtPeriod = @AtPe where AtNum = @AtKey",
con);
cmd.Parameters.AddWithValue("@AtN", AtNameTb.Text);
cmd.Parameters.AddWithValue("@AtI", AtEmpIdTb.Text);
cmd.Parameters.AddWithValue("@AtP", AtPresentTb.Text);
cmd.Parameters.AddWithValue("@AtA", AtAbsentTb.Text);
cmd.Parameters.AddWithValue("@AtE", AtExcusedTb.Text);
cmd.Parameters.AddWithValue("@AtPe", AtPeriodTb.Value.Date);
cmd.Parameters.AddWithValue("@AtKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Attendance Updated");
con.Close(); ShowAttendance();
Clear();
/* try
{

}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}*/
}
}

private void btnDelete_Click(object sender, EventArgs e)


{
if (Key == 0)
{
MessageBox.Show("Missing Information");
}
else
{
try
{
con.Open();
SqlCommand cmd = new SqlCommand("Delete from AttendanceTb1 Where AtNum =
@AtKey", con);
cmd.Parameters.AddWithValue("@AtKey", Key);
cmd.ExecuteNonQuery();
MessageBox.Show("Attendance Deleted");
con.Close(); ShowAttendance();
}
catch (Exception Ex)
{
MessageBox.Show(Ex.Message);
}
}

}
int Key = 0;
private void AtDGV_CellContentClick_1(object sender, DataGridViewCellEventArgs e)
{

AtEmpIdTb.SelectedItem = AtDGV.SelectedRows[0].Cells[1].Value.ToString();
AtNameTb.Text = AtDGV.SelectedRows[0].Cells[2].Value.ToString();

49
PayRoll Management System

AtPresentTb.Text = AtDGV.SelectedRows[0].Cells[3].Value.ToString();
AtAbsentTb.Text = AtDGV.SelectedRows[0].Cells[4].Value.ToString();
AtExcusedTb.Text = AtDGV.SelectedRows[0].Cells[5].Value.ToString();
AtPeriodTb.Text = AtDGV.SelectedRows[0].Cells[6].Value.ToString();
if (AtNameTb.Text == "")
{
Key = 0;
}
else
{
Key =
Convert.ToInt32(AtDGV.SelectedRows[0].Cells[0].Value.ToString());
}

private void AtEmpIdTb_SelectionChangeCommitted_1(object sender, EventArgs e)


{
GetEmployeeName();
}
}
}

50
PayRoll Management System

* Issue Salary Page

*Coding :
using System;

using System.Collections.Generic;

using System.ComponentModel;

using System.Data;

using System.Drawing;

using System.Linq;

using System.Text;

using System.Threading.Tasks;

using System.Windows.Forms;

using System.Data.SqlClient;

namespace Payroll_Management_System

51
PayRoll Management System

public partial class salary : Form

SqlConnection con = new SqlConnection("Data Source=SURAJSAKPAL\\SQLEXPRESS;Initial


Catalog=PayrollManagment;Integrated Security = True");

public salary()

InitializeComponent();
GetEmployees();

GetAttendance();

GetBonus();

ShowSalary();

private void Clear()

SName.Text = "";

salalry.Text = "";

SAbsence.Text = "";

SExcused.Text = "";

//Key = 0;

private void ShowSalary()

con.Open();

String Query = "Select * from SalaryTb";

SqlDataAdapter sda = new SqlDataAdapter(Query, con);

SqlCommandBuilder Builder = new SqlCommandBuilder(sda);


var ds = new DataSet(); sda.Fill(ds);

SDGV.DataSource = ds.Tables[0]; con.Close();

private void GetEmployees()

52
PayRoll Management System

con.Open();

SqlCommand cmd = new SqlCommand("Select * from EmployeeTb1", con);

SqlDataReader Rdr;

Rdr = cmd.ExecuteReader(); DataTable

dt = new DataTable();

dt.Columns.Add("EmpId", typeof(int));

dt.Load(Rdr);

SId.ValueMember = "EmpId";

SId.DataSource = dt; con.Close();

private void GetBonus()

con.Open();

SqlCommand cmd = new SqlCommand("Select * from Bonus", con);

SqlDataReader Rdr;

Rdr = cmd.ExecuteReader(); DataTable dt

= new DataTable();

dt.Columns.Add("Bname", typeof(String));

dt.Load(Rdr);

SBonus.ValueMember = "BName";

SBonus.DataSource = dt; con.Close();

private void GetAttendance()

con.Open();

SqlCommand cmd = new SqlCommand("Select * from AttendanceTb1 where AtId = " +


SId.SelectedValue.ToString() + "", con);

SqlDataReader Rdr;

53
PayRoll Management System

Rdr = cmd.ExecuteReader();

DataTable dt = new DataTable();

dt.Columns.Add("AtNum", typeof(int)); dt.Load(Rdr);

SAtte.ValueMember = "AtNum";

SAtte.DataSource = dt;

con.Close();

private void GetEmployeeName()

con.Open();

String Query = " Select * from EmployeeTb1 where EmpId =" + SId.SelectedValue.ToString() + "";

SqlCommand Cmd = new SqlCommand(Query, con);

DataTable dt = new DataTable();

SqlDataAdapter sda = new SqlDataAdapter(Cmd);

sda.Fill(dt);

foreach (DataRow dr in dt.Rows)

SName.Text = dr["EmpName"].ToString();

salalry.Text = dr["EmpBaseSalary"].ToString();

con.Close();

private void GetAttendanceDate()

con.Open();

String Query = " Select * from AttendanceTb1 where AtNum = " + SAtte.SelectedValue.ToString() + "";

SqlCommand Cmd = new SqlCommand(Query, con);

DataTable dt = new DataTable();

SqlDataAdapter sda = new SqlDataAdapter(Cmd);

sda.Fill(dt); foreach (DataRow dr in dt.Rows)

54
PayRoll Management System

SPresence.Text = dr["AtPresent"].ToString();

SAbsence.Text = dr["AtAbsent"].ToString();

SExcused.Text = dr["AtExcused"].ToString();

con.Close();

private void GetBAmount()

con.Open();

String Query = " Select * from Bonus where BName='" + SBonus.SelectedValue.ToString() + "'";

SqlCommand Cmd = new SqlCommand(Query, con);

DataTable dt = new DataTable();

SqlDataAdapter sda = new SqlDataAdapter(Cmd);

sda.Fill(dt);

foreach (DataRow dr in dt.Rows)

bonuss.Text = dr["BAmount"].ToString();

bonuss.Text = dr["BAmount"].ToString();

con.Close();

private void salary_Load(object sender, EventArgs e)

private void label17_Click(object sender, EventArgs e)

Dashboard Obj = new Dashboard();

Obj.Show();

55
PayRoll Management System

private void label16_Click(object sender, EventArgs e)

Employees Obj = new Employees();

Obj.Show();

private void label12_Click(object sender, EventArgs e)

private void gunaButton1_Click(object sender, EventArgs e)

Application.Exit();

private void label13_Click(object sender, EventArgs e)

Attendance obj = new Attendance();

obj.Show();

private void label15_Click(object sender, EventArgs e)

Advancs obj = new Advancs();

obj.Show();

private void label14_Click(object sender, EventArgs e)

bonus obj = new bonus();

obj.Show();

56
PayRoll Management System

int DailyBase = 0, Total = 0, Pres = 0, Abs = 0, Exc = 0;

double GrdTot = 0, TotTax = 0;

private void btnCompute_Click(object sender, EventArgs e)

if (salalry.Text == "" || bonuss.Text == "" || SAdvance.Text == "")

MessageBox.Show("Select the Employee");

else

Pres = Convert.ToInt32(SPresence.Text);

Abs = Convert.ToInt32(SAbsence.Text);

Exc = Convert.ToInt32(SExcused.Text);

DailyBase = Convert.ToInt32(salalry.Text) / 28;

Total = ((DailyBase) * Pres) + ((DailyBase / 2) * Exc);

double Tax = Total * 0.16;

TotTax = Total + Tax;

GrdTot = TotTax + Convert.ToInt32(bonuss.Text);

GrdTot = TotTax + Convert.ToInt32(SAdvance.Text);

SBalancy.Text = "Rs" + GrdTot;

private void btnSave_Click(object sender, EventArgs e)

if (SName.Text == "" || SPresence.Text == "" || SExcused.Text == "" || SAbsence.Text == "")

MessageBox.Show("Missing Information");

else

57
PayRoll Management System

string Period = SPeriod.Value.Month + "-" + SPeriod.Value.Year; con.Open();

SqlCommand cmd = new SqlCommand("insert into SalaryTb(EmpSId, EmpSName, EmpSBaseSalary,


EmpSBonus, EmpSAdvance, EmpSBonusAm,EmpSBalance,EmpsPeriod)values(@SId, @SN, @SBS, @SB, @SA,
@SBA, @SBal, @SPe)", con);

cmd.Parameters.AddWithValue("@SId", SId.SelectedValue.ToString());

cmd.Parameters.AddWithValue("@SN", SName.Text);

cmd.Parameters.AddWithValue("@SBS", salalry.Text);

cmd.Parameters.AddWithValue("@SB", SBonus.Text);

cmd.Parameters.AddWithValue("@SA", SAdvance.Text);

cmd.Parameters.AddWithValue("@SBA", bonuss.Text);

cmd.Parameters.AddWithValue("@SBal", GrdTot);

cmd.Parameters.AddWithValue("@SPe", Period);

cmd.ExecuteNonQuery();

MessageBox.Show("Salary Saved");

con.Close(); ShowSalary();

Clear();

try

catch (Exception Ex)

MessageBox.Show(Ex.Message);

private void SBonus_SelectionChangeCommitted_1(object sender, EventArgs e)

GetBAmount();

58
PayRoll Management System

private void SAtte_SelectionChangeCommitted_1(object sender, EventArgs e)

GetAttendanceDate();

private void btnEdit_Click(object sender, EventArgs e)

if (SName.Text == "" || SPresence.Text == "" || SExcused.Text == "" ||SAbsence.Text == "")

MessageBox.Show("Missing Information");

else

try

con.Open(); string Period = SPeriod.Value.Month+ "-" + SPeriod.Value.Year;

SqlCommand cmd = new SqlCommand("Update SalaryTb set EmpSId=@SId, EmpSName = @SN,


EmpSBaseSalary = @SBS, EmpSBonus = @SB, EmpSAdvance = @SA,EmpSBonusAm = @SBA, EmpSBalance = @SBal,
EmpsPeriod = @SPe where SalNum = @SalKey", con); cmd.Parameters.AddWithValue("@SId",

SId.SelectedValue.ToString()); cmd.Parameters.AddWithValue("@SN",

SName.Text); cmd.Parameters.AddWithValue("@SBS", salalry.Text);

cmd.Parameters.AddWithValue("@SB", SBonus.Text);
cmd.Parameters.AddWithValue("@SA", SAdvance.Text);

cmd.Parameters.AddWithValue("@SBA", bonuss.Text);

cmd.Parameters.AddWithValue("@SBal", GrdTot);

cmd.Parameters.AddWithValue("@SPe", Period);

cmd.Parameters.AddWithValue("@SalKey", key);

cmd.ExecuteNonQuery();

MessageBox.Show("Salary Updated");

59
PayRoll Management System

con.Close(); ShowSalary();

Clear();

catch (Exception Ex)

MessageBox.Show(Ex.Message);

private void btnPayRecipt_Click(object sender, EventArgs e)

Pay_recipt fm = new Pay_recipt();

fm.Show();

int key = 0;

private void SDGV_CellContentClick_1(object sender, DataGridViewCellEventArgs e)

SId.SelectedValue = SDGV.SelectedRows[0].Cells[1].Value.ToString();

SName.Text = SDGV.SelectedRows[0].Cells[2].Value.ToString();

salalry.Text = SDGV.SelectedRows[0].Cells[3].Value.ToString();

SBonus.Text = SDGV.SelectedRows[0].Cells[4].Value.ToString();

SAdvance.Text = SDGV.SelectedRows[0].Cells[5].Value.ToString();

SBonus.Text = SDGV.SelectedRows[0].Cells[6].Value.ToString();

SBalancy.Text = SDGV.SelectedRows[0].Cells[7].Value.ToString();

if (SName.Text == "")

key = 0;

60
PayRoll Management System

else

key = Convert.ToInt32(SDGV.SelectedRows[0].Cells[0].Value.ToString());

private void btnDelete_Click(object sender, EventArgs e)

if (key == 0)

MessageBox.Show("Missing Information");

else

try

con.Open();

SqlCommand cmd = new SqlCommand("Delete from SalaryTb Where SalNum = @EmpKey", con);
cmd.Parameters.AddWithValue("@EmpKey", key);

cmd.ExecuteNonQuery();

MessageBox.Show("Salary Deleted");

con.Close(); ShowSalary();

catch (Exception Ex)

MessageBox.Show(Ex.Message);

61
PayRoll Management System

private void SId_SelectionChangeCommitted_1(object sender, EventArgs e)

GetEmployeeName();

GetAttendance();

private void gunaButton1_Click_1(object sender, EventArgs e)

Application.Exit();

62
PayRoll Management System

Chapter no.17

CONCLUSION AND FUTURE WORK


17.1 Limitations and Future Enhancements:

Accurate and correct payroll is very important to your employees and important
to you as a business owner. Payroll is more than just sending out paychecks every two
weeks. You need to comply with and make sure you pay all of the federal, state and local
taxes that are tied to having employees. A payroll service will handle the details and keep
you out of trouble with the taxman: however, such a service does have some drawbacks.

17.1.1 Advantages:

17.1.1.1 Control vs. Outsourcing:

The decision to use a payroll service could be a personal choice dictated by how
much control you want to have over the different aspects of you company. If you keep
payroll in house, it is easy to make changes and answer questions concerning the pay
information of your employees. The decision to use a payroll service means giving up
some control of that portion of your business. However, payroll is primarily a repetitive
operation, so letting someone else handle the details can free up time for more productive
tasks.

17.1.1.2 Costs:

A payroll services adds another cost to your budget. If you are a small business
with few employees on a tight budget, paying for the service may not fit into the budget.
The cost of a payroll service for a small business will be proportionately larger than for a
bigger business. You need to compare the cost of the service to the time required to
complete the payroll in house and what that time would be worth doing other work.

17.1.1.3 Access to Data

63
PayRoll Management System

Using a payroll service means your employee pay data will be on some other company's
computer system. This may be an issue if you need to make a change or if an employee
has a problem with her paycheck. How much the fact that pay information is not kept in
your business depends on how much access the service provides. You may want to compare
services with this need in mind as wells comparing costs.

17.1.1.4 Compliance

Possibly the biggest benefit of using a payroll service is that the service will keep
your business compliant with payroll tax laws and changes. While you are an expert at
your business, unless your business is a CPA firm, you probably dont have the time to
become a payroll tax expert. The payroll service can determine what taxes need to be
withheld from employees, what you need to pay and send in the money to the correct
agencies.

17.1.2 Disadvantages:

17.1.2.1 Manual:

The manual payroll system requires payroll processing to be done completely by


hand. Therefore, time card, wages and payroll tax computations; wage garnishments; and
voluntary deductions are done manually. Furthermore, paychecks and pay stubs are
handwritten or printed on a typewriter. The main disadvantage with this system is its high
room for error The more manual computations the payroll representative has to make, the
more errors she amp; risqué prone to make. Furthermore, tamp; risqué; time-consuming
because to ensure the payroll is accurate, she has to triple-check the data before printing
checks. Even then, tamp; risqué possible to miss errors. Paper filing is required with this
system, which can create clutter. Furthermore, if the payroll representative does not
understand how to calculate payroll taxes manually,

erroneous tax withholding, reporting and payment occur. This can result in penalties from
federal and state tax agencies

64
PayRoll Management System

17.1.2.2 Outsourced/External:

The employer uses the outsourced or external payroll system when it hires a
payroll service provider. The latter has a payroll staff that, for a flat fee, processes its
client's amp risqué; payroll. Services vary by provider, but most payroll service providers
perform paycheck and direct deposit processing. Many also offer payroll tax and benefits
administration. Because the employer is entrusting its payroll tasks to an off-site
company, it can suffer from not having immediate help when needed. If the payroll service
provider has many clients, the employer may have to wait in line to get any problems
resolved. Depending on the urgency of the situation, this can be frustrating to the
employer. Furthermore, according to the Internal Revenue Service, if the payroll service
provider makes a tax error, the employer alone incurs the penalty. With the payroll being
processed off-site, if there amp; rsquos a problem with it, the employer may not know
about it until payday.

17.1.3 Scope:

The System is designed for the enhancement or development of Computerized


Payroll System for Q Works Construction. It includes the features that can Add Employees
record, Edit Employees information, Delete Employees record, print/Save the Pay Slip of
each employee and Updating Employees information as well as the Weekly Salary. Cash
advance, the rate per day, overtime, Gross payment, Net pay, and Deduction such as
withholding tax and SSS, adding up with a log-in log-out process for security purpose.
Moreover, with help file can be used by the users to know how to use the payroll software

17.1.4 Limitations:

On the other hand, this study limits only to the proposed enhancement Computerized
Payroll System of the Q Works. A proposed system which can only be access by
authorized person. It does not support network topology implementation, online program
or online transaction.

65
PayRoll Management System

REFERENCE

BOOKS

Software Project Management

WEBSITES

https://www.google.com

https://www.wikipedia.org

www.employeesalarysoftware.com

www.payrollsoftware.co.in/

https://www.c-sharpcorner.com

66

You might also like