Professional Documents
Culture Documents
i. Online Users.
ii. Administrator (management of the Hotel).
OBJECTIVE
During the past several decades personnel function has been transformed
from a relatively obscure record keeping staff to central and top level
management function. There are many factors that have influenced this
transformation like technological advances, professionalism, and general
recognition of human beings as most important resources.
The searching of record has been made quite simple as all the details
of the customer can be obtained by simply keying in the identification
of that customer.
The main objective of the entire activity is to automate the process of day to
day activities of Hotel like:
Room activities,
Admission of a New Customer,
Assign a room according to customer’s demand,
Checkout of a computer and releasing the room
Finally compute the bill etc.
Packages available.
Advance online bookings.
Online Cancellation.
List of Regular customers.
Email facility.
Feedbacks
ADVANTAGE
I have designed the given proposed system in the VB to automate the
process of Hotels. This project is useful for the authorities which keep track
of all the users registered in a particular state .The authority can add hotel
packages, room details, availability of rooms, booking etc.
The following steps that give the detailed information of the need of
proposed system are:
Security: Security is the main criteria for the proposed system. Since
illegal access may corrupt the database. So security has to be given in this
project.
HARDWARE REQUIREMENT:
CELERON/PENTIUM COMPUTER OR ABOVE.
128 MB RAM.
80 GB HARDDISK.
DVD-RW.
PEN DRIVE.
SOFTWARE REQUIREMENT:
WINDOWS ENVIRONMENT (95/98/XP/VISTA).
CODING
1 - The Login Form
before getting access to the main form the user need to
login first by entering his username and password and we
will check if the username/password textbox are empty and
if the user enter the wrong username or password or this
user doesn't exists at all.
The Login Button:
command.CommandText = selectQuery
command.Connection = connection.getConnection()
command.Parameters.Add("@un", MySqlDbType.VarChar).Value =
username
command.Parameters.Add("@pass", MySqlDbType.VarChar).Value =
password
adapter.SelectCommand = command
adapter.Fill(table)
End If
End Sub
End Sub
End Sub
End Sub
If fname.Trim().Equals("") Or lname.Trim().Equals("") Or
phone.Trim().Equals("") Then
Else
Else
End If
End If
End Sub
If TextBoxId.Text.Trim().Equals("") Then
Else
If fname.Trim().Equals("") Or lname.Trim().Equals("") Or
phone.Trim().Equals("") Then
Else
Else
End If
End If
End If
End Sub
If TextBoxId.Text.Trim().Equals("") Then
Else
Dim id As Integer = Convert.ToInt32(TextBoxId.Text)
If client.removeClient(id) Then
Else
End If
End If
End Sub
Try
If RadioButtonYes.Checked Then
reserved = "Yes"
reserved = "No"
End If
If TextBoxNumber.Text.Trim().Equals("") Or
TextBoxPhone.Text.Trim().Equals("") Then
Else
End If
End If
Catch ex As Exception
End Try
End Sub
Try
Dim type As Integer = Convert.ToInt32(ComboBoxType.SelectedValue)
Dim phone As String = TextBoxPhone.Text
Dim reserved As String = ""
If RadioButtonYes.Checked Then
reserved = "Yes"
reserved = "No"
End If
If TextBoxNumber.Text.Trim().Equals("") Or
TextBoxPhone.Text.Trim().Equals("") Then
Else
Else
End If
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Try
If room.removeRoom(number) Then
Else
End If
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
Try
Else
End If
End If
Catch ex As Exception
End Try
End Sub
Try
Else
Else
End If
End If
Catch ex As Exception
End Try
End Sub
Try
Else
End If
Catch ex As Exception
End Try
End Sub
E-R DIAGRAM
CONTEXT LEVEL DFD
HOTEL MANAGEMENT SYSTEM
Update Table
process
4
Close
Processing Databas
e
3
Computer
Bills
Cash CUSTOMER
DATA FLOW DIAGRAM
LIST OF ALL RECORDS
BIBLIOGRAPHY
Programming VB.NET
Authors: Gary Cornell, Jonathan Morrison Publisher: Apress
Professional VB.NET
Authors: Bill Evjen et all Publisher: Wrox Press