Академический Документы
Профессиональный Документы
Культура Документы
on
(HOTEL MANAGMENT)
Submitted by
(HARMEET)
Registration No
21304935022
(2015-2016)
CERTIFICATE
2
HOTEL MANAGEMENT
Acknowledgement
With great pleasure, we take this opportunity to express our profound sense of gratitude
to all those who helped us to put this project on the path of progress.
First of all, we pay our immense gratitude to Manager of KAYGEE RESOT, Phagwara
for giving us the chance of showing our skills through their continued support and
cooperation during the concerned of the project.
We are thankful to our center head Mr. Bhupinderjit Singh Bambah for providing such a
healthy atmosphere and infrastructure.
Last but not the least, our sincere gratitude is gratitude is reserved for our parents who
have been always been a greatest source of encouragement to us.
We are greatly thankful to GOD for showing his blessing on us without which we would
not have been able to accomplish this project.
3
HOTEL MANAGEMENT
INDEX
Title Page No.
1. Organization Overview 5
2. Profile of The Problem 6
3. Existing System 8-12
Introduction
Existing Software
Whats New in the System to be developed?
4. Problem Analysis 13-21
Product Definition
Feasibility Analysis
Project Planning
5. Software Requirement Analysis 23-32
Introduction
General Description
Specific Requirements
6. Design 34-62
Flowchart
DFD
ER Diagram
Database Design
Form Design
4
HOTEL MANAGEMENT
Overview of Organization
Hotel KAY GEE Resorts situated at Hoshiarpur road, Phagwara. Hotel KAY GEE Resorts
started from May 2001. In such a short period the success it has got is highly appreciable.
Hotel KAY GEE Resorts is awarded in 2004 with best Hotel award in city.
Hotel Kay Gee Resorts for the last 10 years, the management
Has Honour of serving many Distinguished Guests who have their appreciation of high
standards of Hospitality & services A Fully Comfortable Experience.
Hotel Kay Gee Resorts is ideally situated 1.5 kilometres From the Railway Station and 1
kilometre from the bus Stand.
Hotel Kay Gee Resorts has defined the standards of Gracious Living & offers Great
Value for money at Phagwara (Punjab) and Personalize Service makes the Guest feel
like Home.
This hotel having all the facilities to fulfill the customers need. It is
having centrally air conditioned restaurants. The Hotel has well equipped luxurious
rooms which are also air conditioned. A cozy environment is provided to the customers to
make them feel relax. The facilities include a Multi-Cuisine Restaurant to satisfy your
quench as per your taste bud, a well Stored Bar, three Banquets and Conference halls
perfect for every occasion. An Ideal Marriage Hall to make your Special Moment an
unforgettable celebration. We at Hotel Kay Gee Resorts provide personalized and
innovative services and complete wedding solution to our Guests dreaming of a
Traditional Wedding of all Religions and Social Celebrations.
5
HOTEL MANAGEMENT
HUGE PAPERWORK
The whole working is manual, organization has to maintain the number of registers
to store information that result in voluminous paperwork.
TIME CONSUMING
Doing all work manually is very time consuming. In some cases time is a major
constraint.
SECURITY PROBLEM
Manual system doesnt provide better security. Every person in the organization can
access the data easily so to enforce security constraints in such system is difficult.
REDUCED SPEED
Due to manual system in the organization the overall speed of working reduces.
6
HOTEL MANAGEMENT
7
HOTEL MANAGEMENT
Existing System: - The existing Hotel management system suffers some pitfalls because
the whole working is done manually the organization has to maintained number of
registers so to retrieve information of a particular customer at any giving time is difficult.
The manual system does not allow needed data to be retrieved in a convenient and
efficient manner.
Due to the problem of data inconsistency the various copies of same information may no
longer agree. Manual system does not provide better security. Every person can not easily
access the data easily so to in force security constraints such as system is difficult. Some
pitfalls of existing system is given below:
HUGE PAPERWORK
The whole working is manual, organization has to maintain the number of registers
to store information that result in voluminous paperwork.
TIME CONSUMING
Doing all work manually is very time consuming. In some cases time is a major
constraint.
SECURITY PROBLEM
Manual system doesnt provide better security. Every person in the organization can
access the data easily so to enforce security constraints in such system is difficult.
8
HOTEL MANAGEMENT
REDUCED SPEED
Due to manual system in the organization the overall speed of working reduces.
Data Redundancy
Maintaining different registers to store information leads to the problem of data
redundancy. Some information may be duplicated in serval registers. This
redundancy may lead to data inconsistency.
9
HOTEL MANAGEMENT
10
HOTEL MANAGEMENT
Easy installation:
First of all, the installation of our system is very much easier through WINDOWS
and also of any other software we need to install.
11
HOTEL MANAGEMENT
Problem Analysis
12
HOTEL MANAGEMENT
The goal of problem analysis is to obtain a clear understanding of the requirements of the
client and the end user. The people, the documents of the existing system and the current
mode of operation are the basic source of information for the analysts.
Analysis Issue
Informal approach
It is based on structured communication with the client and the users, that is ,
communication through questionnaires, interviews . It is carried out without any structure
methodology.
Conceptual Modeling
In this a formal method is created for the problem that partitions the problem in to smaller
problems to produce some formal structures representing some aspects of the problem.
Prototyping
Definition of Product
13
HOTEL MANAGEMENT
Like every Hotel and restaurants it has number of times to serve a number of categories
to show and a number of customer records to maintain. Hence it just becomes a
compulsion to replace their existing manual system by a window based computerized
system with efficient front and backend tools, like VB.NET and MS ACCESS, as the
need is to maintain a database which provide the necessary information when ever
required. If we dont get such a facility it becomes a headache rather it is an interesting
job.
Project Aim
Our objective is to made a system which not merely duplicate
the characteristics and effectiveness of their existing system, rather it can use the power
of their existing system and it should also provide the power of window based
computerized environment and it is better than manual system.
RESERVATION
Room Reservation
Hall Reservation
Room Reservation:
14
HOTEL MANAGEMENT
Hall Reservation
Here, when the customer request for hall for marriages purpose
of birthday parties and others. Firstly the reservation id is automatically generated. Then
the personal information about the customer is entered. There are three types of halls in
the hotel out of those empty halls are displayed. Updation, deletion, addition function is
also provided in hall reservation.
Feasibility Study
15
HOTEL MANAGEMENT
Feasibility study is a test of system proposal according to the workability, impact on the
organization, ability to meet user needs, and effective use of resource. It focuses on three
major questions:-
What are the users demonstrable needs and how does a candidate system meet
then?
What resources are available for given candidate system? Is the problem worth solving?
What are the likely impacts of the candidate system on the organization?
Mostly there are four main consideration involved in any feasibility study.
Now, we will review these things consideration is related to our project.
Technical Feasibility:
Management Feasibility :
Behavioral feasibility:
16
HOTEL MANAGEMENT
To be behavioral feasibility it requires that the introduction of the proposed system must
put special efforts to educate, sell, and train the staff of new ways of the operating
system.
As far as behavioral feasibility is concerned, the staff is not reluctant to any change in the
system because they feel insure by it.
Some people may find that the difficulty to learn and the use the machine as being
restrictive and intolerable.
Some may resist change in the nature of the job and increment in the responsibilities of
individual.
In an automated system, work may appear to become depersonalized, fragmented and
restrictive. They may miss the personnel contact with their work and its associated
challenges.
Economic feasibility:
Economic analysis is the most frequently used technique for evaluating the effectiveness
of a proposed system .The thing is not to keep the costs lower rather is to keep them
under companys budget.
This is an ongoing effort that improves in accuracy at each phase of the system life cycle.
As far our hotel management system is concerned, it is certainly economically feasible.
As the cost of system is outweighing the benefits, as already discussed, of the proposed
system.
17
HOTEL MANAGEMENT
Project plan
We are having the project of two members to develop the entire project entitled Hotel
Management.
Team Structure
Development Schedule
Team Work:-
In the Project report entitled Hotel Management System we have designed the data
flow diagram of our system, designing the screens, flow charts of our project with the
help of the information gathered. Designing reports, coding of the forms, database design
and documentation is also included in my work.
18
HOTEL MANAGEMENT
19
HOTEL MANAGEMENT
20
HOTEL MANAGEMENT
HARDWARE REQUIREMENTS
Type Specification
Processor Pentium III
RAM 128MB
21
HOTEL MANAGEMENT
Peripherals
Type Specification
Monitor VGA Color
Mouse Scroll mouse
Keyboard Standard
Printer Color/Black-White
Storage Media
Type Specification
Pen Drive 1GB More
Hard Disk 160 GB More
CD-Rom 48x/52x
SOFTWARE REQUIREMENTS
22
HOTEL MANAGEMENT
23
HOTEL MANAGEMENT
24
HOTEL MANAGEMENT
Introduction to MS Access
Microsoft Access is a computerized database management system (DBMS) that allows
efficient data storage and retrieval as well as efficient and effective data presentation. You
can create a database in which information can be stored in an organized manner that also
allows tailoring to efficient, effective data retrieval and presentation.
Microsoft access is a relational database management system (RDBMS) used to store and
manipulate large collection of information of any kind. Here RDBMS refers to the
organization of data in a series of rows and columns in such a manner that any specific
piece of information is available with a click of mouse and a few keystrokes .ms access
has tools, which are easy to use and provide powerful development environment, making
it an appropriate choice for novices and professionals. For example: access can be used to
enter and maintain student awards, inventory record of warehouse, telephone numbers.
Once the records are stored, any type of queries can be asked, reports can be created and
data entry forms can be designed.
Access is both a program for ordinary computer and a professional development tool. It is
used for developing database, which are used in system; you can use to set up a billing
system or an efficient indexing system
Access is easy to make tables, screen displays and function, but if you want to develop an
effective database you will need to do a little more. You will have to plan and systematic.
25
HOTEL MANAGEMENT
Features of MS Access
You can import data from Microsoft access database into your contains folder in
outlook .you can also export outlook data back into ms access.
When you output a report with a sub report to a .txt, .rtf or .xls file format, the sub
report is output along with the main report.
You can link from Microsoft excel or lotus 1-2-3 spreadsheet as long as the data is
arrange in an appropriate tabular format.
When a Microsoft spreadsheet is no longer the appropriate tool for your data, you
can create a Microsoft access database from the spreadsheet by clicking convert to
access on data menu in Microsoft excel.
You can link data from Microsoft excel or lotus 1-2-3 spreadsheet as long as the
data is arrange in an appropriate tabular format.
When you use ms access as an activeX component, you can manipulate Microsoft
access objects from other applications, such as Microsoft excels.
Create a pivot table control in a Microsoft access from using pivot table wizard,
you can create a control on a form that allow you to summarize large amount of
data using a format and calculation method you choose. A pivot table is like a cross
tab query, but you can switch the row and column heading dynamically to see
different views of data.
26
HOTEL MANAGEMENT
Needs of VB.NET
For nearly a decade, the VB language has been a popular programming language
for the window platform. It is easy to underestimate the impact that VB 1.0 had on
the window market. With the introduction of VB4.0, it becomes simple to create
COM (component object model). COM applications can be created using other
languages like c++, since the language itself is complex many programmers used
VB for creating COM application which is more simple to program. With the
introduction VB5.0, using VB for com programming becomes more popular as it
provided the ability to create active X controls. VB6.0 introduced web classes,
window less control, data designers, new reporting designers, and the ability to
create data sources.
If VB is to retain relevance to users and help attract developers to the new web
services platform, it must be the first class supporter of the .NET frame work. But
in many cases features needed to support the .NET framework conflict with
existing features in the VB language. Thus, the decision has been made by
27
HOTEL MANAGEMENT
Microsoft it loose the bonds of backward compatibility and take language a step
forward in the new evolution. The result is visual basic .NET.
In short, we can say Microsoft has introduced a totally new language in the visual
basic .NET which supports entirely Microsoft.NET strategy which aims to
providing a platform for building internet based application in a faster, efficient
and much more reliable manner along with interoperability with other languages
providing a multi languages environment. So, now let us discuss the features of
visual basic .NET.
Features of VB.NET
Using visual basic is the quickest and the easier way to create powerful, full featured
application that take advantage of the graphical user interface in windows. The feature of
visual basic.NET is as follows:-
VB has always been among the simplest language for creating any kind of
applications.
This gives consistencies among all the .NET languages such as data type and
how objects are exposed and interoperate independent of the architecture
and operating system of the machine.
There is a no need t explicitly allocate or de-allocate memory in VB.NET.
Garbage collection is big advantage of VB.NET; these find the circular
reference and destroy them.
VB.NET is truly an object oriented language, the main feature of object-
oriented language are encapsulation, inheritance and polymorphism.
VB.NET is a type safe in the sense there is no implicit conversion of types
and the programmer has to do their own type conversion.
VB.NET supports threading in applications it is very important when
creating highly scalable server side components, it is equally useful when
creating very interactive user interfaces.
VB.NET supports threading in application it is very important when creating
highly scalable server side components, it is equally useful when creating
very interactive user interfaces.
28
HOTEL MANAGEMENT
Architecture of VB.NET
The common language runtime provides the infrastructure for execution of
code and also provide other services, which can be used during execution.
Some of the feature that CLR provides is:
Cross-language integration, especially cross language inheritance.
Automatic memory management, which manages object lifetime so that
reference counting is unnecessary.
Self-describing object, which make using IDL (interface definition
language), type libraries etc unnecessary.
The ability to compile ones and run on any cpu and operating system that
supports the run time which makes the application platform independent.
30
HOTEL MANAGEMENT
Flowchart
31
HOTEL MANAGEMENT
Flowchart symbols: - only few symbols are needed to indicate the necessary Operations
flowchart.
Terminal
Input/output
Processing
Decision
Flow Lines
Connectors
32
HOTEL MANAGEMENT
Flow lines: Flow lines with arrowheads are used to indicate the flow of operations,
that is, the exact sequence in which the instructions are to be executed.
Connectors: Whenever a flowchart becomes complex enough that the number and
directions of flow lines is confusing, or it spread over more than one page, it is
useful to utilize the connector symbol as a substitute for flow lines.
33
HOTEL MANAGEMENT
Login Flowchart
Start
No
Validate
password
Yes
Go to main
Menu
34
HOTEL MANAGEMENT
35
HOTEL MANAGEMENT
Data Entry
Type of
Reservatio
n
Yes Check No
Availability
36
HOTEL MANAGEMENT
37
HOTEL MANAGEMENT
DFD SYMBOLS
NAME SYMBOLS
Square
Arrow
Circle
Open rectangle
38
HOTEL MANAGEMENT
Item Information
Menu
Food order
Process
CUSTOMER order
Service
information
Order
Food Bill
39
HOTEL MANAGEMENT
Hall Updation
Hall type
40
HOTEL MANAGEMENT
41
HOTEL MANAGEMENT
Information
Customer
Booking
Request Maintaining the
CUSTOMER customer details
Room Bill
42
HOTEL MANAGEMENT
Room Customer
Status Update
Customer Information
Request for
Bill
Generat Money
Room Information
Extra Charges
Room Info
43
HOTEL MANAGEMENT
Hall Customer
Status Update
Customer Information
Request for
Bill
Hall Information
Generat Money
CUSTOMER e bill CUSTOMER
Bill
Hall Info
44
HOTEL MANAGEMENT
45
HOTEL MANAGEMENT
Attribute
Various data items that describe an entity are known as attributes. Attributes specifies
properties of entities and relationships.
Entity Set
An entity is a thing which can be easily identified. It may be an object, event of interest
and about which data captured, stored or processed.
46
HOTEL MANAGEMENT
Relationship
47
HOTEL MANAGEMENT
ER DIAGRAM
48
HOTEL MANAGEMENT
Database Designing
A database is a space in which you can store information that is related to a particular
topic or purpose. A typical example of a data base is a file cabinet where you can diverse
information in different drawers. Another example of a database very common to every
one can be an address book in which you can organize desired information such as last
name, first name, home address, phone number, cell number, email address that can be
organized by last name in an alphabetical order.
The difference between a paper or document-based database and access is the efficiency
and effectiveness that a computerized database provides. Users are able to store and
relative information fast and present information effectively using access. Most of all, it
is cost effective because large amounts of information can be maintained in a personal
computer for an indefinite period of time.
Database is a coherent collection of data with some inherent meaning, designed, built and
populated with data for a specific purpose. A database store data that is useful to us. This
database is only a part of entire data available in the world around us. To be able to
successfully design and maintaining we have to do following:-
Main motive in the database design is to manage the share ability of database.
Good database design must be satisfied current and future application needed for
organization. Create to unanticipated user requirement are expandable to modify. Here we
have Microsoft access to design our database with the tables coming next.
49
HOTEL MANAGEMENT
This data base is used to enter the name and password of the user.
50
HOTEL MANAGEMENT
51
HOTEL MANAGEMENT
52
HOTEL MANAGEMENT
53
HOTEL MANAGEMENT
54
HOTEL MANAGEMENT
Main Form
55
HOTEL MANAGEMENT
Imports System.Windows.Forms
Imports nishu
Private Sub
LogoutMenuItem_Click(sender As
System.Object, e As System.EventArgs)
Handles LogoutMenuItem.Click
Dim ChildForm As New Login
Dim topStart As Integer = 0
Dim leftStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
Me.Hide()
End Sub
Private Sub
HallBookingMenuItem_Click(sender As
System.Object, e As System.EventArgs)
Handles HallBookingMenuItem.Click
CloseExistingForm()
Dim ChildForm As New Hall_Book
opnFrm = ChildForm
ChildForm.MdiParent = Me
56
HOTEL MANAGEMENT
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
Private Sub
UpdateBookedHallMenuItem_Click(sender As
System.Object, e As System.EventArgs)
Handles UpdateBookedHallMenuItem.Click
CloseExistingForm()
Dim ChildForm As New Hall_Updation
opnFrm = ChildForm
ChildForm.MdiParent = Me
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
Private Sub
RoomBookingMenuItem_Click(sender As
57
HOTEL MANAGEMENT
System.Object, e As System.EventArgs)
Handles RoomBookingMenuItem.Click
CloseExistingForm()
Dim ChildForm As New Room_Book
opnFrm = ChildForm
ChildForm.MdiParent = Me
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
Private Sub
UpdateBookedRoomMenuItem_Click(sender As
System.Object, e As System.EventArgs)
Handles UpdateBookedRoomMenuItem.Click
CloseExistingForm()
Dim ChildForm As New Room_Updation
opnFrm = ChildForm
ChildForm.MdiParent = Me
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
58
HOTEL MANAGEMENT
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
Private Sub
UserSetupMenuItem_Click(sender As
System.Object, e As System.EventArgs)
CloseExistingForm()
Dim ChildForm As New Room_Book
opnFrm = ChildForm
ChildForm.MdiParent = Me
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
Private Sub CloseExistingForm()
Try
opnFrm.Hide()
Catch ex As Exception
End Try
End Sub
59
HOTEL MANAGEMENT
Private Sub
ExitToolStripMenuItem_Click(sender As
System.Object, e As System.EventArgs)
Handles ExitToolStripMenuItem.Click
Me.Close()
End Sub
Private Sub
UserSetupMenuItem_Click_1(sender As
System.Object, e As System.EventArgs)
Handles UserSetupMenuItem.Click
CloseExistingForm()
Dim ChildForm As New UserSetup
opnFrm = ChildForm
ChildForm.MdiParent = Me
ChildForm.StartPosition =
FormStartPosition.Manual
Dim leftStart As Integer = 0
Dim topStart As Integer = 0
ChildForm.Location = New
Point(leftStart, topStart)
ChildForm.Show()
End Sub
60
HOTEL MANAGEMENT
End Sub
End Class
61
HOTEL MANAGEMENT
62
HOTEL MANAGEMENT
Imports nishu
Imports System.Data.OleDb
Public Class Login
Dim conn As OleDbConnection
Dim adp As OleDbDataAdapter
Dim ds As DataSet
Private Sub Login_Load(sender As
System.Object, e As System.EventArgs)
Handles MyBase.Load
End Sub
63
HOTEL MANAGEMENT
MessageBox.Show("Invalid
Authentication !")
UsernameTextBox.Focus()
End If
End Sub
64
HOTEL MANAGEMENT
adp.SelectCommand.Parameters.Add("@userpas
sword", OleDbType.VarChar, 50).Value =
UsernameTextBox.Text
adp.SelectCommand.Parameters.Add("@usersta
tus", OleDbType.VarChar, 50).Value = "Y"
conn.Open()
ds = New DataSet()
adp.Fill(ds)
Dim IsLogin As Boolean = False
For i = 0 To
ds.Tables(0).Rows.Count - 1
IsLogin = True
Next
adp.Dispose()
conn.Close()
Return IsLogin
End Function
End Class
65
HOTEL MANAGEMENT
66
HOTEL MANAGEMENT
Imports System.Data.OleDb
Public Class Hall_Book
Dim conn As OleDbConnection
Dim adp As OleDbDataAdapter
Dim cmd As OleDbCommand
Private Sub Hall_Book_Load(sender As
System.Object, e As System.EventArgs)
Handles MyBase.Load
conn = New OleDbConnection()
conn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=hm.mdb"
End Sub
Private Sub Button1_Click(sender As
System.Object, e As System.EventArgs)
Handles Button1.Click
Dim r_id As Integer = getRowID()
cmd = New OleDbCommand()
cmd.Connection = conn
conn.Open()
cmd.CommandText = "insert into
tbhallbooking values (@ID, @b_name,
@b_address, @b_phone, @b_hallno,
@b_hallrent, @b_halltype, @b_hallfrom,
@b_hallto)"
cmd.Parameters.Add("@ID",
OleDbType.Integer).Value = r_id
67
HOTEL MANAGEMENT
cmd.Parameters.Add("@b_name",
OleDbType.VarChar, 50).Value =
txtname.Text
cmd.Parameters.Add("@b_address",
OleDbType.VarChar, 50).Value =
txtaddress.Text
cmd.Parameters.Add("@b_phone",
OleDbType.VarChar, 50).Value =
txtphoneno.Text
cmd.Parameters.Add("@b_hallno",
OleDbType.VarChar, 50).Value =
txtroomno.Text
cmd.Parameters.Add("@b_hallrent",
OleDbType.Integer).Value =
Convert.ToInt32(txtroomrent.Text)
cmd.Parameters.Add("@b_hallrent",
OleDbType.VarChar, 50).Value =
cmbroomtype.Text
cmd.Parameters.Add("@b_hallfrom",
OleDbType.VarChar, 50).Value =
txt_from.Text
cmd.Parameters.Add("@b_hallto",
OleDbType.VarChar, 50).Value = txt_to.Text
Try
Dim cnt As Integer =
cmd.ExecuteNonQuery()
If (cnt > 0) Then
68
HOTEL MANAGEMENT
MessageBox.Show("Record
Saved")
Else
MessageBox.Show("Invalid
input, please check entered data")
End If
Catch ex As Exception
MessageBox.Show("Invalid
input, please check entered data")
End Try
txt_from.Text = ""
txt_to.Text = ""
txtroomrent.Text = ""
txtroomno.Text = ""
txtname.Text = ""
txtphoneno.Text = ""
txtaddress.Text = ""
cmbroomtype.Focus()
conn.Close()
cmd.Dispose()
End Sub
Friend Function getRowID() As Integer
cmd = New OleDbCommand()
cmd.Connection = conn
conn.Open()
69
HOTEL MANAGEMENT
70
HOTEL MANAGEMENT
71
HOTEL MANAGEMENT
Imports System.Data.OleDb
72
HOTEL MANAGEMENT
ListView1.Items.Add(ds.Tables(0).Rows(i)
(0))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(1))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(3))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(4))
Next
adp.Dispose()
conn.Close()
End Sub
73
HOTEL MANAGEMENT
74
HOTEL MANAGEMENT
Else
MessageBox.Show("Error
while updating")
txtname.Focus()
End If
Catch ex As Exception
MessageBox.Show("Invalid
Input, check entered data")
ListView1.Focus()
End Try
cmd.Dispose()
conn.Close()
End Sub
75
HOTEL MANAGEMENT
txtname.Focus()
End Sub
Private Sub
ListView1_DoubleClick(ByVal sender As
System.Object, ByVal e As
System.EventArgs) Handles
ListView1.DoubleClick
76
HOTEL MANAGEMENT
ds.Dispose()
adp.Dispose()
End Sub
77
HOTEL MANAGEMENT
MessageBox.Show("Invalid
input, check entered data")
ListView1.Focus()
End Try
cmd.Dispose()
conn.Close()
End Sub
End Class
78
HOTEL MANAGEMENT
79
HOTEL MANAGEMENT
Imports System.Data.OleDb
Public Class Room_Book
Dim conn As OleDbConnection
Dim adp As OleDbDataAdapter
Dim cmd As OleDbCommand
80
HOTEL MANAGEMENT
cmd.Parameters.Add("@r_type",
OleDbType.VarChar, 50).Value =
cmbroomtype.Text
cmd.Parameters.Add("@r_rent",
OleDbType.Integer).Value =
Convert.ToInt32(txtroomrent.Text)
cmd.Parameters.Add("@r_roomno",
OleDbType.VarChar, 50).Value =
txtroomno.Text
cmd.Parameters.Add("@r_name",
OleDbType.VarChar, 50).Value =
txtname.Text
cmd.Parameters.Add("@r_phoneno",
OleDbType.VarChar, 50).Value =
txtphoneno.Text
cmd.Parameters.Add("@r_address",
OleDbType.VarChar, 50).Value =
txtaddress.Text
cmd.Parameters.Add("@r_from",
OleDbType.VarChar, 50).Value =
txt_from.Text
cmd.Parameters.Add("@r_to",
OleDbType.VarChar, 50).Value = txt_to.Text
Try
Dim cnt As Integer =
cmd.ExecuteNonQuery()
If (cnt > 0) Then
81
HOTEL MANAGEMENT
MessageBox.Show("Record
Saved")
Else
MessageBox.Show("Invalid
input, please check entered data")
End If
Catch ex As Exception
MessageBox.Show("Invalid
input, please check entered data")
End Try
txt_from.Text = ""
txt_to.Text = ""
txtroomrent.Text = ""
txtroomno.Text = ""
txtname.Text = ""
txtphoneno.Text = ""
txtaddress.Text = ""
cmbroomtype.Focus()
conn.Close()
cmd.Dispose()
End Sub
82
HOTEL MANAGEMENT
conn.Open()
cmd.CommandText = "select
max(r_id) from tbroombooking"
Dim rowid As Integer
rowid = 1
Try
rowid =
Convert.ToInt32(cmd.ExecuteScalar())
rowid = rowid + 1
Catch ex As Exception
End Try
conn.Close()
cmd.Dispose()
Return rowid
End Function
End Class
83
HOTEL MANAGEMENT
84
HOTEL MANAGEMENT
Imports System.Data.OleDb
Public Class Room_Updation
Dim conn As OleDbConnection
Dim adp As OleDbDataAdapter
Dim ds As DataSet
Dim cmd As OleDbCommand
Dim cnt As Integer
85
HOTEL MANAGEMENT
ListView1.Items.Add(ds.Tables(0).Rows(i)
(0))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(4))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(5))
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(3))
Next
adp.Dispose()
conn.Close()
End Sub
86
HOTEL MANAGEMENT
87
HOTEL MANAGEMENT
Else
MessageBox.Show("Error
while updating")
txtname.Focus()
End If
Catch ex As Exception
MessageBox.Show("Invalid
Input, check entered data")
ListView1.Focus()
End Try
cmd.Dispose()
conn.Close()
End Sub
88
HOTEL MANAGEMENT
Private Sub
ListView1_DoubleClick(sender As
System.Object, e As System.EventArgs)
Handles ListView1.DoubleClick
89
HOTEL MANAGEMENT
90
HOTEL MANAGEMENT
txtroomrent.Text = ""
txtname.Focus()
End Sub
End Class
91
HOTEL MANAGEMENT
92
HOTEL MANAGEMENT
Imports System.Data.OleDb
Public Class UserSetup
Dim conn As OleDbConnection
Dim adp As OleDbDataAdapter
Dim ds As DataSet
Dim cmd As OleDbCommand
Dim cnt As Integer
Private Sub UserSetup_Load(sender As
System.Object, e As System.EventArgs)
Handles MyBase.Load
LoadData()
End Sub
Private Sub LoadData()
ListView1.Items.Clear()
Dim i As Integer
conn = New OleDbConnection()
conn.ConnectionString =
"Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=hm.mdb"
adp = New OleDbDataAdapter("select
* from tbuser", conn)
ds = New DataSet()
adp.Fill(ds)
For i = 0 To
ds.Tables(0).Rows.Count - 1
ListView1.Items.Add(ds.Tables(0).Rows(i)
(0))
93
HOTEL MANAGEMENT
ListView1.Items(i).SubItems.Add(ds.Tables(
0).Rows(i)(0))
Next
adp.Dispose()
conn.Close()
End Sub
94
HOTEL MANAGEMENT
OleDbType.VarChar, 50).Value =
cmduserstatus.Text
cnt = cmd.ExecuteNonQuery()
If (cnt > 0) Then
MessageBox.Show("Record
Saved Sucessfully")
ResetData()
Else
MessageBox.Show("Error
While Saving")
txtusername.Text = ""
End If
Catch ex As Exception
MessageBox.Show("Invalid
Input, check entered data")
ListView1.Focus()
End Try
cmd.Dispose()
conn.Close()
End Sub
95
HOTEL MANAGEMENT
End Sub
96
HOTEL MANAGEMENT
ResetData()
Else
MessageBox.Show("Error
while updating")
txtusername.Focus()
End If
Catch ex As Exception
MessageBox.Show("Invalid
Input, check entered data")
ListView1.Focus()
End Try
cmd.Dispose()
conn.Close()
End Sub
Private Sub
ListView1_DoubleClick(sender As
System.Object, e As System.EventArgs)
Handles ListView1.DoubleClick
98
HOTEL MANAGEMENT
99
HOTEL MANAGEMENT
Bibliography
Before going to prepare this project report. We have collected lot of information from
many sources.
We have studied various book and we internet for difference topic that are covered by us
in our project reports
Books:-
Web Technologies- 11(LPU)
Electronics Sites:-
http://google.com
http://answer.com
100
HOTEL MANAGEMENT
(Signature of Student)
__________________________
101
HOTEL MANAGEMENT
Date: _____________
Approved YES NO
______________________
Date: _____________
102