Chapter 1: Problem Definitions................................................... 2

Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 48

ACCP 2005 Group Hotel Manager

Mucluc

CHAPTER 1: PROBLEM DEFINITIONS...................................................2


CHAPTER 2: REQUIREMENTANALYSISPHASE........................................................3
1. List of inputs to the system…………………………………………………...……..3
2. List of outputs expected from the system…………………………………………...4
3. Overview of processes involved in the system……………………………………...4
4. Hardware and software required for implementing the project……….…….….......4
CHAPTER 3 : PROJECT PLAN………………...…………………………….….….……….6
1. Project details..............................................................................................................6
2. Project initiation / Requirement Documents…………………….……..…………... 7
3. Deliverables……………………………………………………….…….…................7
4. Project Dependencies………………………………………………….…….………..7
5. Major Project Milestones………………………………………………….….………7
6. Quality Plan..................................................................................................................7
CHAPTER 4 : GUI STANDARDS- DOCUMENT....................................................................8
CHAPTER 5 : E – R DIAGRAM AND INTERFACE DESIGN DOCUMENT…….…...….. 9
I. E – R DIAGRAM………………………………………………………...…..……..9
II. INTERFACE DESIGN DOCUMENT…………………………………….….…..10
CHAPTER 6 : TABLE DESIGN……………………………………………………….……...12
CHAPTER 7 : PROCESS DESIGN DOCUMENT...................................................................14
1. Login………………………………………………………………………………..
2. Change……………………………………………………………………………..
3. Add Employee……………………………………………………………………..
4. Delete Employee………………………………………………………………….
5. Edit Employee…………………………………………………………………….
6. Search Employee…………………………………………………………………
7. New Report………………………………………………………………………..
8. Report Customer…………………………………………………………………
9. Add Customer…………………………………………………………………….
10. Edit Customer…………………………………………………………………….
11. Delete Customer…………………………………………………………………
12. Search Customer…………………………………………………………………
13. Add Room…………………………………………………………………………
14. Edit Room………………………………………………………………………...
15. Delete Room………………………………………………………………………
16. Search Room……………………………………………………………………..
17. Room Category…………………………………………………………………..
18. Check In…………………………………………………………………………..
19. Check Out…………………………………………………………………………
20. Booking Room…………………………………………………………………….
CHAPTER 8 : CODING STANDARDS DOCUMENT.............................................................
1. Programming Standards…………………………………………………………
2. Standards for code writing style………………………………………………
3. Standards for declaring Variables………………………………………………
4. Standards for Function Declarations……………………………………………
5. Other Standards…………………………………………………………………..
CHAPTER 9 : TASK SHEET.....................................................................................................
CHAPTER 10 : TESTTING DOCUMENT...............................................................................
CHAPTER 11 : PROJECT REVIEW .......................................................................................
CHAPTER 12 : FINAL CHECK LIST......................................................................................

Guide teacher: Nguyen Van Kiet Page 1 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 1: PROBLEM DEFINITIONS

Group Hotel is hotel in the center of the Mekong Delta .It provides enough services for
customer such as room booking and order as well. However it takes a lot of time for manager
and need many employers because many things are depended on people.
Hence we need design modern and excellent software for Group Hotel Manager. The software
can bring to the hotel as faster in manager hotel and save time as well as save money.
Thank!
Current System at Group Hotel:

 There are two types of accommodations:

 Guest rooms
 Suite rooms

CHAPTER 2: REQUIREMENT ANALYSIS PHASE


Client/ Project undertaken : Group Hotel.
1 . List of inputs to the system.
a. Information of Customers:
 Cus_ID.
 Cus_Name.
 Birthday
 Gender
 Phone .
 Address.
 ID_card.
 Check_Date.
 StatusCus.
 Room_ID.

b. Information of Hotel:
 Informations of Room:
 Room _ID..
 Room Name.
 Category_ID.
 Floor.
 Persons
 Status.
 Description.

 Catagory Room:
 Category_ID
 Name
 Description.

Guide teacher: Nguyen Van Kiet Page 2 of 48


ACCP 2005 Group Hotel Manager

 Information Bill :
 Bill_ID.
 Room_ID.
 Cus_ID
 Name.
 Birthday.
 Gender
 IDCard
 Address
 Phone
 RoomName
 Name_Category
 Price
 Checkin
 Checkout
 Total.

c. Information of Employee :

 Employee Detail:
 EmployeeID.
 EmployeeName.
 UseName
 Password.
 Gender.
 Birthday
 IDCard.
 Address.
 Email
 Phone.
 Position
 Authorized.
 Create_Date
 Last_Login

2 . List of outputs expected from the system.


a. List of available rooms.
b. List of Customer currently checked in
c. Print Bills.
d. Report business result.
e. Print report.

Guide teacher: Nguyen Van Kiet Page 3 of 48


ACCP 2005 Group Hotel Manager

3. Overview of processes involved in the system.

STT Process Description


1 Login Administration or employee.
2 Booking Room Customers booking rooms.
- Cancellation - Customers cancellation of Room bookings.
3
- Check In - Customers enter rooms.
4 Check Out Customer check out.
5 Bill Bill Room
6 Report Report every week, month
8 End Employee log out.
9 Change Password Employee change password.

4. Hardware and software required for implementing the project.


 Client:
o Software:
- OS: Windows 2000 or later,
- NET Framework 1.1 or later.
- SQL Server 2000.
o Hardware:
- Intel Pentium 4 3.0GHz.
- 512Mb DDRam.
- HDD 80 GB SATA.
- CD Rom 52x.

 Server :
o Software:
- OS : Windows Server 2000 or later.
- SQL Server 2000.
o Hardware:
- PC Intel Core 2 DuO E6420 1.8GHz.
-1Gb (2x512) DD2Ram
- HDD 320 GB SATA, CD Rom 52x.

Guide teacher: Nguyen Van Kiet Page 4 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 3 : PROJECT PLAN

1. Project details :
 Name of the Client : Group Hotel.
 Date of Project Plan :
 Project Vision/Objectives :
- Management room.
+ Room status ever in hotel.
+ Add new, update, lookup information.
- Management customer.
+ Information about customer.
- Management service.
+ Bill pays room money.
+ Print report.
- Management system.
+ Decentralize to ever employee.
 Scope :
- Search and input information.
- Manager information room, customer, manager employee.
- Give out the bill and print.
- The application will be use only you login with the right username and password.
- The application will be use only for manage hotel.
 Our understanding of the client organization :
- About booking room :
+ A receptionist will check about kind of room the customer need. If room is an
available, the receptionist will provide information for customer such as price, service
and detail of the room.
- About manager
+ the managers of hotel are such as the manager employee, manager room and
customer.

 Project Organization with Responsibilities and Authorities :

No Role Member Responsibilities Authorities


- Project Plan
- Division of labor work Decisive
1 Team Leader
- Progress realize
2 Analyst - Form 1,2A

- Design interface
- Design database
3 Designer - Algorithm
Programmer all functions
4 Programmer
required from customer
5 Tester Testing all functions
Implementation
6
Engineer

Guide teacher: Nguyen Van Kiet Page 5 of 48


ACCP 2005 Group Hotel Manager

2. Project initiation / Requirement Documents:


The documents which customers apply for writing the software such as:
+ Room information
+ Customer information

3. Deliverables:
The documents to be handed over to the Client:
- CRS
- Design Document
- Installation Manual
- User Manual

4. Project Dependencies :
- Customer change requirement.
- Customer provider info inadequate and aberrant.
- Members aren't active.
- Lose electricity.

5. Major Project Milestones :


(Generating CRS, Building a Prototype)

No Milestone Start Date End Date Result


1 Analysis requirement
Form 1,2
2 Design Form 4,5,6,7,8
3 Coding
4 Testing Form 10
5 Implementing

6. Quality Plan :
 Review Activities :
Afternoons Monday, Tuesday and Friday are weekly.
The objectives of the review meetings :
+ Check the progress of the project.
+ Members will check each other’s job to find errors.
 Testing Activities :
- Unit Testing.
- Intergradations Testing.
- Functional Testing.
- User Testing.
 Backup and recovery strategies :
- All the data will be saved in two places: flash disk and
computer.
- The computer must be protected from virus.
- Check connection of the network.

Guide teacher: Nguyen Van Kiet Page 6 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 4 : GUI STANDARDS- DOCUMENT

Exam Interface

Property Value
Document theme and color scheme Blue
Form – Background color LightBlue
Title – Font Size 14
Title – Font Color Sans serif
Title – Font Style Bold
Title – Alignment Left
Background color of Controls on the form LightBlue
Foreground color of Controls on the form LightBlue
Control Caption – Font Size 10
Control Caption – Font Color LightBlue
Control Caption – Font Style Regular
Control Caption – controls – Alignment TopLeft
Command button – Alignment MiddleCenter
Background color of command button Blue
Foreground color of command button LightBlue
Command button- Font Size 10
Command button- Font Style Regular

Guide teacher: Nguyen Van Kiet Page 7 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 5 : E – R DIAGRAM AND INTERFACE DESIGN DOCUMENT


I. E – R DIAGRAM

Guide teacher: Nguyen Van Kiet Page 8 of 48


ACCP 2005 Group Hotel Manager

II. INTERFACE DESIGN DOCUMENT

Room _ID..
Name

Name_Categor
y.
Room

Descriptio
n

Status Floor

Persons

Name

Category ID

Category
Room
Decription

Price

Guide teacher: Nguyen Van Kiet Page 9 of 48


ACCP 2005 Group Hotel Manager

Cus_ID
Name

Room_I
Birthday
D

Gender

Customer

Check_Date
Phone

Status
ID_Card Adress

EmployeeName
UserName
EmployeeI
D Password.

Create_Date
Postion
Employee Details
Birthday
Last_Logi
n
Gender
Authorize
d
Phone IDCard
Email
Addres
s

Guide teacher: Nguyen Van Kiet Page 10 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 6 : TABLE DESIGN

1. Customer

2. Employee

3. Room

4. Category

Guide teacher: Nguyen Van Kiet Page 11 of 48


ACCP 2005 Group Hotel Manager

5. Bill

Guide teacher: Nguyen Van Kiet Page 12 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 7 : PROCESS DESIGN DOCUMENT


1.Login Interface

Control on the document


Control Type Default Variable Name Description
Values
1 Label Null lUser User Name
2 Label Null lPass Password
3 TextBox Null txtUsername Text Box
4 TextBox Null txtPassword Text Box
5 Button Null btnLogin Clicked Login button Login User
6 Button Null btnClose Clicked Close button

Begin
Login Algorithm

Input user and password

Error Message
N
Test Valid
Y
N
Test Data Error Message

Y
Access database

Complete message

End
Note :
Test valid: Test information input in form has corrected with type data in database.
Username and Password field is not empty; Username must contain at least 4
characters and at most 100 characters, Password must contain at least 4
characters and at most 200 characters
Test data: Test data in database has corrected with user name and password
or user name andpassword clock because Administrator.
Access database: Access database and show role User
Complete message: Display message Login complete of user manager.

Guide teacher: Nguyen Van Kiet Page 13 of 48


ACCP 2005 Group Hotel Manager

DECENTRALIZATION

Login

User Log out

ChangePas
s
Custome
r

Connecdat
a
Admin Employee

Room

Report Customer

Employee
Manager
Report

Print Bill

Room

Employee Check In

Check
Out
Booking

Print Bill

Guide teacher: Nguyen Van Kiet Page 14 of 48


ACCP 2005 Group Hotel Manager

2.Change Password Interface

Control on the document

Control Type Default Variable Name Description


Values
1 Label Null lUsername User Name
2 Label Null lOldpass Old Password
3 Label Null lNewpass New Password
4 Label Null lConfirmpass Confirm Password
5 TextBox Null txtUsername Text Box
6 TextBox Null txtPassword Text Box
7 TextBox Null txtNewpass Text Box
8 TextBox Null txtConfirm Text Box
9 Button Null btnOk Clicked Ok save change pass User
10 Button Null btnCancel Clicked Close button

Change Password Algorithm


Begin

Input information

N
Error Message Test valid

Y
N Error Message
Test data

Y
Update database

Message complete

End

Guide teacher: Nguyen Van Kiet Page 15 of 48


ACCP 2005 Group Hotel Manager

Note :
Input information Input old password , new password and confirm password of user.
Test valid: Test information input .Username and Old password, New Password and
Confirm new Password field is not empty, Username must contain at least 4
characters and at most 100 characters, Password must contain at least 4 characters
and at most 200 characters, New password and confirm new password must be the same
Test data: User name & Old password inputted must exist in one record in the Employee table.
Update database: Access database of User
Complete message: Display message Successful: “Your password has been changed.”

3. Add Employee Interface

Control on the document


Control Type Default Variable Name Description
Values
1 Label Null lName Name
2 Label Null lPossition Position
3 Label Null lBirthdate Birth Date
4 Label Null lGender Gender
5 Label Null lIDCard ID Card
6 Label Null lAddress Address
7 Label Null lEmail Email
8 Label Null lPhone Phone
9 Label Null lAuthorized Authorized
10 Label Null lNameLog Name Login
11 Label Null lPassword Password
12 Label Null lConfirmpass Confirm Password
13 TextBox Null txtName Text Box
14 ComboBox Manager CboPosition ComboBox
15 ComboBox 2/3/1986 CboBirthday ComboBox
16 ComboBox Male CboGender ComboBox

Guide teacher: Nguyen Van Kiet Page 16 of 48


ACCP 2005 Group Hotel Manager

Control Type Default Variable Name Description


Values
17 TextBox Null txtIDcard Text Box
18 TextBox Null txtAddress Text Box
19 TextBox Null txtEmail Text Box
20 TextBox Null txtPhone Text Box
21 ComboBox No CboAuthorized ComboBox
22 TextBox Null txtNameLog Text Box
23 TextBox Null txtPass Text Box
24 TextBox Null txtConfirmpass Text Box
25 Button Null btnSave Clicked Ok save information User
26 Button Null btnReset Clicked Reset button
17 Button Null btnCancel Clicked Cancel button

Add Employee Algorithm


Begin

Input Information

N
Error Message Test valid
Y N
Test data Error Message

Y
Insert database

Complete Message

End

Note :
Input information: Input information about new User.
Test valid: Test information input .Name, Postion, ID Card, Address, Name Login ,Username and Old
password, New Password and Confirm new Password field is not empty, Username must
contain at least 4 characters and at most 100 characters, Password must contain at least
characters and at most 200 characters. Name login not must be the same Name login different
New password and confirm new password must be the same
Test data: User name & Old password inputted must exist in one record in the Employee table.
Access database: Access database and show role User
Complete message: Display message Successful: “Your add user Successful.”

Guide teacher: Nguyen Van Kiet Page 17 of 48


ACCP 2005 Group Hotel Manager

4. Delete Employee Interface

Control on the document


Control Type Default Variable Name Description
Values
1 Label Null lName Name
2 Label Null lPossition Position
3 Label Null lBirthdate Birth Date
4 Label Null lGender Gender
5 Label Null lIDCard ID Card
6 Label Null lAddress Address
7 Label Null lEmail Email
8 Label Null lPhone Phone
9 Label Null lAuthorized Authorized
10 Label Null lNameLog Name Login
11 Label Null lPassword Password
12 Label Null lConfirmpass Confirm Password
13 TextBox Null txtName Text Box
14 ComboBox Manager CboPosition ComboBox
15 ComboBox 2/3/1986 CboBirthday ComboBox
16 ComboBox Male CboGender ComboBox
17 TextBox Null txtIDcard Text Box
18 TextBox Null txtAddress Text Box
19 TextBox Null txtEmail Text Box
20 TextBox Null txtPhone Text Box
21 ComboBox No CboAuthorized ComboBox
22 TextBox Null txtNameLog Text Box
23 TextBox Null txtPass Text Box
24 TextBox Null txtConfirmpass Text Box
25 Button Null btnSave Clicked Ok save information User
26 Button Null btnReset Clicked Reset button
17 Button Null btnCancel Clicked Cancel button

Guide teacher: Nguyen Van Kiet Page 18 of 48


ACCP 2005 Group Hotel Manager

Delete Employee Algorithm

Begin

Choice User need delete

Check
Error Message Yes or
N No

Y
N
Test Error Message
Data

Y
Delete Database

Delete successful

End

Note :
Choice delete user: Choice user can delete on the form, show message choice Yes/No
Test Data : User Login is not delete User Login
Delete Data: Delete user’s data in table Employee database

Guide teacher: Nguyen Van Kiet Page 19 of 48


ACCP 2005 Group Hotel Manager

5 .Edit Employee Interface

Control on the document


Control Type Default Variable Name Description
Values
1 Label Null lName Name
2 Label Null lPossition Position
3 Label Null lBirthdate Birth Date
4 Label Null lGender Gender
5 Label Null lIDCard ID Card
6 Label Null lAddress Address
7 Label Null lEmail Email
8 Label Null lPhone Phone
9 Label Null lAuthorized Authorized
10 Label Null lNameLog Name Login
11 Label Null lPassword Password
12 Label Null lConfirmpass Confirm Password
13 TextBox Null txtName Text Box
14 ComboBox Manager CboPosition ComboBox
15 ComboBox 2/3/1986 CboBirthday ComboBox
16 ComboBox Male CboGender ComboBox
17 TextBox Null txtIDcard Text Box
18 TextBox Null txtAddress Text Box
19 TextBox Null txtEmail Text Box
20 TextBox Null txtPhone Text Box
21 ComboBox No CboAuthorized ComboBox
22 TextBox Null txtNameLog Text Box
23 TextBox Null txtPass Text Box
24 TextBox Null txtConfirmpass Text Box
25 Button Null btnSave Clicked Ok Update information User
26 Button Null btnReset Clicked Reset button
17 Button Null btnCancel Clicked Cancel button

Guide teacher: Nguyen Van Kiet Page 20 of 48


ACCP 2005 Group Hotel Manager

Edit Employee Algorithm

Begin

Input Information

Error Message N
Test valid
Y
N
Test data Error Message

Y
Update database

Update successful

End

Note :

Input information: Input information about new User.


Test valid: Test information input .Name,Position, ID card , Address field is not empty.
Test data: one record in the Employee table.
Update database: Access database and show User
Complete message: Display message Successful: “Your edit user Successful.”

Guide teacher: Nguyen Van Kiet Page 21 of 48


ACCP 2005 Group Hotel Manager

6.Search Employee Interface

Control on the document

Control Type Default Variable Name Description


Values
1 Label Null lName Name
2 Label Null lPossition Position
3 Label Null lBirthdate Gender
4 TextBox Null txtName Text Box
5 ComboBox Null CboPosition ComboBox
6 ComboBox Null CboGender ComboBox
7 Button Null btnSearch Clicked Search information User

Search Employee Algorithm

Begin

Input Information

Error Message N
Test valid
Y
N
Test data Message

Y
Select database

Show employee Information

End
Note :

Input information: Input name, choice position and gender information about Employee
Test valid: Test information input name.
Test data: In the Employee table.
Message : not search Employee
Select database: Access database

Guide teacher: Nguyen Van Kiet Page 22 of 48


ACCP 2005 Group Hotel Manager

7.Employee Report Interface

Control on the document


Control Type Default Variable Name Description
Values
1 TextBox Null txtReportTitle Text Box
2 Button btnDefault Default Title
3 Button btnPreview Preview
4 Button btnCancel Reset
5 Report viewer reportViewer

Guide teacher: Nguyen Van Kiet Page 23 of 48


ACCP 2005 Group Hotel Manager

8. Customer Report Interface

Control on the document


Control Type Default Variable Name Description
Values
1 TextBox Null txtReportTitle Text Box
2 Button btnDefault Default Title
3 Button btnPreview Preview
4 Button btnCancel Reset
5 Report viewer reportViewer

Guide teacher: Nguyen Van Kiet Page 24 of 48


ACCP 2005 Group Hotel Manager

Customer Interface

Control on the document


Control Type Default Values Variable Name Description
1 Label lblSearchName Name
2 Label lblSearchGender Gender
3 Label lblName Name
4 Label lblIDcard ID card
5 Label lblBirthday Birth Date
6 Label lblGender Gender
7 Label lblAddress Address
8 Label lblPhone Phone
9 Textfield null txtSearchName Text box
10 Textfield null txtName Text box
11 Textfield null txtIDCard Text box
12 Textfield null txtAddress Text box
13 Textfield null txtPhone Text box
14 Textfield null txtID Text box
15 Button btnSearch Search
16 Button btnSave Save new
17 Button btnEdit Save Edit
18 Button btnReset Reset
19 Button btnCancel Cancel
20 Date Time Picker CboBirthdate Date Time Picker
21 Combo Box CboSearchGender Combo Box
22 Combo Box CboGender Combo Box

Guide teacher: Nguyen Van Kiet Page 25 of 48


ACCP 2005 Group Hotel Manager

9.Add Customer Algorithm

Begin

Input customer’s information

N
Error Message
Test
information

Y
N
Test Data Error Message

Insert database

Complete message

End

Note :
Test valid: Test information input in form has corrected with type data in database. Name,
ID Card is not empty. ID Card, Phone is number.
Test data: Test data in database has corrected formated.
Complete message: Display message inserted successfully.

Guide teacher: Nguyen Van Kiet Page 26 of 48


ACCP 2005 Group Hotel Manager

10.Edit Customer Algorithm

Begin
Begin

Find and input customer’s


information

N
Error Message
Test
information
Y
N
Test Data Error Message

Update database

Complete message

End

Note :
Test valid: Test information input in form has corrected with type data in database. Name,
ID Card is not empty. ID Card, Phone is number.
Test data: Test data in database has corrected formated.
Complete message: Display message Updated successfully.

Guide teacher: Nguyen Van Kiet Page 27 of 48


ACCP 2005 Group Hotel Manager

11.Delete Customer Algorithm

Begin

choice Customer
delete

N
Confirm

Y
N
Test Data B Error Message
e
Y g
i
Delete database n
E
r
r
o
Complete message r
M
e
s
End s
a
g
e

N
B
Note : e
Confirm: Are you sure delete this Customer ? (Yes,
g No)
Complete message: Display message Deletedi successfully
n
E
r
r
o
r
M
e
s
s
a
g
e

Guide teacher: Nguyen Van Kiet Page 28 of 48


ACCP 2005 Group Hotel Manager

12. Search Customer Interface

Search Customer Algorithm

Begin

Input Name or choice


Gender

N
Test Data B Message
e
Y g
i
Show Data n
E
r
r
End o
r
M
Note : e
s
Name: Input string. s
Gender: Choice ( Male, Female ) a
g
e

N
B
e
g
i
n
E
r
r
o
r
M
e
s
s
a
g
e
Guide teacher: Nguyen Van Kiet Page 29 of 48
ACCP 2005 Group Hotel Manager

Room Interface

Control on the document

Control Type Default Values Variable Name Description


1 Label lblSearchName Name
2 Label lblSearchCategory Category
3 Label lblSearchPrice Price
4 Label lblName Name
5 Label lblCategory Category
6 Label lblPrice Price
7 Label lblDescription Description
8 Label lblFloor Floor
9 Label lblPersons Persons
10 Textfield null txtSearchName Text box
11 Textfield null txtSearchPrice Text box
12 Textfield null txtName Text box
13 Textfield null txtID Text box
14 Textfield null txtPrice Text box
15 Textfield null txtDescription Text area
16 Textfield null txtFloor Text box
17 Textfield null txtPersons Text box
18 Button btnSearch Search
19 Button btnSave Save new
20 Button btnEdit Save Edit
21 Button btnReset Reset
22 Button btnCancel Cancel
23 Combo Box CboSearchCategory Combo Box
24 Combo Box CboCategory Combo Box

Guide teacher: Nguyen Van Kiet Page 30 of 48


ACCP 2005 Group Hotel Manager

13. Add Room Algorithm

Begin

Input room’s information

Error
N
Message Test information
Begin
Error Y N
Message
Test Data Error Message
N
Begin Y
Error
Message Insert database

Complete message

End

Note :
Test valid: Test information input in form has corrected with type data in database. Name,
Floor, Persons is not empty. Floor, Persons is number.
Test data: Test data in database has corrected formated.
Complete message: Display message inserted successfully.

Guide teacher: Nguyen Van Kiet Page 31 of 48


ACCP 2005 Group Hotel Manager

14. Edit Room Algorithm

Begin

Find and input room’s


information

Error
N
Message Test
information
Y
N
Test Data Error Message

Y
Update database

Complete message

End

Note :
Test valid: Test information input in form has corrected with type data in database. Name,
Floor, Persons is not empty. Floor, Persons is number.
Test data: Test data in database has corrected formated.
Complete message: Display message Updated successfully

Guide teacher: Nguyen Van Kiet Page 32 of 48


ACCP 2005 Group Hotel Manager

15. Delete Room Algorithm

Begin

Choice room delete room

N
Confirm

Y
Delete database

Complete message

End

Note :
Confirm: Are you sure delete this Room ? (Yes, No)
Complete message: Display message Deleted successfully.

Guide teacher: Nguyen Van Kiet Page 33 of 48


ACCP 2005 Group Hotel Manager

16.Search Room Interface

Search Room Algorithm

Begin

Input Name or choice


Category

N
Test Data B Error Message
e
Y g
i
Show Data n
E
r
r
End o
r
M
e
Note: s
Name: Input string. s
a
Category: Choice category name room. g
e

N
B
e
g
i
n
E
r
r
o
r
M
e
s
s
a
g
Guide teacher: Nguyen Van Kiet e Page 34 of 48
ACCP 2005 Group Hotel Manager

17. Category Interface

Control on the document

Control Type Default Values Variable Name Description


1 TextBox Null txtID Category ID
2 TextBox Null txtName Category Name
3 TextBox Null txtPrice Price
4 Button btnSave Save
5 Button btnReset Reset
6 Button btnCancel Cancel
7 DataGrid dgvCategoryRoom

Guide teacher: Nguyen Van Kiet Page 35 of 48


ACCP 2005 Group Hotel Manager

17. Check In Interface

Control on the document

Control Type Default Variable Name Description


Values
1 TextBox Null txtNameSearch String to Search
2 TextBox Null txtCusID Customer ID
3 TextBox Null txtCusName Customer Name
4 TextBox Null Begin
txtCusGender Customer Gender
5 TextBox Null txtCusIDCard Customer ID Card
6 TextBox Null txtRoomID Room ID
7 TextBox Null txtRoomName Room Name
Show Data
8 TextBox Null txtCate Room Category
9 TextBox Null txtDecription Room Decription
10 Datetimepicker Now CbodtaTime Date Check In
11 Button Choice information
btnCheckIn Check In
12 Button btnCancel Cancel
13 Button btnSearch Search
14 DataGrid CheckIn
dgvListCustomer
15 DataGrid dgvListRoom
N
Choice Message
Yes,No
Y
Update database

Check In Algorithm Message successful


Guide teacher: Nguyen Van Kiet Page 36 of 48

End
ACCP 2005 Group Hotel Manager

Search Chech In
Begin

Input information

Search

N
Search
Message
Database
Y
Show Data

End

Note:
Input information: Name Customer
Choice information: choice customer and room

Guide teacher: Nguyen Van Kiet Page 37 of 48


ACCP 2005 Group Hotel Manager

19. Check Out Interface

Control on the document


Control Type Default Variable Name Description
Values
1 TextBox txtID Customer ID
2 TextBox Null txtName Customer Name
3 Datetimepicker Now CboBirth Customer Birth Date
4 ComboBox Null CboGender Customer Gender
5 TextBox Null txtIDCard Customer ID Card
6 TextBox Null txtAddress Customer Address
7 TextBox Null txtPhone Customer Phone
8 TextBox Null txtRoomID Room ID
9 TextBox Null Begin
txtCategory Room Category
10 TextBox Null txtRoomName Room Name
11 TextBox Null txtPrice Room Price
12 Datetimepicker Now CboCheckIn Date Check In
13 Datetimepicker Now
Show Data
CboCheckOut Date Check Out
14 TextBox Null txtSearchName String to Search
15 TextBox Null txtDate Dates Use Room
16 TextBox Null Choice Customer
txtTotal Total Money
17 TextBox Null txtCash Cash
18 TextBox Null txtCost Cost
19 TextBox Null txtSmallChange
Check Out Small Change
20 Button btnCheckOut Check Out
21 Button btnCancel N Cancel
22 Button btnSearch Search Message
Choice Yes,
23 Button No
btnViewAll View All
24 DataGrid DgvCus
Y
Delete database

Check Out Algorithm Message Successful


Guide teacher: Nguyen Van Kiet Page 38 of 48

End
ACCP 2005 Group Hotel Manager

Search Check Out


Begin

Input information

Search

N
Search
Message
Database
Y
Show Data

End

Note:
Input information: Name Customer

Guide teacher: Nguyen Van Kiet Page 39 of 48


ACCP 2005 Group Hotel Manager

20. Booking Room Interface

Control on the document


Control Type Default Variable Name Description
Values
1 TextBox Null txtCusName Customer Name
2 DatetimePicker Now CboBirthDate Customer Birth Date
3 ComboBox Null CboGender Customer Gender
4 TextBox Null txtIDCard Customer ID Card
5 TextBox Null txtAddress Customer Address
6 TextBox Null txtPhone Phone
7 TextBox Null txtIDRoom Room ID
8 TextBox Null txtRoomName Room Name
9 TextBox Null txtDescription Room Description
10 ComboBox Null CboCategory Room Category
11 TextBox Null txtPrice Room Price
12 DatetimePicker Now CboCheckIn Date Check In
13 TextBox Null txtSearchPerson String to Search
14 Button btnBooking Booking
15 Button btnReset Reset
16 Button btnCancel Cancel
17 Button btnSearch Search
18 Button btnViewAll View All
19 DataGrid dgvListRoom

Guide teacher: Nguyen Van Kiet Page 40 of 48


ACCP 2005 Group Hotel Manager

Booking Room Algorithm

Begin

Input information

Error Message
N
Test
information
Y

Choice Room

Insert, update database

Message Successful

End

Search Person
Begin

Input information

Search

N
Search
Message
Database
Y
Show Data

End
Note:
Test information: Test information input in form has corrected with
type data in database.

Guide teacher: Nguyen Van Kiet Page 41 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 8 : CODING STANDARDS DOCUMENT

1.Programming Standards:

Identifier Naming Convention

Class or Strut Pascal Case


Use a noun or noun phrase for class name.
Add an appropriate class-suffix when sub-classing another type
when possible.
Examples:
Private class MyClass
{……..}
public class OrderCollection: CollectionBase
{……...}
private struct ApplicationSettings
{………}

Method Pascal Case


Try to use a Verb or Verb-Object pair.
Example:
public void GetDetails ( ) {……..}

Constant or Static Treat like a Field.


Field Choose appropriate Field access-modifier shown above.

Field Pascal Case


(Public, Protected) Avoid using non-private Fields. Use Properties instead.
Example:
public string Name;
protected Ilist InnerList;

Variable (inline)
Pascal Case
Avoid using single characters like “X” or ”Y” except in FOR
loops.
Avoid enumeratingvariable names like “text1”, “text2”“text3”,etc.

Camel Case and prefix with a single underscore


Field character.
(Private) Example:
private string _name;
private int _totalCount;

Parameter Camel Case


Example:
public void Execute (string commandText, int iterations)
{……}
Guide teacher: Nguyen Van Kiet Page 42 of 48
ACCP 2005 Group Hotel Manager

2. Standards for code writing style:

Controls Supplied With Visual Studio.NET 2003

Prefix Control Description Prefix Control Description


btn Command button nic NotifyIcon
cal MonthCalendar upd Numeric Up Down
cbo Combo box and Drop-down list odlg OpenDialog
box
chk Checkbox psdlg PageSetupDialog
cdlg Color Dialog pnl Panel
cmnu Context Menu pic PictureBox
cr Crystal Report Viewer pdlg PrintDialog
dud Domain Up/ Domain Control ppdlg PrintPreviewDialog
dbg Data Grid rad RadioButton
dtp Date Time Picker rtb RichTextbox
err ErrorProvider sdlg SaveFileDialog
fbd Folder Browse Dialog spl Splitter
fdlg Font Dialog sbr StatusBar
grp Group Box tab TabControl
hlp HelpProvider txt Textbox
hsb Horizontal Scroll Bar tmr Timer
lbl Label tbr ToolBar
lnk LinkLabel tip ToolTip
lst ListBox tkb TrackBar
lvw ListView tvw TreeView
mnu MainMenu vsb Vertical Scroll Bar

Data Access Objects


_conn Database Connection
_dap Data Adapter
_ds Dataset
_dtb Data Table
_drw Data Row
_dvr Dataview Row
_drel Data Relation

3. Standards for declaring Variables:


--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
4. Standards for Function Declarations:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------

5. Other Standards:
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
--------------------------------------------------------------------------------------------------------------
Guide teacher: Nguyen Van Kiet Page 43 of 48
ACCP 2005 Group Hotel Manager

CHAPTER 9 : TASK SHEET

Activity Date of
Project Ref No. Project Title Plan Preparation of
Prepared By Activity Plan
NO Task Sub Description Planne Actual D Team Statu
division d start Start A Mate s
date Date y Names
1. Create Form1 Problems
Definition 2/23/09 3/30/09 7 Tam finish
document
2. Create Form2 CRS document 2/29/09 3/2/09 4 Tam finish
3. Create Form3 Project Plan 3/2/09 3/6/09 4 Phong finish
Document
4. Create Form4 GUI Standards 3/3/09 3/6/09 3 Dong finish
Document
5. Create Form5 ERD document 3/6/09 3/8/09 2 Phong finish
6. Create Form 6 Table Design 3/9/09 3/13/09 4 Phong, finish
document Tam,Dong
7. Login Process ,Design 3/13/09 3/16/09 3 Dong finish
Algorithm
8. Change Pass Process Design 3/13/09 3/17/09 4 Dong finish
Algorithm
9. Add Employee Process Design 3/15/09 3/20/09 5 Dong finish
Algorithm
10. Edit Employee Process Design 3/15/09 3/25/09 10 Dong finish
Algorithm
11. Delete Employee Process Design 3/15/09 3/26/09 10 Dong finish
Algorithm
12. Search Employee Process Design 3/15/09 3/27/09 13 Dong finish
Algorithm
13. Category Room Design 3/16/09 3/18/09 2 Dong finish
Algorithm Process 3/18/09 3/25/09 7 Dong finish
14. Add Room Design 3/16/09 3/18/09 // Dong finish
Algorithm Process 3/18/09 3/25/09 7 Tam finish
15. Edit Room Design 3/16/09 3/18/09 // Dong finish
Algorithm Process 3/18/09 3/29/09 11 Tam finish
16. Delete Room Design 3/16/09 3/18/09 // Dong finish
Algorithm Process 3/18/09 3/30/09 12 Tam finish
17. Search Room Design 3/16/09 3/18/09 // Dong finish
Algorithm Process 3/18/09 3/30/09 12 Tam finish
18. Add Customer Design 3/18/09 3/20/09 // Dong finish
Algorithm Process 3/18/09 4/1/09 13 Tam finish
19. Edit Customer Design 3/18/09 3/20/09 // Dong finish
Algorithm Process 3/20/09 4/4/09 14 Tam finish

Guide teacher: Nguyen Van Kiet Page 44 of 48


ACCP 2005 Group Hotel Manager

20. DeleteCustomer Design 3/18/09 3/20/09 // Dong finish


Algorithm Process 3/20/09 4/4/09 14 Tam finish
21. SearchCustomer Design 3/18/09 3/20/09 // Dong finish
Algorithm Process 3/20/09 4/1/09 11 Tam finish
22. Booking Room Design 3/18/09 3/24/09 4 Dong finish
Algorithm Process 3/24/09 4/10/09 16 Tam,Dong finish
23. Check In Design 3/18/09 3/24/09 4 Dong finish
Algorithm Process 3/24/09 4/10/09 16 Tam,Dong finish
24. Check Out Design 3/18/09 3/24/09 4 Dong finish
Algorithm Process 3/24/09 4/10/09 16 Tam,Dong finish
25. New Report Design 3/16/09 3/20/09 4 Dong finish
Process 3/20/09 Phong
26. Report Design 3/17/09 3/20/09 3 Dong finish
Customer Process 3/20/09 Phong
27. Bill Customer Design 3/17/09 3/19/09 2 Dong finish
Process 3/19/09 Phong
28. Create Form 8 Coding 3/13/09 3/20/09 7 Dong finish
standards
29. Create Form 9 Task sheet 2/29/09 3/10/09 12 Dong,Tam, finish
Phong
30. Create Form 10 Project Tam,Dong
Document Phong
31. Create Form 11 Project Review Tam,Dong
Phong
32. Create Form 12 Final Checklist Tam,Dong
Phong

Guide teacher: Nguyen Van Kiet Page 45 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 10 : TESTTING DOCUMENT

S. No. Features Tested Remarks


Employees can login into the application to the work
1 Done
Basing on their permissions and change their password
Application users can change and save application Done
2
Settings based on their preferences.
Manager can add, edit,and delete employee details Done
3
and tttttttt.
Employees can add, search for, update and delete Done
4
Customer
Employees can create new reports of customer Done
5
information, print reports, add report into database
6 Employee can search for report
7 Employee can process order details Done
8
9
10
11
12
13

CHAPTER 11 : PROJECT REVIEW

Guide teacher: Nguyen Van Kiet Page 46 of 48


ACCP 2005 Group Hotel Manager

Date: Project Plan Work Status of Remarks Responsibility


Activity/ specification the
Milestone Activity
Collect and
Problem
analyse
Definition and Finish Tam,Dong,Phong
customer
CRS
requirements
Check project Finish
Project Design Design Tam,Dong,Phong
Completion
Start Module Finish
Module
Development Tam,Dong,Phong
Development
phase
Module had not Finish
Check Module been finished,
coding add more five Tam,Dong,Phong
Completion days to complete
the modules
Check Module Finish
Module testing
coding Tam,Dong,Phong
and documenting
completion
Complete Finish
Project
Complete
Development,
Project Tam,Dong,Phong
begin module
Development
integration and
applicationtesting
Complete Finish
Application
Application Tam,Dong,Phong
tested
testing
Complete Finish
developing
Employee
Complete
Module
Employee Tam,Dong,Phong
reintegrating
Module
modules, and
testing final
application
Complete Application Finish
Project installation
Tam,Dong,Phong
implementatio completed and
n ready for demo

Guide teacher: Nguyen Van Kiet Page 47 of 48


ACCP 2005 Group Hotel Manager

CHAPTER 12 : FINAL CHECK LIST


S.No Aspect tested Suggestions/ Remarks
1 Have all the modules been property
integrated and are completely functional?

2 Does each unit meet its objective and


purpose?
Are all the validations happening as
specified in Process Design?
3 Have all Design and Coding standards
been followed and implemented.

4 Is the GUI design consistent all over?

5 Are the codes working as per the


specification?

6 Does the application’s functionality


resolve the client problem, and satisfy his
needs completely?

7 Have the hardware and software been


correctly chosen?

8 Additional features and utilities that give


value addition to the entire project.

The End

Guide teacher: Nguyen Van Kiet Page 48 of 48

You might also like