Payroll System
Payroll System
Payroll System
Payroll System
Contents
Phase 1 Project Analysis and Planning 1.1. 1.2. 1.3. Phase 2 Phase 3 Study of the Problem Project Scope Objectives
Cost Estimation Modeling the Requirements 3.1. Module Description 3.1.1. Login 3.1.2. Employee Details 3.1.3. Salary Details 3.1.4. Modify 3.2. UML Diagram 3.2.1. Use case Diagram 3.2.2. Class Diagram 3.2.3. Sequence Diagram 3.2.4. Collaboration Diagram
Phase 4
Configuration Management 4.1. 4.2. 4.3. 4.4. S/W Requirements H/W Requirements Tools Software Development 4.4.1. Form Creation 4.4.2. Script
Phase 5
Software Testing 5.1. 5.2. 5.3. 5.4. 5.5. Preparing Test Plan Perform Validation Testing Validation Test Criteria Coverage Analysis Memory Leaks
09CSA10
Synopsis
This is a small scale project for payroll system .The basic idea is that the manager of the company maintains the details about the employees, the designation and salary. It consists of employee details, payroll system, status and exits. The manager can enter the name and employee ID and get the salary details of that particular employee. In payroll system we can calculate the net salary of the employee based on input. In the Employee details module various details like employee ID, Name, Designation, Basic pay are obtained from the user.In the Display module the total database is displayed. In the salary Details module, the individual database is displayed which shows the PF, DA, HRA and Net salary of the particular employee. By using the Modify module we can modify and update the employee personal details on the database stored.
09CSA10
USERS ROLE: The users can login/logout the database. He/She can view his/her personal details, monthly pay details, and company details. The user can just view the information whereas he/she could not make changes in the database. ADMINISTRATOR ROLE: The administrator plays a vital role in the payroll system. The administrator controls the entire database. The net salary calculations are calculated by the administrator itself. The main role of the administrator is to safeguard the database.
1.2.
Project Scope
The supplementary specification applies to payroll processing. This specification defines the non-functional requirement of the system such a
Functionality: Since it stand alone application, a single user may use it at a time. Usability: Desktop interface Windows 98/2000/Xp Reliability: The system is available at 24 hours a day, seven days a week. Performance: The performance depends on hardware specification
09CSA10
Our project is of high range and is highly efficient which can satisfy the payroll calculation for almost all software companies. The chances of error occurrence is very limited and so our costs around Rs 10, 00,000(app).
A team of 11 members is required for completing the task. It takes a time span of 3 weeks to shape the project. There are no specific environmental constraints.
3.2.
UML Diagram
Use Case diagrams show the various activities the users can perform on the
3.2.1. Use case Diagram system. The System is something that performs a function. They model the dynamic aspects of the system. It provides a users perspective of the system.
Actor: An actor is a user of the system playing a particular role. Use case: Use case is a particular activity a user can do on the system. Relationship: Relationships are simply illustrated with a line connecting actors to use cases.
09CSA10
Validity Check
3.2.2. Class Diagram A class diagram describes the types of objects in the system and the various kinds of static relationships that exist among them.i.e.,A graphical representation of a static view on declarative static elements. A class is the description of a set of objects having similar attributes, operations, relationships and behavior.
employee emp id name department age designation view() system s how details() validity check() databas e empid name age designation
administrator empid name departm ent age basic pay HRA PF net pay insert() delete() update()
09CSA10
A sequence diagram in Unified Modeling Language (UML) is a kind of interaction diagram that shows how processes operate with one another and in what order. It is a construct of a Message Sequence Chart. Sequence diagrams are sometimes called event diagrams, event scenarios, and timing diagrams
employee provide ID Enter ID Validation check Provide details Processing administrator system database payroll processing
3.2.4. Collaboration Diagram A Collaboration diagram is very similar to a Sequence diagram in the purpose it achieves; in other words, it shows the dynamic interaction of the objects in a system. A distinguishing feature of a Collaboration diagram is that it shows the objects and their association with other objects in the system apart from how they interact with each other. The association between objects is not represented in a Sequence diagram. A Collaboration diagram is easily represented by modeling objects in a system and representing the associations between the objects as links. The interaction between the objects is denoted by arrows. To identify the sequence of invocation of these objects, a number is placed next to each of these arrows.
administrat or
6: Send details 5: Processing 3: Validation check 4: Provide details database payroll processing
09CSA10
4.1.
S/W Requirements
OS: Windows Language: Visual Basic
4.2.
H/W Requirements
Intel PII Processor with 300 MHz speed. 64 MB RAM 10MB Hard disk space
4.3. 4.4.
Tools
Design Tool: Rational Rose suite
Software Development
09CSA10
Form2:
Form3:
09CSA10
Form4:
09CSA10
4.4.2. Script Coding for form1: Private Sub Command1_Click() End End Sub Private Sub Command2_Click() If Text1.Text = "manimaran" And Text2.Text = "welcome" Then Text1.Text = "" Text2.Text = "" Form2.Visible = True Else MsgBox "invalid username and password" Text1.Text = "" Text2.Text = "" Text1.SetFocus End If End Sub Coding for form2: Private Sub Command1_Click() Form3.Show End Sub Private Sub Command2_Click() Form4.Show End Sub Private Sub Command3_Click() Unload Me End Sub Private Sub Command4_Click() End End Sub Coding for form3: Dim db As Database Dim rs As Recordset Private Sub Command1_Click() Text9.Text = ((Val(Text5.Text) + Val(Text6.Text) + Val(Text7.Text)) (Val(Text8.Text))) End Sub Private Sub Command2_Click() Form4.Show End Sub
09CSA10
Private Sub Command3_Click() Unload Me Unload Form2 End Sub Private Sub Command4_Click() End End Sub Private Sub Command5_Click() rs.MoveFirst Text1.Text = rs(0) Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) Text8.Text = rs(7) End Sub Private Sub Command6_Click() rs.MovePrevious Text1.Text = rs(0) Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) Text8.Text = rs(7) End Sub Private Sub Command7_Click() rs.MoveNext Text1.Text = rs(0) Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) Text8.Text = rs(7) End Sub Private Sub Command8_Click() rs.MoveLast Text1.Text = rs(0)
09CSA10
Text2.Text = rs(1) Text3.Text = rs(2) Text4.Text = rs(3) Text5.Text = rs(4) Text6.Text = rs(5) Text7.Text = rs(6) Text8.Text = rs(7) End Sub Private Sub Form_Load() Set db = OpenDatabase("z:\mani.mdb") Set rs = db.OpenRecordset("table") End Sub Coding for form4: Dim db As Database Dim rs As Recordset Private Sub Command6_Click() Unload Me Unload Form3 Unload Form2 End Sub Private Sub Command7_Click() End End Sub Private Sub Command3_Click() rs.AddNew rs(0) = Text1.Text rs(1) = Text2.Text rs(2) = Text3.Text rs(3) = Text4.Text rs(4) = Text5.Text rs(5) = Text6.Text rs(6) = Text7.Text rs(7) = Text8.Text rs.Update MsgBox "record inserted" End Sub Private Sub Command4_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = ""
09CSA10
Text8.Text = "" End Sub Private Sub Command5_Click() Unload Me Form2.Show End Sub Private Sub Form_Load() Set db = OpenDatabase("z:\mani.mdb") Set rs = db.OpenRecordset("table") End Sub
09CSA10
5.5. Memory Leaks Memory leak testing has been done using rational purity software.
Result:
Based on the system requirements specification PAYROLL INFORMATION SYSTEM has been designed and implemented.