Document for Design
Trang 1o0o
Document for Design
Project Name : DTO Solution
( Driving Test Online Solution )
Class : C0605MCourse : HDSEGroup : I (Oak Group)Members join 1 Lam Truong Giang (Leader)
2 Nguyen Thi Mai Chinh
3 Nguyen Minh Hai
4 Nguyen Thuy Tien
5 Le Quang Viet
Email of team leader: giang.itc@gmail.com
Teacher guides: Tran Dinh Tri
Trang 3Problem Definition 1
1 Project Abstract 1
1.1 Function of Project Abstract: 1
1.2 Sphere of system is used: 1
1.3 Who uses it: 1
2 Proposed System 1
2.1 Overview status: 1
2.2 Purpose of project: 2
2.3 System name: 3
2.4 Environment for development 3
2.5 Tool is used for development: 3
FormNo2: Customer Requirements Specification 4
1 Function for candidate: 4
1.1 Guide for using DTO Solution: 4
1.2 Sign in DTO Solution: 4
1.3 Doing Test: 4
1.4 Finish: 4
1.5 Control Client side in testing time: 4
2 Function for Administrator: 4
2.1 Sign in to manage system: 4
2.2 Manage official uses system: 5
2.3 Manage supervisor: 5
2.4 Manage class and day-time test: 5
2.5 Manage candidate: 6
2.6 Manage type of driving degree 6
2.7 Manage question bank: 7
2.8 Automatic confer test: 7
2.9 Organize and manage test online: 8
2.10 Automatic making mark: 8
2.11 Manage test result: 9
2.12 Search each subject: 9
2.13 Figure of System: 9
2.14 Manage when system has a problem: 9
FormNo3: Requirement Analysis 10
I Agent: 10
II Use Case for DTO Solution (Driving Test Online Solution) 10
III Analysis chart Usecase of system: 14
FormNo4: Entity Relationship Diagrams 61
FormNo5: Database Diagram 87
FormNo6: Design Detail 88
I Module of Server Side (Server) 88
1 Main interface of the system 88
2 Module: Sign in to manage the system: 88
Trang 44.2 Interface of secondary form: 108
4.3 Relationship between each classes: 109
4.4 Design a class and method: 110
5 Module: Manage tesing class 111
5.1 Main form interface: 111
5.2 Relationship between each class: 118
5.3 Design class and method: 118
6 Module: Manage candidate: 119
6.1 Main form interface 119
7 Module: Manage Degree Type 127
7.1 Main form interface 127
7.2 Interface secondary form 134
8 Module: Manage Question Bank 137
8.1 Main form interface 137
8.2 Interface secondary form 144
9 Module: Manage testing class online 156
9.1 Manage testig class online 156
9.2 Manager mark 162
10 Module: Configuration system: 165
10.1 Graphic User Interface form configuration system: 165
10.2 Execution Stream Diagram form “Configuration system” 168
10.3 Relationship between each classes 168
II Some module on slide candidate join testing ( Client ) 170
1 Module: Guide do testing exam 170
2 Module: Sign in the system 170
2.1 User Interface 170
2.2 Description Interface 170
2.3 Execution Stream Diagram 170
2.4 Serial Chart 171
2.5 Cooperation Chart 171
2.6 Relationship between each classes 171
2.7 Enumeratet class and method 172
3 Module: Do testing exam online 172
3.2 Description Interface 173
3.3 Execution Stream Diagram 173
4 Module: Finish do testing exam online 173
4.1 User Interface 173
4.2 Description Interface 173
4.3 Execution Stream Diagram 174
4.4 Relationship between each classes 174
4.5 Enumeratet class and method 174
FormNo7: Task Sheet 175
Index A: Coding Convention Guide 178
Trang 6Problem Definition
1 Project Abstract
1.1 Function of Project Abstract:
DTOSolution (Driving Test Online Solution) is the project of “OAK Group” is done with
purpose support Driving Test Center in Vietnam organize Driving Test Exam:
It helps person who joins this exam can do “Online” one way quickly and effect,avoid some difficult and bother of traditional exam
Support Driving Test Center can simplify and synchronous in manage test,candidate, day – time exam and result after finish exam
Decrease making work, increase effect and professional for making exam in someDriving Test Center in whole country
1.2 Sphere of system is used:
Using for some Driving Test Center confer driving degree (Car- Motorbike)
Support for some Driving Test Center in organizes test traffic theory program
1.3 Who uses it:
A person who join the Driving Test Exam (Candidate)
Official Center organizes confer driving degree (Administrator)
2 Proposed System
2.1 Overview status:
Nowadays, with development of Vietnam Economic is very quickly and increase quickly oftraffic vehicle service for a lot of different work in social, and specially is two vehicles isCar and Motorbike
With increase above is need very big for training and confer driving degree for twovehicles above
And with traditional and old exam, as a result a lot of Driving Test Centre fell overloadthe fuse with needing of today
Figure 1: A few picture waiting for queue and traditional exam of candidate.
Group: I (OAK Group)
Document Name: Problem Definition
Document Sign: Form No.1 / PD / Ver 2.0
Trang 8 Tool for Interface: Adobe Photoshop.
Tool for makes UML: Rational Rose, Visio 2003, Smart Draw 2007
Trang 9Customer Requirements Specification
Person who uses DTO Solution:
o Candidate
o Official of Driving Test Center (Administrator)
1 Function for candidate:
1.1 Guide for using DTO Solution:
Candidate hasn’t to sign in when uses this function
Helps for candidate understands using each function of DTO Solution
1.2 Sign in DTO Solution:
In the testing, candidate can sign in application to doing test
Candidate uses Username and Password is provided to sign in
System will check username and password of candidate If right it will allow begin doingtest, and if wrong application will require candidate sign in again
Only some candidates is allowed doing test (status of candidate is normal) so thiscandidate will have permit sign in DTO Solution and doing test
1.5 Control Client side in testing time:
In testing time, Client sides will is controlled by Server side, any action is wrong withexam regular (such as: using USB to read document, run another application) won’t do it
2 Function for Administrator:
2.1 Sign in to manage system:
Official of center signed in before use permit their management
Official of center needs provide Username and Password for system tests
Group: I (OAK Group)
Document Name: Customer Requirements Specification
Document Sign: Form No.2 / CRS / Ver 2.0
Trang 11 Only allow delete account of candidate when they didn’t join testing When theybegin do testing or after they finish test, administrator can’t delete theiraccount.
2.6 Manage type of driving degree
2.6.1 Add new type of driving degree:
Can add new type of driving degree (A1, A2, B1, B2, C, D, E), with each type ofdriving degree will has quantity question, number of question and rate pass issuitable
2.6.2 Change type of driving degree:
Information for type of driving degree and rate question of each type of drivingdegree can change to suit with current law
When one type of driving degree is deployed for exam, some information fortype of driving degree mustn’t repair
2.6.3 Delete type of driving degree:
Each type of driving degree haven’t ever tested, can delete
2.7 Manage question bank:
2.7.1 Add new question:
Administrator can add new question with type of question
Type of question following:
Type of question Description
Traffic Law Question about road traffic
Road Traffic Sign Question about type of road traffic sign
Figure Each situation when vehicle joins traffic in real life
Expert Question about traffic transport expert
Drive Engineering Question about drive engineering
Car constructing Question about car constructing
Car repairing Question about general car repairing
Level of difficult question is same
Each question only has one answer sentence
2.7.2 Change question:
Each question on question bank can change by administrator have this permission
2.7.3 Delete question:
Each question didn’t have in test can delete by administrator
2.8 Automatic confer test:
Before testing time, official of Driving Test Center can press button to systemautomatics confer test for candidate
Trang 12 DTO Solution will generate number of test correspond with number of candidate intest classing.
Each candidate will have different test Also, each question in one test is not same
Each test has one particular format suit type of driving degree
Type of degree Number of
question Rate of question
A1, A2 15 6 questions traffic law, 1 question car speeding, 5
questions road traffic sign, 3 questions figure
B1, B2, C, D, E 30
9 questions road traffic law (10 questions for B1)
10 questions road traffic sign
7 question figure
1 question traffic transport expert for B2, C, D, E
1 question drive engineering
1 question car constructing
1 question general car repairing
Only select each question has status is active (Each question suits with current law,
if each question not suits with current law will has status is “Freeze”)
Only generate test for some test class has candidate
2.9 Organize and manage test online:
Before testing time, administrator will print account lists for candidates can joinexam (Account contains username and password) And candidate list (Supervisorwill this list to candidate signs and supervisor can check number of candidate joinsexam)
When administrator actives status of exam, candidate can sign in client side (useuser and password) and begin doing test
Begin set up time, and count time when candidate sign in
Regular testing time
Type of Degree Total question Testing time
After signed in, candidate can’t run any different application Each action is wrong
or not suit with exam rule will sign out immediately
After singed in, screen of candidate will display question and some answer
Candidate only choose one correct answer for one question
Trang 13 After candidate chooses one answer, Client side will sent this answer to Server side.Server side will save all answer of candidate on Database to backup when Clientside has a problem.
When Client side is running, Server side needs manage status of all client side
When over time or candidate press button “Finish”, application will automatics closeand sent require making make to Server side
2.10 Automatic making mark:
When is required (each times when candidate finished early or overtime), Serverside will automatic making mark, making mark for each candidate base on correctanswer have on Database
After making mark finish, Server side will automatic make result for each candidate,also confirm (fail or pass) for candidate
Type of degree Total question Pass conditional
2.11 Manage test result:
After Server side made mark is successful, test result of candidate will save onDatabase and is managed by Administrator
Test result can’t change, repair or delete
Can print test result and detail exercise of candidate when needs (For example:When candidate claim for test result)
Test result will save for a long time After that time, test result will automatic delete
on Database
2.12 Search each subject:
With each function on system need construct detail search function to official ofCenter can search information easily
2.13 Figure of System:
Provides for administrator have this option function when they work in DTOSolution With this function, administrator doesn’t need run application by uniqueformat For example: Administrator can option method to manage exam is automatic
or manual, also they can change type of view of application, such as font or themes
Trang 142.14 Manage when system has a problem:
When candidate doing test, Client side has a problem: Supervisor will notice for administrator to backup exam status of candidate.
Trang 16 Search exam class
Trang 18DIAGRAM USE CASE OF SYSTEM
Trang 20III. Analysis chart Usecase of system:
1 Usecase Sign in DTO Solution
a Describe UseCase: “Sign in”
Trang 21UseCase Name Sign in
Description UseCase “Sign in” supports teacher sings in DTO Solution
Actor System management, teacher, candidate
Requirement Sign in system
Pre – Conditions Have to permit to sign in system
Post – Conditions Don’t have
Result After sign in system, application have to display form have some function of
DTO Solution
Main – Flows (A1): System displays requirement form Agent enters user, password and
permit using system
(A2): Agent enters user, password and permit using on requirement form (A3): System checks user, password and permit using system of Agent If
not validation, system will do stream (B1)
(A4): System displays some function of DTO Solution; Agent chooses the
function need do
(A5): Finish Usecase
Sub – Flows (B1): Name sign in, password or permit access of Agent not validation.
System will have error message Agent can sign in again or finish Usecase
b Describe Usecase: “Change password”
UseCase Name Change password
Description UseCase “Change password” suppors Agent can change password
Actor System management, teacher, candidate
Requirement Change password
Pre – Conditions Agent has to in their session.
Post – Conditions Don’t have
Result Old password is changed, confirm new password into Database
Main – Flows (A1): System displays sign in form, password and permit using system
requires Agent enters user, password and permit using system
(A2): Agent enters user, password and permit using in requirement form.(A3): System checks user, password and permit using system of Agent If notvalidation, system will do stream (B1)
(A4): Agent chooses “Change password” System displays Change Password
(A5): System checks password of Agent is validation or not If not validation,system will do stream (B2)
(A6): System checks “Confirm new password” matchs with “new password” ornot? If same, system will successful message and save new information intoDatabase
Trang 22(A7): Finish UseCase.
Sub – Flows (B1): Username, password or permit access of teacher not validation System
generates error message Teacher can sign in again or finishes Usecase (B2): System show enquirement message to enter again Agent can enteragain or finishes Usecase
2 UseCase Mange teacher’s account
a Describe UseCase: “Register information Teacher”
UseCase Name Registered teacher
Trang 23Description Usecase “Registered teacher” supports teacher registers new teacher into
database
Actor System management
Requirement Registerd some information about teacher
Pre – Conditions Administrator have to sign in system
Administrator have to have permit register for teacher
Post – Conditions Don’t have
Result Information about new teacher is saved into database
Main – Flows (A1): When system displays some functions of DTO Solution, Administrator
chooses function need do
(A2): Administrator chooses function “Registered teacher” (B1)(A3): System displays new teacher register form
(A4): Administrator enters some information about teacher in register form.Then, if administrator chooses “Add new” do stream (A5) In contrast, ifadministrator chooses “Reset” do stream (B2)
(A5): System checks ensure of each information about new teacher is enteredinto database, if has error, system will do stream (B3)
(A6): System saves some information about new teacher into database(A7): Finish UseCase
Sub – Flows (B1): Administrator doesn’t have permission to register new teacher System
show error message Finish Usecase
(B2): System will format again new teacher register form Administrator canenter again or stop Usecase
(B3): If one of some information about new teacher doesn’t match, systemwill show error message:
Name of new teacher is entered is blank System will show a message
“adminName of new teacher can’t blank” Administrator can enteragain or finish Usecase
adminUser of new teacher is enter is blank System will show amessage “adminUser of new teacher can’t blank” Administrator canenter again or finish Usecase
adminPass of new teacher is entered is blank System will show amessage “adminPass of new teacher can’t blank” Administrator canenter again or finish Usecase
b Describe UseCase: “Repair information about Teacher”
UseCase Name Repair information about teacher
Description Usecase “Repair information about teacher” supports administrator can repair
Trang 24some informations of teacher.
Actor Teacher
Requirement Repaired some informations about teacher
Pre – Conditions Administrator has to sign in system
UseCase “Search teacher” or Usecase “View teacher’s list” have to dobefore
Administrator has to change information of teacher
Post – Conditions Don’t have
Result Each information about teach after changed, is save into database
Main – Flows (A1): When system displays some functions of DTO Solution, Administrator
chooses function needs do
(A2): Administrator chooses function “Search information about teacher” (B1)
or the function “View teacher’ list”
(A3): System displays information about teacher which administrator requireswith some function as:
Repair information teacher
Delete information teacher(A4): Teacher chooses the function “Repair information teacher” (B3)(A5): System displays form repair information of teacher order toadministrator can begin repair
Sub – Flows (B1): System doesn’t find any information about teacher who administrator
need find System shows message Administrator can find again or finishUsecase
(B3): Administrator only has permission to see information about differenceteacher, doesn’t have permission to change information System show errormessage End Usecase
(B4): System will save some information about teacher as initial.Administrator can repair again or end usecase
(B5): If one of some information about teacher after repaired not validation,system will show error message:
adminName teacher has changed is white sign System will showmessage “adminName of teacher can’t blank” Administrator canenter again or finish Usecase
adminUser of teacher has changed is white sign System will showmessage “adminUser of teacher can’t blank” Administrator can enteragain or end Usecase
adminPass of teacher has changed is white sign System will showmessage “adminPass of teacher can’t blank” Administrator can enteragain or end Usecase
Trang 25c Describe UseCase: “Delete information about teacher”
UseCase Name Delete teacher
Description When any teacher removes a difference place, information of this teacher is
deleted to free memory
Actor Teacher
Requirement Don’t have
Pre – Conditions Administrator have to sign in system
UseCase “Search teacher” or Usecase “View teacher’s list” have to done
before
Post – Conditions Don’t have
Result Information about teacher won’t save in database else
Main – Flows (A1): When system displays some function of DTO Solution, Administrator
chooses the function needs do
(A2): Administrator chooses the function “Search information about teacher”(B1) or the function “View teacher’s list”
(A3): System displays information about teacher which administrator requireswith some information as:
Repair information about teacher
Delete teacher(A4): Administrator chooses the function “Delete information teacher” (B2) (A5): System shows a message “You want to delete information about thisteacher, don’t you?” If the teacher chooses “Ok”, will do stream (A6) Incontrast, if the teacher chooses “Cancel”, will do stream (B3)
(A6): System deleted whole information about teacher out of database(A7): End UseCase
Sub – Flows (B1): System didn’t find any information about teacher which administrator
need System shows a message The teacher can find again or end Usecase.(B2): Administrator only has a permission to see information about teacher,doesn’t have a permission to delete System gives a error message EndUsecase
(B3): System will save some information about teacher as initial.Administrator can choose again or finish Usecase
d Describe UseCase: “Search information about teacher”
UseCase Name Search teacher
Description UseCase “Searched teacher” will support teacher find information teacher
Actor Teacher
Requirement Can find information about teacher in database
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see information of teacher
Post – Conditions Don’t have
Result If system will display information about teacher which administrator
needs find In contrast, if system doesn’t find any information about
Trang 26teacher, it will show a message.
Main – Flows (A1): When system displays some function of DTO Solution, administrator
chooses the function need do
(A2): Administrator chooses the function “Search information about teacher”(A3): System displays search form about teacher
(A4): Administrator enters information about teacher need find (B1)(A5): System displays information about teacher who administrator needsfind
(A6): End UseCase
Sub – Flows (B1): System doesn’t find any information about teacher which administrator
needs System shows a message Administrator can find again or end Usecase
e Describe UseCase: “View teacher’s list”
UseCase Name View teacher’s list
Description Usecase “View teacher’s list” will support the teacher can see teacher’s list
who registered system
Actor Teacher
Requirement Don’t have
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see teacher’s list
Post – Conditions Don’t have
Result Display teacher’s list
Main – Flows (A1): When system shows some functions of DTO Solution, teacher chooses
the function need do
(A2): Teacher chooses the function “View teacher’s list” (B1)
(A3): System displays teacher’s list who registered with system
adminID
status
adminName
(A4): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to see teacher’s list System shows a
message End Usecase
3 UseCase: Manage candidate
Trang 27a Describe UseCase: “Registerd for candidate”
UseCase Name Registered for candidate
Description Usecase “Registered for candidate” suppors teacher enters information about
candidate who joins Driving test online into system
Actor Teacher
Requirement Registerd some information about candidate
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to register for candidate
Post – Conditions Don’t have
Result Information about candidate is saved into database
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
Trang 28function need do.
(A2): Teacher chooses the function “Registered for candidate” (B1)(A3): System displays register form about new candidate:
examineeAddress examineeCMND
examineeBirthday status
examineePhone(A4): Teacher enters some information about candidate in register form Then
if teacher chooses “Add new”, system will do stream (A5) In contrast, ifteacher chooses “Reset”, system will do stream (B2)
(A5): System checks well-validation of each information about candidate isenteredm, if have mistake will do stream (B3)
(A6): System saves some information about candidate into database(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to register candidate System shows
a message End Usecase(B2): System will format again a candidate register form Teacher can enteragain or finish Usecase
(B3): If one of some information following about candidate not validation,system will shows a error message to teacher know:
examineeName which teacher has entered is white sign System willshow a message “examineeName of candidate can’t blank” Teachercan enter again or end Usecase
examineeAddress which teacher has entered is white sign Systemwill show a message “examineeAddress of candidate can’t blank”.Teacher can enter again or end Usecase
examineeBirthday of candidate which teacher has entered is whitesign or character sign System will show a message
“examineeBirthday of candidate can’t blank and have to is a integersign” Teacher can enter again or finish Usecase
Current year subtracts year of examineeBirthday less than 18 olds.System shows a message “Candidate have to age greatter than 18”.Teacher can enter again or end Usecase
examineePhone of candidate which teacher has entered is digit sign
or white sign System shows a message “examineePhone of candidatehas to is digit sign and can’t blank” Teacher can enter again or endUsecase
examineeCMND of candidate which teacher has entered is digit sign
or white sign System shows a message “examineeCMND of candidatehas to is digit sign and can’t blank” Teacher can enter again or endUsecase
b Describe UseCase: “Repair candidate”
UseCase Name Repair candidate
Description Usecase “Repair candidate” suppors teacher can repair any information about
candidate joins Driving Test
Actor Teacher
Requirement Repaired some information about candidate
Pre – Conditions Teacher has to sign in system
Trang 29 Usecase “Search information about candidate” or Usecase “Viewcandidate’t list” has to do before.
Teacher has to have a permission to repair information about candidate
Post – Conditions Don’t have
Result Each information about candidate after changed, is saved into database
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
function need do
(A2): Teacher chooses the function “Search information about candidate”(B1) or the function “View candidate’s list” (B2)
(A3): System displays information about candidate who teacher needs findwith some functions following:
Repair information about candidate
Delete information about candidate(A4): Teacher chooses the function “Repair information about candidate” (B3)(A5): System displays a repair information form of candidate to teacher canbegin change
examineeAddress examineeCMND
examineeBirthday status
examineePhone(A6): Teacher chooses information about candidate who needs change and beginchange information Then if teacher chooses “Update”, system will do stream(A7) In contrast, teacher chooses “Cancel”, system will do stream (B4)
(A7): System checks well-validation of each information which teacher hasrepaired (B5)
(A8): System saves each information of candidate which has changed intodatabase
(A9): Finish UseCase
Sub – Flows (B1): System doesn’t find any information about candidate which teacher
needs find System shows a message Teacher can find again or end Usecase(B2): Teacher doesn’t have a permission to see candidate’s list System willshow a error message Teacher can choose again or end Usecase
(B3): Teacher only has a permission to see candidate joins Driving Test,doesn’t have a permission to change System shows a error message EndUsecase
(B4): System will save any information about candidate as initial Teacher canrepair again or end Usecase
(B5): If one of some information about candidate after changed notvalidation, system will show a error message to teacher knows:
examineeName which teacher has changed is white sign System willshow a message “examineeName of candidate can’t blank” Teachercan enter again or end Usecase
examineeAddress which teacher has repaired is white sign Systemshows a message “examineeAddress of candidate can’t blank”.Teacher can enter again or end Usecase
examineeBirthday of candidate which teacher has entered is whitesign or character sign System will show a message
“examineeBirthday of candidate can’t blank and has to is a digit sign”.Teacher can repair again or end Usecase
Current year subtracts year of examineeBirthday is less than 18
Trang 30System shows a message “Candidate joins A1 Driving Test has togreater than 18” Teacher can enter again or finish Usecase.
examineePhone of candidate which teacher has changed is charactersign or white sign System shows a message “examineePhone ofcandidate has to is digit sign and can’t blank” Teacher can changeagain or end Usecase
examineeCMND of candidate which teacher has changed is charactersign or white sign System shows a message “examineeCMND ofcandidate has to is digit sign and can’t blank” Teacher can enteragain or end Usecase
c Describe UseCase: “Delete candidate”
UseCase Name Delete information about candidate
Description When candidate doesn’t join test or candidate joined quite long, teacher will
delete information about that candidate to free memory
Actor Teacher
Requirement
Pre – Conditions Teacher has to sign in system
Usecase “Search information about candidate” or Usecase “Viewcandidate’s list” has to do before
Teacher has to have a permission to delete information about candidate
Post – Conditions Don’t have
Result Information about candidate won’t save in database else
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
function need do
(A2): Teacher chooses the function “Search information about candidate”(B1) or chooses the function “View candidate’s list” (B2)
(A3): System displays information about candidate which teacher requireswith some function following:
Repair information about canidate
Delete information about candidate(A4): Teacher chooses the function “Delete information about candidate” (B3)(A5): System shows a message “You want to delete information about thiscandidate, don’t you?” If teacher chooses “OK”, system will do stream (A6)
In contrast, if the teacher chooses “Cancel”, system will do stream (B4).(A6): System deletes all of information about candidate out of database(A7): Finish UseCase
Sub – Flows (B1): System doesn’t find information about candidate who teacher need find
System shows a message Teacher can find again or end Usecase
(B2): Teacher doesn’t have a permission to see candidate’s list System shows
a error message Teacher can choose again or end Usecase
(B3): Teacher only has a permission to see information about candidate,doesn’t have a permission to delete information System shows a errormessage End Usecase
(B4): System will save any information about candidate as initial Teacher canchoose again or end Usecase
d Describe UseCase: “Search information about candidate”
UseCase Name Search information about candidate
Description Usecase “Search candidate” will support teacher can find some information
Trang 31about candidate.
Actor Teacher
Requirement Can find information about candidate in database
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see candidate’s list
Post – Conditions Don’t have
Result If system finds any information about candidate which teacher need find,
system will display that information Contrast, if the information don’thave system displays confirm
Main – Flows (A1): System displays some function of DTO Solution; teacher can choose the
function need do
(A2): Teacher chooses the function “Search information about candidate”(B1)
(A3): System displays a search form about candidate
examineeID examineeName(A4): Teacher enters information about candidate need find (B2)(A5): System displays some information about candidate which teacher needfind
(A6): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to see information about candidate
System shows a message End Usecase
(B2): System doesn’t find any information about candidate which teacherneed find System shows a message Teacher can find again or end Usecase
e. Describe UseCase: “View candidate’s list”
UseCase Name View candidate’s list
Description Usecase “View candidate’s list” will support teacher can see candidate’s list
according to each class
Actor Teacher
Requirement Don’t have
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see candidate’s list
Post – Conditions Don’t have
Result Displays list of candidate joins
Main – Flows (A1): System displays some function of DTO Solution; teacher can choose the
function need do
(A2): Teacher chooses the function “View candidate’s list” (B1)(A3): System displays form to print candidate’s list:
(A4): Teacher enters information in a print form of candidate
(A5): System checks information which teacher has entered (B2)(A6): System displays candidate’s list according each class which teacher hasentered
Trang 32 examineeAddress examineeCMND
examineeBirthday status
examineePhone examineeID(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to see candidate’t list System shows
a message End Usecase
(B2): If information about class which candidate joins, doesn’t have indatabase System will show a message “Don’t have this class” Teacher canenter again or end Usecase
f. Describe UseCase: Print candidate’s list
UseCase Name Print candidate’s list
Description Teacher prints candidate’s list according to each class
Actor Teacher
Requirement Printed candidate’s list
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to print candidate’s list according to eachclass
Post – Conditions Don’t have
Result Candidate’s list according to each class
Main – Flows (A1): System displasys some function of DTO Solution, teacher can choose
the function need do
(A2): Teacher chooses the function “Print candidate’s list” (B1)(A3): System displays a print form of candidate:
(A4): Teacher enters information in a print form of candidate
(A5): System checks information which teacher entered (B2)(A6): System prints candidate’s list according to each class(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to print candidate’s list System
shows a message End usecase
(B2): If information about class of candidate which teacher has enteredwithout in database System shows a message “Don’t have this exam class”.Teacher can enter again or finish Usecase
4 UseCase: Manage supervisor
Trang 33a. Describe UseCase: “Registerd supervisor”
UseCase Name Registered supervisor
Description Usecase “Registered supervisor” supports teacher can register supervisor into
database
Actor Teacher
Requirement Registered some information about supervisor
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to register supervisor
Post – Conditions Information about supervisor is saved into database
Result
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
function need do
(A2): Teacher chooses the function “Registered supervisor” (B1)
Trang 34(A3): System displays a register form for new supervisor:
invigilatorName invigilatorPosition
invigilatorOrganization(A4): Teacher enters some information about supervisor in a register form.Then if the teacher chooses “Add new”, system will do stream (A5) Incontrast, if the teacher chooses “Reset”, system will do stream (B2)
(A5): System checks validation of some information about supervisor whichteacher has entered has right or not If has mistake, do stream (B3)
(A6): System saves some information about supervisor into database
(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to register supervisor System shows
a message End Usecase
(B2): System will format again a register form for supervisor Teacher canenter again or end Usecase
(B3): If one of some information following about supervisor not validation,system will show a message to teacher knows:
InvigilatorName which teacher has entered is white sign System willshow a message “invigilatorName of supervisor can’t blank” Teachercan enter again or end Usecase
InvigilatorPhone which teacher has entered is white sign or charactersign System will show a message “invigilatorPhone of supervisorcan’t blank and has to a digit number” Teacher can enter again orend Usecase
InvigilatorOrganization which teacher has entered is white sign.System will show a message “invigilatorOrganization of supervisorcan’t blank” Teacher can enter again or end Usecase
InvigilatorPosition which teacher has entered is white sign Systemwill show a message “invigilatorPosition of supervisor can’t blank”.Teacher can enter again or end Usecase
b. Describe UseCase: “Repair supervisor”
UseCase Name Repair supervisor
Description Usecase “Repair supervisor” supports teacher can repair informations of
supervisor into database
Actor Teacher
Requirement Repaired some information about supervisor
Pre – Conditions Teacher has to sign in system
Usecase “Search supervisor” or Usecase “View supervisor’s list” has to dobefore
Teacher has to have a permission to register supervisor
Post – Conditions Don’t have
Result Information about supervisor after changed, is saved into database
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
function need do
(A2): Teacher chooses the function “Search information about supervisor”(B1), or chooses the function “View supervisor’s list” (B2)
(A3): System displays information about supervisor which teacher requireswith some function following:
Trang 35 Repair information about supervisor
Delete information about supervisor(A4): Teacher chooses the function “Repair information about supervisor”(B3)(A5): System displays a register form of supervisor to teacher can beginrepair:
invigilatorName invigilatorPosition
invigilatorOrganization(A6): The teacher chooses information about supervisor need change andbegin repair information Then if the teacher chooses “Update”, system will
do stream (A7) In contrast, if the teacher chooses “Cancel”, system will dostream (B3)
(A7): System checks validation of some information about supervisor whichteacher has entered has right or not If has mistake, do stream (B3)
(A8): System saves some information about supervisor into database
(A9): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to view supervisor’s list System
shows a message End Usecase
(B2): System will format again a register form for supervisor Teacher canenter again or end Usecase
(B3): If one of some information following about supervisor not validation,system will show a message to teacher knows:
InvigilatorName which teacher has entered is white sign System willshow a message “invigilatorName of supervisor can’t blank” Teachercan enter again or end Usecase
InvigilatorPhone which teacher has entered is white sign or charactersign System will show a message “invigilatorPhone of supervisorcan’t blank and has to a digit number” Teacher can enter again orend Usecase
InvigilatorOrganization which teacher has entered is white sign.System will show a message “invigilatorOrganization of supervisorcan’t blank” Teacher can enter again or end Usecase
InvigilatorPosition which teacher has entered is white sign System will show
a message “invigilatorPosition of supervisor can’t blank” Teacher can enteragain or end Usecase
c. Decribe UseCase: “Delete supervisor”
UseCase Name Delete supervisor
Description When supervisor doesn’t join test or supervisor joined quite long, teacher will
delete information about that supervisor to free memory
Actor Teacher
Requirement
Pre – Conditions Teacher has to sign in system
Teacher has to hava a permission to view information about supervisor
Teacher has to have a permission to delete information about supervisor
Post – Conditions Don’t have
Result Information about supervisor don’t save in database else
Main – Flows (A1): System displays some function of DTO Solution, teacher chooses the
Trang 36function need do.
(A2): Teacher chooses the function “Search information about supervisor”(B1) or chooses the function “View supervisor’s list” (B2)
(A3): System displays information about supervisor which the teacherrequires with some function following:
Repair information about supervisor
Delete information about supervisor(A4): Teacher choose the function “Delete information about supervisor” (B3)(A5): System shows a message “You want to delete information thissupervisor, don’t you?” If the teacher chooses “Ok”, will do stream (A6) Onthe contrary, if the teacher chooses “Cancel”, will do stream (B4)
(A6): System delete all of information about supervisor out of database(A7): End UseCase
Sub – Flows (B1): System doesn’t find any information about supervisor which teacher
need find System shows a message Teacher can find again or end UseCase.(B2): Teacher doesn’t have a permission to see supervisor’s list Sytem shows
a message Teacher can choose again or end Usecase
(B3): Teacher only has a permission to see information about supervisor butdoesn’t have a permission to delete information System shows a errormessage End Usecase
(B4): System will save some information about supervisor as initial Teachercan choose again or finish Usecase
d. Describe UseCase: “Search information about supervisor”
UseCase Name Search supervisor
Description Usecase “Search supervisor” will support teacher can find information about
supervisor
Actor Teacher
Requirement Can find any information about information in database
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see information about supervisor
Post – Conditions Don’t have
Result If system finds any information about supervisor which teacher needs
find, will display On the contrary, if doesn’t find any information aboutsupervisor, system will show a message
Main – Flows (A1): System displays some function of DTO Solution; teacher chooses the
function need do
(A2): Teacher chooses the function “Search information about supervisor”(B1)
(A3): System displays a search information form about supervisor
invigilatorID invigilatorName(A4): Teacher enters information about supervisor need find (B2)(A5): System displays information about supervisor which teacher need find.(A6): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to see information about supervisor
System shows a message End Usecase
Trang 37(B2): System doesn’t find any information about supervisor which teacherneed find System shows a message Teacher can find again or end Usecase.
e. Describe UseCase: “View supervisor’s list”
UseCase Name View supervisor’s list
Description Usecase “View supervisor’s list” will support teacher can see supervisor’s list
by each class
Actor Teacher
Requirement Don’t have
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to see supervisor’s list
Post – Conditions Don’t have
Result Display supervisor’s list
Main – Flows (A1): System displays some function of DTO Solution; the teacher chooses
the function need do
(A2): Teacher chooses the function “View supervisor’s list”
(A3): System displays Form to look list of supervisors
(A4): Teacher enters information in View supervisor’s list Form
(A5): System checks information which teacher has entered (B2)(A6): System displays supervisor’s list, go up for an examination which theteacher has entered
invigilatorName invigilatorPosition
invigilatorOrganization(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to see supervisor’s list System
shows a message End Usecase
(B2): If information about exam class of supervisor invigilates which theteacher has entered, without in database System shows a message “Don’thave this class” The teacher can enter again or end Usecase
Trang 385 UseCase: Class management
a. Describe UseCase: “Create new class”
UseCase Name Create new class
Description Each candidate after have enough condition, teacher will organize create new
class for this candidate
Actor Teacher
Requirement
Pre – Conditions Teacher has to sign in system
Teacher has to have a permission to create exam class
Post – Conditions Don’t have
Result Information about new exam class is save into database
Main – Flows (A1): When system displays some function of DTO Solution, teacher can
choose the function need do
(A2): Teacher chooses the function “Create new exam class” (B1)
Trang 39(A3): System displays form to add new exam class:
className drivePermissionCategoryID
invigilatorName (A4): Teacher enters some information about new exam class in registerform Then if teacher chooses “Add new”, will do stream (A5) On thecontrary, if the teacher chooses “Reset”, will do stream (B2)
(A5): System checks a validate of some information about a exam class hasentered, if has mistake will do stream (B3)
(A6): System saves some information about new exam class into database(A7): End UseCase
Sub – Flows (B1): Teacher doesn’t have a permission to create a new exam class System
shows a message End Usecase
(B2): System will format again form to create a new exam class Teacher canenter again or end Usecase
(B3): If one of some information following about a new exam class which notvalidate, system will show a error message to teacher knows:
className of new exam class which teacher has enterd is whitesign System will show a message “className of new exam classcan’t blank” Teacher can enter again or end Usecase
drivePermissionCategoryID of new exam class which teacher hasentered is white sign System shows a message
“drivePermissionCategoryID of new exam class can’t blank”.Teacher can enter again or end Usecase
drivePermissionCategoryID which teacher has entered not survival
in database System will give a message “drivePermissionCategoryIDdoesn’t survive in database” Teacher can enter again or endUsecase
dateTest of new exam class which teacher has entered is white sign
or character sign System gives a message “dateTest of new examclass can’t blank and has to be a digit sign” Teacher can enteragain or end Usecase
Day of dateTest which less than or equally current day Systemshows a message “dateTest of new exam class can’t less than orequally current day” Teacher can enter again or end Usecase
countExaminee of new exam claas which teacher has entered iswhite sign or character sign System gives a message
“countExaminee of new exam class has to a digit sign and can’tblank” Teacher can enter again or end Usecase
b. Describe UseCase: “Repair exam class”
UseCase Name Repair exam class
Description Teacher can begin change any information about exam class which having in
database
Actor Teacher
Requirement Can repair any information about exam class
Pre – Conditions Teacher has to sign in system
Usecase “Search information about exam class” or Usecase “View list ofexam class” has to do before
Teacher has to have a permission to repair information about exam class
Trang 40Post – Conditions Don’t have
Result Each information about exam class after changed, is saved into database
Main – Flows (A1): System displays some function of DTO Solution, teacher chooses the
function need do
(A2): Teacher chooses the function “Search information about exam class”(B1) or chooses the function “View list of exam class” (B2)
(A3): System displays information about exam class which teacher requireswith some function following:
Repair information about exam class
Delete information about exam class(A4): Teacher chooses the function “Repair information about exam class”(B3)(A5): System displays form to repair information about exam class to teachercan begin change
className drivePermissionCategoryID
invigilatorName (A6): Teacher chooses information about exam class which need repair andbegin change information Then if the teacher chooses “Update” will do stream(A7) On the contrary, if the teacher chooses “Cancel” will do stream (B4).(A7): System checks a validate of information which the teacher has changed (B5)(A8): System saves some information has changed about exam class intodatabase
(A9): Finish UseCase
Sub – Flows (B1): When system doesn’t find information about exam class which teacher
needs to find System gives a message Teacher can search again or endUsecase
(B2): Teacher doesn’t have a permission to view list of exam class Systemshows a error message Teacher can choose again or end Usecase
(B3): Teacher only has a permission to see information about exam classwhich doesn’t have a permission to repair System shows a error message.End Usecase
(B4): System will save some information about exam class as initial Teachercan repair again or end Usecase
(B5): If one of some information following about exam class whichadministrator has repaired is not validation, system will show a error message
to teacher knows:
className of exam class which teacher has changed is white sign.System shows a message “className of exam class can’t blank”.Teache can repair again or end Usecase
drivePermissionCategoryID of exam class which teacher has changed
is white sign System shows a message “drivePermissionCategoryID ofexam class can’t blank” Teacher can repair again or end Usecase
DrivePermissionCategoryID which teacher has repaired doesn’t survive
in database System shows a message “DrivePermissionCategoryIDdoesn’t survive in database” Teacher can enter again or end Usecase
dateTest of exam class which teacher has changed is white sign orcharacter sign System shows a message “dateTest of exam classcan’t blank and has to be digit sign” Teacher can repair again orend Usecase
Day of dateTest which is less than or equally to current day.System shows a message “dateTest of new exam class isn’t less