[Type here]
Hotel Manager
Develop by PASS Group
Dang Nguyen Quoc Khanh CE130174
Le Phuc Hau CE130176
Nguyen Duy Thanh CE130015
1
Page
Lecturers: Vo Hong Khanh
Assignment 2 HOTEL MANAGER 1
PASS Group Desktop Java Applications
TABLE OF CONTENT
I. PROBLEM DEFINITION...............................................................................................2
1. Form................................................................................................................................ 3
2. Hardware & Software......................................................................................................3
III. SCHEDULE AND ROLE...............................................................................................4
1. Role................................................................................................................................. 4
2. Schedule.......................................................................................................................... 6
IV. DATABASE.................................................................................................................... 8
V. DESIGN PATTERN......................................................................................................12
VI. MAINTENANCE..........................................................................................................15
Assignment 2 HOTEL MANAGER 1
PASS Group Desktop Java Applications
I. PROBLEM DEFINITION
In the simplest way, we can understand that hotel management is the management and
organization of hotel operations so that the business is the most reasonable and most
effective.
Hotel management includes room management, staff management and customer
management
The hotel does not yet have a program to manage reservations and payments. Hotel
staff use Excel software to manage customers' reservations, registration and check-out.
The processing of booking, registration and check-out procedures takes time.
Hard to check the damaged room, control the room status (empty room, using
room, type room ...)
Difficult in managing customer information, invoice information, room
registration information, service registration ...
For these reasons, hotel management needs to have a small program in the hotel
business department that can manage customer information, booking information,
check-in, check-out, reports, room list management.
Figure 1. Problem about hotel manager
Assignment 2 HOTEL MANAGER 2
PASS Group Desktop Java Applications
II. USER REQUIMENT
1. Form
- Input:
Room Rent Managenment: ID Registration, ID Customer, ID Room, ID User
Service, Registration Date, ArriveDate, Depart Date.
Room Managenment: ID Room, ID Type Room, Status.
Type Room Managenment: ID Type Room, Type Room, Price Room.
User Service Managenment: ID User Service, ID Service, ID Registration, ID
Employee, User Date, Total Price.
Bill Managenment:ID Bill, ID Registration, ID Employee, Date of Bill.
Customer Managenment: ID Customer, Name Customer, Date Customer,
Gender, Number Card Customer, Phone Number, Nationality.
Service Managenment: ID Service, Name Service, Price Service.
Employee Managenment: ID Employee, ID Account, Name Employee, Date
Employee, Gender, Number Card Employee, Address, Phone Number, Salary.
Account Managenment: ID Account, User Employee, Password Employee.
- Output:
Employee Managenment: Display all information of employee, search, add,
update (Check status).
Customer Managenment: Display all information of customer, search, add,
update (Check status).
Service Management: Display all service, add service by employee.
Help: How to user the program, add/update (check status).
About: Information of group.
Hardware requirement Software requirement
- CPU: Pentium IV 2.0 GHz or higher. - Operating System: mac OS 10.12+ or
- RAM: 512Mb or higher. Windows 8.1+
- HDD: 128Mb or higher - JRE 1.7 or higher.
2. Hardware & Software
III. SCHEDULE AND ROLE
Assignment 2 HOTEL MANAGER 3
PASS Group Desktop Java Applications
- Client:
Name of customer/tester: Vo Hong Khanh
Address: Road no. 5, Hung Phu residential area, Cai Rang district, Can Tho
city
Email: [email protected]
Phone number: +84 772 144 007
- About Us:
• Name of company: PASS Group
• Address: FPT University, Nguyen Van Cu street, An Binh ward, Ninh Kieu
district, Can Tho city
• Email: [email protected]
• Phone number: +84 386 866 177
1. Role
No Member Role Responsibilities
1 KhanhNDQ Leader
HauLP Analyst Define problem, input,
2
output, process.
KhanhNDQ, ThanhND Coder Program all functions for
3
applications.
4 HauLP,ThanhND Tester Testing all functions.
5 KhanhNDQ, HauLP Designer Design interface.
6 KhanhNDQ, HauLP,ThanhND Maintenaner Check and backup data.
Date of project plan:
Start: June 28th, 2019
End: July 21th, 2019
Project Vision/Objective:
The goal of this project is creating Hotel Managenment is simple and interesting.
Project initiation/ Requirement document:
Interface of program.
Choose the function of the program.
Finish program if interface has a lot of tiles.
Deliverables:
Design document
Assignment 2 HOTEL MANAGER 4
PASS Group Desktop Java Applications
Create interface by Jframe
Create objects with different shapes
Set condition and writing code completely
Program
Plan:
Testing activities: Test code, test program after complete
Demo activities: Demo in classroom
Project schedule:
Problem definition 28/06/2019
User requirement 28/06/2019
Analysis: 28/06/2019
Writing document 28/06/2019 – 07/07/2019
Design interface and object: 07/07/2019 - 16/07/2019
Action of Object: 17/05/2019 – 18/07/2019
Coding: 15/07/2019 - 19/07/2019
Testing: 19/07/2019 - 20/7/2019
Maintenance: 20/07/2019 -21/07/2019
Assignment 2 HOTEL MANAGER 5
PASS Group Desktop Java Applications
2. Schedule
Estimated
Document Planned number of
No. Member names Note
Name start date hours
completed
1 Problem ThanhND, HauLP
28/06/2019 3
definition
2 User KhanhNDQ,HauLP,Thanh
29/06/2019 3
requirement ND
Analysis KhanhNDQ,HauLP,
3 01/07/2019 5
ThanhND
4 Making ThanhND,HauLP,
03/07/2019 6
document KhanhNDQ
Design database ThanhND,KhanhNDQ
5 04/07/2019 10
diagram
Design ThanhND
6 07/07/2019 6
Powerpoint
7 Design interface 09/07/2019 4 KhanhNDQ, HauLP
8 Design Objects 10/07/2019 5 KhanhNDQ,ThanhND
Coding: Log ThanhND,HauLP,KhanhN
9 12/07/2019 5
In/Out DQ
Coding: ThanhND,HauLP
10 Service 14/07/2019 5
Managenment
Coding: KhanhNDQ,HauLP
Employee
11 15/07/2019 5
Managenment
Coding: 16/07/2019 - KhanhNDQ, HauLP,
12 6
Customer 17/07/2019 ThanhND
Assignment 2 HOTEL MANAGER 6
PASS Group Desktop Java Applications
Managenment
Coding: Show HauLP,
13 Menu 17/07/2019 2 KhanhNDQ,ThanhND
Coding: Help, HauLP,KhanhNDQ,Thanh
14 17/07/2019 3
About ND
Edit code ThanhND,KhanhNDQ,Hau
15 18/07/2019 3
LP
Check code ThanhND, KhanhNDQ,
16 18/07/2019 3
HauLP
17 Test-Fix error 19/07/2019 6 KhanhNDQ, HauLP
Complete code ThanhND, HauLP,
18 19/07/2019 3
KhanhNDQ
Testing final ThanhND, HauLP,
19 19/07/2019 2
KhanhNDQ
Check Document ThanhND, HauLP,
20 19/07/2019 1
KhanhNDQ
Complete Submit this project to
21 Project 20/07/2019 Lecturer
Assignment 2 HOTEL MANAGER 7
PASS Group Desktop Java Applications
IV. DATABASE
1. Database diagram
Figure 2. Database of hotel manager
Assignment 2 HOTEL MANAGER 8
PASS Group Desktop Java Applications
2. Table Structure
Table 1: Room Rent
Filed Name Data Type Constraint Decription
ID Registration Long Primary Key ID Registration
ID Customer Long Foreign Key ID Customer
ID Room Long Foreign Key ID Room
ID User Service Long Foreign Key ID User Service
Registration Date Datetime Not null Registration Date
Arrive Date Datetime Not null Arrive Date
Depart Date Datetime Not null Depart Date
Table 2: Room
Filed Name Data Type Constraint Decription
ID Room Long Primary Key ID Room
ID Type Room Long Foreign Key ID Type Room
Status Boolean Tinyint (1) Status
Table 3: Type Room
Filed Name Data Type Constraint Decription
ID Type Room Long Primary Key ID Type Room
Type Room Nvarchar (10) Not null Type Room
Price Room Int Not null Price Room
Table 4: User Service
Assignment 2 HOTEL MANAGER 9
PASS Group Desktop Java Applications
Filed Name Data Type Constraint Decription
ID User Service Long Primary Key ID User Service
ID Service Long Foreign Key ID Service
ID Registration Long Foreign Key ID Registration
ID Employee Long Foreign Key ID Employee
User Date Datetime Not null User Date
Total Price Long Not null Total Price
Assignment 2 HOTEL MANAGER 10
PASS Group Desktop Java Applications
Table 5: Bill
Filed Name Data Type Constraint Decription
ID Bill Long Primary Key ID Bill
ID Registration Long Foreign Key ID Registration
ID Employee Long Foreign Key ID Employee
Date of Bill Datetime Not null Date of Bill
Table 6: Customer
Filed Name Data Type Constraint Decription
ID Customer Long Primary Key ID Customer
Name Customer Nvarchar Not null Name Customer
Date Customer Datetime Not null Date Customer
Gender Boolean Tinyint (1) Gender
Num Card Customer Int (20) Not null Num Card Customer
Address Customer Nvarchar (100) Not null Address Customer
Phone Num Nvarchar (20) Not null Phone Num
Nationality Nvarchar (50) Not null Nationaltity
Table 7: Service
Filed Name Data Type Constraint Decription
ID Service Long Primary ID Service
Name Service Nvarchar (50) Not null Name Service
Price Service Long Not null Price Service
Assignment 2 HOTEL MANAGER 11
PASS Group Desktop Java Applications
Filed Name Data Type Constraint Decription
ID Employee Long Primary Key ID Employee
ID Account Long Foreign Key ID Account
Name Employee Nvarchar (50) Not null Name Employee
Date Employee Datetime Not null Date Employee
Gender Boolean Tinyint(1) Gender
Number Card Employee Int (20) Not null Number Card Employee
Address Nvarchar (100) Not null Address
Phone Number Nvarchar (20) Not null Phone Number
Salary int Not null Salary
Table 8: Employee
Filed Name Data Type Constraint Decription
ID Account Long Primary Key ID Account
User Employee Nvarchar (50) Not null User Employee
Pass Employee Nvarchar (32) Not null Pass Employee
Table 9: Account
Assignment 2 HOTEL MANAGER 12
PASS Group Desktop Java Applications
V. DESIGN PATTERN
Figure 3. Table Log In
Figure 4. Table Menu Hotel Manager
Assignment 2 HOTEL MANAGER 13
PASS Group Desktop Java Applications
Figure 5. Table Customer Manager
Figure 6. Table Employee Manager
Assignment 2 HOTEL MANAGER 14
PASS Group Desktop Java Applications
Figure 7. Table Room Manager
Figure 8. Table List Service
Assignment 2 HOTEL MANAGER 15
PASS Group Desktop Java Applications
VI. MAINTENANCE
When creating a software or application, one important thing to always do is to back up
the system. What needs to be done is to periodically backup to store the entire update in
the server data into storage devices to make backup data. About our attendance software,
we will periodically backup 2 times on week on all 3 members of the group, to be safer
and store more, we can back up on both google drive and USB. This will help when the
software has an error, it can be easily maintained or upgraded without losing data.
Assignment 2 HOTEL MANAGER 16
PASS Group Desktop Java Applications
VII. CHECK LIST
Estimated Actual
Document Planned number of completion
No. Member names Note
Name start date hours time
completed
1 Problem ThanhND, HauLP
28/06/2019 3 2 Done
definition
2 User KhanhNDQ,Hau
29/06/2019 3 LP,ThanhND 2 Done
requirement
3 KhanhNDQ,Hau
Analysis 01/07/2019 5 LP, ThanhND 3 Done
4 KhanhNDQ,Hau Delay
Making
03/07/2019 6 LP, ThanhND 4 4 days
document
Done
5 Design ThanhND,
database 04/07/2019 10 KhanhNDQ 6 Done
diagram
6 ThanhND Delay
Design
07/07/2019 6 4 5 days
Powerpoint
Done
7 KhanhNDQ, Delay
Design
09/07/2019 4 HauLP 3 5days
interface
Done
8 KhanhNDQ,Than Delay
Design
10/07/2019 5 hND 4 6days
Objects
Done
9 ThanhND,HauLP, Delay
Coding: KhanhNDQ 3days
12/07/2019 5 3
Log In/Out Done
10 Coding: ThanhND,HauLP Delay
Service 14/07/2019 6 4 3days
Managenmet Done
11 Coding: KhanhNDQ,Hau Delay
Employee 15/07/2019 5 LP 4 3days
Managenment Done
Assignment 2 HOTEL MANAGER 17
PASS Group Desktop Java Applications
12 Coding: KhanhNDQ, Delay
16/07/2019 - ThanhND, HauLP
Customer 6 5 3 days
17/07/2019
Managenment Done
13 ThanhND, Delay
Coding: KhanhNDQ
17/07/2019 2 2 3 days
Show Menu
Done
14 HauLP,KhanhND Delay
Coding: Help,
17/07/2019 3 Q,ThanhND 2 3 days
About
Done
15 ThanhND,Khanh Delay
Edit code 18/07/2019 4 NDQ,HauLP 6 2 days
Done
16 ThanhND,
Check code 19/07/2019 4 KhanhNDQ, 3
HauLP
17 KhanhNDQ, 4 Done
Test-Fix error 19/07/2019 6
HauLP
18 KhanhNDQ, Done
Complete 2
19/07/2019 3 ThanhND, HauLP
code
19 ThanhND,
Done
Testing final 19/07/2019 5 HauLP,
3
KhanhNDQ
20 ThanhND,
Check Done
19/07/2019 3 HauLP,
Document 2
KhanhNDQ
21 Complete Submit this
Project 20/07/2019 project to
Lecturer
Assignment 2 HOTEL MANAGER 18