Académique Documents
Professionnel Documents
Culture Documents
PREFACE
1
Payroll Management System
CONTENTS
CHAPTERS
CHAPTER 1-INTRODUCTION
1.1 Introduction about Company………………………………………
1.2 Introduction about Project………………………………………
1.3 Present state of the art…………………………………………….
1.4 Need of Computerization of System……………………………..
1.5 Proposed Software…………………………………………………
CHAPTER 4-TESTING
2
Payroll Management System
CHAPTER 1
INTRODUCTION
1.1 Introduction about Company
1.2 Introduction about Project
1.3 Present state of the art
1.4 Need of Computerization of System
1.5 Proposed Software (What would s/w accomplish?)
3
Payroll Management System
1.0 INTRODUCTION
Sowmiya Hospital has become one of the finest medical centres in the country and has
emerged as a completely self-contained healthcare institute, having some of the most
sophisticated equipment available in the world. It has earned national recognition as a
Leader in providing World Class Healthcare Services to the common man at affordable
costs.
Sowmiya Hospital is a recognized Designated Blood Bank for nearly 200 hospitals
located in Coimbatore and the adjoining areas.
The Hospital is also a beneficiary of the Prime Minister's Relief Fund and Tamil Nadu
Chief Minister's Relief Fund for providing medical care to the poorer sections of the society.
Sowmiya Hospital is recognized under the Tamil Nadu Chief Minister's Comprehensive
Health Insurance Scheme for treating people below the poverty line.
The Hospital has received quality accreditation from the NABH (National Accreditation
Board for Hospitals and Healthcare Providers) of Quality Council of India, New Delhi. .
4
Payroll Management System
5
Payroll Management System
Transaction:
Log Form.
Leave Entry.
Salary Calculation.
Users:
Create Users.
Reports:
Department Reports.
Designation Reports.
Scheme Reports
Employee Reports
Payroll Reports
6
Payroll Management System
Presently salary calculation is done manually, it take so much of time to compose salary of all employees. It
also takes very long time to make salary slip ready. Due to manual process some time it takes very long time,
in turn it delays the salary distribution. This is a big problem to manage when salary is not generated in time.
The other main problem is errors, even with double cross check here or there some errors will happen, this
again create large problem. To solve all this the organization require very good software to take care of all
these.
The client uses MS Excel and maintains their records however it is not possible for them to share the data
from multiple system in multi user environment, there is lot of duplicate work, and chance of mistake. When
the records are changed they need to update each and every excel file. There is no option to find and print
previous saved records. There is no security anybody can access any report and sensitive data also reports of
summary. This Payroll Management System is used to overcome the entire problem which they are facing
currently, and making complete atomization of manual system to computerized system.
The proposed software will solve all the problems they are facing now. This software is designed such way
that it will generate the salary automatically every month in time. So there not much worries. This software
also equipped with the facility of checking the employees to whom no salary has been sanctioned. The
software built to generate individual pay slip and summary of the payroll.
7
Payroll Management System
CHAPTER 2
SYSTEM ANALYSIS
SYSTEM ANALYSIS
Feasibility study :
Every project is feasible for given unlimited resources and infinitive time. Feasibility study is anevaluation
of the proposed system regarding its workability, impact on the organization, ability to meet the user needs
and effective use of resources. Thus when a new application is proposed it normally goes through a
feasibility study before it is approved for development .Feasibility and risk analysis and related in many
ways. If a project risk is great and feasibility of producing software is reduced. During the feasibility
analysis in this project has been discussed below in the abovementioned topics.
8
Payroll Management System
•
Operational Feasibility:
Feasibility of the working of the system after the installation inthe organization as mentioned in the
feasibility analysis.
•
Technical Feasibility:
Technical feasibility is frequently the most difficult area to ensure this stage. It is essential that the process of
analysis and definition to be conducted parallel toan assessment of the technical feasibility. The
consideration that is normally associated with technical feasibility includes the resources availability of the
Organization where the project is to be developed and implemented. By taking these facts into consideration
before developing the resource availability at Retail Outlet of Hindustan Petroleum was observed. As very
limited resources are required for this project hence this project is considered feasible for development.
•
Economic Feasibility:
An evaluation of development cost is weighted against the ultimate income or benefits derived from the
developed system. There was no need of extra hardware and software for development of this project. Hence
this project has economically justified for development in this organization.
•
Motivational Feasibility:
An evaluation of the probability that the organization is sufficient motivation to support the development and
implementation of the application with necessary user participation, resources, training etc. The interest and
support shown by the organization during the system study do not seem that the new system developed to
have efficient support from the organization.
•
Schedule Feasibility:
9
Payroll Management System
An evaluation of the time needed for the development of this project. The time schedule required for the
development of this project is very important, since more development time effects machine time, costs and
delays in the development of the other systems. So the project should be complete within affixed schedule
time as far as the organization is concerned.
Project Schedule:
The major output of the production process is the project schedule. This is a graphic representation of the
entire project related activities necessary to produce successful project. They allow the project manager to
efficiently coordinate and facilitate the efforts of the entire project team for the live project. This project
schedule dynamic in nature that will undoubtedly be modified as the project proceeds .Without the master
schedule the effective project control would be virtually impossible. If the schedule does not exist it is
impossible to accurately estimate the project status. Projects that are not complete within the time frame
established by the master schedule almost invariably exceed planned costs. The most complaint is that
production takes too much time and costs too much money .For schedule to be effective, it must process
several major characteristics:-
•
Understandable by those who will use it.
•
Sufficient detail to be provide on the basis of measurement and control of project progress.
•
Capable of highlighting critical tasks.
•
Flexible and easily modifiable.
•
Confirm to available resources.
10
Payroll Management System
Descriptive
Exploratory
Inferential
Predictive
Causal
Mechanistic
1. Descriptive (least amount of effort): The discipline of quantitatively describing the main
features of a collection of data. In essence, it describes a set of data.
- Typically the first kind of data analysis performed on a data set
- Commonly applied to large volumes of data, such as census data
-The description and interpretation processes are different steps
- Univariate and Bivariate are two types of statistical descriptive analyses.
- Type of data set applied to: Census Data Set – a whole population
11
Payroll Management System
3. Inferential: Aims to test theories about the nature of the world in general (or some part of it) based on
samples of “subjects” taken from the world (or some part of it). That is, use a relatively small sample of data
to say something about a bigger population.
- Inference is commonly the goal of statistical models
- Inference involves estimating both the quantity you care about and your uncertainty about your estimate
- Inference depends heavily on both the population and the sampling scheme
- Type of data set applied to: Observational, Cross Sectional Time Study, and Retrospective Data Set – the
right, randomly sampled population
4. Predictive: The various types of methods that analyze current and historical facts to make predictions
about future events. In essence, to use the data on some objects to predict values for another object.
- The models predicts, but it does not mean that the independent variables cause
- Accurate prediction depends heavily on measuring the right variables
- Although there are better and worse prediction models, more data and a simple model works really well
- Prediction is very hard, especially about the future references
- Type of data set applied to: Prediction Study Data Set – a training and test data set from the same
population
5. Causal: To find out what happens to one variable when you change another.
- Implementation usually requires randomized studies
- There are approaches to inferring causation in non-randomized studies
- Causal models are said to be the “gold standard” for data analysis
- Type of data set applied to: Randomized Trial Data Set – data from a randomized study
6. Mechanistic (most amount of effort): Understand the exact changes in variables that lead to changes in
other variables for individual objects.
- Incredibly hard to infer, except in simple situations
- Usually modeled by a deterministic set of equations (physical/engineering science)
- Generally the random component of the data is measurement error
- If the equations are known but the parameters are not, they may be inferred with data analysis
- Type of data set applied to: Randomized Trial Data Set – data about all components of the system
12
Payroll Management System
FRONT END:
The programming has been done using the language Java. It is Sun Microsystems’s strategic language for
platform independent programming. It is easy to use, efficient and flexible. This language is preferred
because one can build a program using this object oriented and platform independent programming with less
effort than with any other programming language. It’s a natural language for building database applications,
owing to the level and sophistication of the tools included with the language.
BACK END:
Microsoft SQL Server is one of the leading database management systems available on the market today. It
is easy to use and administer, and it comes with tools and wizards that make it easy to develop applications.
The database itself has been redesigned to automatically perform many tuning functions, leaving you free to
focus on most important tasks.
PLATFORM USED:
FRONT-END TOOLS
Visual Basic.NET
Visual basic.NET is the latest incarnation of the world’s most popular computer programming language, and
it brings a lot of new features to the table. This new things called “dot.net” is a revolutionary change from
Visual Studio 6.0 (which included Visual Basic 6.0). Visual Basic .NET is not “Visual Studio 7.0” as you
13
Payroll Management System
might think. On the contrary, it is a new product developed from scratch, not tied to the previous version
(and not entirely compatible either). In a sense, you might think of this as a whole new product line starting
at version 1.0—but that’s only partially true. The people who created Visual Basic .NET took all of the
favorite features of Visual Basic 6.0 and the features of a dozen other popular language, and crammed all of
this new goodness into a single new development tool. The result is a stellar programming language, and it
has no equivalent in the computer world.
Simplified Deployment
Improved Coding
Mobile Applications
COM Interoperability
Upgrade Wizard
1. First of all, VB.NET provides managed code execution that runs under the Common Language
Runtime (CLR), resulting in robust, stable and secure applications. All features of the .NET
framework are readily available in VB.NET.
2. VB.NET is totally object oriented.
14
Payroll Management System
3. The .NET framework comes with ADO.NET, which follows the disconnected paradigm, i.e. once the
required records are fetched the connection no longer exists. It also retrieves the records that are
expected to be accessed in the immediate future. This enhances Scalability of the application to a
great extent.
4. VB.NET uses XML to transfer data between the various layers in the DNA Architecture i.e. data are
passed as simple text strings.
5. Error handling has changed in VB.NET. A new Try-Catch-Finally block has been introduced to
handle errors and exceptions as a unit, allowing appropriate action to be taken at the place the error
occurred thus discouraging the use of ON ERROR GOTO statement. This again credits to the
maintainability of the code.
6. Another great feature added to VB.NET is free threading against the VB single-threaded apartment
feature. In many situations developers need spawning of a new thread to run as a background process
and increase the usability of the application. VB.NET allows developers to spawn threads wherever
they feel like, hence giving freedom and better control on the application.
7. Security has become more robust in VB.NET. In addition to the role-based security in VB6, VB.NET
comes with a new security model, Code Access security. This security controls on what the code can
access. For example you can set the security to a component such that the component cannot access
the database. This type of security is important because it allows building components that can be
trusted to various degrees.
8. The CLR takes care of garbage collection i.e. the CLR releases resources as soon as an object is no
more in use. This relieves the developer from thinking of ways to manage memory. CLR does this for
them.
Due to large number of facilities provided by the Visual Basic .NET, it has been used as a front-end tool
in “Payroll Management System”.
A database is a collection of information stored somewhere for easy organization and exploration. Databases
are used in various situations such as keeping a record of registering employees job attendance, counting the
number of Employee in a Company and keeping a record of their grades. This means that we have been
using databases all our life. We are going to learn how to use the computer to create and exploit databases.
We will use Microsoft Sql. Learning how to use Microsoft Sql and some programming is just a matter of
15
Payroll Management System
applying your already tremendous knowledge on information storage and retrieval. Microsoft Sql is a
software product used for desktop database applications. You can use it for personal stuff, for home, or for
your business/company.
2.3.2 DATA BASE:
In the Circular system data should be stored in the database, when circular event are
entered in the list by one user to another user, all the events are stored in database in their
particular fields.
When user view their events in the circular screen, the stored data in the database
are retrieve back to the particular user who as the privileges to view the events.
Storing and Retrieving are the two main features of the project and Hence I choose
SQL Server 2005 which is faster in storing the data and user friendly to easy understand.
Database can contain a maximum of 2^31 object, and can span multiple OS-level files with
a maximum file size of 2^20 TB.
The circular system as unit of data storage, which is a collection of tables with typed
columns. SQL server supports different data types, including primary keys such as Integer,
Float, Decimal, Char (including character strings),Text(for textual data) among others. It also
allow user-defined composite types (UDTS) to be defined and used.
The circular event page type –data storage in the database; index, allocation map
which holds information about how pages are allocated to tables and indexes, change map
which holds information about changes made to other pages since last backup or logging, or
contain large data.
16
Payroll Management System
CHAPTER 3
SYSTEM DESIGN
SYSTEM DESIGN
18
Payroll Management System
A software require specification document tells us what a system does and becomes input to the design
process. The purpose of design phase is to produce a solution to problem given SRS document.
The SRS is a specification for a particular software product, program or a set of program that perform certain
functions in specified environment. The two scenarios entirely different purpose for the document. First case
SRS is used to define the needs and expectations of the user. The second case, SRS is written for different
purpose and serve as a centre document between customers and develop.
Nature of SRS: -
The basic issues that SRS writer shall address the following.
1.Functionality: - What the software supposed to do?
2. External Interface: - How does the software interact with people, the system hardware
and other software?
3. Attributes: -What re the considerations for portability, correctness, security, reliability etc.?
It provides feedback to the customer. An SRS is the customer's assurance that the development
It serves as a product organization understands the issue or problems to be solved and the software
behavior necessary to address those problems.
It decomposes the problem into component parts. The simple act of writing down software requirements
in a well-designed format organizes information, place borders around the problem, solidifies ideas and help
break down the problem into its component parts into an orderlyfashion.
It serves as an input to the design specification. As mentioned previously, the SRS serves as the parent
document to subsequent software design specification and statement of work. Therefore the SRS must contain
sufficient detail in the functional system requirement so that a design solution can be devised.
Validation check. The SRS also serves as a parent document for testing and validation strategies that will
be applied for the requirements for verification.
SRS are typically developed during the first stage of "Requirements Development" which is the initial
product development phase in which information is gathered about what requirements are needed or not.
This information gathering stage can include onsite visit, questionnaires, surveys, interviews and perhaps a
return-on-investment (ROI) analysis of the customer or client's current business environment. The actual
specifications, then is written after the requirements have been gathered and analyz
SRS INCLUDE:
Several standard organizations (including the IEEE) have identified nine topics that must be addressed
when designing and writing an SRS:
1) Interfaces
2) Functional capabilities
3) Performance Levels
4) Data Structure Elements
5) Safety
6) Reliability
7) Security/Privacy
8) Quality
9) Constraints
20
Payroll Management System
TABLES:
Mainly, in this project we have four tables that are employee table, department table, salary table and grade
table. After filling all the enteries the detail of all the employees are ready.
STATUS: Working
Design Process
The computer system design process is an exercise of specifying how, the system will work. It is an iterative
process, which is based on what the system will be do as shown in the feasibility report.Mainly, following
five parts have been included in the system design process
Output Design
The starting point of the design process is the proper knowledge of system requirements which will normally
be converted in terms of output.
Input Design
Once the output requirements have been finalized, the next step is to find out what data need to be made
available to the system to produce the desired outputs. The basic documents in which these data are available
21
Payroll Management System
need to be identified. If necessary, these documents may have to be revised or new documents may have to
be introduced.
File Design
Once the input data is captured in the system, these may to be preserved either for a short or long period.
These data will generally be stored in files in a logical manner. The designer will have to devise the
techniques of storing and retrieving data from these files.
Procedure Design
This step involves specifications of how processing will be performed. In this, there are two aspects:
Computer Procedure
The computer procedure will specify what functions will be carried out on computer, what will be
different programs and in what sequence the programs will be run.
Non-computer procedure
The non-computer procedure will specify the manual procedures for feeding input data, receiving outputs
etc.
Control Design
The control design indicates necessary procedures which will ensure correctness of processing, accuracy of
data, timely output etc. this will ensure that the system is functioning as per plan.
Major responsibilities include system Requirement Study, Preparing System Design Document, Preparing
the Program (Form) Specs, Peer Review of the Specs, Implement Quality procedures as per the QMS
Document, Documentation of SRS Revalidation & Design Documents, thorough grasping of the user
functionality and applying, approving the same in the project, Developing, Testing & Debugging of Forms,
User Training and Implementation of the module.
22
Payroll Management System
INPUT DESIGN(Introduction)
Once the analysis and design of the system has been done, it would be necessary to identify the data that are
required to be processed to produce the outputs. Input is one of the most expensive phases of the operation
of a computerized system and creates sometimes a major problem. Different type of problem with a system
can usually be traced back to faulty input design method needless to say, therefore, that the input data are the
lifeblood of a system and have to be analyzed and designed with utmost care and consideration. Input design
features can ensure the reliability of the system and generate correct reports form the accurate data. The
input design also determines whether the user can interact efficiently with the system.
Inaccurate input data are the most common cause of errors in data processing. Errors entered by data entry
operators can be controlled by input design. Input data are collected and organized into groups of similar
data. Once identified, appropriate input media are selected for processing.
Input Data
The goal of designing input data is to make data entry as easy, logical and error free from errors as possible.
In entering data, operators need to know the following:
Source data are captured initially on original paper or a source document. For example, a cheque written
against an account is a source document. When it reaches the bank, it is encoded with special magnetic ink
character recognition so that a reader that is part of the information system of the bank can process it.
Therefore, source documents initiate a processing cycle as soon as they are entered into the system. Source
documents may be entered into the system from punch cards, from diskettes, or even directly through the
keyboard.
A source document should be logical and easy to understand. Each area in the form should be clearly
identified and should specify for the user what to write and where to write it.A source document may or may
23
Payroll Management System
not be retained in the proposed system. Thus, each source document may be evaluated in terms of Its
continued use in the proposed system .The extent of modification for the proposed system & Replacement
by an alternative source document.
The design of input play very significant role in getting the correct output. It covers al phases of input from
creation of initial data (original recording) to actual entering the data to the system for processing. The input
design is the link that ties the information system into the world of its users. Some features of design may
vary depending on whether the system is batch-oriented or on-line. Here, we will discuss the various
objectives of input design. They focus on:
An effective design controls the quantity of data for input for the following reasons:Firstly, data preparation
and data entry operations depend on people. Since labor costs are high, the cost or preparing and entering
data is also high. It is quite evident, then that reducing data requirements mean lowering cost through
reduced labor expense.Secondly, the input phase of computing can be slow process and take many times
longer than that needed by computers to carry out their tasks. In fact, the computer itself may sit idle until
data is prepared and input for processing. By reducing input requirements, the analyst will speed the entire
process from data capture to processing to provide result to users.
Avoiding Delay
When processing is delayed owing to data preparation or data entry, the cause is called a bottleneck. Avoid
bottlenecks when designing input should always be one of the objectives of the analyst.
24
Payroll Management System
The third objective deals with errors. In one sense, the rate at which errors occur is dependent on the quantity
of data. Since the lower the amount of data is inputted, there are fewer opportunities for the error to occur.
Firstly, the analyst can reduce this number by reducing the volume of data dust must be entered for each
transaction.Secondly, the analyst can also affect error rates of an operation through design. The manner in
which data must be entered can reduce the chance of errors.Still, a third aspect of error control is the need to
detect errors when they do occur. Checks and balances in the data entry programs, called input validation
techniques, also detect errors input.
Presenting the data processed by a computer-based information system in an attractive and usable form has
become very essential these days’ success and acceptance of a system to some extent depends on good
presentation. Therefore, system analyst must know fully how to design output report in an attractive way.
Many new output devices are being introduced in the market because of recent development in computer
technology. System analyst must be aware of these new technologies and try to use these new output devices
if possible. Currently, excellent graphic displays are widely available. Speech output systems are also fast
emerging.
There are three main reasons why outputs from the computer are required. They are:
Types of Output:
Outputs of a system can take different forms. The most common are reports, displays on screen, printed
forms etc. the outputs also vary in terms of their contents, type of stationery. Frequency and timing etc.
besides, due consideration also need to be given as to who will use the output and for what purpose. All
these points must be kept in mind while designing outputs so that the objectives of the system are met in the
best possible way.
Application Output
25
Payroll Management System
Operating Output
Application Output
These are the outputs desired out of the system to meet its objectives. These are of three types:
Output as a basis for decision-making. This type of output is generally required by management
for decision-making purposes.
Output as a requirement to meet a functional objective. Invoices, Excise Gate Pass, Purchase
Orders are the examples of such output.
Statutory outputs: All organization is required to produce a certain amount of reports and forms as
required by law.
Operating Output
These outputs are mainly generated for use of EDP staff and give various indications as to how the system
operates. System logs, error messages, status indicators etc. are the examples of such output. These types of
output are not concerned for the users.
Database Design
26
Payroll Management System
Database
We have various tables in our project namely:
User Table
Nation Table
State Table
City Table
Scheme Table
Department table
Designation Table
Employee Table
Holidays Table
Attendance Table
Leave Table
Salary Table
27
Payroll Management System
All the above tables are now briefly explained in which the Primary key and the Data Type of all fields are
discussed.
Table Name: Mas_User
For Users Details
Column Name Data Type Description
uid bigint Auto identity
29
Payroll Management System
30
Payroll Management System
32
Payroll Management System
33
Payroll Management System
Views:
View Name:view_attandance
Calculate the Employee Attendance
create view [dbo].[view_attandance] as
select emp_code,emp_name,department,designation,count(aid) as Presents,
leave=(select count(lid) from Leave_tbl where emp_code=attn.emp_code and
Ltype='Leave'),
Absent=(select count(lid) from Leave_tbl where emp_code=attn.emp_code and
Ltype='Absent'),
CL=(select count(lid) from Leave_tbl where emp_code=attn.emp_code and Ltype='CL')
from Attendance attn where status=1
group by emp_code,emp_name,department,designation
34
Payroll Management System
FORMS
Main Form Name: PayRoll Management System
35
Payroll Management System
This is the main menu of our project. This is the front page or the first page which appears when we start our
project
It has 5 modules namely:
Master:
Nation Master.
State Master
City Master
Schema Master
Department Master
Designation Master
Employee Master
Holidays Master
Transaction:
Log Form.
Leave Entry.
Salary Calculation.
36
Payroll Management System
Users:
Create Users.
Reports:
Department Reports.
Designation Reports.
Scheme Reports
Employee Reports
Payroll Reports
37
Payroll Management System
38
Payroll Management System
39
Payroll Management System
40
Payroll Management System
41
Payroll Management System
42
Payroll Management System
43
Payroll Management System
44
Payroll Management System
Reports
Department Report
45
Payroll Management System
Designation Report
Scheme Report
46
Payroll Management System
47
Payroll Management System
48
Payroll Management System
49
Payroll Management System
Attendance Report
50
Payroll Management System
DFD SYMBOLS:
51
Payroll Management System
52
Payroll Management System
0 LEVEL DFD
Employee
Department
Salary Scheme
Report
Employee
Modify
New
View Employee
All
Id
Employee
53
Payroll Management System
54
Payroll Management System
E-R Diagram
55
Payroll Management System
Database Design
56
Payroll Management System
SCREENSHOTS
57
Payroll Management System
EXECUTION PHASE:
In this phase we will enter the details of an employee and we will save the record in the database.in this we
will do the things stepwise and these are as follows:
Login Screen
FORMS
Main Form Name: PayRoll Management System
58
Payroll Management System
59
Payroll Management System
60
Payroll Management System
61
Payroll Management System
62
Payroll Management System
63
Payroll Management System
Salary Slip
65
Payroll Management System
66
Payroll Management System
Reports
Department Report
Designation Report
67
Payroll Management System
Scheme Report
Employee Reports
68
Payroll Management System
Attendance Report
70
Payroll Management System
Sample Code
Log in Page
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
''End If
End
End Sub
71
Payroll Management System
End Try
End Sub
Sub FillAccountingYear()
''appset.fillcbo(cboAccountingYear, "select AccountingYearId, AccountingYear
from AccountingYear Order By AccountingYearId Desc", "AccountingYear",
"AccountingYear", "AccountingYearId", False)
End Sub
Sub CNm()
Try
''openconnection()
Dim a As String
a = ""
''cmd = New sqlcommand("Select CName from Tbl_Company ", Cn)
''a = cmd.ExecuteScalar
CmbCompany.Text = "KG TRIGGER " '' a
TxtLogin.Focus()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Sub clear()
TxtLogin.Text = ""
TxtLoginPassword.Text = ""
End Sub
Try
72
Payroll Management System
End If
''General.FrmLogIn = Me
''General.AccountingYearId = Val(cboAccountingYear.SelectedValue)
''General.AccountingYear = cboAccountingYear.Text
''getmessage()
''A_Main.Show()
''Me.Hide()
''connection()
73
Payroll Management System
End If
End If
Timer1.Enabled = True
Else
MsgBox("Sorry UserName\Password Incorrect!", MsgBoxStyle.Critical +
MsgBoxStyle.OkOnly, "Beros")
clear()
TxtLogin.Focus()
Exit Sub
End If
'' dr11.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Sub
End Sub
End Sub
74
Payroll Management System
'Dim ret
' ret = Shell("E:\Bero Source\Beros\bin\Debug\Beros.exe",
AppWinStyle.NormalFocus, False)
End If
Catch ex As Exception
End Try
End Sub
End Sub
End Sub
Main Form
Imports System.Windows.Forms
75
Payroll Management System
ChildForm.MdiParent = Me
m_ChildFormNumber += 1
ChildForm.Text = "Window " & m_ChildFormNumber
ChildForm.Show()
End Sub
76
Payroll Management System
End Sub
77
Payroll Management System
Designation_Master.Show()
Designation_Master.Focus()
End Sub
78
Payroll Management System
End Sub
printname = "DEPARTMENT"
Reports_Frm.Show()
End Sub
Employee Master
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports System.IO
''Imports CrystalDecisions.CrystalReports.Engine
''Imports CrystalDecisions.Shared
Public Class employee_master
Dim str, str1, str2 As String
Dim a1 As String
79
Payroll Management System
DTP_DOB.Value = Today
DTP_DOJ.Value = Today
End Sub
Try
str = ""
If OptMale.Checked = True Then
gender = "Male"
ElseIf OptFemale.Checked = True Then
gender = "FeMale"
If a1 = "" Then
str = ""
80
Payroll Management System
str = " Begin Tran " & str & " If @@error<>0 Rollback tran else commit
tran "
cmd = New SqlCommand(str, Cn)
cmd.ExecuteNonQuery()
SavImg()
MsgBox("Items Saved Successfully", MsgBoxStyle.Information, " ")
clr()
view()
Else
str = ""
str = str & " delete from Mas_Employee where empcode='" &
txt_empcode.Text & "' "
str = str & " insert into
Mas_Employee(EmpCode,Code,EmpName,Sex,DOB,Age,Add1,Add2,Add3,CityCode,Mobile,Phone,Emai
lId,OutLet,DeptCode,DesignCode,Activate,pincode,DOJ,Emp_Scheme) values('" &
txt_empcode.Text & "'," & Val(code) & ",'" & Trim(txt_employee.Text) & "','" & gender &
"','" & Format(DTP_DOB.Value, "MM/dd/yyyy") & "'," & Val(txt_Age.Text) & ",'" &
Trim(txt_Add1.Text) & "','" & Trim(txt_Add2.Text) & "','" & Trim(txt_Add3.Text) & "',"
& Val(txt_city.Tag) & ",'" & Trim(txt_mobile.Text) & "','" & Trim(txt_phone.Text) &
"','" & Trim(txt_email.Text) & "','" & Val(txt_outlet.Tag) & "','" & Trim(txt_dept.Tag)
& "','" & Val(txt_design.Tag) & "'," & Val(Chk_Activate.CheckState) & ",'" &
Trim(txt_pin.Text) & "','" & Format(DTP_DOJ.Value, "MM/dd/yyyy") & "','" &
Trim(txt_scheme.Tag) & "')"
str = str & " insert into
Mas_EmployeeHistory(EmpCode,Code,EmpName,Sex,DOB,Age,Add1,Add2,Add3,CityCode,Mobile,Pho
ne,EmailId,OutLet,DeptCode,DesignCode,Activate,pincode,DOJ,Emp_Scheme) values('" &
txt_empcode.Text & "'," & Val(code) & ",'" & Trim(txt_employee.Text) & "','" & gender &
"','" & Format(DTP_DOB.Value, "MM/dd/yyyy") & "'," & Val(txt_Age.Text) & ",'" &
Trim(txt_Add1.Text) & "','" & Trim(txt_Add2.Text) & "','" & Trim(txt_Add3.Text) & "',"
& Val(txt_city.Tag) & ",'" & Trim(txt_mobile.Text) & "','" & Trim(txt_phone.Text) &
"','" & Trim(txt_email.Text) & "','" & Val(txt_outlet.Tag) & "','" & Trim(txt_dept.Tag)
& "','" & Val(txt_design.Tag) & "'," & Val(Chk_Activate.CheckState) & ",'" &
81
Payroll Management System
str = " Begin Tran " & str & " If @@error<>0 Rollback tran else
commit tran "
cmd = New SqlCommand(str, Cn)
cmd.ExecuteNonQuery()
SavImg()
MsgBox("Item Updated Successfully", MsgBoxStyle.Information, " ")
clr()
view()
End If
End If
Catch ex As Exception
End Try
End Sub
Private Sub SavImg()
'Dim myfilelocation As String = "C:\myPictures\myimage.jpg"
End If
82
Payroll Management System
Try
cmd1.ExecuteNonQuery()
cmd2.ExecuteNonQuery()
Catch ex As Exception
MessageBox.Show(ex.Message)
Finally
End Try
End Sub
Private Sub imgupdate()
Exit Sub
Else
End If
83
Payroll Management System
End If
cmd2.Parameters.Add(param2)
cmd2.Parameters.AddWithValue("@EmpCode", txt_empcode.Text)
cmd2.Parameters.AddWithValue("@ipath", txtBrowse.Text)
cmd2.ExecuteNonQuery()
End Sub
Private Sub VwImg()
Try
picCapture.Visible = True
Dim cmd As New SqlCommand("select photo from Mas_Employee where EmpCode='"
& txt_empcode.Text & "' ", Cn)
cmd.Parameters.AddWithValue("@EmpCode", txt_empcode.Text)
picCapture.Image = Image.FromStream(New
IO.MemoryStream(CType(cmd.ExecuteScalar, Byte())))
' or you can save in a file
'IO.File.WriteAllBytes("c:\backup\image3.jpg", CType(cmd.ExecuteScalar,
Byte()))
Catch ex As Exception
''MessageBox.Show(ex.Message)
Finally
End Try
End Sub
DTP_DOB.Value = Today
DTP_DOJ.Value = Today
84
Payroll Management System
''DGView.Rows.Clear()
''If DGVIEW.RowCount <= 0 Then
'' DGVIEW.Rows.Add(1)
''End If
view()
newno()
Catch ex As Exception
End Try
End Sub
Sub newno()
Try
Dim a As String
txt_empcode.Text = Val(a) + 1
code = Val(a) + 1
If code.ToString.Length < 3 Then
txt_empcode.Text = "EMP00" & txt_empcode.Text
Else
txt_empcode.Text = "NST" & txt_empcode.Text
End If
Else
code = 1
txt_empcode.Text = "EMP" & "001"
End If
Catch ex As Exception
End Try
End Sub
Sub view()
Try
85
Payroll Management System
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub btnprint_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles btnc_close.Click
Me.Close()
End Sub
End If
86
Payroll Management System
End Sub
End Sub
txt_dept.Text = Trim(depname)
txt_dept.Tag = Val(deptcode)
If Trim(txt_dept.Text) = "" Then
Search_Deaprtment.Show()
Search_Deaprtment.Focus()
Else
''txt_design.Focus()
End If
End Sub
End If
End Sub
87
Payroll Management System
End If
End Sub
str = ""
str = " delete from Mas_Employee where empcode='" & txt_empcode.Text & "' "
str = " Begin Tran " & str & " If @@error<>0 Rollback tran else commit tran
"
cmd = New SqlCommand(str, Cn)
cmd.ExecuteNonQuery()
88
Payroll Management System
Try
Dim da As New SqlDataAdapter("select emp.*,dep.department as
department,des.designation as designation,ms.scheme_name from mas_employee emp inner
join mas_department dep on dep.code=deptcode inner join mas_designation des on
des.code=designcode left outer join mas_scheme ms on ms.Scheme_Code=emp.Emp_Scheme
where emp.empname like '" & Txt_Search.Text & "%' order by Empcode", Cn)
Dim dt As New DataTable
da.Fill(dt)
DGVIEW.Rows.Clear()
Dim k%
For k = 0 To dt.Rows.Count - 1
DGVIEW.Rows.Add(dt.Rows(k).Item("empcode"), dt.Rows(k).Item("empname"),
dt.Rows(k).Item("department"), dt.Rows(k).Item("designation"))
Next
DGVIEW.AllowUserToAddRows = False
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
End Sub
End Sub
Try
Dim k%
clr()
For k = 0 To dt.Rows.Count - 1
89
Payroll Management System
End If
90
Payroll Management System
End If
Next
VwImg()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Try
txt_city.Text = Trim(cityname)
txt_state.Text = Trim(statename)
txt_nation.Text = Trim(nationname)
txt_city.Tag = Val(citycode)
If Trim(txt_outlet.Text) = "" Then
Search_City.Show()
Search_City.Focus()
Else
''txt_design.Focus()
End If
Catch ex As Exception
End Try
End Sub
91
Payroll Management System
End If
End Sub
End Sub
End Sub
92
Payroll Management System
End If
End Sub
End If
Catch ex As Exception
End Try
End Sub
93
Payroll Management System
End If
txt_scheme.Tag = ""
txt_scheme.Text = ""
''repsearch = 1
Search_Scheme.Show()
Search_Scheme.Focus()
Else
End If
End Sub
End Sub
End Sub
End Sub
End Class
Log Entry(Attendance)
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports System.IO
Public Class Log_Details_Frm
Dim str, str1, str2 As String
Dim a1 As String
Dim ans As String
Dim code As Long
Dim gender As String
Dim cmd As New SqlCommand
Dim d1, d2
Private Sub Label5_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Label5.Click
End Sub
94
Payroll Management System
str = "select * from Attendance where Emp_Code='" & Trim(txt_empcode.Text) & "'
and Login_Date between '" & Format(d2, "MM/dd/yyyy") & "' and '" & Format(d1,
"MM/dd/yyyy") & "' and isnull(status,0)=0 "
cmd = New SqlCommand(str, Cn)
a1 = cmd.ExecuteScalar()
a1 = Trim(a1)
If a1 = "" Then
If Trim(txt_employee.Text) = "" Then Exit Sub
If Trim(txt_empcode.Text) = "" Then Exit Sub
str = "insert into
Attendance(Emp_Code,Emp_Name,Department,Designation,Login_Date,Login_Time,Entry_Date,St
atus)values('" & Trim(txt_empcode.Text) & "','" & Trim(txt_employee.Text) & "','" &
Trim(txt_dept.Text) & "','" & Trim(txt_design.Text) & "','" & Format(dtp_date.Value,
"MM/dd/yyyy") & "','" & Trim(txt_time.Text) & "','" & Format(Today, "MM/dd/yyyy") &
"','0')"
cmd = New SqlCommand(str, Cn)
cmd.ExecuteNonQuery()
Else
str = "update Attendance set Logout_Date='" & Format(dtp_date.Value,
"MM/dd/yyyy") & "',Logout_Time='" & Trim(txt_time.Text) & "',Status='1' where
Login_Date between '" & Format(d2, "MM/dd/yyyy") & "' and '" & Format(d1, "MM/dd/yyyy")
& "' and isnull(status,0)=0 and emp_code='" & Trim(txt_empcode.Text) & "' "
cmd = New SqlCommand(str, Cn)
cmd.ExecuteNonQuery()
End If
clr()
view()
End Sub
Sub view()
Try
clr()
d1 = dtp_date.Value
d2 = DateAdd(DateInterval.Day, -1, d1)
Dim da As New SqlDataAdapter("select * from Attendance where Login_Date
between '" & Format(d2, "MM/dd/yyyy") & "' and '" & Format(d1, "MM/dd/yyyy") & "' and
isnull(status,0)=0 ", Cn)
Dim dt As New DataTable
da.Fill(dt)
DGVIEW.Rows.Clear()
Dim k%
For k = 0 To dt.Rows.Count - 1
DGVIEW.Rows.Add(k + 1, dt.Rows(k).Item("Emp_Code"),
dt.Rows(k).Item("Emp_Name"), dt.Rows(k).Item("Department"),
dt.Rows(k).Item("Designation"), Format(dt.Rows(k).Item("Login_Date"), "dd/MM/yyyy"),
Format(dt.Rows(k).Item("Login_Time"), "hh:mm:ss"), dt.Rows(k).Item("Logout_Date"),
dt.Rows(k).Item("Logout_Time"))
Next
DGVIEW.AllowUserToAddRows = False
clr()
95
Payroll Management System
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Private Sub txt_empcode_KeyPress(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyPressEventArgs) Handles txt_empcode.KeyPress
End Sub
Dim k%
'' clr()
txt_employee.Text = ""
txt_design.Text = ""
txt_dept.Text = ""
Exit Sub
End If
For k = 0 To dt.Rows.Count - 1
clr()
If IsDBNull(dt.Rows(k).Item("EmpId")) = False Then
txt_empcode.Text = dt.Rows(k).Item("EmpId")
End If
96
Payroll Management System
txt_dept.Tag = dt.Rows(k).Item("deptcode")
End If
If IsDBNull(dt.Rows(k).Item("designation")) = False Then
txt_design.Text = dt.Rows(k).Item("designation")
End If
If IsDBNull(dt.Rows(k).Item("designcode")) = False Then
txt_design.Tag = dt.Rows(k).Item("designcode")
End If
Next
VwImg()
End Sub
Private Sub VwImg()
Try
picCapture.Visible = True
Dim cmd As New SqlCommand("select photo from Mas_Employee where EmpCode='"
& txt_empcode.Text & "' ", Cn)
cmd.Parameters.AddWithValue("@EmpCode", txt_empcode.Text)
picCapture.Image = Image.FromStream(New
IO.MemoryStream(CType(cmd.ExecuteScalar, Byte())))
' or you can save in a file
'IO.File.WriteAllBytes("c:\backup\image3.jpg", CType(cmd.ExecuteScalar,
Byte()))
Catch ex As Exception
''MessageBox.Show(ex.Message)
Finally
End Try
End Sub
txt_empcode.Text = ""
txt_employee.Text = ""
txt_dept.Text = ""
txt_dept.Tag = ""
txt_design.Text = ""
txt_design.Tag = ""
picCapture.Image = Nothing
Catch ex As Exception
End Try
End Sub
Private Sub Log_Details_Frm_KeyDown(ByVal sender As Object, ByVal e As
System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown
If e.KeyCode = Keys.Escape Then
Me.Close()
End If
End Sub
97
Payroll Management System
End Sub
Imports System.Data.SqlClient
Imports System.Data.Sql
Imports System.Data
Imports System.IO
Public Class SalaryCal_Frm
Dim str, str1, str2 As String
Dim a1 As String
Dim ans As String
Dim code As Long
Dim gender As String
Dim cmd As New SqlCommand
Dim d1, d2
Dim scheme As Integer
Private Sub SalaryCal_Frm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Me.Top = 0
Me.Left = 0
validdate()
newno()
view()
End Sub
Private Sub view()
Dim da As New SqlDataAdapter("select * from Salary_Table where Salary_Month='"
& Trim(Dtp_Month.Text) & "' ", Cn)
Dim dt As New DataTable
da.Fill(dt)
If dt.Rows.Count < 1 Then Exit Sub
DGVIEW.Rows.Clear()
Dim k%
For k = 0 To dt.Rows.Count - 1
DGVIEW.Rows.Add(k + 1, dt.Rows(k).Item("Emp_Code"),
dt.Rows(k).Item("Emp_Name"), dt.Rows(k).Item("Pay_No"),
dt.Rows(k).Item("Total_Salary"), dt.Rows(k).Item("Department"))
Next
DGVIEW.AllowUserToAddRows = False
End Sub
Private Sub validdate()
Dim firstday As Integer
98
Payroll Management System
firstday = 1
years = Year(Dtp_Month.Value)
months = Month(Dtp_Month.Value)
lastday = Date.DaysInMonth(years, months)
Dtp_From.Value = firstday & "/" & months & "/" & years
Dtp_To.Value = lastday & "/" & months & "/" & years
End Sub
Private Sub txt_empcode_TextChanged(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles txt_empcode.TextChanged
End Sub
Dim k%
'' clr()
txt_employee.Text = ""
txt_design.Text = ""
txt_dept.Text = ""
Exit Sub
End If
For k = 0 To dt.Rows.Count - 1
clr()
If IsDBNull(dt.Rows(k).Item("EmpId")) = False Then
txt_empcode.Text = dt.Rows(k).Item("EmpId")
End If
99
Payroll Management System
txt_employee.Text = dt.Rows(k).Item("EmpName")
End If
Next
VwImg()
searcsalary()
End Sub
Private Sub salary()
Exit Sub
End If
For k = 0 To dt.Rows.Count - 1
Next
'' VwImg()
''searcsalary()
End Sub
Private Sub searcsalary()
100
Payroll Management System
d1 = Format(Dtp_From.Value, "MM/dd/yyyy")
d2 = Format(Dtp_To.Value, "MM/dd/yyyy")
Dim k%
'' clr()
txt_working.Text = DateDiff(DateInterval.Day, Dtp_From.Value, Dtp_To.Value)
txt_holidays.Text = ""
txt_cl.Text = ""
txt_hrap.Text = ""
txt_esip.Text = ""
txt_epfp.Text = ""
txt_dedp.Text = ""
txt_taxp.Text = ""
txt_present.Text = ""
txt_holiamt.Text = ""
txt_clamt.Text = ""
txt_absentamt.Text = ""
txt_leaveamt.Text = ""
Exit Sub
End If
For k = 0 To dt.Rows.Count - 1
''clr()
txt_present.Text = dt.Rows.Count
101
Payroll Management System
txt_hraamt.Text = -((Val(dt.Rows(k).Item("HRA_Amount")) *
Val(txt_hrap.Text)) / 100) ''-(Val(dt.Rows(k).Item("HRA_Amount")) * Val(txt_hrap.Text)
/ 100)
End If
End Sub
Private Sub calamt()
Dim totsalary As Double
102
Payroll Management System
End Sub
Private Sub VwImg()
Try
picCapture.Visible = True
Dim cmd As New SqlCommand("select photo from Mas_Employee where EmpCode='"
& txt_empcode.Text & "' ", Cn)
cmd.Parameters.AddWithValue("@EmpCode", txt_empcode.Text)
picCapture.Image = Image.FromStream(New
IO.MemoryStream(CType(cmd.ExecuteScalar, Byte())))
' or you can save in a file
'IO.File.WriteAllBytes("c:\backup\image3.jpg", CType(cmd.ExecuteScalar,
Byte()))
Catch ex As Exception
''MessageBox.Show(ex.Message)
Finally
End Try
End Sub
End Sub
103
Payroll Management System
txt_hraamt.Text = ""
txt_absent.Text = ""
txt_absentamt.Text = ""
txt_cl.Text = ""
txt_clamt.Text = ""
txt_dedamt.Text = ""
txt_dedp.Text = ""
txt_dept.Text = ""
txt_design.Text = ""
txt_empcode.Text = ""
txt_employee.Text = ""
txt_epfamt.Text = ""
txt_epfp.Text = ""
txt_esiamt.Text = ""
txt_esip.Text = ""
txt_extraamt.Text = ""
txt_extraminus.Text = ""
txt_holiamt.Text = ""
txt_holidays.Text = ""
txt_hrap.Text = ""
txt_hrap.Text = ""
txt_leave.Text = ""
txt_leaveamt.Text = ""
scheme = 0
txt_present.Text = ""
txt_presentamt.Text = ""
txt_salary.Text = ""
'' txt_searchemp.Text = ""
txt_taxamt.Text = ""
txt_taxp.Text = ""
104
Payroll Management System
txt_totsal.Text = ""
txt_usedcl.Text = ""
txt_totsal.Text = ""
txt_working.Text = ""
txt_workingamt.Text = ""
picCapture.Image = Nothing
txt_empcode.Text = ""
txt_employee.Text = ""
txt_dept.Text = ""
txt_dept.Tag = ""
txt_design.Text = ""
txt_design.Tag = ""
picCapture.Image = Nothing
End Sub
Private Sub newno()
Dim a As String
cmd = New SqlCommand("select Pay_No as Pay_No from Salary_Table order by Pay_No
desc", Cn)
If IsDBNull(cmd.ExecuteScalar()) = False Then
a = cmd.ExecuteScalar()
txt_paycode.Text = Val(a) + 1
Else
txt_paycode.Text = 1
End If
End Sub
''Pay_No,Emp_Code,Scheme_ID,Month_Salary,Working_Days,Working_Salary,Present_Days,Prese
nt_Salary,Holidays,Holidays_Salary,CL,CL_Salary,Absent_Days,Absent_Salary,Leave_Days,Le
ave_Salary,HRA,HRA_Amount,ESI,ESI_Amount,EPF,EPF_Amount,Deduction, Deduction_Amount,
Taxp, Tax_Amount, Extra_Plus, Extra_Minus, Total_Salary
If Val(txt_paycode.Text) = 0 Then Exit Sub
If Val(txt_extraamt.Text) = 0 Then
explus = 0
Else
explus = Val(txt_extraamt.Text)
End If
If Val(txt_extraminus.Text) = 0 Then
exminus = 0
Else
exminus = Val(txt_extraminus.Text)
exminus = -(exminus)
End If
If Val(txt_totsal.Text) = 0 Then
105
Payroll Management System
106
Payroll Management System
End If
view()
End Sub
Private Function validate_save() As Boolean
End Function
strquery = ""
strquery = "select * from Salary_Table where Pay_No=" &
Val(txt_paycode.Text) & " "
printname = "PAYSLIP"
Report_Viewer_Frm.Show()
Catch ex As Exception
MsgBox("Enter Valid Data/Informations", MsgBoxStyle.Critical)
End Try
End Sub
107
Payroll Management System
End Sub
End Sub
strquery = ""
If Trim(txt_searchemp.Text) <> "" Then
'' strquery = "select * from Salary_Table where emp_code='" &
Trim(txt_searchemp.Text) & "' "
Else
strquery = "select * from Salary_Table where emp_code='" &
Trim(txt_searchemp.Text) & "' and Salary_Month='" & Trim(Dtp_Month.Text) & "' order by
department,designation "
End If
ElseIf Chk_Department.CheckState = CheckState.Checked And
Chk_Designation.CheckState = CheckState.Checked Then
108
Payroll Management System
Else
strquery = "select * from Salary_Table where department='" &
Trim(Cmb_Department.Text) & "' and designation='" & Trim(Cmb_Designation.Text) & "' and
Salary_Month='" & Trim(Dtp_Month.Text) & "' order by department,designation "
End If
Else
strquery = "select * from Salary_Table where department='" &
Trim(Cmb_Department.Text) & "' and Salary_Month='" & Trim(Dtp_Month.Text) & "' order
by department,designation "
End If
ElseIf Chk_Designation.CheckState = CheckState.Checked Then
If Trim(Cmb_Designation.Text) = "" Then
MsgBox("Enter Valid Designation")
Exit Sub
End If
If Rdo_Date.Checked = True Then
strquery = "select * from Salary_Table where designation='" &
Trim(Cmb_Designation.Text) & "' and To_date between '" & Format(dtp_Fromdate.Value,
"MM/dd/yyyy") & "' and '" & Format(Dtp_Todate.Value, "MM/dd/yyyy") & "' order by
department,designation "
Else
strquery = "select * from Salary_Table where designation='" &
Trim(Cmb_Designation.Text) & "' and Salary_Month='" & Trim(Dtp_Month.Text) & "' order
by department,designation "
End If
Else
If Rdo_Date.Checked = True Then
109
Payroll Management System
Else
strquery = "select * from Salary_Table where Salary_Month='" &
Trim(Dtp_Month.Text) & "' order by department,designation "
End If
End If
End Sub
Imports System.Data.Sql
Imports System.Data.SqlClient
Imports System.IO
Imports CrystalDecisions.Shared
Imports CrystalDecisions.ReportSource
Imports CrystalDecisions.CrystalReports.Engine
Public Class Report_Viewer_Frm
Dim pri As Integer
Public invid As Long
Private Sub Report_Viewer_Frm_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
End Sub
Me.Top = 0
Me.Left = 0
pri = 0
Timer1.Start()
txt_datetime.Text = Format(Today, "dd/MM/yyyy") & " " & TimeOfDay
Me.Refresh()
printrep()
End Sub
Sub printrep()
''strquery = "Select * from view_estimation where estno=" & estmateid & ""
Dim da As New SqlDataAdapter(strquery, Cn)
Dim dt As New DataTable
da.Fill(dt)
110
Payroll Management System
''report.ParameterFields("companyname").CurrentValues.Add(companyname)
''report.ParameterFields("address1").CurrentValues.Add(address1)
report.SetDataSource(dt)
'report.SetParameterValue(0, companyname)
'report.SetParameterValue(1, address1)
ReportViewer.ReportSource = report
ReportViewer.Refresh()
ReportViewer.Visible = True
If pri = 1 Then
report.PrintToPrinter(1, True, 0, 0)
End If
Exit Sub
End If
End Sub
End Sub
End Class
111
Payroll Management System
112
Payroll Management System
Test cases are developed using various test techniques to achieve more effective testing. By this, software
completeness is provided and conditions of testing which get the greatest probability of finding errors are
chosen. So, testers do not guess which test cases to chose, and test techniques enable them to design testing
conditions in a systematic way. Also, if one combines all sorts of existing test techniques, one will obtain
better results rather if one uses just one test technique. Software can be tested in two ways, in another words,
one can distinguish two different methods:
1. Black box testing and
2. White box testing.
Unit testing, also known as component testing , refers to tests that verify the functionality of a
specific section of code, usually at the function level. In an object-oriented environment, this is
usually at the class level, and the minimal unit tests include the constructors and destructors.
These types of tests are usually written by developers as they work on code (white-box style), to
ensure that the specific function is working as expected. One function might have multiple tests,
to catch corner cases or other branches in the code. Unit testing alone cannot verify the
functionality of a piece of software, but rather is used to assure that the building blocks the
software uses work independently of each other.
Unit testing is a software development process that involves synchronized application of a broad
spectrum of defect prevention and detection strategies in order to reduce software development
risks, time, and costs. It is performed by the software developer or engineer during the
construction phase of the software development lifecycle. Rather than replace traditional QA
focuses, it augments it. Unit testing aims to eliminate construction errors before code is
promoted to QA; this strategy is intended to increase the quality of the resulting software as well
as the efficiency of the overall development and QA process.
113
Payroll Management System
Depending on the organization's expectations for software development, unit testing might
include static code analysis, data flow analysis metrics analysis, peer code reviews, code
coverage analysis and other software verification practices.
4.3Integration Testing
Integration testing is any type of software testing that seeks to verify the interfaces between
components against a software design. Software components may be integrated in an iterative
way or all together ("big bang"). Normally the former is considered a better practice since it
allows interface issues to be located more quickly and fixed .Integration testing works to expose
defects in the interfaces and interaction between integrated components (modules). Progressively
larger groups of tested software components corresponding to elements of the architectural
design are integrated and tested until the software works as a system
4.4System Testing
System testing, or end-to-end testing, tests a completely integrated system to verify that it meets
its requirements. For example, a system test might involve testing a logon interface, then
creating and editing an entry, plus sending or printing results, followed by summary processing
or deletion (or archiving) of entries, then logoff.
In addition, the software testing should ensure that the program, as well as working as expected,
does not also destroy or partially corrupt its operating environment or cause other processes
within that environment to become inoperative (this includes not corrupting shared memory, not
consuming or locking up excessive resources and leaving any parallel processes unharmed by its
presence).
114
Payroll Management System
Alpha testing
Beta testing
Beta testing comes after alpha testing and can be considered a form of external user acceptance
testing. Versions of the software, known as beta versions, are released to a limited audience
outside of the programming team. The software is released to groups of people so that further
testing can ensure the product has few faults or bugs. Sometimes, beta versions are made
available to the open public to increase the feedback field to a maximal number of future user
White box testing is highly effective in detecting and resolving problems, because bugs (bug or fault is a
manifestation of an error in a software) can often be found before they cause trouble. We can shortly define
this method as testing software with the knowledge of the internal structure and coding inside the program .
White box testing is also called white box analysis, clear box testing or clear box analysis. It is a strategy for
software debugging (it is the process of locating and fixing bugs in computer program code or the
engineering of a hardware device) in which the tester has excellent knowledge of how the program
components interact. This method can be used for Web services applications, and is rarely practical for
debugging in large systems and networks ). Besides white box testing is considered as a security testing (the
process to determine that an information system protects data and maintains functionality as
intended)method that can be used to validate whether code implementation follows intended design, to
validate implemented security functionality, and to uncover exploitable vulnerabilities Black box testing is
testing software based on output requirements and without any knowledge of the internal structure or coding
in the program .In another words, a black box is any device whose workings are not understood by or
accessible to its user. For example, in telecommunications, it is a resistor connected to a phone line that
makes it impossible for the telephone company’s equipment to detect when a call has been answered. In data
mining, a black box is an algorithm that doesn’t provide an explanation of how it works. In film–making, a
115
Payroll Management System
black box is a dedicated hardware device: equipment that is specifically used for a particular function, but in
the financial world, it is a computerized trading system that doesn’t make its rules easily available.
CHAPTER 5
5.1 Conclusion
5.2 Limitation of System
5.3 Future Scope for Modification
5.4 References/ Bibliography
5.1 Conclusion
With the theoretical inclination of our syllabus it becomes very essential to take the utmost advantage of any
opportunity of gaining practical experience that comes along. The construction of this Minor Project
“PAYROLL MANAGEMENT SYSTEM” was one of these opportunities. It gave us the requisite practical
knowledge to supplement the already taught theoretical concepts thus making us more competent as a
computer engineer.
The project from a personal point of view also helped us in understanding the following aspects of project
development:
The project also provided us the opportunity of interacting with our teachers and to gain from their vast
experience.
116
Payroll Management System
If the payroll company is understaffed and has an abundance of clients, it may become difficult to
reach someone when you need it immediately such as when paycheck discrepancies arise.
Because the payroll company is located off-site, it is difficult to always know what’s going on with
your payroll until the actual pay date arrives
Bibliography
WEBSITES:
1. http://vb.net-informations.com/
2. http://en.wikipedia.org/wiki/Visual_Basic_.NET
3. http://www.w3schools.com
117