hotel management system doc1
TRANSCRIPT
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 1/162154
GULABPURA, BHILWARA (RAJ.) 311021GULABPURA, BHILWARA (RAJ.) 311021
Affiliated to M.D.S. University AjmerAffiliated to M.D.S. University Ajmer
CERTIFICATE This is to certificate that the project work entitled
In Fulfillment Of the Requirement Of BCA Final
Year In Information Technology, Embodies The Work
Done By Them Under My Supervision.
Signature of the Guide
Signature of HOD
Submitted for the Project Work Viva held on ………………………….......................................
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 2/162154
Internal Examiner External
Examiner
GULABPURA, BHILWARA (RAJ.) 311021GULABPURA, BHILWARA (RAJ.) 311021
Affiliated to M.D.S. University AjmerAffiliated to M.D.S. University Ajmer
CERTIFICATE This is to certificate that the project work entitled
In Fulfillment Of the Requirement Of BCA Final
Year In Information Technology, Embodies The Work
Done By Them Under My Supervision.
Signature of the Guide
Signature of HOD
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 3/162154
Submitted for the Project Work Viva held on ………………………….......................................
Internal Examiner External
Examiner
GULABPURA, BHILWARA (RAJ.) 311021GULABPURA, BHILWARA (RAJ.) 311021
Affiliated to M.D.S. University AjmerAffiliated to M.D.S. University Ajmer
CERTIFICATE This is to certificate that the project work entitled
In Fulfillment Of the Requirement Of BCA Final
Year In Information Technology, Embodies The Work
Done By Them Under My Supervision.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 4/162154
Signature of the Guide
Signature of HOD
Submitted for the Project Work Viva held on ………………………….......................................
Internal Examiner External
Examiner
HOTEL MANAGEMENT
SYSTEM
CERTIFICATE
This is certify that the Hotel Management System in
Visual Basic is the original work done by Pratibha and Vinita
Maheshwari as regular students of “Bachelor of Computer
Application” towards the partial fulfillment of the
requirement for award of the BCA Final Year by MDS
University, Ajmer is an authentic work carried out under my supervision at INDRA PROFESSIONAL SANSTHAN COLLEGE,
GULABPURA.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 5/162154
This project demonstrates as good hold of students over the
field of interest. Their work reveals a high technical acumen
as well as aptitude. This work is a product of their labor and
hard work. It is approved for the award of the graduation.
External Examiner
Project Guide
Mr.Y
ogesh chhipa
Dated:
HOTEL MANAGEMENT
SYSTEM
CERTIFICATE
This is certify that the Hotel Management System in
Visual Basic is the original work done by Pratibha kalya as
regular students of “Bachelor of Computer Application”
towards the partial fulfillment of the requirement for award
of the BCA Final Year by MDS University, Ajmer is an
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 6/162154
authentic work carried out under my supervision at INDRA
PROFESSIONAL SANSTHAN COLLEGE, GULABPURA.
This project demonstrates as good hold of students over the
field of interest. Their work reveals a high technical acumen
as well as aptitude. This work is a product of their labor and
hard work. It is approved for the award of the graduation.
External Examiner
Project Guide
Mr.Yogesh Chhipa
Dated:
HOTEL MANAGEMENT
SYSTEM
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 7/162154
CERTIFICATE
This is certify that the Hotel Management System in
Visual Basic is the original work done by VinitaMaheshwari as regular students of “Bachelor of Computer
Application” towards the partial fulfillment of the
requirement for award of the BCA Final Year by MDS
University, Ajmer is an authentic work carried out under my
supervision at INDRA PROFESSIONAL SANSTHAN COLLEGE,
GULABPURA.
This project demonstrates as good hold of students over the
field of interest. Their work reveals a high technical acumen
as well as aptitude. This work is a product of their labor and
hard work. It is approved for the award of the graduation.
External Examiner Project
Guide
Mr.
Yogesh Chhipa
Dated
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 8/162154
Table of content
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 9/162154
S.No. Contents Page
no.
1. Acknowledgement 4
2. Abstract
3. Objectives
4. Visual basic-The Front-End
5. Access Database- The Back-
End
6 SDLC Model
7 Feasibility Study
8 Project Scheduling
9 Introduction to Project
10 Analysis Document
11 Software Process Model
12 Data Flow Diagram
13 Entity Relationship Diagram
14 Bibliography
.15 Database Structure (Tables)
16 The Project (Coding)
17 Reports
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 10/162154
ACKNOWLEDGEMEN
T
It gives me immense pleasure in
submitting this project on A System for
Management of Performance Analysis of
Hotel Management System.
A research work owes its success from commencement to completion, to the people in love with researchers
at various stages. Let we express our gratitude to all
those who helped us in various stage of this study.
First, we would like to express our sincere gratitude
indebtedness to Mr. Nitin Jain (Principal, IPS). We
would also l ike thanking all the people who have
helped us in the project development & we are also
grateful to our guide Mr.Yogesh Sharma for the help
provided in completion of the project, which was
assigned to us.
Last but not least, we pay our sincere thanks and
gratitude to all the Staff Members of I.T Department for making our project valuable and fruitful. We are
also thankful to all my colleagues for their co-
operation and support.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 11/162154
P
ratibha kalya
Vinita
Maheshwari
ABSTRACT As per the available system, we have seen there are a lot of
limitations due to which organization is bearing a high cost
and more manpower. A lot of work burden is on the
management and staff members while handling stock
maintenance and its related different calculations. To
deduce the workload and to streamline the office work, it
has been decided that the computerization is must for the
organization in the present scenario.
The following are the objectives that support the Hotel
Management System:- Reduction in redundant activities.
System can be linked up with other system
Reduction in efforts of manpower engaged in office
Accuracy in the available data.
Availability of data at any site
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 12/162154
Reliability of system and data
Very easy to process information and to retrieve data
whenever required
Recurring cost saving activity
Centralized data
OBJECTIVES
The main objectives of system for Hotel Management
System are:
1. System should support multi-user environment.
2. System should be fully automated.
3. System should provide concrete security features like
creating users and assigning privileges to users of thesystem.
4. System should be capable to keep track of all the detailed
descriptions of the client and the whole details of services
offered by the client organization.
5. Various outputs (reports) should be available online any
time.
.6. System should be able to handle extremely large
volumes of data (i.e. Large database support)
7. System should support multi-user environment.
8. System should be fully automated.
9. System should provide concrete security features like
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 13/162154
creating users and assigning privileges to users of the
system.
INTRODUCTION OF VISUAL
BASIC
Introduction:This PROJECT is for programmers and would be
programmers who want learn visual basic as quickly as
possible, you will be quickly creating applications by
following the simple example. All the applications featured
are fully functional window applications with all the usual
user-interface controls such as command buttons, labels and
textboxes. As long as you are familiar with Windows 9 X’s or
XP, you can easily create applications with Visual basic. You
don’t have to be a Widows expert, but you should feel
comfortable working with menus, the mouse and the
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 14/162154
windows interface. If you’ve opened, closed and re-sized
windows you should have the ability to make own Visual
Basic applications in no time at all.
What is a programming
language?
A computer cannot understand any person’s spoken
language. A spoken language such as English, French, is too
general and ambiguous for computer to understand.
Therefore, we must adapt to the machine and learn the
computer language so that the computer can understand.
This is where visual basic comes into it-when you type visual
basic source code into the computer, the computer
processes these statements into Visual Basic language. The
statements in visual basic, however, do not have multiple
meanings within the same context.
A BERIF DISCRIPTION OF VISUAL
BASIC
VISUAL BASIC is a high level programming language
evolved from the earlier DOS version called BASIC.BASIC
means Beginners’ All-purpose Symbolic Instruction Code. It
is a fairly easy programming language to learn. The codes
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 15/162154
look a bit like English Language. Different software
companies produced different version of BASIC, such as
Microsoft QBASIC, QUICKBASIC, GWBASIC, IBM’s BASIC and
so on.
VISUAL BASIC is a VISUAL and events driven
programming Language. These are the main divergence
from the old BASIC. In BASIC, programming is done in a text-
only environment and the program is executed sequentially.
In VISUAL BASIC, programming is graphical
environment. Because users may click on a certain object
randomly, so each object has to be programmed
independently to be able to response to those actions
(events). Therefore, a VISUAL BASIC program is made up of
many subprograms, each has its own program codes, and
each can be independently and at the same time each can
be linked together in one way or another.
The Visual Basic Environment:
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 16/162154
On start up Visual Basic 6.0 will
display the following dialog box-
You can choose to starts a new
project, open an existing project or select
a list of recently opened programs. A
project is a collection of files that make
up your application. There are various types of applications
we could create; however, we shall concentrate on creating
standard EXE program (EXE means executable
program).Now, click on Standard EXE icon to go into the
actual VB programming environment .
Why I Have Used “VISUAL
BASIC” ?
• The Visual basic is technology committed to improve to
itself continually and grows along with the changes and
the improvements in operating system used.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 17/162154
• Visual Basic enables rapid prototyping as it has various
in-built tools, making programming with Visual Basic
easy.
INTRODUCTION OF MICROSOFT
ACCESS
Microsoft Access database development
is our profession. We have been creating Access databases
full time since 1994 and have developed large database
system’s since1980. We have Access Database Clients
across the U.S. and around the world. We consult to small
companies and corporations. Our MS Access programmers
aim is to create reliable, user friendly Microsoft Access
database at a good price with unequaled customer
support.
“Our database seems to be growing in size at an
alarming rate. It is taking longer and longer for the
database to load. Our look up lists are getting very slow
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 18/162154
too. Is this typical with Access Databases? Is there anything
that can be done? ”
The problem is often caused by an inefficient todatabase table design with little or no table normalization.
Look up lists & Combo boxes are sometimes used
for fields but the programmer stores the actual combo
box values in the destination table rather than a simple
(small) numeric pointer to the combo box entry.
We have questioned programmer about there design
decisions & many seem in client to brag that the have
200 hundred megabytes Access Databases running
with no problem. Those 200 megabytes databases canusually be designed to be only 30 to 40 megabytes.
Microsoft Access Databases can usually we design
to hold large amounts of data efficiently. Extensive use
of lists an pointer into lists (foreign keys) can reduce
the size of a typical spreadsheet style (non-normalized)
by an order of magnitude.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 19/162154
There are many other techniques that can
increase the speed of specific process and function
within an Access Database.
SDLC MODEL
The step in the system development life cycle is
the preliminary investigation. It is the collecting of
information that helps the team members in evaluating the
merits of the project request and thus makes an informed
judgment about the feasibility of the proposed project.
For this proposed system we have done some preliminary
investigation and gathered data through primary methods.
Reviewing organization
documents:
Firstly we have to learn about the organization involved in or
affected by the project. We reviewed the working of the
different departments of the organization and who is the
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 20/162154
person directly associated with the department who are
going to interact with the system.
On site observation
In this process we monitored the office environment, the
workload of the system and the user’s methods of work and
the facilities provided by the organization to the users. The
purpose of on site observation is to get as specific as
possible to the real system being studied. In this method, we
observe the activities of the system directly.
Conducting interviewsWritten documents and the on site observation techniques
tell us how the system should operate but the do not include
enough details for a decisions to be made .We prepared a
questionnaire for the users of the proposed system to learn
more about the nature of the project request and the depths
to which users may retrieve information from it . Sometimes
we also conducted interviews to provide details that further
explained the project and show whether assistance is merits
economically, operationally and technically.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 21/162154
FEASIBILITY STUDY Feasibility is the determination of whether or not a project is
worth doing. The process followed in making this
determination is called a feasibility study. This type of study
determines if a project can and should be taken.
This project has also undertaken in the scope of feasibility
study. As in the manual system there are so many
deficiencies so to overcome from these deficiencies new
computerized system required. But whether the new system
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 22/162154
is feasible in the realistic condition or not for this purpose we
have seen this project from different criteria’s. Many
feasibility studies are necessary for both users and analysts.
The feasibility studies may be carried
out in three phases:-
I. Technical feasibility
II. Operational feasibility
III. Economic feasibility
Technical Feasibility
During technical analysis the technical merits of the system
concept are evaluated, at the same collecting additional
information about performance, reliability, maintainability
and produce ability. In some cases, it also includes a limited
amount of research and design.
Technical analysis begins with an assessment of the viable
of the proposed system. What technologies are required to
accomplish system function and performance? What new
method algorithms or processes are required and what is
their development risk? How will these technologies affect
cost?
Technical feasibility is frequently the most difficult area to
assess at this stage of the product engineering process.
Because objectives functions and performance are
somewhat hazy anything seems possible if the right
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 23/162154
assumptions are made. It is essential that the process of
analysis and definition to be conducted in parallel with an
assessment of technical feasibility.
The considerations those are normally associated with
technical feasibility include:
Development Risk :
Can the system element to design so that necessary
function and performance are achieved within the
constraints uncovered during analysis?
Resource Availability: Are skilled staff available to develop
the system element in question are the other necessary
resources (hardware and software) available to build the
system?
Technology: Has the relevant technology progressed to astate that will support the system?
The considerations that are normally associated with
technical feasibility include development risk, resource
availability and technology.
Operational Feasibility:out by a small group of people who are familiar
with It is mainly related to human organizational and
political aspects. The points to be considered are:
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 24/162154
1) What changes will be brought with the system?
2) What organizational structures are disturbed?
3) What new skills will be required?
Do the existing staff members have these skills? If not, canthey be trained in due course of time?
This feasibility study is carried information system
techniques, who understand the parts of the business that
are relevant to the project and are skilled in system
analysis and design process.
From Office management point of view it is operationally
feasible because workload also reduced and they can
utilize their valuable time in other value addition
activities. Proposed System is beneficial only if that can
termed into information system that will meet the
operating requirements of the organization. This test of
feasibility asks if the system will work when it si
developed and installed.
This is an important question that would help us perceive
any resistance that might come form the end user
community. Top management is committed to this project
and is highly supportive. End user community has
been suffering from the ill effects of the existing system
and perceives that the proposed system would ease their
work. There was no resistance from the employees for the
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 25/162154
proposed system as they were happy to learn that the
manual system is bight automated.
End user community was tiered getting a lashing from their
management that they are not providing right and the
accurate information. They have spent countless nights in
re-working to providing accurate information. However, the
problem of timeliness still persists. The users of the
proposed system welcomed the change as they knew that
the new system would bring right, useful information as and
when required.
Economical Feasibility :
Economic analysis is the most frequently used method for
evaluating the effectiveness of a candidate system. More
commonly known as cost/benefit analysis, the procedureis to determine the benefit s 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. This is an
ongoing effort that improves in accuracy at each phase of
the system life cycle.
Cost-Benefit Analysis:-
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 26/162154
Cost benefit analysis is complicated by criteria that very
with the characteristics of the system to be developed the
relative size of the project and the expected return on
investment desired as part of a company’s strategic plan.
In addition many benefits derived from computer based
system are ignitable (e.g. better design quality through
iterative intimation, increase customer satisfaction throw
programmable control, and better business, decisions
through reformatted and pre-analysis sales data ). Direct
quantities comparisons may be difficulty to achieve.
In a nutshell the following steps are
are to be followed:
1) To study the existing system
2) To define the scope of the proposed system.
3) To study the strengths and weakness of the existingsystem.
4) To study various alternatives.
5) To carry out feasibility studies
6) To get the management approvals.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 27/162154
PROJECT SCHEDULING
The identification of needs of the project is really a typical
job. It is very necessary to identify all the needs of the
system at beginning otherwise the whole purpose of
developing the projects becomes useless.
To identify the needs we went through a long process of
interviewing the personal of the company’s or the
candidates who seek the jobs and we asked a lot many
question to understand the requirements.We put up anti
questions so that personal or candidates could tell us what
they know by their own. We then through that in reference
of the computer are working and managed the needs so
that they can be fulfilled in an easy and comfortable
manner.
It is very important to think the needs keeping in mind the
efficiency and easy implementation. We tried our best to
convert the requirements in form of the software so that
user of the software can get the complete benefits.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 28/162154
The need of the software is created because everything is
going very fast..
Project Planning &
Development
DEVELOPER & DESIGNER:-
VINITA MAHESHWARI
PRATIBHA KALYA
TITLE OF PROJECT:-
Hotel Management System
Plan and Schedule for execution of Project:-
Starting Date :- 25th
DECEMBER, 09
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 29/162
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 30/162154
society. Medicine, law enforcement, government,
banking, education, transportation,
planning – these are only some of the fields in which
computers are already playing the
highly significant role. Over the next few years you can
expect a vast increase in the
range of computer applications and a corresponding
increase in the effect computers will
have on our daily lives.
OBJECTIVES OF THE PROJECT
The main objectives of system for Hotel Management
System are:
1. System should support multi-user environment.
2. System should be fully automated.3. System should provide concrete security features like
creating users and assigning privileges to users of the
system.
4. System should be capable to keep track of all the detailed
descriptions of the client and the whole details of services
offered by the client organization.
5. Various outputs (reports) should be available online any
time..
6. System should be able to handle extremely large volumes
of data (i.e. Large database support)
7. System should support multi-user environment.
8. System should be fully automated.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 31/162154
9. System should provide concrete security features like
creating users and assigning privileges to users of the
system.
10. System should be capable to keep track of all the
detailed descriptions of the client and the whole details of
services offered by the client organization.
HARDWARE SOFTWARE REQUIERMENT
OPERATING SYSTEM: Windows XP.
FRONT END: Visual Basic 6.0
BACK END: MS-Access.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 32/162154
Analysis Document
Software Requirement
Specification (SRS)
1. Objective :
The objective of Hotel Management System is to help the
organization in automating the whole manual processing of the
existing system.
2. Introduction of S/W Requirement :
As the system is based on a set of complex
mathematical calculations, a high level of accuracy is
maintained throughout the whole processing. Manual
calculations are error prone and are sometimes very time &
resource consuming.
The main aim is thus to make the results accurate, fast andwith a minimum stress on the designer/end user.
3. Information description :
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 33/162154
The main objective to develop the system is to
make the accurate & efficient decisions in different tasks at
different time at different situations. The existing system is
manual so members of the unit generally face a lot of
embarrassing situations many times. Now they need toautomate the whole process so as to make it more easy and
accurate.
As they need to expand their work and hence their
workload shall increase so they require a reliable, efficient
and supportive system. Different people who are working
under the organization handle their different tasks. Hence,
to perform all the functions under one system is required.Gathering relevant information from various people was not
an easy task. It took a lot of time to understand their
working, as they were not able to explain everything
properly.
4. Functional Description:
In this system we record customer Check in,
Check out, reservation information date wise as well as
employee information also. Different type of food and their
price are also recorded. Order delivery and their calculation
is also recorded .Salary calculation is maintained in this
system.
5. Behaviour description :
Different type of Changes made in this system can
automatically update the record store in database. We can
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 34/162154
make update item in this system .Enquiry perform by
customer is shown by this system when it is valid.
6. Validation Criteria :
This system read only that data which is valid input entry.
Blank entry is not allowed in this system and numeric data is
valid only for numeric entry.
Software Process Models
To solve actual problems in an industry setting, a
software engineer or a team of engineers must incorporate a
development strategy that encompasses the process, methods
and tools.
A process model for software engineering is chosen based on the
nature of the project and application, the methods and tools to beused, and the controls and deliverables that are required.
Among the various available Software Process Models (Waterfall
model, Spiral model, Prototyping model, etc) the best suited for
this project is the Prototyping Model
Prototyping Model
Often, a customer defines a set of
general objectives for software but does not identify detailed input,
processing, or output requirements. In other cases, the developer
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 35/162154
may be unsure of the efficiency of an algorithm, the adaptability of
an operating system, or the form that human-machine interaction
should take. In these and many other situations, a prototyping
paradigm may offer the best approach.
The prototyping paradigm begins with requirementsgathering. Developer and customer meet and define the overall
objectives for the software, identify whatever requirements are
known, and outline areas where further definition is mandatory. A
“quick design” then occurs.
The quick design focuses on a representation of those
aspects of the software that will visible to the customer/user
(e.g., input approaches and output formats). The quick design
leads t the construction of a prototype. The prototype is
evaluated by the customer/user and is used to refine
requirements for the software to be developed. Iteration occurs
as the prototype is tuned to satisfy the needs of the customer, at
the same time enabling the developer to better understand what
needs to be done.
Ideally, the prototype serves as a mechanism for identifying
software requirements. If a working prototype is built, the
developer attempts to make use of existing program fragments
or applies tools (e.g., report generators, window manager, etc.)
that enable working programs to be generated quickly.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 36/162154
DFD (DATA FLOW DIAGRAM)
Data Flow Diagrams:
Data Flow Diagrams (DFD), also known as bubble chart. It is
used for the purpose of clarifying system requirements and
identifying the major transformation that will become program in
system design, so it is a starting point of the designing phase that
functionally decomposes the requirements specification down tothe lower level of details. A Data Flow Diagram consists of series
of bubbles joined by lines. The bubbles represent the data
transformation and the line represents the data flow in the
system.
Data Flow Diagram Symbols: There are four types of
symbols that are used to design DFD, these are:
1) A SQUARE: A Square defines a source and the destination
of the system Data.
2 ) AN ARROW : An Arrow identifies the Data Flow.
3) A CIRCLE or BUBBLE : A Circle or Bubble represents
the process that transforms incoming Data Flow into outgoing
Data Flow.
4) OPEN RECTANGLE: It represents Data Storage.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 37/162154
The Project entitled “HOTEL MANAGEMENT SYSTEM” is also
designed to solve the purpose of clarifying system requirements
and identifying the major transformation in an Institute related to
their Students, Books issue,
So, Data Flow Diagram plays a major role that
functionally decomposes the requirements
specification down to the lower level of details
andhelps in presenting an effective and efficient
system for Client.
The following level one data flow diagram
characterizes the types of inputs and outputs
and the interactions that the staff may expect
from the hotel reservation system.
Level One Data Flow Diagram
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 38/162154
Breakdown of the SystemModules
A more detailed analysis of the modules that will be involved
in creating a functional hotel management system revealsthe need to break the larger system down into a series of
sub modules. Each of these sub modules has a well defined
interface and a series of precise input and output
requirements. The following level two data flow diagram
breaks down the system more precisely into its component
modules.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 39/162154
Level Two Data Flow
Diagram
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 40/162154
The following textual description of the
major system Features and functions
further illustrates the information needs
and the output of the various modules
depicted in the level two dataflowdiagram.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 41/162154
OPNING A NEW ROOM
CHECK IN OF A NEW CUSTOMER
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 42/162154
RECORD MODIFICATION
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 43/162154
CHECK OUT A NEW
CUSTOMER
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 44/162154
LISTING OF CUSTOMER
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 45/162154
GENRATING BILL OF CUSTOMER
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 46/162154
LIST OF ALL RECORDS
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 47/162154
E-R Diagram
Entity-relationship model
The entity-relationship model or entity-relationship diagram
(ERD) is a data model or diagram for high-level descriptions of
conceptual data model, and it provides a graphical notation for
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 48/162154
representing such data models in the form of entity-relationship
diagrams.
Such models are typically used in the first stage of
information-system design; they are used, for example, to
describe information needs and/or the type of information that is
to be stored in the database during the requirement analysis.
The datamodelling technique, however, can be used to
describe any ontology (i.e. an overview and classifications of
used terms and their relationships) for a certain universe of
discourse (i.e. area of interest).
In the case of the design of an information system that
is based on a database, the conceptual data model is, at a later
stage (usually called logical design), mapped to a logical data
model, such as the relational model; this in turn is mapped to a
physical model during physical design. Note that sometimes, both
of these phases are referred to as "physical design".
There number of conventions for entity-relationship diagrams
(ERDs). The classical notation is described in the remainder of
this article, and mainly relates to conceptual modeling. There are
a range of notations more typically employed in logical and
physical database design
HOTEL CUSTOMER
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 49/162154
Bibliography
BOOK NAME AUTHOR
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 50/162154
Mastering Of Envangelos Petroutsos(BPB
Visual basic Publication)Screen
Of
Layou
t
database
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 51/162154
Login Table (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 52/162154
Reservation Table (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 53/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 54/162154
CHECK IN TABLE (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 55/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 56/162154
CHECK OUT TABLE (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 57/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 58/162154
EDIT ENTRY TABLE (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 59/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 60/162154
Make Payment Table (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 61/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 62/162154
EMPLOYEE TABLE
(HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 63/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 64/162154
Staff Payroll Table (HMS.MDB)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 65/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 66/162154
Design Document Database document is the process of
producing a detailed data model of a database.
This model contains all the needed
logical and physical design choices and
physical storage parameters needed to
generate a design in a Data Definition
Language, which can then be used to create a
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 67/162154
database. A fully attributed data model
contains detailed attributes for each entity.
The term database design can be used to
describe many different parts of the design of
an overall database system. Principally, andmost correctly,
it can be thought of as the logical
design of the base data structures used to
store the data - in the relational model these
are the table and view. However, the term
database design could also be used to apply tothe overall process of designing, not just the
base data structures, but also the forms and
queries used as part of the overall database
application within the Database Management
System or DBMS.
Source Code
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 68/162154
Moduel Form
Public cn As New ADODB.Connection
Public rs As New ADODB.Recordset
Public Sub main()
cn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source= " _
& App.Path & ".\HMS.mdb;Persist Security Info=False"
frmwelcome.Show
End Sub
Welcome Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 69/162154
Coding of Welcome Form
Option expiclit
Private Sub Form_Load()
pb.Value = 0
End Sub
Private Sub Timer1_Timer()
If pb.Value < 100 Then
pb.Value = pb.Value + 0.5
Else
Unload Me
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 70/162154
frmlogin.Show
End If
End Sub
Login Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 71/162154
Coding of Login Form
Option Explicit
Private Sub Command2_Click()
Unload Me
End Sub
Private Sub cmdok_Click()
If txtusername.Text = "" And txtpassword.Text = "" Then
MsgBox " Enter UserName and Password"
Else
If txtusername.Text = rs.Fields(0).Value And txtpassword.Text
= rs.Fields(1).Value Then
mainfrm.Show
Unload Me
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 72/162154
Exit Sub
Else
MsgBox "Invalid Username or Password, try again!",
vbCritical, "Login"
txtusername.Text = ""
txtpassword.Text = ""
txtusername.SetFocus
End If
End If
End Sub
Private Sub Form_Load()
rs.Open "select * from Login", cn, adOpenKeyset,
adLockOptimistic
End Sub
Private Sub Form_Unload(Cancel As Integer)
rs.Close
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 73/162154
Main MDI Form
Coding of Menu Form
Private Sub calu_Click()
Shell "calc"
End Sub
Private Sub charges_Click()
frmcharges.Show
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 74/162154
Private Sub check_Click()
frmcheckin.Show
End Sub
Private Sub chekout_Click()
frmcheckout.Show
End Sub
Private Sub chngpass_Click()
frmChangepassword.Show
End Sub
Private Sub custreport_Click()
DataReport1.Show
End Sub
Private Sub edit_Click()
frmeditentry.Show
End Sub
Private Sub emp_Click()
frmsearchemprecord.Show
End Sub
Private Sub emply_Click()
frmemployee.Show
End Sub
Private Sub empreport_Click()
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 75/162154
DataReport2.Show
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label1.BackColor = &HFF8080
Label1.ForeColor = vbWhite
Label2.BackColor = &HFF8080
Label2.ForeColor = vbWhite
Label3.BackColor = &HFF8080
Label3.ForeColor = vbWhite
Label4.BackColor = &HFF8080
Label4.ForeColor = vbWhite
Label5.BackColor = &HFF8080
Label5.ForeColor = vbWhite
Label6.BackColor = &HFF8080
Label6.ForeColor = vbWhite
Label7.BackColor = &HFF8080
Label7.ForeColor = vbWhite
End Sub
Private Sub exit_Click()
End
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 76/162154
Private Sub guest_Click()
frmSearchGuest.Show
End Sub
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label1.BackColor = vbWhite
Label1.ForeColor = &HFF8080
End Sub
Private Sub Label1_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As
Single)
If Button = vbLeftButton Then
PopupMenu guests, vbPopupMenuLeftAlign, 500, 3500
End If
End Sub
Private Sub Label2_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label2.BackColor = vbWhite
Label2.ForeColor = &HFF8080
End Sub
Private Sub Label2_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As
Single)
If Button = vbLeftButton Then
PopupMenu empl, vbPopupMenuLeftAlign, 2000, 3500
End If
End Sub
Private Sub Label3_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 77/162154
Label3.BackColor = vbWhite
Label3.ForeColor = &HFF8080
End Sub
Private Sub Label3_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As
Single)
If Button = vbLeftButton Then
PopupMenu sear, vbPopupMenuLeftAlign, 3890, 3500
End If
End Sub
Private Sub Label4_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label4.BackColor = vbWhite
Label4.ForeColor = &HFF8080
End Sub
Private Sub Label4_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As
Single)
If Button = vbLeftButton Then
PopupMenu view, vbPopupMenuLeftAlign, 5700, 3500
End If
End SubPrivate Sub Label5_MouseMove(Button As Integer, Shift As Integer, X As Single,
Y As Single)
Label5.BackColor = vbWhite
Label5.ForeColor = &HFF8080
PopupMenu rep, vbPopupMenuLeftAlign, 8400, 3500
End Sub
Private Sub Label6_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label6.BackColor = vbWhite
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 78/162154
Label6.ForeColor = &HFF8080
End Sub
Private Sub Label6_MouseUp(Button As Integer, Shift As Integer, X As Single, Y As
Single)
If Button = vbLeftButton Then
PopupMenu util, vbPopupMenuLeftAlign, 9800, 3500
End If
End Sub
Private Sub Label7_Click()
End
End Sub
Private Sub Label7_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As
Single)
Label7.BackColor = vbWhite
Label7.ForeColor = &HFF8080
End Sub
Private Sub Make_Click()
frmMakepayment.Show
End Sub
Private Sub not_Click()
Shell "notepad"
End Sub
Private Sub pmtreport_Click()
DataReport3.Show
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 79/162154
End Sub
Private Sub res_Click()
frmrservation.Show
End Sub
Private Sub stafpay_Click()
frmstaffpayroll.Show
End Sub
Private Sub status_Click()
frmstatushotel.Show
End Sub
Reservation Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 80/162154
Coding of Reservation
Form
Option Explicit
Dim i As Integer
Public Sub Blank()
txtname.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
txtState.Text = ""
txtCountry.Text = ""
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 81/162154
txtcompany.Text = ""
txtdesignation.Text = ""
txttelephone.Text = ""
cboRoomType.ListIndex = -1
cboRoomNo.ListIndex = -1
txtadvance.Text = ""
End Sub
Private Sub cboRoomType_Click()
If cboRoomType.List(cboRoomType.ListIndex) = "Single Room"
Then
For i = 1 To 50
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Double
Room" Then
For i = 51 To 100
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Deluxesuite
Room" Then
For i = 100 To 150
cboRoomNo.AddItem Str(i)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 82/162154
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Suiter Room"
Then
For i = 150 To 20
cboRoomNo.AddItem Str(i)
Next
End If
End Sub
Private Sub cmdAdd_Click()
If txtname.Text = "" Then
MsgBox "fill the name"
txtname.SetFocus
Exit Sub
End If
If txtaddress.Text = "" Then
MsgBox "fill the address"
txtaddress.SetFocus
Exit Sub
End If
If txtcity.Text = "" Then
MsgBox "fill the city"
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 83/162154
txtcity.SetFocus
Exit Sub
End If
If txtState.Text = "" Then
MsgBox "fill the state name"
txtState.SetFocus
Exit Sub
End If
If txtCountry.Text = "" Then
MsgBox "fill the country name"
txtCountry.SetFocus
Exit Sub
End If
If txtcompany.Text = "" Then
MsgBox "fill the company name"
txtcompany.SetFocus
Exit Sub
End If
If txtdesignation.Text = "" Then
MsgBox "fill the Designation"
txtdesignation.SetFocus
Exit Sub
End If
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 84/162154
If cboRoomType.Text = "" Then
MsgBox "select the room type"
cboRoomType.SetFocus
Exit Sub
End If
If txtadvance.Text = "" Then
MsgBox "fill the advanced payment"
txtadvance.SetFocus
Exit Sub
End If
If cboRoomType.ListIndex = -1 Then
MsgBox "Select Room Type"
cboRoomType.SetFocus
Exit Sub
ElseIf cboRoomNo.ListIndex = -1 Then
MsgBox "Select Room No."
cboRoomNo.SetFocus
Exit Sub
End If
rs.AddNew
rs.Fields(1).Value = txtname.Text
rs.Fields(2).Value = txtaddress.Text
rs.Fields(3).Value = txtcity.Text
rs.Fields(4).Value = txtState.Text
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 85/162154
rs.Fields(5).Value = txtCountry.Text
rs.Fields(6).Value = txtcompany.Text
rs.Fields(7).Value = txtdesignation.Text
rs.Fields(8).Value = txttelephone.Text
rs.Fields(9).Value = DTPicker1
rs.Fields(10).Value = cboRoomType.Text
rs.Fields(11).Value = cboRoomNo.Text
rs.Fields(12).Value = txtadvance.Text
rs.Fields(13).Value = DTPicker2
rs.Update
Call Blank
MsgBox "save the existing record"
txtname.SetFocus
End Sub
Private Sub cmdcancel_Click()
Unload Me
End Sub
Private Sub DTPicker1_Change()
DTPicker1.Value = DTPicker1
End Sub
Private Sub DTPicker2_Change()
DTPicker.Value = DTPicker2
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 86/162154
End Sub
Private Sub Form_Load()
rs.Open "select * from Reservation", cn, 3, 2
End Sub
Private Sub Form_Unload(Cancel As Integer)
rs.Close
End Sub
Check In Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 87/162154
Coding of Check In Form
Option Explicit
Dim i As Integer
Public Sub Blank()
txtname.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
txtState.Text = ""
txtCountry.Text = ""
txtcompany.Text = ""
txtdesignation.Text = ""
txttelephone.Text = ""
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 88/162154
cboRoomType.ListIndex = -1
cboRoomNo.ListIndex = -1
txtadvance.Text = ""
End Sub
Private Sub cboRoomType_Click()
If cboRoomType.List(cboRoomType.ListIndex) = "Single Room"
Then
For i = 1 To 50
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Double
Room" Then
For i = 51 To 100
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Deluxesuite
Room" Then
For i = 100 To 150
cboRoomNo.AddItem Str(i)
Next
End If
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 89/162154
If cboRoomType.List(cboRoomType.ListIndex) = "Suiter Room"
Then
For i = 150 To 20
cboRoomNo.AddItem Str(i)
Next
End If
End Sub
Private Sub cmdAdd_Click()
If txtname.Text = "" Then
MsgBox "fill the name"
txtname.SetFocus
Exit Sub
End If
If txtaddress.Text = "" Then
MsgBox "fill the address"
txtaddress.SetFocus
Exit Sub
End If
If txtcity.Text = "" Then
MsgBox "fill the city"
txtcity.SetFocus
Exit Sub
End If
If txtState.Text = "" Then
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 90/162154
MsgBox "fill the state name"
txtState.SetFocus
Exit Sub
End If
If txtCountry.Text = "" Then
MsgBox "fill the country name"
txtCountry.SetFocus
Exit Sub
End If
If txtcompany.Text = "" Then
MsgBox "fill the company name"
txtcompany.SetFocus
Exit Sub
End If
If txtdesignation.Text = "" Then
MsgBox "fill the Designation"
txtdesignation.SetFocus
Exit Sub
End If
If cboRoomType.Text = "" Then
MsgBox "select the room type"
cboRoomType.SetFocus
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 91/162154
Exit Sub
End If
If txtadvance.Text = "" Then
MsgBox "fill the advanced payment"
txtadvance.SetFocus
Exit Sub
End If
If cboRoomType.ListIndex = -1 Then
MsgBox "Select Room Type"
cboRoomType.SetFocus
Exit Sub
ElseIf cboRoomNo.ListIndex = -1 Then
MsgBox "Select Room No."
cboRoomNo.SetFocus
Exit Sub
End If
rs.AddNew
rs.Fields(1).Value = txtname.Text
rs.Fields(2).Value = txtaddress.Text
rs.Fields(3).Value = txtcity.Text
rs.Fields(4).Value = txtState.Text
rs.Fields(5).Value = txtCountry.Text
rs.Fields(6).Value = txtcompany.Text
rs.Fields(7).Value = txtdesignation.Text
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 92/162154
rs.Fields(8).Value = txttelephone.Text
rs.Fields(9).Value = DTPicker1
rs.Fields(10).Value = cboRoomType.Text
rs.Fields(11).Value = cboRoomNo.Text
rs.Fields(12).Value = txtadvance.Text
rs.Update
Call Blank
'rs.MoveNext
MsgBox "save the existing record"
txtname.SetFocus
End Sub
Private Sub cmdcancel_Click()
Unload Me
End Sub
Private Sub DTPicker1_Change()
DTPicker1.Value = DTPicker1
End Sub
Private Sub Form_Load()
rs.Open "select * from Chkin", cn, adOpenKeyset,adLockOptimistic
End Sub
Private Sub Form_Unload(Cancel As Integer)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 93/162154
rs.Close
End Sub
Private Sub lbldate_Click()
lbldate.Caption = Date
End Sub
Private Sub Timer1_Timer()
lbldate.Caption = Datelbltime.Caption = Time
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 94/162154
Checkout Form
Coding of CheckOut Form
Option Explicit
Public Sub Blank()
cboGuID.ListIndex = -1
txtname.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 95/162154
txtState.Text = ""
txtCountry.Text = ""
txtcompany.Text = ""
txtdesignation.Text = ""
txttelephone.Text = ""
txtRoomType.Text = ""
txtRoomNo.Text = ""
txtadvance.Text = ""
'txtDOChkin.Text = ""
txtTOChkIn.Text = ""
txtBalance.Text = ""
txtTotalBill.Text = ""
End Sub
Private Sub cboGuID_Click()
cmddelete.Enabled = True
With RS_GuestIn
rs.MoveFirst
While Not .EOF
If cboGuID.List(cboGuID.ListIndex) = rs.Fields(1) Then
DTPicker1.Text = rs.Fields(0)
txtname.Text = rs.Fields(2)
txtaddress.Text = .Fields(3)
txtcity.Text = rs.Fields(4)
txtState.Text = rs.Fields(5)
txtCountry.Text = rs.Fields(6)
txtcompany.Text = rs.Fields(7)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 96/162154
txtdesignation.Text = rs.Fields(8)
txttelephone.Text = rs.Fields(9)
txtRoomType.Text = rs.Fields(10)
txtRoomNo.Text = rs.Fields(11)
Wend
End Sub
Private Sub cmdcancel_Click()
Unload Me
End Sub
Private Sub Form_Load()
rs.Open "select * from CheckOut_Table", cn, adOpenKeyset,
adLockOptimistic
Me.Top = 3000
Me.Left = 3000
lbldate.Caption = Date
lbltime.Caption = Time
While Not rs.EOF
cboGuID.AddItem rs.Fields(1)
rs.MoveNext
Wend
End Sub
Edit Entry Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 97/162154
Coding of Edit Entry Form
Option Explicit
Dim StrSql As String
Dim i As Integer
Private Sub cboRoomType_Click()
If cboRoomType.List(cboRoomType.ListIndex) = "Single Room"
Then
For i = 1 To 50
cboRoomNo.AddItem Str(i)
Next
End If
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 98/162154
If cboRoomType.List(cboRoomType.ListIndex) = "Double
Room" Then
For i = 51 To 100
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Deluxesuite
Room" Then
For i = 100 To 150
cboRoomNo.AddItem Str(i)
Next
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Suiter Room"
Then
For i = 150 To 20
cboRoomNo.AddItem Str(i)
Next
End If
End Sub
Public Sub RoomAdd1()
If cboRoomType.List(cboRoomType.ListIndex) = "Single Room"
Then
RS_SingleRoom.MoveFirst
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 99/162154
Smart_SingleRoom:
If cboRoomNo.List(cboRoomNo.ListIndex) =
RS_SingleRoom.Fields(0) Then
RS_SingleRoom.Delete
cboRoomNo.RemoveItem cboRoomNo.ListIndex
Else
RS_SingleRoom.MoveNext
GoTo Smart_SingleRoom
End If
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "DoubleRoom" Then
RS_DoubleRoom.MoveFirst
Smart_DoubleRoom:
If cboRoomNo.List(cboRoomNo.ListIndex) =
RS_DoubleRoom.Fields(0) Then
RS_DoubleRoom.Delete
cboRoomNo.RemoveItem cboRoomNo.ListIndex
Else
RS_DoubleRoom.MoveNext
GoTo Smart_DoubleRoom
End If
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "Suite
Room" Then
RS_SuiteRoom.MoveFirst
Smart_SuiteRoom:
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 100/162154
If cboRoomNo.List(cboRoomNo.ListIndex) =
RS_SuiteRoom.Fields(0) Then
RS_SuiteRoom.Delete
cboRoomNo.RemoveItem cboRoomNo.ListIndex
Else
RS_SuiteRoom.MoveNext
GoTo Smart_SuiteRoom
End If
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "Deluxe
Suite" Then
RS_DeluxeSuite.MoveFirst
Smart_DeluxeSuite:
If cboRoomNo.List(cboRoomNo.ListIndex) =
RS_DeluxeSuite.Fields(0) Then
RS_DeluxeSuite.Delete
cboRoomNo.RemoveItem cboRoomNo.ListIndex
Else
RS_DeluxeSuite.MoveNext
GoTo Smart_DeluxeSuite
End If
End If
'.Update
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 101/162154
Public Sub LCK()
txtname.Locked = False
txtaddress.Locked = False
txtcity.Locked = False
txtState.Locked = False
txtCountry.Locked = False
txtcompany.Locked = False
txtdesignation.Locked = False
txttelephone.Locked = False
'txtRoomType.Locked = False
'txtRoomNo.Locked = False
txtadvance.Locked = False
txtDOChkin.Locked = False
txtTOChkIn.Locked = False
End Sub
Public Sub Blank()
cboGuID.ListIndex = -1
txtname.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
txtState.Text = ""
txtCountry.Text = ""
txtcompany.Text = ""
txtdesignation.Text = ""
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 102/162154
txttelephone.Text = ""
txtRoomType.Text = ""
txtRoomNo.Text = ""
txtadvance.Text = ""
txtDOChkin.Text = ""
txtTOChkIn.Text = ""
End Sub
Private Sub cboGuID_Click()
If cboGuID.ListIndex = -1 Then
cmdEdit.Enabled = False
Exit Sub
End If
cmdEdit.Enabled = True
With RS_Edit
.MoveFirst
While Not .EOF
If cboGuID.List(cboGuID.ListIndex) = .Fields(1) Then
txtDOChkin.Text = .Fields(0)
txtname.Text = .Fields(2)
txtaddress.Text = .Fields(3)
txtcity.Text = .Fields(4)
txtState.Text = .Fields(5)
txtCountry.Text = .Fields(6)
txtTOChkIn.Text = .Fields(7)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 103/162154
txtcompany.Text = .Fields(8)
txtdesignation.Text = .Fields(9)
txttelephone.Text = .Fields(10)
txtRoomType.Text = .Fields(11)
txtRoomNo.Text = .Fields(12)
txtadvance.Text = .Fields(13)
End If
.MoveNext
Wend
End With
End Sub
Private Sub cboRoomType_Click()
If cboRoomType.ListIndex = 0 Then
cboRoomNo.Clear
Label3.Visible = False
cboRoomNo.Visible = False
Exit Sub
End If
If cboRoomType.List(cboRoomType.ListIndex) = "Single Room"
Then
cboRoomNo.Clear
With RS_SingleRoom
.MoveFirst
i = 0
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 104/162154
For i = 1 To .RecordCount
cboRoomNo.AddItem .Fields(0)
.MoveNext
Next
End With
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "Double
Room" Then
cboRoomNo.Clear
With RS_DoubleRoom
.MoveFirst
i = 0
For i = 1 To .RecordCount
cboRoomNo.AddItem .Fields(0)
.MoveNext
Next
End With
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "Suite
Room" Then
cboRoomNo.Clear
With RS_SuiteRoom
.MoveFirst
i = 0
For i = 1 To .RecordCount
cboRoomNo.AddItem .Fields(0)
.MoveNext
Next
End With
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 105/162154
ElseIf cboRoomType.List(cboRoomType.ListIndex) = "Deluxe
Suite" Then
cboRoomNo.Clear
With RS_DeluxeSuite
.MoveFirst
i = 0
For i = 1 To .RecordCount
cboRoomNo.AddItem .Fields(0)
.MoveNext
Next
End With
End If
Label3.Visible = True
cboRoomNo.Visible = True
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdEdit_Click()
cmdUpdate.Enabled = True
cmdEdit.Enabled = False
LCK
Label1.Visible = True
cboRoomType.Visible = True
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 106/162154
cboRoomType.ListIndex = -1
End Sub
Private Sub cmdUpdate_Click()
RS_Edit.MoveFirst
If cboRoomType.ListIndex >= 1 And cboRoomNo.ListIndex <>
-1 Then
StrSql = "UPDATE CheckIn_Table SET Name = '" &
txtname.Text & "'," _
& "Address = '" & txtaddress.Text & "'," _
& "City = '" & txtcity.Text & "'," _
& "State = '" & txtState.Text & "'," _
& "Country = '" & txtCountry.Text & "'," _
& "TOChk = '" & txtTOChkIn.Text & "'," _
& "Company = '" & txtcompany.Text & "'," _
& "Designation = '" & txtdesignation.Text & "'," _
& "Phone = '" & txttelephone.Text & "'," _
& "Advance = '" & txtadvance.Text & "', " _
& "DOChk = '" & txtDOChkin.Text & "', " _
& "RoomType = '" &cboRoomType.List(cboRoomType.ListIndex) & "', " _
& "RoomNo = '" &
cboRoomNo.List(cboRoomNo.ListIndex) & "' " _
& "WHERE GuID = '" &
cboGuID.List(cboGuID.ListIndex) & "';"
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 107/162154
cnn.Execute StrSql
RS_Edit.Update
RoomAdd1
RoomAdd2
MsgBox "Record is Updated"
ElseIf cboRoomType.ListIndex <= 0 Then
StrSql = "UPDATE CheckIn_Table SET Name = '" &
txtname.Text & "'," _
& "Address = '" & txtaddress.Text & "'," _
& "City = '" & txtcity.Text & "'," _
& "State = '" & txtState.Text & "'," _
& "Country = '" & txtCountry.Text & "'," _
& "TOChk = '" & txtTOChkIn.Text & "'," _
& "Company = '" & txtcompany.Text & "'," _
& "Designation = '" & txtdesignation.Text & "'," _
& "Phone = '" & txttelephone.Text & "'," _
& "Advance = '" & txtadvance.Text & "', " _
& "DOChk = '" & txtDOChkin.Text & "', " _
& "RoomType = '" & txtRoomType.Text & "', " _
& "RoomNo = '" & txtRoomNo.Text & "' " _
& "WHERE GuID = '" &
cboGuID.List(cboGuID.ListIndex) & "';"
cnn.Execute StrSql
RS_Edit.Update
MsgBox "Record is Updated"
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 108/162154
ElseIf cboRoomType.ListIndex >= 1 And cboRoomNo.ListIndex
= -1 Then
MsgBox "Select Room Type & Room No", vbOKOnly +
vbInformation, "Information"
cboRoomType.SetFocus
Exit Sub
End If
cmdUpdate.Enabled = False
Blank
Label1.Visible = False
cboRoomType.Visible = False
Label3.Visible = False
cboRoomNo.Visible = False
cboGuID.ListIndex = -1
cboGuID.SetFocus
RS_Edit.Requery
End Sub
Private Sub Form_Load()
Me.Top = 3000
Me.Left = 3000
Connect
With RS_Edit
While Not .EOF
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 109/162154
cboGuID.AddItem .Fields(1)
.MoveNext
Wend
End With
cmdEdit.Enabled = False
cmdUpdate.Enabled = False
Label1.Visible = False
Label3.Visible = False
cboRoomType.Visible = False
cboRoomNo.Visible = False
cboRoomType.AddItem "None"
cboRoomType.AddItem "Single Room"
cboRoomType.AddItem "Double Room"
cboRoomType.AddItem "Suite Room"
cboRoomType.AddItem "Deluxe Suite"
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 110/162154
Make Payment Form
Coding of MakePayment Form
Dim DOA As String
Dim result, i As Integer
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 111/162154
Private Sub Combo1_Click()
With RS_Guest
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(1) Then
Text1.Text = .Fields(2)
Text2.Text = .Fields(13)
Text6.Text = .Fields(0)
DOA = .Fields(0)
result = Date - CDate(DOA)
If result = 0 Then
result = 1
End If
If .Fields(11).Value = "Single Room" Then
Text4.Text = result * Rs_Rate.Fields(0)
Text5.Text = Text4.Text - Text2.Text
End If
If .Fields(11).Value = "Double Room" Then
Text4.Text = result * Rs_Rate.Fields(1)
Text5.Text = Text4.Text - Text2.Text
End If
If .Fields(11).Value = "Suite Room" Then
Text4.Text = result * Rs_Rate.Fields(2)
Text5.Text = Text4.Text - Text2.Text
End If
If .Fields(11).Value = "Deluxe Suite" Then
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 112/162154
Text4.Text = result * Rs_Rate.Fields(3)
Text5.Text = Text4.Text - Text2.Text
End If
End If
.MoveNext
Wend
End With
End Sub
Private Sub Command1_Click()
With RS_Paymentlog
.MoveFirst
While Not .EOF
If Combo1.Text = .Fields(0) Then
.AddNew
.Fields(0) = Combo1.Text
.Fields(1) = Text1.Text
.Fields(2) = Text6.Text
.Fields(3) = Combo2.Text
.Fields(6) = Text2.Text
.Fields(7) = Text3.Text
.Fields(8) = Val(Text3.Text) + Val(Text2.Text)
.Fields(9) = Text4.Text
.Fields(10) = Date
.Fields(11) = UserName
.Update
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 113/162154
End If
.MoveNext
Wend
End With
With RS_Payment
.MoveFirst
While Not .EOF
If Combo1.Text = .Fields(0) Then
.Update
.Fields(0) = Combo1.Text
.Fields(1) = Text1.Text
.Fields(2) = Text6.Text
.Fields(6) = Text2.Text
.Fields(7) = Text3.Text
.Fields(8) = Val(Text3.Text) + Val(Text2.Text)
.Fields(9) = Text4.Text
.Fields(11) = Date
.Fields(12) = UserName
End If
.MoveNext
Wend
End With
MsgBox "Payment Successfully Updated", vbOKOnly,
"Payment"
'Command2_Click
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 114/162154
Private Sub Command2_Click()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Combo1.ListIndex = -1
Me.Hide
End Sub
Private Sub Form_Load()
Me.Top = 3000
Me.Left = 3000
Connect
With RS_Guest
.MoveFirst
While Not .EOF
Combo1.AddItem .Fields(1)
.MoveNext
Wend
End With
Combo2.AddItem "Accomodation"
Combo2.AddItem "Bar"
Combo2.AddItem "Laundry"
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 115/162154
Combo2.AddItem "Restaurant"End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 116/162154
EMPLOYEE MENU
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 117/162154
EMPLOYEE DETAIL FORM
Coding of EmployeeDetail
Form
Option Explicit
'Variable Declaration
Dim str As String
Dim strMonth, result As String
Dim num, i As Integer
Public Sub Blank()
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 118/162154
txtemployeename.Text = ""
txtaddress.Text = ""
txtcity.Text = ""
txtstate.Text = ""
txtpin.Text = ""
txtphone.Text = ""
txteduqualification.Text = ""
txtdesignation.Text = ""
txtExp.Text = ""
cboDepartment.ListIndex = -1
End Sub
Private Sub cmdAdd_Click()
If txtemployeename.Text = "" Or txtaddress.Text = "" Or _
txtcity.Text = "" Or txtstate.Text = "" Or _
txtpin.Text = "" Or txtphone.Text = "" Or _
txteduqualification.Text = "" Or txtExp.Text = "" Then
MsgBox "Fill Complete Information", vbInformation,
"Information"
txtemployeename.SetFocus
Exit Sub
ElseIf cboDepartment.ListIndex = -1 Then
MsgBox "Select the department", vbInformation,
"Information"
cboDepartment.SetFocus
Exit Sub
Else
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 119/162154
With rs
.AddNew
.Fields(0) = lblID.Caption
.Fields(1) = txtemployeename.Text
.Fields(2) = txtaddress.Text
.Fields(3) = txtcity.Text
.Fields(4) = txtstate.Text
.Fields(5) = txtpin.Text
.Fields(6) = txtphone.Text
.Fields(7) = lblDate.Caption
.Fields(8) = txteduqualification.Text
.Fields(9) = txtdesignation.Text
.Fields(10) = cboDepartment.List(cboDepartment.ListIndex)
.Fields(11) = txtExp.Text
.Update
MsgBox "Record Entered Successfully"
Blank
If .RecordCount = 0 Then
lblID.Caption = str & strMonth & "-" & num
Else
.MoveLast
i = .RecordCount
num = num + i
lblID.Caption = str & strMonth & "-" & num
End If
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 120/162154
End With
End If
End Sub
Private Sub cmdEdit_Click()
cmdUpdate.Enabled = True
cmdEdit.Enabled = False
LCK
Label1.Visible = True
cboRoomType.Visible = True
cboRoomType.ListIndex = -1
End Sub
Private Sub cmdUpdate_Click()
RS_Edit.MoveFirst
If cboRoomType.ListIndex >= 1 And cboRoomNo.ListIndex <>
-1 Then
StrSql = "UPDATE CheckIn_Table SET Name = '" &
txtname.Text & "'," _
& "Address = '" & txtaddress.Text & "'," _
& "City = '" & txtcity.Text & "'," _
& "State = '" & txtState.Text & "'," _
& "Country = '" & txtCountry.Text & "'," _
& "TOChk = '" & txtTOChkIn.Text & "'," _
& "Company = '" & txtcompany.Text & "'," _
& "Designation = '" & txtdesignation.Text & "'," _
& "Phone = '" & txttelephone.Text & "'," _
& "Advance = '" & txtadvance.Text & "', " _
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 121/162154
& "DOChk = '" & txtDOChkin.Text & "', " _
& "RoomType = '" &
cboRoomType.List(cboRoomType.ListIndex) & "', " _
& "RoomNo = '" &
cboRoomNo.List(cboRoomNo.ListIndex) & "' " _
& "WHERE GuID = '" &
cboGuID.List(cboGuID.ListIndex) & "';"
cnn.Execute StrSql
RS_Edit.Update
RoomAdd1
RoomAdd2
MsgBox "Record is Updated"
ElseIf cboRoomType.ListIndex <= 0 Then
StrSql = "UPDATE CheckIn_Table SET Name = '" &
txtname.Text & "'," _
& "Address = '" & txtaddress.Text & "'," _
& "City = '" & txtcity.Text & "'," _
& "State = '" & txtState.Text & "'," _
& "Country = '" & txtCountry.Text & "'," _
& "TOChk = '" & txtTOChkIn.Text & "'," _
& "Company = '" & txtcompany.Text & "'," _
& "Designation = '" & txtdesignation.Text & "'," _
& "Phone = '" & txttelephone.Text & "'," _
& "Advance = '" & txtadvance.Text & "', " _
& "DOChk = '" & txtDOChkin.Text & "', " _
& "RoomType = '" & txtRoomType.Text & "', " _
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 122/162154
& "RoomNo = '" & txtRoomNo.Text & "' " _
& "WHERE GuID = '" &
cboGuID.List(cboGuID.ListIndex) & "';"
cnn.Execute StrSql
RS_Edit.Update
MsgBox "Record is Updated"
ElseIf cboRoomType.ListIndex >= 1 And
cboRoomNo.ListIndex = -1 Then
MsgBox "Select Room Type & Room No", vbOKOnly +
vbInformation, "Information"
cboRoomType.SetFocus
Exit Sub
End If
cmdUpdate.Enabled = False
Blank
Label1.Visible = False
cboRoomType.Visible = False
Label3.Visible = False
cboRoomNo.Visible = False
cboGuID.ListIndex = -1
cboGuID.SetFocus
RS_Edit.Requery
End Sub
Private Sub cmdCancel_Click()
Unload Me
Me.Visible = False
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 123/162154
End Sub
Private Sub Form_Load()
Me.Top = 3000
Me.Left = 3000
num = 100
str = "EmpID"
strMonth = Month(Date)
lblDate.Caption = Date
cboDepartment.AddItem "Front Office"
cboDepartment.AddItem "House Keeping"
cboDepartment.AddItem "Food & Beverage"
cboDepartment.AddItem "Security"
cboDepartment.AddItem "Maintenance"
cboDepartment.AddItem "Purchase & Stores"
cboDepartment.AddItem "Sales & Marketing"
Blank
With rs
If .RecordCount = 0 Then
lblID.Caption = str & strMonth & "-" & num
Else
.MoveLast
i = .RecordCount
num = num + i
lblID.Caption = str & strMonth & "-" & num
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 124/162154
End If
End With
End Sub
Staff Payroll Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 125/162154
Coding of Staff Payroll Form
Dim HW, HR, BS, TA, MA, GP As String
Dim TAX, PEN, SA, NP As String
Private Sub Combo1_Click()
With Rs_Details
.MoveFirst
While Not .EOF
If Combo1.List(Combo1.ListIndex) = .Fields(0) Then
Label4.Caption = .Fields(1)
Label5.Caption = .Fields(10)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 126/162154
Label7.Caption = .Fields(9)
End If
.MoveNext
Wend
End With
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text10.Text = ""
End Sub
Private Sub Combo2_Click()
With RS_Payroll
.MoveFirst
While Not .EOF
If Combo2.List(Combo2.ListIndex) = .Fields(4) Then
Text1.Text = .Fields(5)
Text2.Text = .Fields(6)
Text3.Text = .Fields(7)
Text4.Text = .Fields(8)
Text5.Text = .Fields(9)
Text6.Text = .Fields(10)
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 127/162154
Text7.Text = .Fields(11)
Text8.Text = .Fields(12)
Text10.Text = .Fields(13)
MsgBox "Record Already Exist for the month"
End If
.MoveNext
Wend
End With
End Sub
Private Sub Command1_Click()
BS = Val(Text3.Text)
TA = Val(Text4.Text)
MA = Val(Text5.Text)
TAX = Val(Text7.Text)
PEN = Val(Text8.Text)
NP = Val(Text10.Text)
GP = BS + TA + MA
Text6.Text = GP
TAX = BS / 100 * 5
Text7.Text = TAX
NP = GP - TAX - Val(Text8.Text)
Text10.Text = NP
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 128/162154
Private Sub Command2_Click()
Blank
Me.Hide
End Sub
Private Sub Command3_Click()
If Text1.Text = "" Or Text2.Text = "" Or Text4.Text = "" Or
Text5.Text = "" Then
MsgBox "Pls Input the Required Fields", vbCritical
Exit Sub
End If
With RS_Payroll
.MoveFirst
While Not .EOF
If Combo1.Text = .Fields(0) Then
If Combo2.Text = .Fields(4) Then
MsgBox "U have already Processed Payment for this
Month", vbCritical, "Process Error"
Exit Sub
End If
End If
.MoveNext
Wend
.AddNew
.Fields(0) = Combo1.Text
.Fields(1) = Label4.Caption
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 129/162154
.Fields(2) = Label5.Caption
.Fields(3) = Label7.Caption
.Fields(4) = Combo2.Text
.Fields(5) = Text1.Text
.Fields(6) = Text2.Text
.Fields(7) = Text3.Text
.Fields(8) = Text4.Text
.Fields(9) = Text5.Text
.Fields(10) = Text6.Text
.Fields(11) = Text7.Text
.Fields(12) = Text8.Text
.Fields(13) = Text10.Text
.Fields(14) = Date
.Fields(15) = UserName
.Update
MsgBox "Payroll Record Successfully Updated", vbInformation,
"Update Record"
Blank
End With
End Sub
Private Sub Command5_Click()
ResetPay.Show 1
End Sub
Private Sub Form_Load()
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 130/162154
Me.Top = 3000
Me.Left = 3000
Connect
With Rs_Details
.MoveFirst
While Not .EOF
Combo1.AddItem .Fields(0)
.MoveNext
Wend
End With
Label4.Caption = ""
Label5.Caption = ""
Label7.Caption = ""
Combo2.AddItem "January"
Combo2.AddItem "February"
Combo2.AddItem "March"
Combo2.AddItem "April"
Combo2.AddItem "May"
Combo2.AddItem "June"
Combo2.AddItem "July"
Combo2.AddItem "August"
Combo2.AddItem "September"
Combo2.AddItem "October"
Combo2.AddItem "November"
Combo2.AddItem "December"
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 131/162154
End Sub
Private Sub Text3_GotFocus()
If Text1.Text = "" Or Text2.Text = "" Then
MsgBox "Pls Enter values for the required fields for BasicSalary to be calculate", vbOKOnly
Exit Sub
Else
HW = Val(Text1.Text)
HR = Val(Text2.Text)
BS = Val(HW) * Val(HR)
Text3.Text = BS
End If
End Sub
Sub Blank()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
Text10.Text = ""
Combo1.ListIndex = -1
Combo2.ListIndex = -1
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 132/162154
Label4.Caption = ""
Label5.Caption = ""
Label7.Caption = ""
End Sub
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 133/162154
SEARCH MENU
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 134/162
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 135/162154
Public Sub FindX()
Dim Cnxn As New ADODB.Connection
Dim rstName As New ADODB.Recordset
Dim strCnxn As String
Dim strSQLTitles As String
Dim mark As Variant
Dim count As Integer
lblcount.Caption = ""
Set Cnxn = New ADODB.Connection
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
& App.Path & "\database\HMS.mdb;Persist Security
Info=False"
Cnxn.Open strCnxn
Set rstName = New ADODB.Recordset
strSQLTitles = "SELECT Name FROM CheckIn_Table"
rstName.Open strSQLTitles, Cnxn, adOpenStatic, adLockReadOnly,
adCmdTextcount = 0
rstName.Find "Name LIKE '" & txtName.Text & "%'"
Do While Not rstName.EOF
lstGuestName.AddItem rstName!Name
count = count + 1
mark = rstName.Bookmark
rstName.Find "Name LIKE '" & txtName.Text & "%'", 1,
adSearchForward, mark
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 136/162154
Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation,
"Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Matches found " & count
End If
rstName.Close
Cnxn.Close
Set rstName = Nothing
Set Cnxn = Nothing
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdGo_Click()
lstGuestName.Clear
fraDetails.Visible = False
If txtName.Text = "" Then
MsgBox "Enter the name", vbOKOnly + vbCritical, "Error"
txtName.SetFocus
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 137/162154
Exit Sub
End If
FindX
End Sub
Private Sub Command1_Click()
Dim Cnxn As New ADODB.Connection
Dim rstName As New ADODB.Recordset
Dim strCnxn As String
Dim strSQLEmpName As String
Dim mark As Variant
Dim count As Integer
lblcount.Caption = ""
Set Cnxn = New ADODB.Connection
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" _
& App.Path & "\database\HMS.mdb;Persist Security
Info=False"
Cnxn.Open strCnxn
Set rstName = New ADODB.Recordset
strSQLEmpName = "SELECT * FROM Checkin_Table"
rstName.Open strSQLEmpName, Cnxn, adOpenStatic,
adLockReadOnly, adCmdText
count = 0
With rstName
.MoveFirst
While Not .EOF
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 138/162154
lstGuestName.AddItem .Fields(2)
.MoveNext
Wend
count = .RecordCount
End With
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation,
"Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Matches found " & count
End If
rstName.Close
Cnxn.Close
Set rstName = Nothing
Set Cnxn = Nothing
End Sub
Private Sub Form_Load()
fraDetails.Visible = False
Me.Top = 3000
Me.Left = 3000
Connect
lstGuestName.Clear
End Sub
Private Sub lstGuestName_Click()
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 139/162154
With Rs_Detail
.MoveFirst
While Not .EOF
If lstGuestName.List(lstGuestName.ListIndex) = .Fields(2) Then
Text13.Text = .Fields(0)
Text1.Text = .Fields(1)
Text2.Text = .Fields(3)
Text3.Text = .Fields(4)
Text4.Text = .Fields(5)
Text5.Text = .Fields(6)
Text6.Text = .Fields(8)
Text7.Text = .Fields(7)
Text8.Text = .Fields(9)
Text9.Text = .Fields(10)
Text10.Text = .Fields(11)
Text11.Text = .Fields(12)
Text12.Text = .Fields(13)
Text1.Locked = True
Text2.Locked = True
Text3.Locked = True
Text4.Locked = True
Text5.Locked = True
Text6.Locked = True
Text7.Locked = True
Text8.Locked = True
Text9.Locked = True
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 140/162154
Text10.Locked = True
Text11.Locked = True
Text12.Locked = True
Text13.Locked = True
End If
.MoveNext
Wend
fraDetails.Visible = True
End With
End Sub
Searching the Employee Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 141/162154
Coding of Searchin The
Employee Form
Option Explicit
Dim StrSql As String
Public Sub FindX()
Dim Cnxn As New ADODB.Connection
Dim rstName As New ADODB.Recordset
Dim strCnxn As String
Dim strSQLEmpName As String
Dim mark As Variant
Dim count As Integer
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 142/162154
lblcount.Caption = ""
Set Cnxn = New ADODB.Connection
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
_
& App.Path & "\database\HMS.mdb;Persist Security
Info=False"
Cnxn.Open strCnxn
Set rstName = New ADODB.Recordset
strSQLEmpName = "SELECT Name FROM PresentEmp_Table"
rstName.Open strSQLEmpName, Cnxn, adOpenStatic,
adLockReadOnly, adCmdTextcount = 0
rstName.Find "Name LIKE '" & txtName.Text & "%'"
Do While Not rstName.EOF
lstEmpName.AddItem rstName!Name
count = count + 1
mark = rstName.Bookmark
rstName.Find "Name LIKE '" & txtName.Text & "%'", 1,
adSearchForward, mark
Loop
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation,
"Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Matches found " & count
End If
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 143/162154
rstName.Close
Cnxn.Close
Set rstName = Nothing
Set Cnxn = Nothing
End Sub
Private Sub cmdCancel_Click()
Unload Me
End Sub
Private Sub cmdGo_Click()
lstEmpName.Clear
fraDetails.Visible = False
If txtName.Text = "" Then
MsgBox "Enter the name", vbOKOnly + vbCritical, "Error"
txtName.SetFocus
Exit Sub
End If
FindX
End Sub
Private Sub Command1_Click()
FindAll
End Sub
Private Sub Form_Load()
fraDetails.Visible = False
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 144/162154
Me.Top = 3000
Me.Left = 3000
Call Connect
lstEmpName.Clear
End Sub
Private Sub lstEmpName_Click()
With Rs_Details
.MoveFirst
While Not .EOF
If lstEmpName.List(lstEmpName.ListIndex) = .Fields(1) Then
txtEmpNo.Text = .Fields(0)
txtaddress.Text = .Fields(2)
txtcity.Text = .Fields(3)
txtstate.Text = .Fields(4)
txtpin.Text = .Fields(5)
txtphone.Text = .Fields(6)
txtDOJ.Text = .Fields(7)
txteduqualification.Text = .Fields(8)
txtdesignation.Text = .Fields(9)
txtDept.Text = .Fields(10)
txtExp.Text = .Fields(11)
End If
.MoveNext
Wend
fraDetails.Visible = True
End With
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 145/162154
End Sub
Public Sub FindAll()
Dim Cnxn As New ADODB.Connection
Dim rstName As New ADODB.Recordset
Dim strCnxn As String
Dim strSQLEmpName As String
Dim mark As Variant
Dim count As Integer
lblcount.Caption = ""
Set Cnxn = New ADODB.Connection
strCnxn = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source="
_
& App.Path & "\database\HMS.mdb;Persist Security
Info=False"
Cnxn.Open strCnxn
Set rstName = New ADODB.Recordset
strSQLEmpName = "SELECT * FROM PresentEmp_Table"
rstName.Open strSQLEmpName, Cnxn, adOpenStatic,
adLockReadOnly, adCmdText
count = 0
With rstName
.MoveFirst
While Not .EOF
lstEmpName.AddItem .Fields(1)
.MoveNext
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 146/162154
Wend
count = .RecordCount
End With
If count = 0 Then
MsgBox "No Match Found", vbOKOnly + vbInformation,"Information"
txtName.SetFocus
Else
lblcount.Caption = "Total Matches found " & count
End If
' clean up
rstName.Close
Cnxn.Close
Set rstName = Nothing
Set Cnxn = Nothing
End Sub
VIEW MENU
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 147/162154
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 148/162154
Status of the Hotel Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 149/162154
List of Rates of Room Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 150/162154
Report of Employes Detail
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 151/162154
Report of Customer Detail
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 152/162154
Report of Payment Detail
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 153/162154
Change Password Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 154/162
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 155/162154
Notepad Form
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 156/162154
TESTING
Software testing is the process of executingsoftware and comparing the observed behavior
to the desired behavior.Software testing is a
critical element of software quality assurance
and represents the ultimate review of
specification, design and code generation.The
increasing visibility of software as a systemelement and the a
ttendant ‘costs’ associated with a software
failure are motivating forces for well planned
through testing. The software must be tested
to uncover as many errors as possible before
delivery to the customer.
The software testing techniques provide
systematic guidance for designing tests that:
1) Exercise the internal logic of the
software components
2) Exercise the input and output domain
of the program to uncover errors In the
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 157/162154
Program function, behavior and
performance.
Testing is the phase where the errorsremaining from all the pervious phases must
be detected. It is a critical element of the
software assurances and represents the
ultimate review of specification, design and
coding.
Testing Objective
Certain rules that we take as testing objectives
are:
1) Testing is a process of executing a
program with the intent of finding an error.
2) A good test case is one that has a high
probability of finding an as-yet-
undiscovered error.
3) A successful test is one that uncovers
as-yet-undiscovered error.
Software testing is of two types-
1) White Box Testing – knowledge of the
internal working of the item being tested
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 158/162154
are used to select the test data. Concerned
with the internal operations of the software
system.
Various criteria of white box testing are-
a) Statement Coverage criteria
b) Edge Coverage Criteria
c)Path Coverage Criteria
d) Control structure Testing Criteria
2) Black Box testing- complementary approach to white box testing technique
which is performed at later stages in the
testing. Focuses on the functional
requirements of the software, for which a
set of inputs are provided to fully exercise
these functional requirements and toachieve the desired results.
Various techniques of black box testing are
–
a) graph based testing method
b) Equivalence Partitioning andBoundary value Analysis
c)Cause – Effect Graphing
d) Comparison Testing
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 159/162
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 160/162154
systematic technique for constructing the
program structure while at the same time
conducting tests to uncover errors associated
with interfacing.
Approaches to integration testing-
Incremental and non incremental integration
strategies.
Incremental integration Testing Approach.
Top down Integration Testing.
Bottom up Integration Testing.
Regression Testing.
Smoke Testing.
Big Bang Integration Testing Approach.Improved Big Bang Integration Testing
Approach.
Validation testing-
Taking another turn outward on the spiral,we encounter validation testing where
requirements established as part of software
requirements are validated against the
software that has been constructed.
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 161/162
7/30/2019 Hotel Management System DoC1
http://slidepdf.com/reader/full/hotel-management-system-doc1 162/162
The Hotel Management System (HMS) is
for computerizing the work in a hotel. The
software take care of all the requirements of
an average hotel and is capable to provide
easy and effective storage of informationrelated to customer that come up to the hotel.
It generates various reports; which
provide Customers details including various
entities such as customer name, address proof
etc. And billing detail for hotel and restaurant.