Upload
praveenasarathchandra
View
215
Download
0
Embed Size (px)
Citation preview
8/8/2019 Software Development Project - Payroll System [Group Assignment]
1/146
Software Development Project Payroll System
ASIA PACIFIC INSTITUTE OF INFORMATION THECHNOLOGY
Design Documentation
SOFTWARE DEVELOPING PROJECT
PAYROLL SYSTEM
SUBMITTED TO: Mrs. Nadeera Ahangama
INTAKE CODE: DF0931ICT
Praveena Sarathchandra (CB003403)
Mayuran Chelvachandran(CB003514)
Pulasthi Perera (CB003472)
Date Assigned 17/10/2009
Due Date 18/12/2009
8/8/2019 Software Development Project - Payroll System [Group Assignment]
2/146
Software Development Project Payroll System
Abstract
Staffordshire University is one of the leading and progressive universities. Currently
university is providing students part time employments to work within the campus and thejob titles are relevant to their courses therefore providing them experience on their area of
interest.
We were asked to develop a payroll system which would calculate the payments for student
employees. This is the design document for proposed Student Employee payroll system.
This documentation explains how the design meets the requirements. Project Description,
Problem Analysis, Project Requirements, Solution and Solution Design are explained
within the documentation.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
3/146
Software Development Project Payroll System
Acknowledgement
Throughout the course of this assignment there were numerous people who helped us in
their own ways towards the successful completion of this project. We wish to recognize
their contributions herewith.
We would like to thank Mrs.Nadeera Ahangama for all her time, guidance and invaluable
advice.
As a project manager Mrs.Nadeeras help is greatly appreciated. her
understanding and insight was a great source of inspiration for us, and was instrumental in
helping us understand the intricacies involved when doing a development project such as
this.
We would also like to thank our colleagues and friends for all the moral support, motivation
and all the relevant information given.
We would also like to thank Mr.Eranjan Padumadasa for setting us the path for analyzing
and developing a system.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
4/146
Software Development Project Payroll System
Table of contents
8/8/2019 Software Development Project - Payroll System [Group Assignment]
5/146
Software Development Project Payroll System
Introduction
Introduction to client
Staffordshire University has a long and proud history of providing high quality, progressive
and inclusive higher education for people from across Staffordshire, the region, the UK and
the rest of the world. Established in 1992, Staffordshire University has evolved into one of
the country's most self-motivated, progressive and forward-thinking learning institutions.
Always quick to adapt as student requirements change, we have become renowned for our
groundbreaking new courses and first-class learning opportunities.
As a encouragement student the university is providing its students with part time
employments within the university.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
6/146
Software Development Project Payroll System
Introduction about the project
This task was assigned as a part of Software Development Project module and we were
given the scenario of developing a payroll system for Staffordshire Universitys studentemployees. University has 7 departments within it and it should be able to expand in the
next few years. Job titles differ from department to department so the system must be able
to add new job titles as well as add new departments to its system
Our system should be developed with a user friendly interface and it should have the
feature of allowing the students to mark their preferred timeslot and choose, it should also
limit the working hours as mentioned by the university.
Lecturers are given the freedom of choosing the student employee they want in First come
First serve basis. Each department has different job titles and therefore each handled by
their respective head of department.
The whole system is computerized so that the work done will be made faster and more
efficient. The system has the ability to limit students working hours so that they stay within
the defined time limit by the University.
Students can exchange work with co-worker if they are unable to attend for the job so thereshould be a mechanism to record the work exchanged between student employees and it
should correctly record the payments and their working hour
Students are allowed 15 days of annual leaves so there should be a way of limiting the
leaves and there should be a way of calculating the annual leaves.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
7/146
Software Development Project Payroll System
Work Load Matrix
Tasks Praveena
(CB003403)
Mayuran
(CB003514)
Pulasth
(CB0034
System Planning
Identifying the problem 40 30 30
Feasibility Study
1. Schedule
2. Operational
3. Economic
4. Technical
-
-
-
-
-
-
-
-
100
100
100
100
Understanding the
specifications for
required system
60 20 20
System Analysis
Identifying system
requirements33.33 33.33 33.33
System Design
Dataflow Diagrams1. Context
2. Level 0
3. Level 1
20
20
-
-
-
-
80
80
100
Data Dictionary - - 100
Entity relationship
Diagram50 50 -
Normalization - 90 10
System Hierarchy Chart 50 - 50
Report Design - - 100
Database design 60 40 -
Table Structure 70 30 -
Algorithm Design 90 5 5
Interface Design 50 50 -
8/8/2019 Software Development Project - Payroll System [Group Assignment]
8/146
Software Development Project Payroll System
(Screen Design)
Testing
Test plan - - 100
Assumptions
Validations
-
-
100
100
-
-
Documentation
Introduction - 100 -
Work load matrix/ Gantt
chart
- - 100
Finalized the
documentation
20 50 30
8/8/2019 Software Development Project - Payroll System [Group Assignment]
9/146
Software Development Project Payroll System
Context Diagram
Student Employee Payroll System
Head Of Department
Student EmployeeLectures
Academic Administration
Student Details/CV
S.E CVCV Confermation
Appoiment Approval/S.E Account
Request time slots
Time Slot requests
Final Time Slots
Approved Shift Details
Registration Details
Lecture details
Lecture Approval
Registration Approval
Check S.E
List Of Employees
Reserve S.E/Course Details
Confirmation Reservation/Notification
Cansel Reservation
Cancelation Confirmation
Lecture Reservation Msg
Reservation confirmation/Co-worker assign
Cancelation Details
Feed BackFeedBack
FeedBack
Request Leave
Record time In/time Out
Leave ApprovalPayment Details/Rules
Pay Slip
S.E Details
Worked Hrs
Rating Details
Add new Dep/Job/EmpApproval
Overtime Period
Pay Rates/Rules
Moderation
Pay Slip
Time Slots/OT Details
Pay Rates
Worked Hrs
OT Rules/De
S.E Leave Request
Leave Approval
Modify system Details
Job Vacancies/System Updates
Approval Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
10/146
8/8/2019 Software Development Project - Payroll System [Group Assignment]
11/146
Software Development Project Payroll System
Level 1 Data flow Diagram
Process 1.0 Student Employee Registration Handling
1.1
S.E
CV Handling
New Employee
1.3
S.E
Profile Handling
1.2
S.E ID Handling
Academic Administration Head Of Department
Lecturer Student Employee
Student Employee
S.E Details
S.E CV
S.E CV
CV Approval
CV Approval
Username
+ Passwrd
Login Request
Requests to Admin
Requests to H.DRequests to Lecturer
Update Profile Details
Updated
S.E Details
User Name
+Password
S.E Details
S.E Comments
/msgs
S.E Requests/msgsS.E Reqests
/msgs
Approved CV details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
12/146
Software Development Project Payroll System
Process 2.0 Timeslot Handling
2.1Time Slot
Management
2.3
S.E Time Slot
Handling
2.2
Generating
Reservation Order
Academic Administration Head Of Department
Student Employee
Time Slot Shedule
Approved Time slots
Time Slot Shedule
Approved Time Slots
Time Slot Shedule
Reservation
Request
Random Position
Scheduled Time Slots
Approved Time Slots
Scheduled Time Slots
Time Slot Details
Approved Time Slots
S.E Time Slots
8/8/2019 Software Development Project - Payroll System [Group Assignment]
13/146
Software Development Project Payroll System
Process 3.0 Overtime Management
3.1
OT
Management
3.2
OT
Handling
Academic Administration Head Of Department
Student Employee
OT Details
Determined OT Details
OT Details
S.E OT Completion Details
Determined OT Details
S.E OT Hrs
OT Approval
OT Competition Details
Approved OT Shift
S.E OT Request
ApprovedOT Shifts
OT Completion Details
S.E OT Request
8/8/2019 Software Development Project - Payroll System [Group Assignment]
14/146
Software Development Project Payroll System
Process 4.0 Student Employee Feedback Handling
4.1
S.E Feedback
Handling
Academic Administration Head Of Department
Lecturer Student Employee
Student Employee
Rating
S.E Comments
S.E Details
OT Details
FeedBack
Rating
Requests/Suggestions/Coments
Working Hrs
OT DetailsFeedback
S.E Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
15/146
Software Development Project Payroll System
Process 6.0 Payroll Management Handling
6.1
Payroll Management
6.3
Pay Slip Handling
6.2
Time Handling
Academic Administration Head Of Department
Student Employee
Payments
Time data
Pay Rates Pay Rates
Pay Rates
Pay Rates
/Working Hrs
OT Rates
OT Rates
Pay Rates
OT Hrs
Time In-Time Out
Student Employee
S.E Details
Working Details
Pay Slip
Approved
Pay Slip
Pay Slip
8/8/2019 Software Development Project - Payroll System [Group Assignment]
16/146
Software Development Project Payroll System
Process 7.0 Student Employee Reservation Handling
7.1
Check S.E Availability
Status
7.3
Cancel Reservation
Handling
7.2
Reservation Handling
Head Of Department
Lecturer
Student Employee
Student Employee
ResevationCheck S.E
Check S.E
S.E Status
Reserve
S.E
S.E Reservation
Slot Reservation
Reservation Confirmation/
Co-Worker Assignment
Reservation Confirmation/
Co-Worker Assignment
Co-Worker Assignment
Approval
Approved Co-Worker Details
Approved
S.E
Details
List Of S.E
Cancelation Details
Cancelation Details
Cancelation Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
17/146
Software Development Project Payroll System
Process 8.0 Leave Handling
8.1
S.E
Leave Handling
8.2Check
Leave Availability
Academic Administration Head Of Department
Student Employee
Leave Details
Determined Leaves S.E Leave Request
Approval Leave
Leave Request
Confirmation Note
Leave
Requst
Leave
Status
Previous Leave
Details
Total
Leaves
Determined Leave Details
S.E Leave Req Approval
New Leave Deails
To update
8/8/2019 Software Development Project - Payroll System [Group Assignment]
18/146
Software Development Project Payroll System
Assumptions
Assumptions are made so that the system is successful when its functioning. While we
designed our system we had to make few assumptions to design which would meet its
requirements.
One student can do only one job at a time
There are many different user levels
Only one admin for the entire system
Admin is the only super user who has the power to add and delete head of department
Lecturer can reserve only one student at a time.
If there is a lack of technical assistants they can be reserved from other departments as
well.
Job allocation modules follows FCFS basis.
One lecturer works on one department only, lecturers cannot be transferred.
Two maximum number of student employees, with the same job title and in the same
department can select one particular timeslot to work on a timeslot plan.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
19/146
Software Development Project Payroll System
Limitations
Limitations are said to be restriction of a system from extending its performance. However
we may plan the system the rules governing it will restrict and limit the system. Here are
few limitations we found while working on the requirements of the system.
Any information deleted from the system cannot be recovered
System cannot be networked.
Only Head of Department and Admin can change rates
System has security issues that outsider can hack the system through SQL injection
Students have to log in to view the notifications. Notifications cant be deliveredonline through emails.
Admin cannot monitor performance, system summary from outside. He must login
using his machine situated at the university premises.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
20/146
Software Development Project Payroll System
Requirement Identification
Admin
Add/Edit Lecturer profiles
Determine pay rates for students
Moderate student accounts
Edit/Add new job titles
Edit/Add new departments
Determine over-time periods
Send messages
View Lecturers Feedbacks
Head of Department
Determine required employments
Approve Over-time requests
Divide Over-time periods among students
Modify job requirements
Add/Edit Student Employees
Approve time slots
Send messages
View Lecturers Feedbacks
View Notifications (unattended jobs etc)
Lecturer
Reserve student employees
Cancel Student employee sessions
8/8/2019 Software Development Project - Payroll System [Group Assignment]
21/146
Software Development Project Payroll System
Send messages
Write Feedbacks for SE
Report Unattended job
View Notifications (View SE leaves/Cancellations+coworker)
Student
Check reservations
Cancel sessions
Handover job to co-workers
Record time-in and time-out
Apply for leave
Send messages
Request for time slot changes
Select preferred time slots
Send OT request (only applied for tech, lab, research assistants)
View Notifications(work cancelled by lecturer etc)
8/8/2019 Software Development Project - Payroll System [Group Assignment]
22/146
Software Development Project Payroll System
Hierarchy Chart
Login
LOGIN FORM
AcademicAdministration
Head of Department
Lecturer
Student Employee
8/8/2019 Software Development Project - Payroll System [Group Assignment]
23/146
Software Development Project Payroll System
Admin
Academic Administrator
Head of Department
Feedback
Department
Mesaging
Notification
Student Employee
Lecturer
Add New
Edit
Add New
Edit
Add New
Edit
Add New
Edit
Inbox
New
New Feedback
History
New Notifications
History
Sent
8/8/2019 Software Development Project - Payroll System [Group Assignment]
24/146
Software Development Project Payroll System
Head of Department
Head of Department
Overtime
Timesheets
Departments
Messaging
Notifications
Feedback
Student Employee
Add
Edit
New OT Requests
OT History
Edit Job
Requirment
Add Job Titiles
Edit Job Titles
Veiw TimeSlots
Leave Requests
View Reservations
New
Inbox
Sent
Canceled Jobs
Unattended Jobs
Reservations
New Lecturer
Feedbacks
History
8/8/2019 Software Development Project - Payroll System [Group Assignment]
25/146
Software Development Project Payroll System
Lecturer
Lecturer
Reservations
Notifications
Messaging
Jobs
Reserve a StudentEmployee
Cancel Reserved Slot
Browse Student Employee
New
Sent
Inbox
Completed Jobs
Unattended Jobs
Cancelled/ Transferred
Jobs
Recently Completed Jobs
Job History
Unfinished Jobs
Unattended Jobs
8/8/2019 Software Development Project - Payroll System [Group Assignment]
26/146
Software Development Project Payroll System
Student
Student Employee
My Jobs
Messaging
Leaves
Overtime
Time Slots
Notifications
Job AwaitingConfirmation
Transferred Job
My leave Requests
Apply for Leave
Leave History
New
Inbox
Sent
My OT Requests
Apply for OT
OT History
Reserve Slots
Request forModifications
My Time Slots
Leave Request
OT Request
Cancel Job
8/8/2019 Software Development Project - Payroll System [Group Assignment]
27/146
Software Development Project Payroll System
Date Dictionary
Level 0
External Entities
Name
Academic Administration
Description
Configurations, Modification in system are done by Academic
Administration. They have Administration rights.
Data inflowS.E rating
Data outflow
Approval, Modification Details
Name
Head Of Department
Description
S.E, Time Slot Handling and Department Management are done by
Head Of Department.
Data inflow
S.E CV, OT S.E Details, Time Slot Requests
Data outflow
CV Confirmation, Finalized Time Slots
8/8/2019 Software Development Project - Payroll System [Group Assignment]
28/146
Software Development Project Payroll System
Name
Lecturer
DescriptionLectures are handled by Lecturers.
Data inflow
List of S.E, Confirmation /Notification Reservation, Account Details
Data outflow
Check S.E, Reserve S.E, Cancel Reservation, Registration Details
Name
Student Employee
Description
The Students who works as employee in University.
Data inflow
Approved Time Slot Details, User account Details, OT Details,
Lecture Reservation Msg, Cancelation Details, Leave Approval and
Pay Slip.
Data outflow
S.E CV, Time Slot Request, OT Request, ReservationConfirmation/Notifications, Login Details, Leave Request,
8/8/2019 Software Development Project - Payroll System [Group Assignment]
29/146
Software Development Project Payroll System
Data Flows.
Name S.E Details
Description Student Employee Details
Origin/Source Student Employee Profile Data Store
Destination/Sink Student Employee Registration Handling Process
Data Structures S.E id+ CV+ Feedback
Name S.E Details
Description Student Employee Details
Origin/Source Student Employee Registration Handling Process
Destination/Sink Student Employee Profile Data Store
Data Structures S.E id+ CV+ Feedback+ Comments
Name S.E CV
Description Student Employees Curriculum Vitae
Origin/Source Student Employee Entity
Destination/Sink Student Employee Registration Handling Process
Data Structures S.E Name+ S.E id+ CV
Name S.E CV
Description Student Employees Curriculum Vitae
Origin/Source Student Employee Registration Handling Process
Destination/Sink Head Of Department Entity
Data Structures S.E Name+ S.E id+ CV
8/8/2019 Software Development Project - Payroll System [Group Assignment]
30/146
Software Development Project Payroll System
Name S.E CV Confirmation
Description Confirmation Details for selected CVs in S.Es
Origin/Source Head Of Department Entity
Destination/Sink Student Employee Registration Handling Process
Data Structures S.E Name+ S.E id+ Job Title+ Confirmation
Name User Account Details
Description User Account Details for new Student Employees
Origin/Source Student Employee Registration Handling Process
Destination/Sink Student Employee Entity
Data Structures S.E id +User Name+ Password
Name Time Slot Request
Description Requests are done by S.E to get Time Slots.
Origin/Source Student Employee Entity
Destination/Sink Time Slot Handling process
Data Structures S.E id+ Request Details
Name Time Slot Request
Description S.E Requests send to head Of Department.
Origin/Source Time Slot Handling process
Destination/Sink Head Of Department Entity
Data Structures S.E id+ Department id+ Request Details
Name Finalized Time Slot Requests
8/8/2019 Software Development Project - Payroll System [Group Assignment]
31/146
Software Development Project Payroll System
Description Finalized Time Slots by Head Of Department
Origin/Source Head Of Department Entity
Destination/Sink Time Slot Handling process
Data Structures S.E id+ Department id+ Time Slot Details
Name Approved Time Slot Request
Description Approved time Slots by HD to S.Es
Origin/Source Time Slot Handling process
Destination/Sink Student Employee Entity
Data Structures S.E id + Time Slot Details
Name Time Slot Details
Description Time Slot details, lecture Hrs conduct at University.
Origin/Source Time Slot Handling process
Destination/Sink Time Slot Schedule Data Store
Data Structures Date+ Department id+ Job id+ Time Slot Details
Name Time Slot Details
Description Available Time Slots in the System
Origin/Source Time Slot Schedule Data Store
Destination/Sink Time Slot Handling process
Data Structures Date+ Department id+ Job id+ Time Slot Details
Name OT Request
8/8/2019 Software Development Project - Payroll System [Group Assignment]
32/146
Software Development Project Payroll System
Description Requests are done by S.E to get OT Slots
Origin/Source Student Employee Entity
Destination/Sink Overtime Management process
Data Structures S.E id+ OT Request
Name OT S.E Details
Description S.E Requests send to head Of Department.
Origin/Source Overtime Management process
Destination/Sink Head Of Department Entity
Data Structures S.E id+ OT Details
Name Approved OT Details
Description Approved OT Hrs by HD to S.Es
Origin/Source Head Of Department Entity
Destination/Sink Overtime Management process
Data Structures S.E id+ Approved OT Details
Name OT Details
Description Approved OT Slots by HD to S.Es
Origin/Source Overtime Management process
Destination/Sink Student Employee Entity
Data Structures S.E id+ Approved OT Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
33/146
Software Development Project Payroll System
Name S.E OT Details
Description OT Details are Stored in OT Details Data Store
Origin/Source Overtime Management process
Destination/Sink OT Details Data Store
Data Structures S.E id+ Department id+ Approved OT Details
Name Check S.E
Description Check available Student Employee to reservation
Origin/Source Lecturer Entity
Destination/Sink Student Employee Reservation Handling process
Data Structures Lecturer id+ Date+ Time+ Job Title
Name Check S.E
Description Check available Student Employee to reservation
Origin/Source Student Employee Reservation Handling process
Destination/Sink Student Employee reservation Data Store
Data Structures Date+ Time+ Job Title
Name S.E Status
Description Status of available Student Employee to reservation
Origin/Source Student Employee reservation Data Store
Destination/Sink Student Employee Reservation Handling process
Data Structures Date+ Time+ Job Title+ S.E Details
Name List of S.E
8/8/2019 Software Development Project - Payroll System [Group Assignment]
34/146
Software Development Project Payroll System
Description List of available Student Employee to reservation
Origin/Source Student Employee Reservation Handling process
Destination/Sink Lecturer Entity
Data Structures Date+ Time+ Job Title+ S.E Details
Name Reserve S.E
Description Student Employee reserved by Lecturer
Origin/Source Lecturer Entity
Destination/Sink Student Employee Reservation Handling process
Data Structures Date+ Time+ Job Title+ S.E id
Name Lecture Reservation Message
Description Send reservation message to S.E
Origin/Source Student Employee Reservation Handling process
Destination/Sink Student Employee Entity
Data Structures Date+ Time+ Job Title+ Lecturer id
Name Reserve Confirmation/ Co-worker assignment
Description Reservation is Confirmed by S.E or assign another
employee by him
Origin/Source Student Employee Entity
Destination/Sink Student Employee Reservation Handling process
Data Structures S.E id+ Confirmation /Assignment Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
35/146
8/8/2019 Software Development Project - Payroll System [Group Assignment]
36/146
Software Development Project Payroll System
Description User Account Details for new Lecturers and updates
Origin/Source Lecturer Handling process
Destination/Sink Lecturer Entity
Data Structures Lecturer id +User Name+ Password
Name Login Details
Description Student Employee login Details
Origin/Source Student Employee Entity
Destination/Sink Student Employee Reservation Handling process
Data Structures S.E Name+ Job Title
Name Leave Request
Description Applying for leaves by student Employees
Origin/Source Student Employee Entity
Destination/Sink Leave Handling process
Data Structures S.E id+ Leave Details
Name Leave Request
Description Applied leaves send to the data store
Origin/Source Leave Handling process
Destination/Sink Leaves Data Store
Data Structures S.E id+ Leave Details
Name Leave Notification
8/8/2019 Software Development Project - Payroll System [Group Assignment]
37/146
Software Development Project Payroll System
Description Current Leave Status
Origin/Source Leaves Data Store
Destination/Sink Leave Handling process
Data Structures S.E id+ Leave Status
Name Leave Notification
Description Current Leave Status of Student Employees
Origin/Source Leave Handling process
Destination/Sink Head Of Department
Data Structures S.E id+ Leave Status
Name Leave Request
Description Applied for leaves by student Employees
Origin/Source Leave Handling process
Destination/Sink Head Of Department
Data Structures S.E id+ Leave Details
Name Leave Approval
Description Leaves are approved by Head Of Department
Origin/Source Head Of Department
Destination/Sink Leave Handling process
Data Structures S.E id+ Approval Details
Name Leave Approval
8/8/2019 Software Development Project - Payroll System [Group Assignment]
38/146
Software Development Project Payroll System
Description Approved leaves are send to S.E
Origin/Source Leave Handling process
Destination/Sink Student Employee Entity
Data Structures S.E id+ Approval Details
Name S.E Feedback
Description Student Employee Feedback to get quality of work
Origin/Source Head Of Department, Lecturer Entity
Destination/Sink Academic Administration Entity
Data Structures S.E id+ Job Title+ Feedback details
Name Modification Details
Description System configuration details/ Modification details
Origin/Source Academic Administration Entity
Destination/Sink System Modification process
Data Structures Modification Details
Name Modification Details
Description System configuration details/ Modification details
Origin/Source System Modification process
Destination/Sink System Details Data Store
Data Structures Modification Details
Name Worked Hrs
8/8/2019 Software Development Project - Payroll System [Group Assignment]
39/146
Software Development Project Payroll System
Description Worked Time Slots(Hrs) by Student Employee
Origin/Source Student Employee Reservation Handling process
Destination/Sink Time Sheet Data Store
Data Structures S.E id+ Date+ Time+ Worked Time Slot Details
Name Worked Hrs
Description Worked Time Slots (Hrs) by S.E as report.
Origin/Source Time Sheet Data Store
Destination/Sink Payroll Management Handling process
Data Structures S.E id+ Period+ Worked Time Slot Details
Name OT Details
Description Worked OT Slots(Hrs) by S.E
Origin/Source OT Details Data Base
Destination/Sink Payroll Management Handling process
Data Structures S.E id+ OT Slots
Name Pay Rate
Description Pay Rates for each Job Title
Origin/Source Pay Rates Of Employee Types Data Store
Destination/Sink Payroll Management Handling process
Data Structures Department id+ Job Title+ Pay Rates
Name Payments Data
8/8/2019 Software Development Project - Payroll System [Group Assignment]
40/146
Software Development Project Payroll System
Description Payment Details such as previous salary details
Origin/Source Payroll Data Store
Destination/Sink Payroll Management Handling process
Data Structures Department id+ Job Title+ S.E id
Name OT Pay
Description Paid OT Details
Origin/Source Payroll Management Handling process
Destination/Sink Payroll Data Store
Data Structures OT Time Slots+ S.E id+ Time+ Date
Name Total Hrs
Description Worked Time Slots (Normal+ OT) by S.E as report.
Origin/Source Payroll Management Handling process
Destination/Sink Payroll Data Store
Data Structures S.E id+ OT Hrs+ Worked Hrs
Name Total Pay
Description Payment Details as a report
Origin/Source Payroll Management Handling process
Destination/Sink Payroll Data Store
Data Structures S.E id+ OT Pay+ Normal Pay+ Total Pay+ Tax
Name Pay Slip
8/8/2019 Software Development Project - Payroll System [Group Assignment]
41/146
Software Development Project Payroll System
Description Finalized Payment Details
Origin/Source Payroll Management Handling process
Destination/Sink Student Employee Entity
Data Structures S.E id+ OT Pay+ Normal Pay+ Total Pay+ Tax
Name Lecture Approval
Description Confirmation Details for selected Lecturers
Origin/Source Academic Administration Entity
Destination/Sink Lecture Handling Process
Data Structures Lecturer Name+ L id+ Dep_id+ Confirmation
Name Account Details
Description User Account Details for new Lecturers
Origin/Source Lecture Handling Process
Destination/Sink User Profiles Data Store
Data Structures S.E id +User Name+ Password
Name Lecture Details
Description All Lecturer Details
Origin/Source User Profiles Data Store
Destination/Sink Lecture Handling Process
Data Structures Lecturer id+ Department id
Name S.E Rating
8/8/2019 Software Development Project - Payroll System [Group Assignment]
42/146
8/8/2019 Software Development Project - Payroll System [Group Assignment]
43/146
Software Development Project Payroll System
Data Stores
Name Student Employee Profiles
Description New records And Updated records of the S.E
Data Inflow S.E Details, S.E Rating
Data Outflow S.E Details
Data Structures CB Number, First Name, Last Name, Batch Code,
S.E id, Job Title, Degree Followed, Year of
Graduation, Civil Status
, Professional Qualification, Country, City, Address,
Home T.P. No, Mobile No, Fax No, E-mail,
Registration Details
Name Time Slot Schedule
Description Time Slot details, lecture Hrs conduct at University.
Data Inflow Time Slot Details
Data Outflow Time Slot Details
Data Structures Date+ Time+ Department id+ Job id+ Time Slots+
Lecture Hrs+ Reserved Hrs
Name OT Details
Description Approved OT Slots by HD to S.Es
Data Inflow S.E OT Details
Data Outflow S.E OT Details
Data Structures S.E id+ OT Slots+ OT Rates+ Lecturer id
8/8/2019 Software Development Project - Payroll System [Group Assignment]
44/146
8/8/2019 Software Development Project - Payroll System [Group Assignment]
45/146
Software Development Project Payroll System
Name Student Employee Reservation
Description All details about available S.Es in period
Data Inflow Check S.E
Data Outflow S.E Status
Data Structures Time+ Date+ S.E id+ Department id+ Job Title
Name Leaves
Description Student Employee leaves
Data Inflow Leave Request
Data Outflow Leave Notification
Data Structures S.E id+ Job title+ Department id, Leave type, Leave
details
Name System Details
Description System Modification/Updates
Data Inflow Modification Details
Data Outflow Modification Details
Data Structures Department id+ Job title+ Configuration details
Process
Name Process1.0 Student Employee Registration Handling
Description The process through which the new student
Employee can register to the system.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
46/146
Software Development Project Payroll System
Data Inflow S.E Details, S.E CV, S.E CV Confirmation
Data Outflow S.E Details, User Account Details, S.E CV
Process Description Begin
Do
Read S.Es details
Sort details
Record personal information in S.Es
Information File
Send login details to the S.E for updating their
profiles
End.
Name Process 2.0 Time Slot Handling
Description The process through System can handle time slots
and users can find the available time slots.
Data Inflow Time Slot Request, Time Slot Details, Finalized
Time Slots
Data Outflow Time Slot Request, Time Slot Details, Approved
Time Slot Details
Process Description Begin
Do
Read S.E Request
Read Time Slot Details
Send Request
8/8/2019 Software Development Project - Payroll System [Group Assignment]
47/146
Software Development Project Payroll System
Record Time Slots
Send Slot details to S.E for updating their records
End.
Name Process 3.0 Overtime Management
Description The process through System can handle Overtime
slots and users can find the available Overtime slots.
Data Inflow OT request, Approved OT details
Data Outflow S.E OT details, OT S.E details, OT details
Process Description Do
Read OT Request
Read S.E OT Details
Send Requests for approval
Record Overtime Slots
Send OT details to S.E for updating their slots
End.
Name Process 4.0 Student Employee Feedback Handling
Description
Theprocess through which the Academic
Administration and head of Department can find the
student employees previous worked details.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
48/146
Software Development Project Payroll System
Data Inflow S.E Feedback,
Data Outflow S.E Rating, S.E Rating, S.E Rating
Process Description Begin
Do
Read S.E Feedback
Send Feedback to the Academic Administration
Send Feedback to the Head of Department
Send Feedback to the Data Store
End
Name Process 5.0 Lecturer Handling
Description The process through which the new Lecturer can
register, update their profiles to the system.
Data Inflow Registration details, Lecture details, Approval
Data Outflow Account details, Account details
Process Description Begin
Do
Read Lecturers details
Sort details
Record personal information in Lecturers profile
Send login details to the Lecturers for updating
their records
End.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
49/146
Software Development Project Payroll System
Name Process 6.0 Payroll Management Handling
Description The process through System can handle Payments
and users can send comments about their pay slip.
Data Inflow Pat rate, OT details, Worked hrs, Payments data
Data Outflow OT pay, Total pay, Total hrs, Pay slip
Process Description Begin
Do
Read Pay rate
Read S.E OT details
Read worked hrs
Read payment details
Record personal information in Lecturers profile
Record Overtime Slots
Send OT details to S.E for updating their slots
End.
Name Process7.0 Student Employee Reservation Handling
Description Theprocess through which the Lecturers find list of
available S.E and can reserve them.
Data Inflow Check S.E, Reserve S.E, Cancel reservation, Login
details, Reserve confirmation, S.E status
Data Outflow List of S.E, Confirmation/Notification Reservation,
Worked hrs, Check S.E, Cancelation details, Lecture
reservation message
Process Description Begin
8/8/2019 Software Development Project - Payroll System [Group Assignment]
50/146
Software Development Project Payroll System
Do
Read list of S.E
Reserve S.E through the list
Send message to the S.E
Send Confirmation details to Lecturer
Send cancelation details
Record cancelation details
Record lecture information in S.Es profile
Send working details to Head of Department
End.
Name Process 8.0 Leave Handling
Description The process through System can handle Leaves and
S.E get to know about details
Data Inflow Leave request, Leave notification, Leave approval
Data Outflow Leave request, Leave notification, Leave approval
Process Description Begin
Do
Read leave request
Send request to Leave data store
Read leave status
Send request to Head of Department
Leave approval
Send Feedback
Update the data store
8/8/2019 Software Development Project - Payroll System [Group Assignment]
51/146
Software Development Project Payroll System
End
Name Process 9.0 System Modification Handling
Description The process through System can modify the system
and set up configuration
Data Inflow Modification details
Data Outflow Modification details
Process Description Begin
Do
Read Modification details
Sort details
Record details in data stores
Update the system configuration
End.
Level 1
Processes
Name Process 1.1 CV Handling-New Employee
Description The process through System can handle the
registration details of new employee
Data Inflow S.E CV, CV Approval
Data Outflow S.E CV, CV Approval, Approved CV
Process Description Begin
8/8/2019 Software Development Project - Payroll System [Group Assignment]
52/146
Software Development Project Payroll System
Do
Read S.Es CV
CV approved by Head of Department
Record information in S.Es profile
Send approved CV to S.E
End.
Name Process 1.2 S.E Id Handling
Description The process through System can issue id to S.E
Data Inflow Approved CV
Data Outflow S.E details, Username+ Password
Process Description Begin
Do
Read approved S.Es CV
Record information in S.Es profile
Send Login details to S.E
End.
Name Process 1.3 S.E Profile Handling
Description The process through system can maintain the S.E
profiles
Data Inflow Login request, Requests to Academic
Administration/ Head of Department/ Lecturer,
Update profile details, Username/ Password
Data Outflow S.E comments/ Messages, S.E details, Updated S.E
details
Process Description Begin
Do
8/8/2019 Software Development Project - Payroll System [Group Assignment]
53/146
Software Development Project Payroll System
Read Login request
Send S.E Messages to each entities
Update S.E Profiles
End.
Name Process 2.1 Time Slot Management
Description The process through System can handle time slots.
Data Inflow Approved time slots, Time slot schedule
Data Outflow Approved time slots, Time slot schedule
Process Description Begin
Do
Read Time Slot Details
Record Time Slot Schedule
Send Approved Schedule
End.
Name Process 2.2 S.E Time Slot Handling
Description The process through users (S.E) can find the
available time slots.
Data Inflow Scheduled time slots
Data Outflow Approved time slots
Process Description Begin
Do
Read approved time slots
Record time slots
Send Scheduled time slots
End.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
54/146
Software Development Project Payroll System
Name Process 2.3 Generating Reservation Order
Description Generating Reservation order using random method
to reserve new time schedule
Data Inflow Time slot details, Scheduled time slots, Reservationrequest
Data Outflow Random position, S.E time slots, Approved time
slots
Process Description Begin
Do
Read Time slot details
Read reservation request
Generate random position
Send position to employees
Record time slots
End.
Name Process 3.1 OT Management
Description The process through System can handle Overtime
slots and users can find the available Overtime slots.
Data Inflow Determined OT details
Data Outflow OT details, S.E OT details, Determined OT details
Process Description Begin
Do
Read determined OT details
Read S.E OT Details
Record Overtime Slots
Send OT details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
55/146
Software Development Project Payroll System
End.
Name Process 3.2 OT Handling
Description The process through System can handle Overtime
slots and users can find the available Overtime slots.
Data Inflow OT approval, S.E OT request, OT competition detail
Data Outflow Approved OT shift, OT competition detail, S.E OT
request
Process Description Begin
Do
Read OT Request
Send OT requests to Head of Department
Read OT approval
Send OT details to S.E for updating their slots
Read S.E OT competition details
Record Overtime Slots
End.
Name Process 4.1 Student Employee Feedback Handling
Description Theprocess through which the Academic
Administration and head of Department can find the
student employees previous worked details.
Data Inflow S.E Feedback, Rating, OT details, Requests,
Working Hrs, S.E details
Data Outflow S.E Rating, S.E comments, S.E details, OT details,
S.E Feedback
Process Description Begin
Do
Read S.E Feedback
8/8/2019 Software Development Project - Payroll System [Group Assignment]
56/146
Software Development Project Payroll System
Send Feedback to the Academic Administration
Send Feedback to the Head of Department
Send Feedback to the Data Store
Record OT details
Send S.E OT details to Head of Department
End
Name Process 6.1 Payroll Management
Description The process through System can handle Payments.
Data Inflow Pay Rates
Data Outflow Pay Rates
Process Description Begin
Do
Read Pay rate
Read payment details
Send Payment details
End.
Name Process 6.2 Time Handling
Description The process through System will calculating
Payments using worked hrs
Data Inflow OT Rates, OT hrs, Time in/ Time out
Data Outflow OT Rates, Pay Rates, Working hrs
Process Description Begin
Do
Read Pay rate
Read S.E OT details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
57/146
Software Development Project Payroll System
Read worked hrs
Read worked in/ out details
Record Overtime Slots/ time slots
End.
Name Process 6.3 Pay Slip Handling
Description The process through System can handle Pay Slips
with employee.
Data Inflow Pay Rates, Working Hrs, Pay Rates, S.E details,
Working details, Approved Pay Slip
Data Outflow Pay Slip, Pay Slip
Process Description Begin
Do
Read Pay rate
Read S.E OT details
Read worked hrs
Read approved Pay Slip
Record Payment details in data store
Send Pay Slip to S.E and update system
End.
Name Process 7.1 Check S.E Availability Status
Description Theprocess through which the Lecturers find list of
available S.E.
Data Inflow Check S.E, Approval, Co-worker assignment, S.E
details
Data Outflow List of S.E, Check S.E
Process Description Begin
8/8/2019 Software Development Project - Payroll System [Group Assignment]
58/146
Software Development Project Payroll System
Do
Read Lecturer request
Send Request to the data store
List down the available S.E
Send details to Lecturer
End.
Name Process 7.2 Reservation Handling
Description Theprocess through which the Lecturers can
reserve Student Employee
Data Inflow Reserve S.E, Approved co-worker details,
Reservation Confirmation/ Co-worker assignment
Data Outflow Approved S.E details, Reservation Confirmation/
Co-worker assignment, S.E reservation, Slot
reservation
Process Description Begin
Do
Read Lecturer reservation
Send message to the S.E
Send Confirmation details to Lecturer
Record lecture information in S.Es profile
Send working details to Head of Department
End.
Name Process 7.3 Cancel Reservation Handling
Description Theprocess through which the Lecturers can cancel
the reservation
Data Inflow Cancelation Details
Data Outflow Cancelation Details
8/8/2019 Software Development Project - Payroll System [Group Assignment]
59/146
Software Development Project Payroll System
Process Description Begin
Do
Send cancelation details
Record cancelation details
Send message to the S.E
Send Confirmation details to Lecturer
Record lecture information in S.Es profile
Send cancelation details to Head of Department
End.
Name Process 8.1 S.E Leave Handling
Description The process through System can handle Leaves and
S.E get to know about leave status
Data Inflow Determined Leaves, Leave Status, Confirmation
note, Leave request, S.E Leave request
Data Outflow New leave details to update, Determined leave
details, Leave request, Approval leave
Process Description Begin
Do
Read leave request
Send request to Leave data store
Read leave status
Send request to Head of Department
Leave approval
Send Feedback
Update the Leave data store
8/8/2019 Software Development Project - Payroll System [Group Assignment]
60/146
Software Development Project Payroll System
End
Name Process 8.2 Check Leave Availability
Description The process through System can handle Leaves
Data Inflow Leave request, Total leaves
Data Outflow Leave status, Previous leave details
Process Description Begin
Do
Read leave request
Send request to Leave data store
Read leave status
Send Leave details to Leave Handling process
End
8/8/2019 Software Development Project - Payroll System [Group Assignment]
61/146
Software Development Project Payroll System
Entity Relationship Diagram
User
PK User_id
Username
Password
Type
First_name
Last_name
Address
Contact_no
Date_joined
Dept_id
FK1 Job_Title
RatingFK2 Dept_name
Departments
PK Dept_name
Total_available
Total_current
Job_Types
PK Job_title
Hourly_rate
System-configuration
Ot_rate
Max_work_hours
Book_allowance
Paye
Paye_selection_amount
Notifications
PK Not_id
FK1 User_id
From_id
date
notification
Reservations
PK Res_id
FK2 Lec_id
FK1 Slot_id
Lec_feedback
work_completed
Timesheets
PK Slot_id
Time_in
Time_out
Report
Std_id
Date
Dept_id
Job_title
Status
Coworker_id
RemarksOT_Records
PK OT_rec_id
FK1 Std_id
Date
Time_in
Time_out
Date_requested
Lec_feedback
Approved_by
Payroll_records
PK Pay_id
FK1 Std_id
Pay
OT_pay
tot_hours
Deducted_PAYE Allowances
PK,FK1 Std_id
Period
Allowances
Leaves
PK,FK1 Std_id
Type
Requested_date
Status
has
sends
has
belongs
enters
sends
enters
has
has
8/8/2019 Software Development Project - Payroll System [Group Assignment]
62/146
Software Development Project Payroll System
Normalization
Un normalized form
Users : User_id, Username, Password, Type, First_name, Last_name, Address, E-mail,
Contact_no, Date_joined , Date_id
Head of Department: HOD_id , Dept_id
Departments : Dept_id , dept_name
Studentemployees : Std_id , Job_title
Job_Types : Job_title, Hourlyrate
Department_Employments : Dept_id , Job_title, total_available , Total_current
System_confugration : Ot_rate , Max_work_hours, book_allowed, Paye, Paye_selection
Notification : Not_id,User_id,From_id,Date, Notification
Reservation :Res_id , Lec_id ,Slot_id , Lec_feed_back
Timesheets :Slot_id, Time_in,Time_out,Report
Timeslots :Slot_id , Std_id, Slot_code , Date ,Job_title, Coworker_id , Remarks
Ot_records : Ot_rec_id, Std_id, date, Time_in, Time_out , Date_requested, Lec_feedback,
Approved_by
Payroll_records : Pay_id , Std_id , Month , Pay , Ot_pay , Tot_hours , Dedicated_paye
Allowance: Std_id , Year, Allowance
Leaves : Std_id,Type,Requested_date, Status , Leave_start , Leave_end
8/8/2019 Software Development Project - Payroll System [Group Assignment]
63/146
8/8/2019 Software Development Project - Payroll System [Group Assignment]
64/146
Software Development Project Payroll System
2 Normal form (2NF)
Users : User_id , Username ,Password ,Type ,First_name ,Last_name ,Address ,Email
,Contact_No ,Date_joined , Date_id
Departments : Field Name , Dept_id , Dept_name
Department_employments: Dept_id , Job_title , Total_available , Total_current
Job_types : Job_title , hourly_rate
Student_employees : Std_id , Job_ title , Rating
Notification : Not_id,User_id,From_id,Date, Notification
Reservation :Res_id , Lec_id ,Slot_code , Lec_feed_back, Classm Work_completed,
Feedback, Notes
Timesheets: Slot_id, Res_id, Time_in,Time_out,Report, Workdone, Co_Worker_id
Timeslots: Slot_code, Year, Month, Std_id
System_Configuration : OT_rate, Max_work_hours, Book_allowed, Paye, Paye_selection
Ot_records : OT_rec_id, Std_id, Date, Time_in, Time_out, Date_requested, Lec_feedback,
Approved_by
Payroll_records :Pay_id, Std_id, PeriodPay, OT_pay, Tot_hours, Deducted_paye
Allowance : Std_id, Date, Allowance
Leaves : Std_id, Type, Requested_date, Status, Leave_start, Leave_end
8/8/2019 Software Development Project - Payroll System [Group Assignment]
65/146
Software Development Project Payroll System
3rd Normal form(3NF)
Users : Username,Password, Type, First_name, Last_name, Address, Email, Intercom_no,
Tel_No, Mobile_no, Date_joined, Dept_id
Departments :Field Name, Dept_id, Dept_name
Department_Employments :Dept_id, Job_title_code, Total_available, Total_current
Job_Types: Job_title_code, Job_title, Hourly_rate
Student_Employees: Std_id, Job_title, Rating
Notification: Not_id, User_id. From_id, Date, Notification, Status
Messages: Msg_id, To_id, From_id, Date, Message, Status
Reservations: Resv_id, Lec_id, Reserved_date, Slot_code, Std_id, Class, Due_date,Description, Work_completed, Feedback
Timesheet: id, Resv_id, Time_in, Time_out, Work_done, Coworker_id, Locked, Status
Timeslots: Std_id, Slot_code, Year, Month, Reserving_Order, Active
Timeslot_Change_requests: Std_id, New_Slot_code, Requested_date, Status
System_Configuration: OT_rate, Max_work_hours, Book_allowance, Paye,
Paye_selection
OT_Records: OT_rec_id, Std_id, Date, Class, Start_time, End_time, Date_requested,
Lec_feedback, Status
Payroll_records: Pay_id, Std_id, Period, OT_pay, Tot_hours
Earnings: Pay_id, Earning
Deducted_PAYE: Pay_id, Deducted_paye
Allowance: Std_id, Date, Allowance
Leaves: Std_id, Type, Requested_date, Status, Leave_start, Leave_end
8/8/2019 Software Development Project - Payroll System [Group Assignment]
66/146
Software Development Project Payroll System
Table Structure
Table: Users
Field Name Type Length Constraints Description
User_id (PK) INTEGER 10 10
characters
limited,
required
field
User ids all
types of
users in the
system
Username TEXT 10 10
characters
limited,
required
field
Usernames
Password TEXT 10 10
characters
limited,
required
field
Passwords
Type TEXT 1 1 character
limited
required
field
Type
(A=admin,
H=HOD,
L=Lecturer,
S=Student)
First_name TEXT 20 20
characters
limited
required
field
First name
Last_name TEXT 20 20
characters
limited
required
field
Last name
Address TEXT 50 50
characters
limited
Address
8/8/2019 Software Development Project - Payroll System [Group Assignment]
67/146
Software Development Project Payroll System
Email TEXT 20 20
characters
limited
Intercom_no INTEGER 5 5 characters
limited
intercome_N
o
Tel_No INTEGER 10 10
characters
limited
required
field
Contact_No
Mobile_no INTEGER 10 10
characters
limited
mobile_No
Date_joined DATE 10 10
characters
limited
required
field
Date_joined,
added when
user profile
created
Dept_id (FK) INTEGER 10 20
characters
limited
required
field
Dept_id
Table: Departments
Field Name Type Length Constraints Description
Dept_id(PK) INTEGER 10 10 characters
limited
required field
Dept_id
Dept_name INTEGER 15 15 characters
limited
required field
Dept_name
8/8/2019 Software Development Project - Payroll System [Group Assignment]
68/146
Software Development Project Payroll System
Table: Department_Employments
Field Name Type Length Constraints Description
Dept_id(PK) INTEGER 10 10
characters
limited
required
field
Dept_id
Job_title_code(P
K,FK)
TEXT 2 2characters
limited
required
field
TA=Tech.
assistant, LA=lab
assistant,
TT=tutor,RA=res
earch assistant
Total_available INTEGER 5 5 characters
limited
required
field
Total_available
Total_current INTEGER 5 5 characters
limited
required
field
Total_current
employements
Table : Job_Types
Field Name Type Length Constraints Description
Job_title_code
(PK)
TEXT 2 2characters
limited
required field
Abbreviations:
TA=Tech.
assistant, LA=lab
assistant,
TT=tutor,RA=res
earch assistant
Job_title(PK) TEXT 20 20characters
limited
required field
Tech. assistant,Lab assistant etc.
Hourly_rate INTEGER 5 5 characters
limited
Hourly_rate
8/8/2019 Software Development Project - Payroll System [Group Assignment]
69/146
Software Development Project Payroll System
required fieldTable: Student_Employees
Field Name Type Length Constraints Description
Std_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Std_id
Job_title(FK) TEXT 20 20 characters
limited
required field
Job_title
Rating INTEGER 2 2 characters
limited
required field
Rating:
increased or
deducted by
lecturers upon
studentsperformance.
Using this
students can
be ranked.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
70/146
Software Development Project Payroll System
Table: Reservations
Table: Notification
Field Name Type Length Constraints Description
Not_id(PK) INTEGER 10 10 characterslimited
required field
Notification id
User_id(FK) INTEGER 10 10 characters
limited
required field
User_id
From_id(FK) INTEGER 10 10 characters
limited
From_id( pers
on sending
the
notification).
Left blank if
auto sent
Date DATE 10 10 characters
limited
required field
Date
Notification TEXT 35 35 characters
limited
required field
Notification
Status INTEGER 1 1 characters
limited
required field
Used to check
if message is
viewed
Table: Messages
Field Name Type Length Constraints Description
Msg_id(PK) INTEGER 10 10 characters
limited
required field
message id
To_id(FK) INTEGER 10 10 characters
limited
required field
receiver
From_id(FK) INTEGER 10 10 characterslimited
required field
sender
Date DATE 10 10 characters
limited
required field
Date
Message TEXT 35 35 characters
limited
required field
Message
Status INTEGER 1 1 characters
limited
required field
Used to check
if message is
viewed
8/8/2019 Software Development Project - Payroll System [Group Assignment]
71/146
Software Development Project Payroll System
Field Name Type Length Constraints Description
Resv_id(PK) INTEGER 10 10 characters
limited
required field
Reservation id
auto
generated
Lec_id(FK) INTEGER 10 10 characters
limited
required field
Lecturer who
does
reservation
Reserved_date INTEGER 10 10 characters
limited
required field
Date
reservation
added
Slot_code(FK) TEXT 15 15 characters
limited
required field
Slot_code as
defined in
Timeslots table
Std_id(FK) TEXT 15 15 characters
limited
required field
Std_id
Class TEXT 5 5 characters
limited
required field
Class
Due_date DATE 10 10 characters
limited
required field
Due_date
Description TEXT 35 35 characters
limited
Description
about what
needs to be
done.
Work_complet
ed
INTEGER 1 1 characters
limited
required field
Work_complet
ed
Feedback TEXT 35 35 characters
limited
Feedback
8/8/2019 Software Development Project - Payroll System [Group Assignment]
72/146
Software Development Project Payroll System
8/8/2019 Software Development Project - Payroll System [Group Assignment]
73/146
Software Development Project Payroll System
Table: Timesheet
Field Name Type Length Constraints Description
id(PK) INTEGER 10 10 characters
limited
required field
Auto
generated
when user
accepts thejob and starts
work(record
time-in)
Resv_id(FK) INTEGER 10 10 characters
limited
required field
Reservation id
set when
lecturer
reserves
Time_in FLOAT 5 5 characters
limited
required field
work started
time
Time_out FLOAT 5 5 characters
limited
required field
work
completed
time
Work_done TEXT 35 35 characters
limited
Description
about task
completed.
Coworker_id(F
K)
INTEGER 10 10 characters
limited
Set when a
coworker is
assigned
Locked INTEGER 1 1 characters
limited
required field,
Default value
0
Set to 1 when
work started,
set to 0 when
user ends the
session.
Status INTEGER 1 1 characters
limited
required field
Set to 1 when
work
completed,
else default is
0
8/8/2019 Software Development Project - Payroll System [Group Assignment]
74/146
Software Development Project Payroll System
Table: Timeslots
Field Name Type Length Constraints Description
Std_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Std_id
Slot_code(PK
)
INTEGER 10 10 characters
limited
required field
Code
representing
25 timeslots
of each week.
(ie. MO1 is
slot one of
Monday)
Year INTEGER 5 5 characterslimited
required field
Year
Month INTEGER 2 2 characters
limited
required field
Month
Reserving_Ord
er
INTEGER 1 1 characters
limited
required field
Reserving
order (for all
users of a with
same dept,job
title)
generated
when the first
user of a job
title, of a
department
logs in to
reserve slots
for the nextmonth. New
records are
added for
other students
with active 0
Active INTEGER 1 1 characters
limited
Set to 1 when
current plan is
8/8/2019 Software Development Project - Payroll System [Group Assignment]
75/146
Software Development Project Payroll System
required field active, set to
0 when new
plan entered
for a new
month
Table: Timeslot_Change_requests
Field Name Type Length Constraints Description
Std_id(PK,FK) INTEGER 10 10 characters
limited
required field
Std_id
New_Slot_cod
e(PK)
INTEGER 10 10 characters
limited
required field
Code
representing
25 timeslots
of each week.
(ie. MO1 is
slot one of
Monday)
Requested_date DATE 5 5 characters
limited
required field
DATE
requested
Status INTEGER 1 1 characterslimited
required field
Records ifrequest is
approved or
not
Table: System_Configuration
Field Name Type Length Constraints Description
OT_rate FLOAT 5 5 characters
limited
required field
To hold the
OT rate when
calculating OT
pay(i.e hourly
rate * 1.5)
Max_work_hou
rs
INTEGER 5 5 characters
limited
i.e 15 Hrs.
8/8/2019 Software Development Project - Payroll System [Group Assignment]
76/146
Software Development Project Payroll System
required field
Book_allowanc
e
INTEGER 5 5 characters
limited
required field
i.e 50%
Paye INTEGER 5 5 characterslimited
required field
i.e 8.7%
Paye_selection INTEGER 5 5 characters
limited
required field
i.e 110
pounds per
week
Table: OT_RecordsField Name Type Length Constraints Description
OT_rec_id(PK
)
INTEGER 10 10 characters
limited
required field
Auto
generated
Std_id(FK) INTEGER 10 10 characters
limited
required field
Std_id
Date DATE 5 5 characters
limited
required field
Due date for
OT
Class TEXT 5 5 characters
limited
required field
Working place
Start_time INTEGER 5 5 characters
limited
required field
Start_time
End_time INTEGER 5 5 characters
limited
required field
End_time
Date_requeste DATE 5 5 characters Date when OT
8/8/2019 Software Development Project - Payroll System [Group Assignment]
77/146
Software Development Project Payroll System
d limited
required field
was requested
for approval
Lec_feedback TEXT 15 15 characters
limited
required field
Lec_feedback
after work
completed
Status INTEGER 1 1 characters
limited
required field
Set to 1 when
work
completed,
else default is
0
Table: Payroll_records
Field Name Type Length Constraints Description
Pay_id(PK) INTEGER 10 10 characters
limited
required field
Auto
generated
Std_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Student id
who got paid
Period DATE 5 5 characterslimited
required field
Month
OT_pay FLOAT 5 5 characters
limited
required field
Total OT
earning
Tot_hours INTEGER 5 5 characters
limited
required field
Tot_hours
worked
8/8/2019 Software Development Project - Payroll System [Group Assignment]
78/146
Software Development Project Payroll System
Table: Deducted_PAYE
Field Name Type Length Constraints Description
Pay_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Pay _id
Deducted_pay
e
FLOAT 5 5 characters
limited
required field
Deducted
amount from
the Earning
Table: Allowance
Field Name Type Length Constraints Description
Std_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Std_id
Date DATE 5 5 characterslimited
required field
Date
Allowance INTEGER 5 5 characters
limited
required field
Allowance
Table: Earnings
Field Name Type Length Constraints Description
Pay_id(PK,FK
)
INTEGER 10 10 characters
limited
required field
Pay _id
Earning FLOAT 5 5 characters
limited
required field
Earning(for
hours worked)
8/8/2019 Software Development Project - Payroll System [Group Assignment]
79/146
Software Development Project Payroll System
Table: Leaves
Field Name Type Length Constraints Description
Std_id(PK,FK) INTEGER 10 10 characters
limited
required field
Std_id
Type TEXT 10 10 characters
limited
required field
Type(a=annua
l, c =casual)
Requested_dat
e
DATE 5 5 characters
limited
required field
Date
requested for
Leave
Status INTEGER 1 1 characters
limited
required field
Status
Leave_start DATE 5 5 characters
limited
required field
Leave_start
date
Leave_end DATE 5 5 characters
limited
required field
Leave_end
start
8/8/2019 Software Development Project - Payroll System [Group Assignment]
80/146
Software Development Project Payroll System
Screen Design
SCREEN DESIGN
Login Form
START
IF textbox txtUsername is Clicked THEN
TxtUsername =
ELSE IF textbox txtPassword is Clicked THEN
txtPassword =
END IF
IF textbox txtUsername NOT AND textbox txtPassword NOT
THEN
SELECT username, password, user type FROM table Users WHERE
username = txtusername AND password = txtpassword
IF rows found THEN
IF user type = Admin
LOAD MDIAdmin form
ELSE IF user type = HOD
LOAD MDIHOD form
8/8/2019 Software Development Project - Payroll System [Group Assignment]
81/146
Software Development Project Payroll System
ELSE IF user type = Lecturer
LOAD MDILecturer form
ELSE IF user type = Student
LOAD MDIStudent form
END IF
ELSE
DISPLAY error Invalid Username or passwordEND IF
ELSE
DISPLAY error Username or Password cannot be blank!
END IF
IF button Forgot your password is Clicked THEN
READ security question, answer
IF security question AND answer are true
DISPLAY temporary password
End if
END IF
END
Test Plan
8/8/2019 Software Development Project - Payroll System [Group Assignment]
82/146
Software Development Project Payroll System
Tes
t
Cas
e
Test
Descriptio
n
Test Data/Test
Actions
Expected Value Actu
al
Value
1 Login Testing Correct Username
and wrong password
Error Message
Wrong Password
2 Login Testing Wrong Username and
correct password
Error Message
Invalid Username
3 Login Testing Correct Username
correct password
Successful login
4 Login Testing Click forgot your
password
Msgbox Enter your
Username &
Security Question
5 Login Testing Click Login button If Username+
Password correct
Login to the Users
profile
Else
Error message
8/8/2019 Software Development Project - Payroll System [Group Assignment]
83/146
Software Development Project Payroll System
Administrator
START
ON FORM LOAD load welcome into MDIAdmin
IF button HOD is clicked THEN
LOAD form frmHOD into MDIAdmin
END IF
IF button Lecturer is clicked THEN
LOAD form frmLecturer into MDIAdmin
END IF
IF button Student is clicked THEN
LOAD form frmStudent into MDIAdmin
END IFIF button Departments is clicked THEN
LOAD form frmDepartments into MDIAdmin
END IF
IF button Messaging is clicked THEN
LOAD form frmMessaging into MDIAdmin
END IF
IF button Feedback is clicked THEN
LOAD form frmFeedback into MDIAdmin
8/8/2019 Software Development Project - Payroll System [Group Assignment]
84/146
Software Development Project Payroll System
END IF
IF button Notifications is clicked THEN
LOAD form frmNotifications into MDIAdmin
END IF
IF menu item Logout is clicked THEN
End current session
LOAD login formEND IF
END
Test Plan
8/8/2019 Software Development Project - Payroll System [Group Assignment]
85/146
Software Development Project Payroll System
Tes
t
Cas
e
Test
Descriptio
n
Test Data/Test
Actions
Expected Value Actu
al
Value
1 Check Button
Click
Click every button
and check the result
After button click
goes to the relevant
form with out errors
2 Check HOD Click HOD Goes to the HOD
form
3 Check
Messaging
Click Messaging Goes to the Message
form and it has new,inbox and sent
functions
4 Check
Feedback
Click Feedback After click goes to
the feedback form
and can view the
rating
5 Validity of
Search by ID
or Name
Enter pula and
press Search button
Accept, Show details
6 Validity of
Search by ID
or Name
Enter 003472 and
press Search button
Accept, Show details
7 Check Help Click Help Load in to the help
forms and login to
the university official
site
8 Check LogOut
Click Log Out Log Out from theUser account
9 Check Colour
change
Form Load event Back ground colour
and Hide some
group boxes
10 Check Screen
size
customise
Form Load event Screen size
customise to the
monitor size
8/8/2019 Software Development Project - Payroll System [Group Assignment]
86/146
Software Development Project Payroll System
Administrator -> HOD -> Add New
START
READ first name, last name, address, contact details, username,
password
IF first name, last name, address, contact details, username, password
NOT THEN
IF username NOT FOUND on users table
INSERT first name, last name, department, address, contact
details, username into table users with the type HOD
ELSE
DISPLAY error Username already found
END IF
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
87/146
Software Development Project Payroll System
Administrator -> HOD -> Edit
START
LOAD HOD profiles into Datagridview
IF item selected on Datagridview AND button Edit is Clicked THEN
DISPLAY HOD details in textboxes
END IF
IF button Save is Clicked THEN
READ first name, last name, address, contact details, username,
password
UPDATE table users
DISPLAY message Profile UpdatedEND IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
88/146
Software Development Project Payroll System
Administrator -> Lecturer -> Add New
START
READ first name, last name, address, contact details, username,password
IF first name, last name, address, contact details, username, password
NOT THEN
IF username NOT FOUND on users table
INSERT first name, last name, department, address, contact
details, username into table users with the type Lecturer
ELSE
DISPLAY error Username already found
END IF
END IFEND
8/8/2019 Software Development Project - Payroll System [Group Assignment]
89/146
Software Development Project Payroll System
Administrator -> Lecturer -> Edit
START
LOAD Lecturer profiles into Datagridview
IF item selected on Datagridview AND button Edit is Clicked THEN
DISPLAY Lecturer details in textboxes
END IF
IF button Save is Clicked THEN
READ first name, last name, address, contact details, username,
password
UPDATE table users
DISPLAY message Profile UpdatedEND IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
90/146
Software Development Project Payroll System
Administrator -> Student -> Add new
START
IF combo item job title AND department are selected THENDISPLAY job title description
END IF
IF button timeslot is clicked THEN
INCREMENT tot hours
END IF
IF tot hours >= 15 THEN
DISPLAY Maximum hours 15 allowed
END IF
READ first name, last name, address, contact details, username,
password, timeslot
IF first name, last name, address, contact details, username, password,
NOT AND tot hours
8/8/2019 Software Development Project - Payroll System [Group Assignment]
91/146
Software Development Project Payroll System
ELSE
DISPLAY error Username already found
DISPLAY error Max hours allowed is 15
END IF
END IF
END
Administrator -> Student -> Edit
START
LOAD Student profiles into Datagridview
IF item selected on Datagridview AND button Edit is Clicked THEN
DISPLAY Student details in textboxes
END IF
IF button Save is Clicked THEN
READ first name, last name, address, contact details, username,
password
8/8/2019 Software Development Project - Payroll System [Group Assignment]
92/146
Software Development Project Payroll System
UPDATE table users
DISPLAY message Profile Updated
END IF
END
Administrator -> Departments -> Add new
START
IF button Add is clicked THEN
READ Dept. Name, Dept. ID, Dept. Description, HOD Name, Image
INSERT new department into table Departments
Upload new department image
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
93/146
Software Development Project Payroll System
Administrator -> Messaging -> Inbox
START
ON FORM LOAD load unread messages into datagridviewIF button View is clicked THEN
DISPLAY full message
END IF
IF button Delete is clicked THEN
DISPLAY Are you sure you want to Delete this message?
IF yes THEN
Delete selected message
END IF
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
94/146
Software Development Project Payroll System
Administrator -> Messaging -> New
START
IF textbox To NOT AND textbox Title NOT AND textboxMessage NOT THEN
READ To,Title, Message
INSERT Title, Message, From, To into table messages
ELSE
DISPLAY error Please fill important fields!
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
95/146
Software Development Project Payroll System
Administrator -> Messaging -> Sent
START
ON FORM LOAD load sent messages into datagridviewIF button View is clicked THEN
DISPLAY full message
END IF
IF button Delete is clicked THEN
DISPLAY Are you sure you want to Delete this message?
IF yes THEN
Delete selected message
END IF
END IF
END
Test Plan
8/8/2019 Software Development Project - Payroll System [Group Assignment]
96/146
Software Development Project Payroll System
Tes
t
Cas
e
Test
Descriptio
n
Test Data/Test
Actions
Expected Value Actu
al
Valu
1 Check Tab
pages
Click new Tab Show Messaging
interface with group
boxes
2 Check Tab
pages
Click inbox Tab Show Messaging
interface with
textboxes, data grid
view & group boxes
3 Check new
messages
Send Message
without destination Error Message No
receptionists
8/8/2019 Software Development Project - Payroll System [Group Assignment]
97/146
Software Development Project Payroll System
Administrator -> Feedback -> New Feedbacks
START
ON FORM LOAD load unread feedbacks into datagridview
IF button View is clicked THEN
DISPLAY full feedback, DISPLAY Add feedback textbox
END IF
IF button Delete All is clicked THEN
DISPLAY Are you sure you want to Delete ?
IF yes THEN
Delete all feedbacks
END IF
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
98/146
Software Development Project Payroll System
Administrator -> Notifications -> Completed Jobs
STARTON FORM LOAD load completed jobs into datagridview
IF button More is clicked THEN
DISPLAY details of completed job
END IF
END
8/8/2019 Software Development Project - Payroll System [Group Assignment]
99/146
Software Development Project Payroll System
HOD (Head of Department)
START
ON FORM LOAD load welcome into MDIHOD
IF button Student is clicked THEN
LOAD form frmStudent into MDIAdmin
END IF
IF button Overtime is clicked THEN
LOAD form fromHODOT into MDIAdmin
END IF
IF button Timeslots is clicked THEN
LOAD form frmTimeslots into MDIAdmin
END IF
IF button Department is clicked THEN
LOAD form frmDepartments into MDIAdmin
END IF
8/8/2019 Software Development Project - Payroll System [Group Assignment]
100/146
Software Development Project Payroll System
IF button Messaging is clicked THEN
LOAD form frmMessaging into MDIAdmin
END IF
IF button Feedback is clicked THEN
LOAD form frmFeedback into MDIAdmin
END IF
IF button Notifications is clicked THENLOAD form frmNotifications into MDIAdmin
END IF
IF menu item Logout is clicked THEN
End current session
LOAD login form
END IF
END
Test Plan
8/8/2019 Software Development Project - Payroll System [Group Assignment]
101/146
Software Development Project Payroll System
Tes
t
Cas
e
Test
Description
Test Data/Test
Actions
Expected
Value
Actu
al
Value
1 Check Tab
pages
Click Add new Tab Show add new
Head of
Department
interface with
textboxes & group
boxes
2 Check Tab
pages
Click Edit Tab Show Head of
Department
interface with
textboxes, data
grid view & group
boxes
3 Check validity
of
Add new
page
Didnt fill some of
text boxes
Error Message Fill
your information
4 Check validity
of Edit page
Didnt fill some
information in data
grid view
Error Message Fill
your information
5 HOD textbox
name check
gayan jayakody Accepted
HOD textbox
name check
Gayan Jayakody Accepted
HOD textbox
name check
_@#4Gayan Jayacody Error Message
6 Check Upload
Image
Click Upload Image Open the webcam
or user can upload
photo from
computer
7 Check the
Account details
Correct Username
Password, wrong
department or didnt
choose department
Error Message Re-
enter your
department
8 Check validity
of
Tele hone No
234po56t Error Message
Enter correct No
8/8/2019 Software Development Project - Payroll System [Group Assignment]
102/146
Software Development Project Payroll System
HOD -> Student -> Add new
START
IF combo item job title AND department are selected THENDISPLAY job title description
END IF
IF button timeslot is clicked THEN
INCREMENT tot hours
END IF
IF tot hours >= 15 THEN
DISPLAY Maximum hours 15 allowed
END IF
READ first name, last name, address, contact details, username,
password, timeslot
IF first name, last name, address, contact details, username, password,
NOT AND tot hours
8/8/2019 Software Development Project - Payroll System [Group Assignment]
103/146
Software Development Project Payroll System
ELSE
DISPLAY error Username already found
DISPLAY error Max hours allowed is 15
END IF
END IF
END
HOD -> Overtime -> New OT requests
START
ON FORM LOAD load new OT reque