SDD Sofhiadraft

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 8

4.

5 manageComplaint [SDD-REQ-500]

4.5.1 kioskParticipant [SDD-REQ-501]

4.5.1.1 createComplaint Interface [SDD-REQ-501-01]


Class Type Boundary class
An interface to display the Kiosk Complaint form for the Kiosk
Responsibility
Participant to create their kiosk’s complaint.
Attributes Name Attributes Type
INT
complaint_id
INT
Attributes kiosk_id
VARCHAR
complaint_type
VARCHAR
complaint_description

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable

4.5.1.2 editComplaint Interface [SDD-REQ-501-02]


Class Type Boundary class
An interface that allow Kiosk Participant to edit their submitted
Responsibility
complaint of their kiosk.
Attributes Attributes Name Attributes Type
complaint_id INT
kiosk_id INT
complaint_type VARCHAR
complaint_description VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable

4.5.1.3 saveComplaint Interface [SDD-REQ-501-03]


Class Type Boundary class
An interface that allows Kiosk Participant to confirm their submitted
Responsibility
complaint of their kiosk.
Attributes Name Attributes Type
complaint_id INT
Attributes kiosk_id INT
complaint_type VARCHAR
complaint_description VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable

4.5.1.4 viewComplaint Interface [SDD-REQ-501-04]


Class Type Boundary class
An interface that allow Kiosk Participant to view their submitted
Responsibility
complaint of their kiosk and the feedbacks from the FK Technical.
Attributes Name Attributes Type
complaint_id INT
kiosk_id INT
complaint_type VARCHAR
Attributes complaint_description VARCHAR
work_status VARCHAR
work_order VARCHAR
work_justification VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable


4.5.1.5 deleteComplaint Interface [SDD-REQ-501-05]
Class Type Boundary class
An interface that allows Kiosk Participant to confirm delete their
Responsibility
submitted complaint of their kiosk.
Attributes Name Attributes Type
complaint_id INT
kiosk_id INT
Attributes complaint_type VARCHAR
complaint_description VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable

4.5.2 fkTechnical [SDD-REQ-502]

4.5.2.1 updateComplaint Interface [SDD-REQ-502-01]


Class Type Boundary class
An interface to allow FK Technical to update feedbacks on the
Responsibility
submitted complaints.
Attributes Name Attributes Type
complaint_id INT
kiosk_id INT
complaint_type VARCHAR
Attributes complaint_description VARCHAR
work_id INT
work_status VARCHAR
work_order VARCHAR
work_justification VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable


4.5.3 admin [SDD-REQ-503]

4.5.3.1 viewAllComplaint Interface [SDD-REQ-503-01]


Class Type Boundary class
An interface to allow admin to view all the complaints and work
Responsibility
orders submitted by the Kiosk Participant and FK Technical.
Attributes Name Attributes Type
complaint_id INT
kiosk_id INT
complaint_type VARCHAR
Attributes complaint_description VARCHAR
work_id INT
work_status VARCHAR
work_order VARCHAR
work_justification VARCHAR

Method Name Description

Methods
Not Applicable Not Applicable

Algorithm Not Applicable

4.5.3.2 ComplaintController [SDD-REQ-503-02]

Class Type Controller class


This controller class is used to communicate and manage the
Responsibility process logic between the interface and model class for manage
complaint.
Attributes Name Attributes Type
Attributes
No Attributes No Attributes
Methods Method Name Description
To create new complaint in the database
createComplaint()
of complaints table.
To edit the submitted complaint in the
editComplaint() database of complaints table based on
the complaint id.
To retrieve the complaints from database
viewComplaint() of the complaints table based on the
complaint id.
deleteComplaint() To delete the complaint from database of
the complaints table based on the
complaint id.
To update the submitted complaint in the
updateComplaint() database of complaints table with the
work orders to be taken.
To approve the complaint and update
the status of the complaint in the
approveComplaint()
complaints table and add new work
order in the database of works table.
To reject the complaint and update the
rejectComplaint() status of the complaint in the database
of complaints table.
To retrieve and display all the complaints
from database of the works table based
viewAllComplaint()
on complaint id and works table based
on the complaint id.
Algorithm BEGIN
IF createComplaint() is called
THEN create object of complaints model to connect with
complaints table.
INSERT new data in the complaints table.
RETURN to the viewComplaint page.
ELSE IF editComplaint() is called
THEN create object of complaints model to connect with
complaints table.
UPDATE new data in the complaints table.
RETURN to the editComplaint page.
ELSE IF viewComplaint() is called
THEN create object of complaints model to connect with
complaints table.
Retrieve the data from complaints table.
Return to the viewComplaint page.
ELSE IF deleteComplaint() is called
THEN create object of complaints model to connect with
complaints table.
Prompts to confirm the deletion.
DELETE data of the selected complaints based on the complaint
id in the complaints table.
RETURN to the viewComplaint page
ELSE IF updateComplaint() is called
THEN create object of complaints model to connect with
complaints table.
UPDATE the status in complaints and works table.
INSERT new data in the complaints and works table.
Return result to the viewComplaint page.
ELSE IF approveComplaint() is called
THEN create object of complaints model to connect with
complaints and works table.
UPDATE the status in complaints and works table.
INSERT new data in the complaints and works table.
RETURN to the viewComplaint page.
ELSE IF rejectComplaint()is called
THEN create object of complaints model to connect with
complaints table.
UPDATE the status in complaints table.
RETURN to the viewComplaint page.

ELSE IF viewAllComplaint() is called


THEN create object of complaints & works model to connect with
complaints & works table.
Retrieve the complaints by kiosk id from kiosks table and works id
from works table.
Return data to the viewComplaint page.
END IF
END

4.5.4 Models [SDD-REQ-504]

4.5.4.1 Complaint Model [SDD-REQ-504-01]

Class Type Model class


This model class is to connect the table of complaints on system
database to store or retrieve the data that requested by the
Responsibility
ComplaintController.

Attributes Name Attributes Type


Attributes
Not Applicable Not Applicable
Method Name Description
Methods
# $fillable Array []
Algorithm Not Applicable

4.5.4.2 Work Model [SDD-REQ-504-02]


Class Type Model class
This model class is to connect the table of works on system
database to store or retrieve the data that requested by the
Responsibility
ComplaintController.

Attributes Name Attributes Type


Attributes
Not Applicable Not Applicable
Method Name Description
Methods
# $fillable Array []
Algorithm Not Applicable

4.5.4.3 Kiosk Model [SDD-REQ-504-03]


Class Type Model class
This model class is to connect the table of kiosk’s complaints on
system database to store or retrieve the data that requested by the
Responsibility
ComplaintController.

Attributes Name Attributes Type


Attributes
Not Applicable Not Applicable
Method Name Description
Methods
# $fillable Array []
Algorithm Not Applicable

5.5 manageComplaint

Requirement ID Description Design ID


RQ501-FK-KIOSK- Kiosk participant clicks on the SDD-REQ-501-02
001 <<Complaint>> menu SDD-REQ-501-03
RQ502-FK-KIOSK- System displays the kiosk participant’s SDD-REQ-501-04
001 complaint dashboard. SDD-REQ-503-02
RQ503-FK-KIOSK- Kiosk participant updates the current SDD-REQ-504-01
001 complaint. SDD-REQ-504-03
SDD-REQ-501-05
RQ504-FK-KIOSK- Kiosk participant deletes the
SDD-REQ-503-02
001 complaint.
SDD-REQ-504-01
RQ505-FK-KIOSK- Kiosk participant creates a new
SDD-REQ-501-01
001 complaint.
SDD-REQ-503-02
System saves the changes to the
RQ506-FK-KIOSK- SDD-REQ-504-01
database.
001 SDD-REQ-504-03
RQ507-FK-KIOSK- Kiosk participant clicks the
SDD-REQ-503-02
001 <<Complaint>> menu.
SDD-REQ-503-02
RQ508-FK-KIOSK- System displays the complaints made
SDD-REQ-504-01
001 by the kiosk participants.
SDD-REQ-504-03
SDD-REQ-502
FK technical updates the status,
RQ509-FK-KIOSK- SDD-REQ-503-02
justification and work orders of the
001 SDD-REQ-504-01
complaints
SDD-REQ-504-02
RQ510-FK-KIOSK- Admin clicks on the <<Complaint>>
001 menu.
SDD-REQ-503-01
System displays all complaints
RQ511-FK-KIOSK- SDD-REQ-503-02
submitted by the kiosk participants and
001 SDD-REQ-504-01
work orders made by the FK technical.
SDD-REQ-504-02
RQ512-FK-KIOSK-
Form validation.
001

You might also like