Sunteți pe pagina 1din 65

MINI PROJECT REPORT ON

HOTEL MANAGEMENT SYSTEM


Report submitted to the Mahatma Gandhi University in partial fulfillment of the requirement for
award of the degree of
BACHELOR OF COMPUTER APPLICATIONS 2012 - 2013.

By
Name

SANTHOSH MOHAN

Enrollment No :
Course Code

506

Under the guidance of

Nidhiya James

BSS INFORMATION TECHNOLOGY MISSION, THYCAUD


THIRUVANANTHAPURAM
(MG UNIVERSITY OFF-CAMPUS STUDY CENTRE)

DECLARATION
I SANTHOSH MOHAN, undesigned here by declare that
the project report entitled HOTEL MANAGEMENT SYSTEM is a record
of independent project work carries out by me under the supervision and
guidance of Mr.Santhosh Kumar B.R. I also declare that this has not been
previously submitted for the awards of any degree

SANTHOSH MOHAN

Hotel Management System

ACKNOWLEDGEMENT

First of all we give our sincere thanks to almighty God for keeping us fit for
successful completion of this project. In the same note, we are also thankful to our parents for
their help and moral support.
Then I am extremely thankful and profound our deepest gratitude to our respected
Principal Dr.P.Madhusoodanan Pillai, for his guidance, motivation, encouragement and
opportunity given to us throughout course.
I sincerely thank all of my friends and classmates for their valuable suggestions and
inspiration.
I would like to express my deep sense of gratitude to other faculty members of our
college, parents, friends and all other for their help in the fulfillment of this project.

Hotel Management System

CONTENTS
1. INTRODUCTION
1.1 ABOUT THE PROJECT
2. REQUIREMENT ANALYSIS

Page No.
6
6
7

2.1 FEASIBILITY STUDY

2.2 EXISTING SYSTEM

2.3 PROPOSED SYSTEM

10

2.4 FUNCTIONAL DESCRIPTION

10

3. SYSTEM DESIGN

12

3.1 INPUT DESIGN

12

3.2 OUTPUT DESIGN

13

3.3 DATABASE DESIGN

14

3.4 DATA FLOW DIAGRAM

17

4. SYSTEM IMPLEMENTATION

22

4.1 PROCESSING ENVIRONMENT

22

4.2 SOFTWARE DESCRIPTIONS

23

5. SYSTEM CODING

30

6. SYSTEM TESTING

48

7. SCREEN LAYOUTS

51

8. CONCLUSION

59

9. BIBILIOGRAPHY

60

Hotel Management System

ABSTRACT

This project is about HOTEL MANAGEMENT SYSTEM

Hotel Management System

CHAPTER 01
INTRODUCTION
MODULES:PRODUCT: - It contains the details of the Products that are available in the shop. That means
number and types of Products in the available in the shop.

BOOKING:-In this user can booking the Computer.

DELIVERY:-The details that refer to the delivery of the Computer.


DETAILS:-This module is used to the complete details of the Computer Hardwares like which type
of Hardwares that are available in the shop.
CUSTOMER DETAILS:-It contains the complete details of the customer details like customer
name, mobile no, address etc

CHAPTER 02
6

Hotel Management System

REQUIREMENT ANALYSIS
2.1 FEASIBILITY STUDY

Feasibility study is a test of system proposed regarding its workability, impact on the
organization, ability to meet the needs and effective use of resources. Thus, when a new
project is proposed, it normally goes through a feasibility study before it is approved for
development.
A feasibility study is made to see if the project on completion will serve the purpose of the
organization for the amount of work, effort and the time that is spend on it. Feasibility study lets the
developer foresee the future of the project and its usefulness.
All the projects are feasible given unlimited resources and infinite time. Unfortunately, the
development of the computer-based system is more likely to be played by a security of resources and
difficulty delivery dates. Feasibility and risk analysis are related in many ways. If project risk is
great, the feasibility of producing the quality software is reduced.
Steps in Feasibility Study
Feasibility Study involves eight steps:

Form a project team and appoint a project leader.

Prepare a system flow chart.

Enumerate potential candidate systems.

Describe and identify characteristics of candidate systems.

Describe and evaluate performance and cost effectiveness of each candidate systems.

Weight system performance and cost data.

Select the best candidate system.

Prepare and report final project directive and management.


7

Hotel Management System

Mainly three key considerations are involved in the feasibility analysis.

Economic Feasibility

Technical Feasibility

Operational Feasibility

2.1.1 Economical Feasibility


Economical Feasibility is the most frequently used method for evaluating the effectiveness of
the candidate system. More commonly known as cost/benefit analysis, the procedure is to determine
the benefits and savings that are expected from a candidate system and compare them with costs. If
benefits outweigh costs, then the decision is made to design and implement the system. Otherwise,
further justifications or alterations in the proposed system will have to be made if it is having a chance
of being approved. This is an ongoing effort that improves in accuracy at each phase of the system
life cycle.

2.1.2 Technical Feasibility


Technical Feasibility centers on the existing computer system (hardware, software, etc) and to
what extend it can support the proposed addition. For example, if the current computer is operating at
80 percent capacity, an arbitrary ceiling, then running another application could over load the system
or require additional hardware. This involves financial considerations to accommodate technical
enhancements. If the budget is a serious constraint, then the project is judged not feasible.

2.1.3 Operational Feasibility


The main problem faced during development of a new system is getting acceptance from the
user. People are inherently resistant to changes and computers have been known to facilitate change.
It is mainly related to human organizational and political aspects.

Hotel Management System

The points to be considered are:

What changes will be brought with the system?

What new skills will be required? Do the existing staff members have these skills? If not,
can they be trained due course of time?

Generally, project will not be rejected simply because of operational feasibility but such
considerations are likely to critically affect the nature and scope of the eventual recommendations.
This feasibility study is carried out by a small group of people who are familiar with information
system techniques, who understand the parts of the business that are relevant to the project and are
skilled in skilled analysis and design process.
2.2 EXISTING SYSTEM
In the present scenario as the computer world is advancingTransaction,Customer records
and Various Services can decrease staff productivity by making work error-prone how you
communicate with your staff, customers and Employee ,transactions should be highly efficient and
accurate. Many software solutions provide facilities to overcome these defects on traditional billing.

Drawbacks of Existing System

Accuracy cannot be ensured.

Time consuming.

Greater manual labor.

Less flexible.

Difficulties in managing your manual and paper records on customers and suppliers

2.4 PROPOSED SYSTEM

HOTEL MANAGEMENT SYSTEM is software that makes the credit and debit
billing transactions efficient. Another advantage of HOTEL MANAGEMENT SYSTEM is
9

Hotel Management System

check Service details, it is cost-effective. Thousands of customers details can be stored at


this system. There is no much manpower required. HOTEL MANAGEMENT SYSTEM
provides the following functionality

Greater accuracy, speed and reliability of information handling and data processing
operations.

Ability to handle more customers faster with more automatic data processing.

Better data manipulation and easy data retrieval.

Make transactions easier

2.4 FUNCTIONAL DESCRIPTION


Project is divided into 3 modules. They are
Product Management
In this module administrator add the product details. Administrator have the right to add, edit
and delete the products once added ,and User can only add and edit the product details. The addition
of product is completely based on a unique id. Here the admin can search or delete the product on the
basis of product id. Once a transaction is made the quantity of corresponding product gets reduced
from the stock.

Employee Management
In this module Administrator add the Employee details and can edit, update and delete
Employee details. This module also specifies the details of the products which the Employee has. The
addition of Employee is completely based on a unique id. Here the admin can search or delete the
Employee on the basis of supplier id. Also Employee can search the product with respect to product
id.
10

Hotel Management System

Report Generation
This module specifies the report of all the transactions of sales. The billings of transactions are in full
control of the administrator. Administrator can use this report for further reference. It includes the
product id, product name, cost of the product, no. of quantity and so on.

11

Hotel Management System

CHAPTER 03
SYSTEM DESIGN
3.1 INPUT DESIGN
The input design is the process of converting the user-oriented inputs in to the computerbased format. The goal of designing input data is to make automation as easy and free from
errors as possible. The input design requirements such as user friendliness, consistent format
and interactive dialogue for giving the right message and help for the user at right time are
also considered for the development of the project.
The following points should be considered while designing the input:

What data to input?

What medium to use?

How the data should be arranged or coded?

The dialogue to guide users in providing input.

Data items and transactions needing validation to detect errors.

Methods for performing input validation and steps to follow when errors occur.

Inaccurate input data is the most common cause of error in processing data. Errors entered
by the data entry operators can be controlled by the input design. The arrangement of
messages as well as placement of data, headings and titles on display screens or source
document is also a part of input design.
The design of input also includes specifying the means by which end
user and system operators direct the system what action to take.
The input design is the link between the information system and the
user. It comprises the developing specification and procedures for data preparation and those
12

Hotel Management System

steps that are necessary to put transaction data into a usable form for processing data entry.
In this project all the necessary text boxes are validated. The input
forms are designed in Visual Basic 6.0 using GUI Controls like textboxes, listbox, checkbox,
frames, radio button and other controls. If any non-empty fields are not filled, it will display
error message and will wait until user types the necessary and correct input. The combo
boxes are used to reduce the user inputs. The user can select one of the items from combo
boxes. Initially to access the services of this software, the user has to log on with a login
name and password which are validated. Once logged on, he can access the various services,
navigate to different profiles. Once the data are entered through the input forms, they are
stored in the database. In this application the user can select the options using mouse. The
user is also allowed to choose priority using predefined set of values.

3.2 OUTPUT DESIGN


Output generally refers to the results and information that are generated by
the system. When designing output, system analyst must accomplish the following:

Determine what information to present.

Decide whether to display, print the information and select the output medium.

Arrange the presentation of information in an acceptable format.

Decide how to distribute the output to intended recipients.

The output design is specified on layout forms, sheets that describe the
location characteristics, and format of the column headings and pagination. In my project, the
output forms are designed in Visual Basic 6.0. Each form has a heading or caption which
specifies what services is been given to the users making the software user-friendly. All
requests given by the user is sent to the server which is validated and accordingly the
corresponding pages are given to the client users. All information are stored in the database
13

Hotel Management System

and when the user logs on and requests for a service, the corresponding page is fetched from
the server after validation and is rendered.

3.3 DATABASE DESIGN


The most important aspect of building software systems is database design.
The highest level in the hierarchy is the database. It is a set of inter-related files for real time
processing. It contains the necessary data for problem solving and can be used by several users
accessing data concurrently. The general objective of database design is to make the data access easy,
inexpensive and flexible to the user.

Database design is used to define and then specify the structure of


business used in the client/server system. A business object is nothing but information that is
visible to the users of the system. The database must be a normalized one.
Database management system (DBMS) allows the data to be protected and organized
separately from other resources like hardware, software and programs. DBMS is a software
package, which contains components that are not found in other data management packages.
The significance of DBMS is the separation of data as seen by the programs and data as
stored on the direct access storage devices, i.e. the difference between logical and physical
data.
In my project, I have used MS SQL as the database to implement the
data store part. The most important part in the database design is the identification of tables to
be used.
The table in this project are

TABLE DESIGN

14

Hotel Management System

Login
Filed Name

Data Type

Filed Size

Description

UNAME

Varchar

15

Username of the admin

PASSW

Varchar

15

Password of the admin

Filed Name

Data Type

Filed Size

Description

NAME

Varchar

20

Name of Customer

CID

Varchar

20

Check In date

COD

Varchar

20

Check Out Out

NATION

Varchar

20

Nation

AGE

Varchar

Age

OCCUP

Varchar

20

Occupation

SD

Varchar

Stay Days

NOA

Varchar

Number of Adults

NOC

Varchar

Number of Children

CC

Varchar

15

Customer Code

Filed Name

Data Type

Filed Size

Description

NAME

Varchar

20

Name of Customer

CID

Varchar

20

Check In date

COD

Varchar

20

Check Out Out

NATION

Varchar

20

Nation

Customer Details:

Update Customer Details:

15

Hotel Management System

AGE

Varchar

Age

OCCUP

Varchar

20

Occupation

SD

Varchar

Stay Days

NOA

Varchar

Number of Adults

NOC

Varchar

Number of Children

CC

Varchar

15

Customer Code

Type Of Room Wanted:


Filed Name

Data Type

Filed Size

Description

RN

Varchar

Room Number

WF

Varchar

Which Floor

NOBH

Varchar

Number Of Bedroom

TOF

Varchar

20

Type Of Furnishing

SF

Varchar

10

Square Feet

ER

Varchar

10

Expected Rent

EA

Varchar

10

Expected Advance

NOA

Varchar

Number Of Adult

NOC

Varchar

Number of Children

RC

Varchar

Room Code

Transaction Details:
16

Hotel Management System

Filed Name

Data Type

Filed Size

Description

COD

Varchar

15

Check Out Date

COT

Varchar

15

Check Out Time

Varchar

Rate

TC

Varchar

Total Charge

OC

Varchar

Other Charge

ST

Varchar

Sub Total

DISC

Varchar

Discount

GT

Varchar

Grand Total

DP

Varchar

Deposit Paid

RB

Varchar

Remaining Balance

Cleaning:
Filed Name

Data Type

Filed Size

Description

RN

Varchar

15

Room Number

NOC

Varchar

15

Name Of Customer

TOW

Varchar

15

Type of Work

Data Type

Filed Size

Description

RN

Varchar

15

Room Number

NOC

Varchar

15

Name Of Customer

TOW

Varchar

15

Type of Work

Repair Issues:
Filed Name

Vehicle Service:

Filed Name

Data Type

Filed Size

Description

NOC

Varchar

15

Name Of Customer
17

Hotel Management System

RN

Varchar

10

Room Number

NOD

Varchar

50

Name of Destination

TOV

Varchar

20

Type of Vehicle

EP

Varchar

Expected Passenger

NOVN

Varchar

Number Of Vehicle Needed

ST

Varchar

15

Starting Time

ET

Varchar

15

Ending Time

Filed Name

Data Type

Filed Size

Description

TODF

Varchar

15

Type Of Dish For

NAME

Varchar

20

Name Of Dish

RN

Varchar

10

Room Number

CC

Varchar

10

Customer Code

EE

Varchar

Expected Expense

TOOR

Varchar

15

Time of Order

Filed Name

Data Type

Filed Size

Description

DATE

Varchar

15

Date of purchase

RAT

Varchar

10

TC

Varchar

10

Total Charge

OC

Varchar

10

Other Charge

ST

Varchar

10

Sub Total

DISC

Varchar

10

Discount

GT

Varchar

10

Grand Total

Order For:

Transaction details:

Rate of the Item

18

Hotel Management System

Change Password:

Filed Name

Data Type

Filed Size

Description

UNAME

Varchar

15

Username

CUPW

Varchar

15

Current Password

NPW

Varchar

15

New Password

CNPW

Varchar

15

Confirm Password

Filed Name

Data Type

Filed Size

Description

NAME

Varchar

15

Name of Employee

ADDRESS

Varchar

100

Address Of Employee

DESG

Varchar

15

Designation Of Employee

MOB

Varchar

12

Mobile Number

SAL

Varchar

Salary of the Employee

AGE

Varchar

Age of The Employee

FNAME

Varchar

15

Fathers Name

EQ

Varchar

50

Educational Qualification

NATION

Varchar

15

Nationality

DOB

Varchar

15

Date of Birth

GEN

Varchar

Gender

EMPC

Varchar

15

Employee Code

Add Employee Details:

19

Hotel Management System

3.5 DATA FLOW DIAGRAM


A data flow diagram is a graphical technique that depicts information flow and
transforms that are applied as data move from input to output. The DFD is also known as
Data Flow Graph or Bubble Chart. The DFD is used to represent increasing information flow
and functional details. Also DFD can be stated as the starting point of the design phase that
functionally decomposes the requirements specifications down to the lowest level of detail.
A Level 0 also called a fundamental system model or a context level DFD that
represent the entire software elements as a single bubble with input and output data indicated
by incoming and outgoing arrows, respectively. Additional process and information flow
parts are represented in the next level, i.e., level 1 DFD. Each of the processes represented at
level 1 are sub functions of overall system depicted in the context model. Any processes that
are complex in level 1 will be further represented into sub functions in the next level, i.e.,
level 2.
Data flow diagram is a means of representing a system at any level of detail with a
graphic network of symbols showing data flows, data stores, data processes and data sources.
The purpose of data flow diagram is to provide a semantic bridge between users and system
developers. The diagram is the basis of structured system analysis. A DFD describes what

20

Hotel Management System

data flows rather than how they are processed, so it does not depend on hardware, software,
data structure or file organization.

Components of Data Flow Diagram

There are four symbols that are used in the drawing of Data Flow Diagrams:

Entities

External entities represent the sources of data that enter the system or the recipients of data
that leave the system.

Process

Processes represent activities in which data is manipulated by being stored or retrieved or


transformed in some way.

A circle represents it.

The process will show the data

transformation or change.

Databases

21

Hotel Management System

Databases represent storage of data within the system.

Data Flow

A data flow shows the flow of information from its source to its destination. A line represents
a data flow, with arrowheads showing the direction of flow.

CONTEXT DIAGRAM (LEVEL- 0)

ADMINISTRAT
OR

EMPLOYEE

HOTEL
MANAGEME
NT SYSTEM

ADMINISTRAT
OR

EMPLOYEE

LEVEL- 1 ( Admin)
Custo
mer
Info

ADMINISTRAT
OR Hotel Management System

LOGI
N

Add
Customer

Empl
oyeD
etails

Add
Employee

Trans
ctn

Transaction

22

LEVEL- 1 (Employee)

Servic
e
Info

EMPLOYE
E

LOGI
N

HOTEL
Custo
mr
Info

LEVEL- 2 (Admin)

Empl
ye
Detai
ls

Add
Service

Add
Employee

Add

Edit

Add
Customer

Dele
te
Sea
rch
Add

ADMINISTRAT
OR

Empl
oye
Detai
ls

Edit

Dele
te
Sea
rch

Hotel Management System

Trans
ctn

Bill

Add
Employee

23

Transaction

LEVEL- 2 (Employee)
Add

Servic
e Info

Edit

Del
ete

Add
Service

Sea
rch

ADMINISTRAT
OR
Edit
Empl
oye
Detail
s

Sea
rch

Add
Employee

24

Hotel Management System

CHAPTER 04
SYSTEM IMPLEMENTATION

4.1 PROCESSING ENVIRONMENT


4.1.1 Hardware Specification
Processor

Intel Pentium4

RAM

1GB

Hard Disk

40GB

Drives

CD ROM Drive

Display Size

15 Color Monitor

Screen Resolution

800*600 Pixels

Color Palette

True Color (24 bit)

Keyboard

PC/AT Enhanced Type

Mouse

Standard windows keyboard

Monitor

SVGA windows keyboard

25

Hotel Management System

4.1.2 Software Specification


Operating System

: Windows XP

Front End

: Visual Basic 6.0

Back End

: MS SQL SERVER 2005

4.2 SOFTWARE DESCRIPTIONS

O v e r v i e w O f Vis u a l B a s i c 6 . 0
Visual Basic is one of the most successful tools designed by Microsoft
Corporation. The visual basic environment is great for creating, almost any type of
application. Robust stand- alone applications, games, utilities etc can be developed in less
time using Visual Basic and it provides a graphical environment where forms and controls can
be visually designed. Visual Basic is a sophisticated program, which has the following
features

Hardware Independence

Event Driven Programming

HARDWARE INDEPENDENCE

Hardware independence means that an application program that runs in the


Windows environment on a particular piece of hardware can run on any piece of hardware of
sufficient size.

26

Hotel Management System

EVENT DRIVEN

PROGRAMMING

Visual Basic is an object oriented programming language, which uses the


Event Driven Model for doing a work. Here user has control over the
sequence of events i.e., program execution is controlled by events such as mouse click, key
press, double click etc. In a traditional programming environment user must enter information
in an order determined by an application programmer. Programs written to run in a sequential
fashion i.e., when the program starts, it proceeds instruction by instruction until the end of the
program is reached.
FEATURES OF VISUAL BASIC

An important feature of Visual Basic is its Integrated Development


Environment. It is called integrated because the user can access virtually all the development
tools the user needs from the screen called an interface. Visual Basic provides a GUI in which
we visually designed form and controls that become the building blocks of our application.
Visual Basic supports projects, forms, charts, objects, templates, custom controls, add-ins and
data managers. The Integrated Development Environment (IDE) is an important part of Visual
Basic. Visual Basic IDE is made up of a number of components.
FORM:We can use forms for a variety of purposes. Most of the information in a form
comes from an underlying record source, and other information in the form is stored in the
form design. The link between a form and its record source by using graphical objects is
called controls. The most common type of control used to display and enter data is a text box.

27

Hotel Management System

Most form has a delete section, but a form can also include form header, pageheader, page
footer and form footer.
MODULES:A module is a collection of Visual Basic code for applications, declarations
and procedures that are stored together as a unit.
There are two types of modules.
1.

Class module

2.

Standard module

Each procedure in a module can be a function, procedure or a sub procedure.


EVENT:An event is a specific action that occurred on or with a certain object. Events
are usually the results of future actions.
There is a toolbox present with many components, which can be further
added, rather than the already present items. Some of them are:1.

Command button
A command button on a form starts an action or set of functions.

2. Label
Labels on a form or report display descriptive text such as titles, captions or
brief instruction. Labels do not display values from fields or expressions and they do
not change as more from record to record.
3. Textbox
28

Hotel Management System

Textbox helps to display data from a table, query or Oracle statement. Textbox
can also be bound. Data in an unbound textbox isnt stored anywhere.
4. Listbox
In many cases it is quicker and easier to select a value from a list than to
remember a value to type. A list of choices also help to ensure that the values that is
entered in the field is correct. Listform performs this action.
5.

Combobox
A combo box is like a textbox and a list box combined together. To select a
value in a combobox , if the combobox in bound, the entered or selected value is
inserted into the field that the combobox is bound to.

6.

Checkbox
Checkbox acts as a stand-alone control to display a Yes/ No. Value from an
underlying table, query or Oracle statement of the box contains a checkmark, the
value is Yes. If it doesnt the value is No.

7.

Option button
An option button on a form or report is a stand-alone control displays Yes/ No.
Value from a textbox on a form or report display that they are from a table, query or
Oracle statement. If the option button is selected, the value is Yes, if not, the value is
No.

8.

Toggle button
Toggle button on a form is a stand-alone control used to display Yes/No value
from an underlying table, query or Oracle statements.

29

Hotel Management System

MS SQLSERVER 2005
SQL Server 2005 (formerly codenamed "Yukon") was released in
October 2005. It included native support for managing XML data, in addition to relational
data. For this purpose, it defined an xml data type that could be used either as a data type in
database

columns

or

as literals in

queries.

XML

columns

can

be

associated

with XSD schemas; XML data being stored is verified against the schema. XML is converted
to an internal binary data type before being stored in the database. Specialized indexing
methods were made available for XML data.
XML data is queried using XQuery; SQL Server 2005 added some extensions
to the T-SQL language to allow embedding XQuery queries in T-SQL. In addition, it also
defines a new extension to XQuery, called XML DML that allows query-based modifications
to XML data. SQL Server 2005 also allows a database server to be exposed over web
services using Tabular

Data

Stream (TDS)

packets

encapsulated

within SOAP

(protocol) requests. When the data is accessed over web services, results are returned as
XML.
Common Language Runtime (CLR) integration was introduced with this version, enabling
one to write SQL code as Managed Code by the CLR. For relational data, T-SQL has been
augmented with error handling features (try/catch) and support for recursive queries with
CTEs (Common Table Expressions). SQL Server 2005 has also been enhanced with new
indexing algorithms, syntax and better error recovery systems. Data pages are check
summed for better error resiliency, and optimistic concurrency support has been added for
better performance. Permissions and access control have been made more granular and the
query processor handles concurrent execution of queries in a more efficient way. Partitions on
30

Hotel Management System

tables and indexes are supported natively, so scaling out a database onto a cluster is easier.
SQL CLR was introduced with SQL Server 2005 to let it integrate with the .NET Framework.
SQL Server 2005 introduced "MARS" (Multiple Active Results Sets), a method of allowing
usage of database connections for multiple purposes.
SQL Server 2005 introduced DMVs (Dynamic Management Views), which are specialized
views and functions that return server state information that can be used to monitor the health
of a server instance, diagnose problems, and tune performance.
Tables
Tables are the primary building blocks of the SQL database. All data is stored
in tables. Every table in the database focuses on one object. Every row or records in the table
is a unique instance of the subject of the table.

Reports
Whether we like it or not we are still a paper based society, printing the results
of the data. We store reports because they are still necessary. With SQL we can quickly and
easily design reports based on our data.
Relationship
When working with SQL, we can create and use multiple tables, which help to
reduce the redundancy in the database. In this case we set the primary key.

Data type
The data type a field determines the kind of data the field can store.

CONNECTING TO DATABASE

31

Hotel Management System

One of the key features of Visual Basic is powerful database development. Database
programming is done by making use of event driven programming using controls and the
IDE provided with Visual Basic. The various accessing technologies supported by Visual
Basic are

Data Access Object (DAO)

Remote Data Access Object (RDO)

ActiveX Data Object (ADO)

DATA ACCESS OBJECT


Data Access Objects enables us to use programming languages to access and manipulate data
in local or remote database and to manage database, their objects like tables, views, stored
procedures etc.
REMOTE DATA ACCESS
Remote Data Access objects is also a similar programming language like Data
Access Objects, which allows us to access the data from the database easily. It provides
information model for accessing remote data source through ODBC.
ACTIVE X DATA OBJECT
ActiveX Data Object is also a similar programming language like Data Access
Object and Remote Data Access Object to access the data from database easily. The Microsoft
launched it as an initiative towards web based applications. It contains fewer objects and more
properties, methods and events than remote data access object.
DATA REPORT

32

Hotel Management System

To analyze our data or present it in a certain way in print, create a report. Data Report
allows us to use drag and drop to quickly create reports from any record set, including
hierarchical record sets.

33

Hotel Management System

CHAPTER 05
SYSTEM CODING
Login:
Private Sub Command2_Click()
End
End Sub

Private Sub Command1_Click()


Call connect
sq1 = "select* from login where UNAME='" + Text1.Text + "' and PASS='" + Text2.Text + "'"
rs.Open sq1, con, adOpenstatic, adLockReadOnly
If rs.ReordCount > 0 Then
Unload Me
MDI Form.Show
Else
MsgBox "INVALID", vbQuestion
End If
Call disconnect
End Sub
34

Hotel Management System

ADD CUSTOMER DETAILS:


Private Sub Command1_Click()
If Option1.Enabled = True Then
gender = "MALE"
Else
gender = "FEMALE"
End If
If Text1(0).Text = "" Or Text17.Text = "" Or Text18.Text = "" Or Text1(3).Text = ""
Or Text1(2).Text = "" Or Text1(6).Text = "" Or Text14.Text = "" Or Text15.Text = ""
Or Text16.Text = "" Or Text3.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into
CD(NAME,CID,COD,NATION,AGE,OCCUP,SD,NOA,NOC,CC)Values('" + Text1(0).Text
+ "','" + Text17.Text + "','" + Text18.Text + "','" + gender + "','" + Text1(3).Text +
"','" + Text1(2).Text + "','" + Text1(6).Text + "','" + Text14.Text + "','" +
Text15.Text + "','" + Text16.Text + "','" + Text3.Text + "')"
MsgBox "Record Successfully Added"

35

Hotel Management System

Call disconnect
End If
End Sub

Private Sub Command2_Click()


Text1(0).Text = ""
Text17.Text = ""
Text18.Text = ""
Text1(3).Text = ""
Text1(2).Text = ""
Text1(6).Text = ""
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
Text3.Text = ""
End Sub

36

Hotel Management System

Private Sub Command3_Click()


Unload Me

End Sub

EDIT CUSTOMER DETAILS:


Private Sub Command1_Click()
If Text1(0).Text = "" Or Text17.Text = "" Or Text18.Text = "" Or Text1(3).Text = ""
Or Text1(2).Text = "" Or Text1(6).Text = "" Or Text14.Text = "" Or Text15.Text = ""
Or Text16.Text = "" Or Text3.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into
UD(NAME,CID,COD,NATION,AGE,OCCUP,SD,NOA,NOC,CC)Values('" + Text1(0).Text
+ "','" + Text17.Text + "','" + Text18.Text + "','" + Text1(3).Text + "','" +
Text1(2).Text + "','" + Text1(6).Text + "','" + Text14.Text + "','" + Text15.Text +
"','" + Text16.Text + "','" + Text3.Text + "')"
MsgBox "Record Successfully Added"

37

Hotel Management System

Call disconnect
End If
End Sub

Private Sub Command2_Click()


Text1(0).Text = ""
Text17.Text = ""
Text18.Text = ""
Text1(3).Text = ""
Text1(2).Text = ""
Text1(6).Text = ""
Text14.Text = ""
Text15.Text = ""
Text16.Text = ""
Text3.Text = ""
End Sub

Private Sub Command3_Click()


Unload Me

38

Hotel Management System

End Sub
TRANSACTION DETAILS:
Private Sub Command1_Click()
If Text19.Text = "" Or Text20.Text = "" Or Text5.Text = "" Or Text6.Text = "" Or Text7.Text = "" Or
Text8.Text = "" Or Combo8.Text = "" Or Text9.Text = "" Or Text10.Text = "" Or Text11.Text = ""
Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into OF(COD,COT,R,TC,OC,ST,DISC,GT,DP,RB)Values('" + Text19.Text +
"','" + Text20.Text + "','" + Text5.Text + "','" + Text6.Text + "','" + Text7.Text + "','" + Text8.Text + "','"
+ Combo8.Text + "','" + Text9.Text + "','" + Text10.Text + "','" + Text11.Text + "')"
MsgBox "Record Successfully Added"
Call disconnect
End If
End Sub

Private Sub Command2_Click()


Unload Me

End Sub

39

Hotel Management System

Private Sub Command3_Click()


Text19.Text = ""
Text20.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""
End Sub
CLEANING:
Private Sub Command1_Click()
If Text1(0).Text = "" Or Text1(1).Text = "" Or Combo1.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into CLEAN(RN,NOC,TOW)Values('" + Text1(0).Text + "','" + Text1(1).Text +
"','" + Combo1.Text + "')"

40

Hotel Management System

MsgBox "Record Successfully Added"


Call disconnect
End If
End Sub

Private Sub Command2_Click()


Text1(0).Text = ""
Text1(1).Text = ""
End Sub

Private Sub Command3_Click()


Unload Me
End Sub

REPAIR ISSUES:
Private Sub Command1_Click()
If Text1(0).Text = "" Or Text1(1).Text = "" Or Combo1.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
41

Hotel Management System

Call connect
con.execute "insert into CLEAN(RN,NOC,TOW)Values('" + Text1(0).Text + "','" + Text1(1).Text +
"','" + Combo1.Text + "')"
MsgBox "Record Successfully Added"
Call disconnect
End If
End Sub

Private Sub Command2_Click()


Text1(0).Text = ""
Text1(1).Text = ""
End Sub

Private Sub Command3_Click()


Unload Me
End Sub

VEHICLE SERVICE:
Private Sub Command1_Click()

42

Hotel Management System

If Text1(0).Text = "" Or Text1(1).Text = "" Or Text2.Text = "" Or Combo1.Text = "" Or Text3.Text =


"" Or Text4.Text = "" Or Text5.Text = "" Or Text6.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into OF(NOC,RN,NOD,TOV,EP,NOVN,ST,ET)Values('" + Text1(0).Text + "','"
+ Text1(1).Text + "','" + Text2.Text + "','" + Combo1.Text + "','" + Text3.Text + "','" + Text4.Text +
"','" + Text5.Text + "','" + Text6.Text + "')"
MsgBox "Record Successfully Added"
Call disconnect
End If
End Sub

Private Sub Command2_Click()


Text1(0).Text = ""
Text1(1).Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
43

Hotel Management System

End Sub

Private Sub Command3_Click()


Unload Me
End Sub
ORDER FOR:
Private Sub cmdsub_Click()
If Combo1.Text = "" Or Text1(0).Text = "" Or Text1(5).Text = "" Or Text1(3).Text = "" Or
Text1(6).Text = "" Or Text1(7).Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into OF(TODF,NAME,RN,CC,EE,TOOR)Values('" + Combo1.Text + "','" +
Text1(0).Text + "','" + Text1(5).Text + "','" + Text1(3).Text + "','" + Text1(6).Text + "','" +
Text1(7).Text + "')"
MsgBox "Record Successfully Added"
Call disconnect
End If
End Sub

Private Sub Command1_Click()


44

Hotel Management System

Text1(0).Text = ""
Text1(5).Text = ""
Text1(3).Text = ""
Text1(6).Text = ""
Text1(7).Text = ""
End Sub

Private Sub Command2_Click()


Unload Me

End Sub
CHANGE PASSWORD:
Private Sub Command1_Click()
If Text2.Text = "" Or Text3(0).Text = "" Or Text1.Text = "" Or Text4.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into PASSWORD CHANGE(UNAME,CUPW,NPW,CNPW)Values ('" +
Text2.Text + "','" + Text3(0).Text + "','" + Text1.Text + "','" + Text4.Text + "')"
MsgBox "Record Successfully Added"

45

Hotel Management System

Call disconnect
End If
End Sub
Private Sub Command2_Click()
Text2.Text = ""
Text3(0).Text = ""
Text1.Text = ""
Text4.Text = ""
End Sub
Private Sub Command3_Click()
Unload Me
End Sub
ADD EMPLOYEE DETAILS
Private Sub Command1_Click()
If Option1.Enabled = True Then
gender = "MALE"
Else
gender = "FEMALE"
End If

46

Hotel Management System

If Text1(0).Text = "" Or Text1(1).Text = "" Or Text1(5).Text Or Text1(3).Text = "" Or Text1(8).Text =


"" Or Text1(9).Text = "" Or Text1(4).Text = "" Or Text1(2).Text = "" Or Text1(6).Text = "" Or
Text1(7).Text = "" Or Text2.Text = "" Then
MsgBox "Please Enter All Details Before Submit"
Else
Call connect
con.execute "insert into
EMP(NAME,ADDRESS,DESG,MOB,SAL,AGE,FNAME,EQ,NATION,DOB,GEN,EMPC)Values('"
+ Text1(0).Text + "','" + Text1(1).Text + "','" + Text1(5).Text + "','" + Text1(3).Text + "','" +
Text1(8).Text + "','" + Text1(9).Text + "','" + Text1(4).Text + "','" + Text1(2).Text + "','" +
Text1(6).Text + "','" + Text1(7).Text + "','" + gender + "','" + Text2.Text + "')"
MsgBox "Record Successfully Added"
Call disconnect
End If
End Sub

Private Sub Command2_Click()


Unload Me
End Sub
Private Sub Command3_Click()
Text1(0).Text = ""
Text1(1).Text = ""
47

Hotel Management System

Text1(5).Text = ""
Text1(3).Text = ""
Text1(8).Text = ""
Text1(9).Text = ""
Text1(4).Text = ""
Text1(2).Text = ""
Text1(6).Text = ""
Text1(7).Text = ""
Text2.Text = ""
End Sub

48

Hotel Management System

CHAPTER 06
SYSTEM TESTING

System Testing is the stage of implementation, which is aimed at ensuring that


the system works accurately and efficiently as expected before live operation commences. It
certifies that the whole set of program hang together. System testing requires a test plan that
consists of several keys, activities and steps to run program, string, system and user
acceptance testing. The implementation of newly designed package is important in adopting a
successful new system.

Testing Objectives

Testing is the process of correcting a program with intend of finding an error.

A good test is one that has a high probability of finding a yet undiscovered error.

A successful test is one that uncovers an undiscovered error.

DIFFERENT TYPES OF TESTING

Unit Testing
In this testing we test each module individually and integrate the overall

system. Unit testing focuses verification efforts on the smaller unit of software design in the
module. This is also known as module testing. The modules of the system are tested
separately. The testing is carried out during programming stage itself. In this testing step each
module is found to work satisfactory as regard to the expected output from the module. There
are some validation checks for verifying the data input given by the user. It is very easy to
find error and debug the system.
49

Hotel Management System

Integration Testing
Data can be lost across an interface; one module can have an adverse

effect on the other sub functions when combined by may not produce the desired major
functions. Integrated testing is the systematic testing for constructing the uncover errors
within the interface. This testing was done with sample data. The need for integrated test is to
find the overall system performance.

Black Box Testing


This testing attempts to find errors in the following areas or categories:

Incorrect or missing functions, interface errors, errors in data structures, external database
access, performance errors and initialization and termination errors.
Validation Testing
At the culmination of Black Box testing, software is completely
assembled as a package, interface errors have been uncovered and corrected and final series
of software tests, validation tests begins. Validation testing can be defined in many ways but a
simple definition is that validation succeeds when the software functions in a manner that can
be reasonably accepted by the customer.
After validation test has been conducted one of the two possible conditions exists.
1. The function or performance characteristics confirm to specification and are
accepted.
2.

A deviation from specification is uncovered and a deficiency list is created.

50

Hotel Management System

Output Testing
After performing the validation testing, the next step is output testing of the

proposed system since no system could be useful if it doesnt produce the required data in the
specific format. The output displayed or generated by the system under consideration is tested
by, asking the user about the format displayed. The output format on the screen is found to be
correct as the format was designed in the system according to the user needs. Hence the
output testing doesnt result in any correction of the system.

User Acceptance Testing


User acceptance of the system is the key factor for the success of the system.

The system under consideration is tested for user acceptance by constantly keeping in touch
with prospective system at the time of developing and making change wherever required.
This is done with regard to the following points:

Output Screen design.

Input Screen design.

Menu driven system.

White Box Testing


White box testing is a testing case design method that uses the control

structure of the procedural design to derive the test cases. The entire independent path in a
module is exercised at least once. All the logical decisions are exercised at least once.
Executing all the loops at boundaries and within their operational bounds exercise internal
data structure to ensure their validity.

51

Hotel Management System

CHAPTER 07
SCREEN LAYOUTS
Splash Screen:

Login

52

Hotel Management System

53

Hotel Management System

MDI(CUSTOMER):

54

Hotel Management System

Add Customer:

Edit Customer Details:

55

Hotel Management System

Remove Customer Details:

56

Hotel Management System

Type Of Room Wanted:

MDI(TRANSACTION):

57

Hotel Management System

Transaction Details:

MDI(SERVICES):
58

Hotel Management System

Cleaning:

Repair Issues:

59

Hotel Management System

Vehicle Services:

Order For:

60

Hotel Management System

MDI(SECURITY):

Change Password:
61

Hotel Management System

MDI(About Us):

Add Employee Details:

62

Hotel Management System

About Hotel Management System:

CONCLUSION
63

Hotel Management System

This project made by the handwork of the group members and is a small effort in the
development of larger programs, and it involves limited aspects which are needed in day to
day hotel operation. The software development although is a very difficult task but it can be
carried out successfully with the effort of the group work. After the completion of this project
we learnt different things about software and its development. We also learnt to work in a
group and realize its importance. Thus this project can be a guideline for the beginners and
can be example for the development of a small program.
I have developed this software with my utmost capability. By making further modifications I
like to include more details to the system. By adding this, I am sure that my project will be
one of the best simplest sales management systems. I believe that with the graceful blessing
of the ALMIGHTY I can successfully add this feature.
Hotel management system (HMS) is a small program that is related in the field of hotels to
manage customers. This project is designed to fulfill the need of the future generations.This
project is small package which includes different categories as well as having all possible
features. We have expected that it will be helpful to the, customers as well as Administrative
member.We will improve this project in future with online room reservation system and also
improve in security by providing a magnetic coated card to permanent customer for
automatic check in and check out.We are waiting for your best suggestion and encouragement
which could make us improve the future programming much better then the one we have
carried out.

BIBILIOGRAPHY

64

Hotel Management System

1. System Analysis and Design Elias.M.Award, Galgotia Publications, 2001

2. Software Engineering Ian Sommerville

3. Software Project Management Roger.S.Pressman.

4. Mastering ORACLE - Steven M.Bcrawstai

5. MS Visual Studio 6.0- Richard Mansfield

65

Hotel Management System

S-ar putea să vă placă și