Sei sulla pagina 1di 43

i

User Interface for Hotel Booking

A
PROJECTBASED LAB REPORT
On

User Interface for Hotel Booking


Submitted in partial fulfilment of the
Requirements for the award of the Degree of

Bachelor of Technology
In
Computer Science & Engineering
By

P Srikar Kashyap
(14003130)

V Uday Teja
(14003568)

V Jhansi Lakshmi
(14003719)

T Sravan Kumar
(14003283)

DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

K L University
Green Fields, Vaddeswaram, Guntur District-522 502
2015-2016

K L University

Department of Computer Science and Engineering

ii

User Interface for Hotel Booking

K L University
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

CERTIFICATE
This is to certify that this project based lab report entitled User Interface for
Hotel Booking is a bonafide work done by P Srikar Kashyap (14003130), V
Uday

Teja

(14003568),

(14003283) in partial fulfillment


in

BACHELOR

OF

Jhansi
of

Lakshmi
the

(14003719),

requirement

for

the

Sravan
award

of

Kumar
degree

TECHNOLOGY in Computer Science and Engineering

during the academic year 2015-2016.

Lecturer In Charge

K L University

Head of the Department

Department of Computer Science and Engineering

iii

User Interface for Hotel Booking

K L University
DEPARTMENT OF COMPUTER SCIENCE AND ENGINEERING

DECLARATION

We hereby declare that this project based lab report entitled User Interface for
Hotel Booking has been prepared by us in partial fulfilment of the requirement for the
award of degree BACHELOR OF TECHNOLOGY in COMPUTER SCIENCE AND
ENGINEERING during the academic year 2015-2016.
I also declare that this project based lab report is of our own effort and it has not been
submitted to any other university for the award of any degree.

P Srikar Kashyap (14003130)


V Uday Teja

(14003568)

V Jhansi Lakshmi (14003719)


T Sravan Kumar

K L University

(14003283)

Department of Computer Science and Engineering

iv

User Interface for Hotel Booking

ACKNOWLEDGEMENTS

My sincere thanks to Mr. J Satish Babu in the Lab for their outstanding support throughout
the project for the successful completion of the work
We express our gratitude to Dr.V.Srikanth , Head of the Department for Computer Science
and Engineering for providing us with adequate facilities, ways and means by which we are
able to complete this term paper work.
We would like to place on record the deep sense of gratitude to the honourable Vice
Chancellor, K L University for providing the necessary facilities to carry the concluded term
paper work.
Last but not the least, we thank all Teaching and Non-Teaching Staff of our department and
especially my classmates and my friends for their support in the completion of our term paper
work.

P Srikar Kashyap (14003130)


V Uday Teja

(14003568)

V Jhansi Lakshmi (14003719)


T Sravan Kumar

K L University

(14003283)

Department of Computer Science and Engineering

User Interface for Hotel Booking

ABSTRACT
This Project aims to develop a User-Interface for performing various operations of a Hotel
management like checking for availability of a room in a Hotel, Reservation of the room,
checking in and checking out. The Project uses Microsoft Visual Studio 2010 to design the
interface and ultimately aims to develop an interface which is very easy to use, user-friendly
and efficient in operation. The four modules of the Project are divided among the group
members to get the best possible solutions to the challenges faced.

The first module deals with the Booking, Reservation and Availability. It has the interface to
check the availability of a room on a date specified by the end-user (customer). If the desired
room is available, then the user enters his details and reservation can be done after which an
advance amount will be paid by the customer. Different kinds of rooms like Normal Room
and Deluxe room will be provided for the user to choose.

The second module deals with the check-in feature. The user who wishes to check in will
enter the details like check-in time, date etc. and these details will be stored until the user
checks out again.

The third module deals with the check-out procedure of the Hotel Management Interface. The
user checks out from the room by using the interface. The total no of days that the room is
used is calculated and the total bill is generated and displayed to the user. The fourth module
deals with the payment of the bill. The payment section will have options like credit
card/debit card, pay by cash and internet banking to cater the needs of all kinds of customers

K L University

Department of Computer Science and Engineering

vi

User Interface for Hotel Booking

CONTENTS
Content
1.

2.

Introduction
1.1

Introduction

1.2

Disadvantages of Current System

1.3

Advantages of the Proposed System

Project Description
2.1

Booking

2.2

Check-in

2.3

Check-out

2.4

Payment

3.

Design

4.

Code

5.

Output

References

K L University

Pg. No
1
1
3
3
4
4
4
4
4
5
15
27
37

Department of Computer Science and Engineering

User Interface for Hotel Booking

1. INTRODUCTION
1.1

INTRODUCTION

A hotel is an establishment that provides lodging paid on a short-term basis. Facilities


provided may range from a basic bed and storage for clothing, to luxury features like en-suite
bathrooms. Larger hotels may provide additional guest facilities such as a swimming pool,
business center, childcare, conference facilities and social function services. Hotel rooms are
usually numbered (or named in some smaller hotels and B&Bs) to allow guests to identify their
room.
The precursor to the modern hotel was the inn of medieval Europe. For a period of about 200
years from the mid-17th century, coaching inns served as a place for lodging
for coach travelers. Inns began to cater for richer clients in the mid-18th century. One of the
first hotels in a modern sense was opened in Exeter in 1768. Hotels proliferated
throughout Western Europe and North America in the 19th century, and luxury hotels began to
spring up in the later part of the century.
Hotel operations vary in size, function, and cost. Most hotels and major hospitality companies
have set industry standards to classify hotel types. An upscale full-service hotel facility
offers luxury amenities, full service accommodations, on-site full service restaurant(s), and the
highest level of personalized service. Full service hotels often contain upscale full-service
facilities with a large volume of full service accommodations, on-site full service restaurant(s),
and a variety of on-site amenities. Boutique hotels are smaller independent non-branded hotels
that often contain upscale facilities. Small to medium-sized hotel establishments offer a limited
amount of on-site amenities. Economy hotels are small to medium-sized hotel establishments
that offer basic accommodations with little to no services. Extended stay hotels are small to
medium-sized hotels that offer longer term full service accommodations compared to a
traditional hotel.
In most cases, hotel rooms are booked, or reserved, in advance, so that a room will be held by
the hotel awaiting the arrival of a specific guest. Rooms at hotels can also be rented by simply
walking in and enquiring at the front desk, but this may be met with a decline as the hotel may
be fully booked for the night.

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

Rooms can be booked directly with the hotels, or via intermediaries such as travel websites and
travel agents. Airlines, railways, ferry operators and other travel-related services providers
often act as intermediaries as well, providing their passengers and clients the option to book a
hotel room in addition to their regular services.
The price paid for staying at the hotel is generally determined by the room rate, i.e. the rate
paid for staying each night spent in the room. The base room rate usually does not include
anything but accommodation. Other services, as well as meals, usually incur extra charges. Use
of some of the room's and hotel's facilities might also not be free for staying guests. It is good
to make sure what is included in the rate and what chargeable extra before booking.
Hotels usually have a standard rate quoted at the front desk and displayed prominently in the
hotel and in the rooms, which is often called the rack rate. The rack rate is usually the highest
rate the hotel would charge for the room, as it is often required by legal restrictions. There are
usually many rates one can pay for a given night that are lower than the rack rate, and the value
of the rate depends on a number of factors. Knowing how hotels set their offered rates can help
you book your desired room cheaper.
On arriving at the hotel, guests should check in, which means giving the front desk the details
of the guests staying in a given room, referring to the booking, confirming rates and conditions,
being assigned a room and receiving the key to the room. Checking out is done once a guest's
stay is completed. The front desk staff presents the charges incurred and guests settle the bill.
The key to the room is returned to the front desk at that time.
Please note that failure to check out at appropriate check out times on the day your stay ends
will often be understood as occupying the room for yet another night and therefore incur a full
regular nightly rate. Late check-outs should be agreed upon with the front desk staff
beforehand.
In some hotels, the check-in and check-out can be performed via automated kiosks in the hotel's
lobby. This may be provided as a measure of economy (instead of employing staff hotels
focusing on low costs offer automated services) or convenience (automated check-in and
check-out may be quicker and more comfortable for some travellers in some situations).

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

1.2

DISADVANTAGES OF CURRENT SYSTEM

It is a time consuming process.


There is no surety of availability of rooms.
Paper work results in need of lot of space to keep the data.
Lack of security.
Chances of human errors.

1.3

ADVANTAGES OF THE PROPOSED SYSTEM

Less time consuming than the current systems used in hotels.


Provides the information about hotel facilities.
User friendly.
Very fast and secure.

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

2. PROJECT DESCRIPTION
2.1

BOOKING

The first module deals with the Booking, Reservation and Availability. It has the
interface to check the availability of a room on a date specified by the end-user
(customer). If the desired room is available, then the user enters his details and
reservation can be done after which an advance amount will be paid by the customer.
Different kinds of rooms like Normal Room and Deluxe room will be provided for the
user to choose.

2.2

CHECK-IN

The second module deals with the check-in feature. The user who wishes to check in
will enter the details like check-in time, date etc and these details will be stored until
the user checks

out again. It uses components like textbox, label, listbox, calendar,

combobox etc from the

2.3

Visual Studio environment.

CHECK-OUT

The third module deals with the check-out procedure of the Hotel Management
Interface. The user checks out from the room by using the interface. The total no of
days that the room is used is calculated and the total bill is generated and displayed to
the user.

2.4

PAYMENT

The fourth module deals with the payment of the bill. The payment section will have
options like credit card/debit card, pay by cash and internet banking to cater the needs
of all kinds of customers. The passwords of the users are secured and not shown to the
staff. The process is simplified and easy to understand and execute.

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

3. DESIGN
3.1

BOOKING

Fig 1: Home screen of the Interface

Fig 2: Checking availability of room

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

Fig 3: Confirmation to book on that date

Fig 5: Entering details to book the room

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

Fig 6: Final confirmation to book the room

Fig 7: Booking confirmed message

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

3.2

CHECK-IN

Fig 8: Check-in details to be filled

Fig 9: Check-in successful message

K L University

Department of Computer Science and Engineering

User Interface for Hotel Booking

3.3

CHECK-OUT

Fig 10: Check out details to be filled

K L University

Department of Computer Science and Engineering

10

User Interface for Hotel Booking

Fig 11: Option to see if any room change in between

K L University

Department of Computer Science and Engineering

11

User Interface for Hotel Booking

3.4 PAYMENT

Fig 12: Payment portal homepage to select different options

K L University

Department of Computer Science and Engineering

12

User Interface for Hotel Booking

Fig 13: Credit/Debit card portal to be filled

Fig 14: Net Banking select


K L University

Department of Computer Science and Engineering

13

User Interface for Hotel Booking

Fig 15: Net Banking login

Fig 16: Net Banking Details to be filled

K L University

Department of Computer Science and Engineering

14

User Interface for Hotel Booking

Fig 17: Pay by Cash portal

Fig 18: Confirmation of payment

Fig 19: Payment in progress..

K L University

Department of Computer Science and Engineering

15

User Interface for Hotel Booking

4. CODE
BOOKING

Public Class Form1


Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Me.Close()
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Form2.Show()
End Sub
End Class

Public Class Form2


Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
If DateTimePicker1.Text = "09 November 2015" Or DateTimePicker1.Text = "14
November 2015" Or DateTimePicker1.Text = "19 November 2015" Or
DateTimePicker1.Text = "25 November 2015" Then
MessageBox.Show("Sorry! Room not available on that days. Please select another
date")
Else
Form3.Show()
End If
End Sub

End Class

Public Class Form3


Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
K L University

Department of Computer Science and Engineering

16

User Interface for Hotel Booking

Me.Close()
Form2.Show()
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Me.Close()
Form4.Show()
End Sub
End Class

Public Class Form4


Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Me.Close()
Form1.Show()
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Form5.Show()

End Sub

Private Sub Form4_Load(sender As System.Object, e As System.EventArgs) Handles


MyBase.Load
TextBox5.Text = Form2.DateTimePicker1.Text
End Sub
End Class

Public Class Form5


Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Form4.Show()
K L University

Department of Computer Science and Engineering

17

User Interface for Hotel Booking

Me.Close()
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Form6.Show()
Me.Close()
End Sub
End Class

Public Class Form6


Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Me.Close()
Form1.Close()
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Form7.Show()
Me.Close()
End Sub
End Class

CHECK-IN
Public Class Form7
Private Sub Form7_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
TextBox1.Text = Form4.TextBox1.Text
TextBox2.Text = Form4.ComboBox2.Text
TextBox3.Text = Form2.DateTimePicker1.Text
End Sub
K L University

Department of Computer Science and Engineering

18

User Interface for Hotel Booking

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles


Button2.Click
Me.Close()
Form1.Show()
End Sub

Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles


Button3.Click
Dim rndnumber As Random
Dim number As Integer
rndnumber = New Random
number = rndnumber.Next(1, 1000)
TextBox4.Text = number
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Form8.Show()
End Sub
End Class

Public Class Form8


Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
Checkout.Show()
End Sub
End Class

CHECK-OUT
Public Class Checkout
Private Sub RadioButton1_CheckedChanged(sender As System.Object, e As
System.EventArgs) Handles RadioButton1.CheckedChanged

K L University

Department of Computer Science and Engineering

19

User Interface for Hotel Booking

If RadioButton1.Checked = True Then


Change.Show()
End If
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs)


MessageBox.Show("ref id:" + TextBox12.Text + vbLf + "room no:" + TextBox1.Text +
vbLf + "Name:" + TextBox2.Text + vbLf + "datein:" + DateTimePicker1.Text + vbLf +
"dateout:" + DateTimePicker2.Text + vbLf + "Room charges:" + TextBox6.Text + vbLf + "
other charges:" + TextBox7.Text + "amount paid:" + TextBox10.Text + vbLf + "balance
amount:" + TextBox11.Text)
End Sub

Private Sub TextBox9_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox9.TextChanged
TextBox9.Text = Val(TextBox6.Text) + Val(TextBox7.Text) - Val(TextBox8.Text)
End Sub

Private Sub TextBox6_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox6.TextChanged
If (TextBox4.Text = "Normal (1000)") Then
TextBox6.Text = 1000 * Val(TextBox3.Text)
ElseIf (TextBox4.Text = "Deluxe (1500)") Then
TextBox6.Text = 1500 * Val(TextBox3.Text)
ElseIf (TextBox4.Text = "AC (2000)") Then
TextBox6.Text = 2000 * Val(TextBox3.Text)
End If
End Sub

Private Sub RadioButton2_CheckedChanged(sender As System.Object, e As


System.EventArgs) Handles RadioButton2.CheckedChanged
TextBox6.ReadOnly = False
TextBox6.Clear()
End Sub
K L University

Department of Computer Science and Engineering

20

User Interface for Hotel Booking

Private Sub TextBox3_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox3.TextChanged
If RadioButton1.Checked = False Then
TextBox3.Text = Val(DateTimePicker2.Value) - Val(DateTimePicker1.Value)
ElseIf RadioButton1.Checked = True Then
TextBox3.Text = Val(Change.TextBox3.Text) + Val(Change.TextBox4.Text)
End If
End Sub

Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles


MyBase.Load
TextBox12.Text = Form7.TextBox4.Text()
TextBox1.Text = Form4.ComboBox3.Text()
TextBox2.Text = Form4.TextBox1.Text()
DateTimePicker1.Text = Form2.DateTimePicker1.Text
TextBox4.Text = Form4.ComboBox2.Text()
TextBox8.Text = 1000
End Sub

Private Sub TextBox11_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox11.TextChanged
TextBox11.Text = (Val(TextBox9.Text) - (Val(TextBox9.Text) * Val(TextBox10.Text))
/ 100)
End Sub

Private Sub Button1_Click_1(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Intro.Show()
End Sub
End Class

Public Class Change


K L University

Department of Computer Science and Engineering

21

User Interface for Hotel Booking

Private Sub TextBox1_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox1.TextChanged
If (ComboBox2.Text = "Normal (1000)") Then
TextBox1.Text = 1000 * Val(TextBox4.Text)
ElseIf (ComboBox2.Text = "Deluxe (1500)") Then
TextBox1.Text = 1500 * Val(TextBox4.Text)
ElseIf (ComboBox2.Text = "AC (2000)") Then
TextBox1.Text = 2000 * Val(TextBox4.Text)
End If
End Sub

Private Sub Form3_Load(sender As System.Object, e As System.EventArgs) Handles


MyBase.Load
TextBox6.Text = Form4.ComboBox2.Text()
End Sub

Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles


Button2.Click
Checkout.Show()
Me.Close()
Checkout.RadioButton1.Checked = False
End Sub

Private Sub Button3_Click(sender As System.Object, e As System.EventArgs) Handles


Button3.Click
TextBox5.Text = Val(TextBox1.Text) + Val(TextBox2.Text)
End Sub

Private Sub TextBox2_TextChanged(sender As System.Object, e As System.EventArgs)


Handles TextBox2.TextChanged
If (TextBox6.Text = "Normal (1000)") Then
TextBox2.Text = 1000 * Val(TextBox3.Text)
ElseIf (TextBox6.Text = "Deluxe (1500)") Then
K L University

Department of Computer Science and Engineering

22

User Interface for Hotel Booking

TextBox2.Text = 1500 * Val(TextBox3.Text)


ElseIf (TextBox6.Text = "AC (2000)") Then
TextBox2.Text = 2000 * Val(TextBox3.Text)
End If
End Sub

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Checkout.Show()
End Sub
End Class

PAYMENT

Public Class Intro


Private Sub LinkLabel3_LinkClicked(sender As System.Object, e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel3.LinkClicked
Paybycash.Show()
End Sub
Private Sub LinkLabel1_LinkClicked(sender As System.Object, e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel1.LinkClicked
Credit.Show()
End Sub
Private Sub LinkLabel2_LinkClicked(sender As System.Object, e As
System.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles LinkLabel2.LinkClicked
Netbanking.Show()
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
Me.Close()
End Sub
Private Sub Form1_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
TextBox2.Text = Form4.TextBox1.Text
TextBox3.Text = Checkout.TextBox11.Text
TextBox1.Text = Form7.TextBox4.Text
End Sub
K L University

Department of Computer Science and Engineering

23

User Interface for Hotel Booking

End Class
Public Class Credit
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
If TextBox4.Text = vbNullString Or TextBox5.Text = vbNullString Or TextBox6.Text
= vbNullString Or ComboBox1.Text = vbNullString Or ComboBox2.Text = vbNullString
Then
MessageBox.Show("All the details are not filled. Please fill them.")
Else
Me.Close()
Confirm.Show()
End If
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Intro.Show()
Me.Close()
End Sub
Private Sub Form2_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
TextBox2.Text = Checkout.TextBox11.Text
TextBox1.Text = Form7.TextBox4.Text
End Sub
End Class
Public Class Netbanking
Private Sub PictureBox1_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox1.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox2_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox2.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox3_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox3.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox4_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox4.Click
NetBanking2.Show()
K L University

Department of Computer Science and Engineering

24

User Interface for Hotel Booking

End Sub
Private Sub PictureBox5_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox5.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox6_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox6.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox7_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox7.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox8_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox8.Click
NetBanking2.Show()
End Sub
Private Sub PictureBox9_Click(sender As System.Object, e As System.EventArgs)
Handles PictureBox9.Click
NetBanking2.Show()
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
Me.Close()
Intro.Show()
End Sub
End Class
Public Class NetBanking2
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
If TextBox1.Text = "Srikar" And TextBox2.Text = "Kashyap" Then
Netbanking3.Show()
Else
MessageBox.Show("Invalid ID or Password. Please enter again")
End If
End Sub
End Class
Public Class Netbanking3
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
Confirm.Show()
End Sub

K L University

Department of Computer Science and Engineering

25

User Interface for Hotel Booking

Private Sub Netbanking3_Load(sender As System.Object, e As System.EventArgs)


Handles MyBase.Load
TextBox5.Text = Checkout.TextBox11.Text
End Sub
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Me.Close()
Intro.Show()
End Sub
End Class
Public Class Paybycash
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Me.Close()
Intro.Show()
End Sub
Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles
Button1.Click
If TextBox2.Text = vbNullString Or TextBox1.Text = vbNullString Then
MessageBox.Show("No values are entered. Please enter")
Else
Dim a, b, c As Double
a = TextBox1.Text
b = TextBox2.Text
c = Val(b) - Val(a)
TextBox3.Text = c
End If
End Sub
Private Sub Paybycash_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
TextBox1.Text = Checkout.TextBox11.Text
End Sub
End Class
Public Class Confirm
Private Sub Button2_Click(sender As System.Object, e As System.EventArgs) Handles
Button2.Click
Credit.Show()
Me.Close()
End Sub

K L University

Department of Computer Science and Engineering

26

User Interface for Hotel Booking

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles


Button1.Click
Paying.Show()
Me.Close()
End Sub
End Class
Public Class Paying
Dim t As Timer = New Timer()
Private Sub Form8_Load(sender As System.Object, e As System.EventArgs) Handles
MyBase.Load
t.Interval = 4800
AddHandler t.Tick, AddressOf HandleTimerTick
t.Start()
End Sub
Private Sub HandleTimerTick()
Me.Close()
MessageBox.Show("Your payment is successful!!")
t.Stop()
End Sub
End Class

K L University

Department of Computer Science and Engineering

27

User Interface for Hotel Booking

5. OUTPUT

Fig 20: Home Screen

Fig 21: Checking availability of room

K L University

Department of Computer Science and Engineering

28

User Interface for Hotel Booking

Fig 22: Confirmation to book on that date

Fig 23: Entering details to book the room

K L University

Department of Computer Science and Engineering

29

User Interface for Hotel Booking

Fig 24: Final confirmation to book the room

Fig 25: Booking confirmed message

K L University

Department of Computer Science and Engineering

30

User Interface for Hotel Booking

Fig 26: Check-in details to be filled

Fig 27: Check-in successful message

K L University

Department of Computer Science and Engineering

31

User Interface for Hotel Booking

Fig 28: Check out details to be filled

Fig 29: Option to see if any room change in between


K L University

Department of Computer Science and Engineering

32

User Interface for Hotel Booking

Fig 30: Payment portal homepage to select different options

K L University

Department of Computer Science and Engineering

33

User Interface for Hotel Booking

Fig 31: Credit/Debit card portal to be filled

Fig 32: Confirmation of payment


K L University

Department of Computer Science and Engineering

34

User Interface for Hotel Booking

Fig 33: Payment in progress..

Fig 34: Net Banking select

K L University

Department of Computer Science and Engineering

35

User Interface for Hotel Booking

Fig 35: Net Banking login

Fig 36: Net Banking Details to be filled

K L University

Department of Computer Science and Engineering

36

User Interface for Hotel Booking

Fig 37: Pay by Cash portal

K L University

Department of Computer Science and Engineering

37

User Interface for Hotel Booking

6. REFERENCES
1. User interfaces in VB.NET: Windows Forms and Custom Controls Matthew
MacDonald
2.Visual Basic 6 Secrets Harold Davis
3.Visual Basic Shelly Hoisington
4. Microsoft Visual Basic 2012 Comprehensive Shelly Hoisingtog

K L University

Department of Computer Science and Engineering

Potrebbero piacerti anche