Hotel Management System
Hotel Management System
Prepared by
Team #26
Ruken GÜNEŞ
Bahar TEKE
Özlem HAYRAT
Ömer ÖZTÜRK
2012
HOTEL MANAGEMENT SYSTEM
Preface
This document is Software Design Document for our project named as Hotel Management
System. In this document, system modul will be documented clearly.
TABLE OF CONTENT
PREFACE.......................................................................................................................................2
INTRODUCTION............................................................................................................................3
1.1. Purpose...................................................................................................................................4
1.2. Scope......................................................................................................................................4
1.3. Definitions, Acronyms & Abbreviations...............................................................................4
1.4. REFERANCES.................................................................................................................5
3. SYSTEM COMPONENTS.............................................................................................................7
3.1. Decomposition Description.................................................................................................7
3.1.1. Module Decomposition................................................................................................7
3.1.2. Data Decomposition..................................................................................................21
3.2. Dependency Description...................................................................................................21
3.2.1. Intermodule Description............................................................................................21
3.2.2. Data dependencies....................................................................................................23
A user can book several rooms. A room can be reserved by one user.........................................24
3.3. 3.3 Interface Description...................................................................................................25
3.3.1. Module Interfaces......................................................................................................25
3.3.2. User Interfaces (GUI)...............................................................................................26
4. DETAILED DESIGN................................................................................................................31
4.1. Module Detailed Design....................................................................................................31
4.1.1. Login Module.............................................................................................................31
4.1.2. Register Module.........................................................................................................31
4.1.3. Messaging Module....................................................................................................31
4.2. RTM...................................................................................................................................32
4.3. Data Detailed Design.........................................................................................................33
4.4. Appendix 1 – ER Diagram..................................................................................................36
4.5. Appendix 2 - Class Diagram...............................................................................................36
4.6. Appendix 3 – Interface Codes...........................................................................................37
4.6.1. Main Page Interface Codes (index.html)....................................................................38
4.6.2. Sign Up Interface Codes.............................................................................................39
4.6.3. Sign In Interface Codes..............................................................................................43
4.6.4. Administrator Interface Codes...................................................................................45
4.6.5. Messaging Interface Codes........................................................................................47
4.6.6. Reservation Interface Codes......................................................................................50
4.6.7. Booking Interface.......................................................................................................57
4.6.8. User(Authorized) Interface Codes..............................................................................60
1. Introduction
1.1. Purpose
The purpose of Software Design Description is to identify what need to coded that is
specified in SRS. In this document, brief information of Hotel Management System will be
given.
1.2. Scope
In this document, the detailed description of Hotel Management System will be given.
Our hotel management system project will have a web interface.
In the web interface, there are 3 types of user and which are;
-Administration
-Staff
-Authorized user
Each user type will have a different authorization to access to the system.
DB Database
FP Function Points
GUI Graphic User Interface
HTML Hypertext Markup Language
HW Hardware
IDE Integrated Development Environment
IE Internet Explorer
IEEE Institute of Electrical and Electronics Engineers
I/O Input / Output
IP Initial Plan
KU Knowledge Unit
LOC Line Of Code
MS Microsoft
PS Problem Statement
RAM: Random Access Memory
SDD Software Design Description
SPS Student Portal System
SPMP Software Project Management Plan
SQL Structured Query Language
SRS Software Requirements Specification
SW Software
1.3. REFERANCES
IEEE Std 1058-1998, IEEE Standard for Software Project Management Plans
Pressman, Roger S., Software Engineering, 4th edition, McGraw-Hill, 1997
Fairley, R. E., Work breakdown Structure, Software Engineering Project Management,
IEEE CS Press, 1997
2. System Overview
Hotel management system is a web based project, which helps to hotel employees
interacting to clients and each other. To do this, hotel management system has messaging,
sending e-mail module
3. System Components
The way followed while making module decomposition is to divide the system into
modules so that the operations are done under each module will be higly related with each
other, but they are not so much related with other operations in other modules. Taking this
into consideration, hotel management system project’s main services are as follows;
Type: Application
Function: User enables to register to system and log in. Also this module provide
changing password and help user if they forgot their password.
Subordinates:
- Sing in
- Log in
- Changed Password
Forgotten Password
3.1.1.1.1. Sign in
Identification: Sign in
Type: Process
Purpose: Provides user to get their authorization level which is recorded in corresponding
cell of the user table.
Function: A user enters their required information (e-mail, password) to the web form. If
those information match with a row of the user table, user gets their authorization level.
Subordinates:
- None
3.1.1.1.2. Sign Up
Identification: Sign up
Type: Process
Funtion: A visitor fills the registration form and click on the Complete Registration
button. If every information given is correct, user's information is recorded to user table
and user get the “customer”status by default. For other employee is defined by the
administrator in their panel manually.
Type: Process
Funtion: User enters their old password and new password. New password replaces with
the old password if it is correct.
Subordinates:
None
Type: Process
Funtion: User sends a request to the system that denotes they have forgotten their
password. System sends them an e-mail including their password.
Subordinates:
None
Type: Application
Purpose: This module is used for messaging between users except customer.
Subordinates:
Send Message
Messaging Module (Other Users)
- Send Message
- Delete Message
Type: Process
Funtion: User clicks on the “Delete” button. Message status changes to“deleted” and user
can not see that message anymore. At the end, the message does not deleted from table.
Because of foreign key constraints, the corresponding message's status changes.
Subordinates:
None
Type: Application
Function:
Subordinates:
Searching Module(Administrator)
- Search Room
- Search Employee
- Search Customer
Type: Application
Function:
Subordinates:
- Reserve Room
- Modify Reservation
-Cancel Reservation
Type: Application
Function: This module provides add, delete or change room information like room is
vacated or occupied.
- Add Room
- Delete Room
Type: Application
Purpose: Employee management module provides recording all user information except
from customer.
Subordinates:
- Delete Employee
List Employees
Type : Application
Function: This module provides contact to supplier, sending email and order.
Subordinates:
- Search Supplier
Send E-Mail
Type: Application
Subordinates:
- Add Announcement
- Delete Announcement
Modify Announcement
Subordinates:
None
Type: Application
None
ER and Class Diagrams for Hotel Management System is given in appendix section.
The services and modules of Hotel Management System are given detailed in section 3.1.1.
In this part, the dependency between modules under services will be explained. Also, at the
beginning of that section, dependencies between services are depicted. This part of SDD
examines the dependency between modules under those services. These dependencies are
categorized as following:
If module can be used by only authenticated user, this relation is shown with letters “AU”
stands for “Authenticated Users”.
If module gets some data from other module, this relation is shown with letters “GD”
stands for “Get Data”.
User
Authentication
GD GD
Module GD GD GD GD
Reservation
Module GD
Message Module GD
Search Module GD
Manage room
Module
Employee
management
Module GD GD
Announcement
module GD GD
Contact
toSupplier Modu
Restaurant
management
Module
Intermodule Description
userregistrationInfo – userGeneralInfo
userRegistrationInf
o 1 1 userGeneralInfo
1:1 relation. A user can have one general information. A general information can
belong to one user.
userregistrationInfo – messages
userRegistrationInf
o 2 M Messages
2:M relation. A user may have many messages. A particular message belongs to two
users which are sender and receiver.
userregistrationInfo – announcement
userRegistrationInfo 1 N Announcement
userregistrationInfo - room
userRegistrationI
nfo 1 N Room
A user can book several rooms. A room can be reserved by one user.
ViewInformation
viewReservedRoom
Database Module < - > <-> Profile Module
viewMessages
viewMails
viewSentMessage
viewReceivedMessage
Database Module < - > viewDeletedMessage <-> Message Module
viewMesSender
viewMesReceiver
login
Database Module < - > registration <-> Authentication Module
passwordTransections
setHeader
setImage
Database Module < - > <-> Announcement Module
setContent
announcementHistory
In this part of SDD, user interfaces are explained in detail. The screenshots are taken from
Google Chrome and only HTML and CSS are used in designing user interfaces. There may
be some incompatibility issues with other browsers such as Internet Explorer because of
CSS. However
they will be tested and handled during the application development process.
This interface will be variated according to different user types. For unauthorized users,
there will be a common interface which contains advertisements, announcements, and sign
in, sign up menus.
When user signed in, according to their type, users will be shown different main pages and
those are;
Authorized user: This type of users’ menu will have standard options (HOME, CONTACT,
ABOUT US, and LOG OUT) and RESERVATION option. Also their
Staff: This interface will have ROOMS, MESSAGES and LOG OUT menus. Staff also can
operate offline reservations.
All types of users will have to sign up using this interface. They will have to give
their names, e-mail addresses, passwords and authentication level to complete
their registration. Also a security image will be shown and user will be forced to
enter the text in this image for security issues.
To login, all users will have to use this interface. It will ask the e-mail and password
to users.
Administrators, staff and accounters can use this interface to send and receive
messages. Also deleting and organizing messages features will be included.
wizard who accepts lowest price and higher price to eliminate the unsuitable
rooms. A screenshot is given in appendix section
There will be profile pages for each user which show the information for each user
such as registration date, name, SSN.
2. Detailed Design
Requirement Design
Requirement # Requirement Description ref. reference Module name
CR1
User Authentication Module
- Log-in
1 User Authentication 2.2.1.1 3.1.1.1. - Sign-up
- change Password
- Forgotten Password
Searching
5 Searching 2.2.3.6 3.1.1.3. Module(Administrator)
- Search Room
- Search Customer
- Search Employee
CR3
Country VARCHAR(45) holds the name of country where user lives Turkey
City VARCHAR(45) holds the name of city where user lives Ankara
District VARCHAR(45) holds the name of district where user lives Bahçelievler
Table 3: Message
Description VARCHAR(15) holds the description of the announcement 50% price cut
Table 4: Announcement
Table Name: rooms
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
</p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
</p>
<p align="center"> </p>
<table align="center">
<tr>
<td width="201">
Name:</td>
<td width="149">
</td>
</tr><br>
<tr>
<td>
Surname:
</td>
<td>
</td>
</tr>
<tr>
<td>
E-Mail:
</td>
<td>
</td>
</tr><br>
<tr>
<td>
Password:
</td>
<td>
</td>
</tr>
<tr>
<td>
Authentication Level:
</td>
<td>
<select>
<option value="admin">Administrator</option>
<option value="accounter">Accounter</option>
<option value="staf">Staf</option>
<option value="user">Client</option>
</select>
</td>
</tr><br>
<tr>
<td>
<td>
<input type="text">
</td>
</tr>
<tr>
<td>
</td>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
</p>
<p align="center"> </p>
<table align="center">
<tr>
<td>
E-Mail:
</td>
<td>
</td>
</tr><br>
<tr>
<td>
Password:
</td>
<td>
</td>
</tr>
</table>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">ROOMS|</a>
<a href="">MESSAGES|</a>
<a href="">SUPPLIER|</a>
<a href="">CUSTOMERS|</a>
<h3>ADVERTISEMENT CREATOR</h3>
<tr>
<td height="55">
Header:</td>
<td>
<input type="text">
</td>
</tr>
<tr>
<td height="67">
</td>
<td bgcolor="#FFF">
</tr>
</table>
</p>
<p align="center"> </p>
<p align="center"> </p>
<p align="center"> </p>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<a href="">ROOMS|</a>
<a href="">MESSAGES|</a>
<a href="">ACCOUNTING|</a>
<a href="">CUSTOMERS|</a>
<a href="">Inbox|</a>
<a href="">Sent|</a>
<a href"">Trash</a>
<table>
<tr>
<td>
From:
</td>
<td>
</td>
</tr>
<tr>
<td>
To:
</td>
<td>
</td>
</tr>
<tr>
<td>
Subject:
</td>
<td>
</td>
</tr>
<tr>
<td>
Text:
</td>
<td>
<textarea></textarea>
</td>
</tr>
<tr>
<td>
File:
</td>
<td>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
<a href="">RESERVATION|</a>
</p><br>
<br>
<br>
Room Capacity
<select>
<option>1</option>
<option>2</option>
<option>3</option>
<option>4</option>
</select><br>
<br>
<br>
<table>
<tr>
<td>
ROOM FINDER
</td>
</tr>
<tr>
<td>
Low Price:
</td>
<td>
<input type="text">$
</td>
<td>
</td>
<td>
High Price:
</td>
<td>
<input type="text">$
</td>
</tr>
</table>
<br>
<br>
<br>
<tr>
Room 1</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Available<br>
</td>
</tr>
</table>
<tr>
Room 2</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Available<br>
</td>
</tr>
</table>
<tr>
Room 3</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Reserved<br>
</td>
</tr>
</table>
<tr>
Room 4</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Available<br>
</td>
</tr>
</table>
<tr>
Room 5</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: N/A<br>
</td>
</tr>
</table>
<tr>
Room 6</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Available<br>
</td>
</tr>
</table>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
<a href="">RESERVATION|</a>
</p>
<tr>
Room 1</td>
</tr>
<tr>
<td height="149">
</tr>
<tr>
Status: Available<br>
</td>
</tr>
</table>
<table align="center">
<tr>
<td>
Payment Type:
</td>
<td>
<select>
<option>Credit Card</option>
<option>Transfer</option>
<option>Cash</option>
</select>
</td>
</tr>
<tr>
<td>
Check-In:
</td>
<td>
<Input type="text">
</td>
</tr>
<tr>
<td>
Check-out:
</td>
<td>
<input type="text">
</td>
</tr>
<tr>
<td>
</body>
</html>
<html>
<head>
<style type="text/css">
body {
font-family:verdana,arial,sans-serif;
font-size:10pt;
margin:30px;
background-color:#CCCCCC;
a{
text-decoration:none;
color:#000000;
font-weight:bold;
</style>
</head>
<body><p align="center">
<a href="">HOME|</a>
<a href="">CONTACT|</a>
<a href="">RESERVATION|</a>
<h3>User Information</h3>
<table>
<tr>
<td>
Name:
</td>
<td>
Ruken
</td>
</tr>
<tr>
<td>
Surname:
</td>
<td>
Gunes
</td>
</tr>
<tr>
<td>
SSN:
</td>
<td>
123
</td>
</tr>
</table>
</body>
</html>