Hotel
Hotel
Hotel
Hotel Management
System
By
Name:Rahul Kumar
Roll No:802427
Submitted to Submitted By
this project. I feel great pleasure while working on this project work.
First I want to thank Mr. Amit Singhal who gave knowledge through
RAHUL KUMAR
BCA -VI
Roll no:802427
Table of Contents
S. No. Topic
1. Introduction
3. Problem Statement
4. Requirement Analysis
6. System Design
7. Form Layouts
8. Coding
9. Testing
13. Conclusion
14. Bibliography
Introduction Of Project
matter a lot. And the hotel always try to be better the in all the areas
where ever the possibilities are there. The Computer has made this
people who found their work quite hardly manageable because of keeping
all wears and tears because each and every thing is the matter which
should be recorded. For this purpose the following project is quit helpful
and handy because almost all the areas are covered in the project. Like
easy to use and easy to carry. Today the efficiency of the computerized
1. Front Office(Reception)
2. Restaurant
3. Room Services
4. Transport Enquiry
almost every area, and the block of the hotel like restaurant,
records separately.
The hotel people will have to make login of each and every one
The facilities given into the project makes the project useful to the
hotel and the workers of the hotel because their work will be easy
and they will find their work easy and correct, all the details can be
Problem Statement
The Major problems during the designing of this project occurred were:-
1. Facts Collection
2. Attribute Collection
3. Decision Making
All the problems took place during the preparation of the project to give
the shape of actual project it was quite difficult to collect the facts like
what attribute they use to store the relevant data of any area.
Meeting to the hotel people was quit tough task as they were not ready
to talk about their personal matters as the working style of any hotel
make the hotel unique. And then decision making that whether the facts
The requirement of the project was the working style of a hotel which is
department
3. Testing
4. Trouble shooting
its workability impact on the organization, ability to meet user needs and
solve the problem but to acquire a sense of its scope. Cost benefit
analysis is also done .The result is a format proposal detailing the nature
This project can run on DOS or Windows 98 operating system, which are
economical constraints.
This project can run on any Pentium processor & does not require any
additional hardware.
down approach i.e. the user will get finally whatever is desire without
Delivery and
Maintenance
SYSTEM REQUIREMENTS
Software Specification
Language : VB.NET
Database : MS-ACCESS
means that all languages are first class languages as far as .NET is
VB6 programmers will be familiar with the syntax. Most of the .NET
languages. If you are a VB6 programmer then the first .NET language
how .NET applications are structured and how you create the various
parts of the application. You will then learn about intermediate language
Next, the VB.NET compiler is introduced and the most often used
introduced to the Console class and using and formatting strings. Next,
the seminar will cover basic features of VB.NET: branching; logical and
bitwise tests, loops and bitwise shift operators. This gives you the tools
.NET types defined in one assembly can be used in another, and this is
.NET is object orientated and so all types are derived ultimately from the
Object base class. The seminar will cover the various class members:
properties, fields and methods, and the members used to initialize and
clean up an object (constructors and finalizers). You will also learn about
static members. Next, you will learn further details about classes
how to derive from a class and how to access the base class. You will
also be shown how to declare virtual and abstract members and how to
.NET allows multiple interface inheritance, that is, a class can implement
more than one interface. You will learn the benefit of interface
implementation. You will also learn about casts and the as keyword, and
and one way it does this is by controlling how memory is allocated and
accessed. In particular, arrays are used to access .NET allocated memory
and the runtime imposes bounds checking. You will learn the VB.NET for
objects can be managed by the GC and exist on the managed heap and
these are called reference types. In addition, another type of .NET object
can be allocated on the stack (or as a class member on the heap, but
without a reference) and these are called value types. The differences
between value type objects and reference types: boxing and unboxing.
.NET defines rules called the Common Language Specification. Code that
follows these rules can be used by code written in any other .NET
an exception object type that can be thrown and caught in all .NET
languages. You will learn the syntax of guarding code for exceptions and
catching the exceptions, you will also learn about how you can pass
information through the exception objects and some of the subtle issues.
about those classes and the For Each statement in VB.NET to access all
members.
.NET allows you to create type safe function pointer objects called
delegates. You will learn the types of delegates that the runtime offers
you, how to initialize them and how to invoke them. You will also be
informed about some of the issues with delegates with respect to
notification mechanism called events. You will learn how to declare and
All .NET languages can create multi threaded code. You will learn how to
creating threads and how to control them. You will be made aware of the
problems with multi threaded code and how to alleviate them using
synchronization. You will learn about the process thread pool, how you
can use it and how it is used by the framework. Also in this section you'll
learn about asynchronous code and how you can invoke delegates
asynchronously.
At this point you will have learned the mandatory parts of the seminar.
The following topics are optional and will be covered if there is time.
One reason why .NET is type safe is its use of metadata. You will learn
about metadata and how it is used. .NET compilers add metadata to .NET
code and this can be customized using attributes. You will learn about
the various types of attributes, and how to write your own. You will also
you want to save the state used in your application, but it is vital for
framework features like .NET remoting. You will earn about streams,
encoders, readers and writers. You will also learn about how to make an
resemblance to the VB6 forms library called Windows Forms Classes. You
will learn the basics of using Windows Forms, the form events, controls
Much of the code that you will write will be .NET code. However, there is
a vast amount of code available that has been already written. Some
code has been compiled to native DLLs, other code is available as COM
access such code: Platform Invoke allows you to access native DLLs;
COM Interop allows you to access COM objects. You will learn how to use
VB.NET to use both of these technologies. You will learn how you use the
Runtime Callable Wrapper from VB.NET to access COM objects, and how
you can use the COM Callable Wrapper from unmanaged code to call
.NET objects.
MS-ACCESS
users who are new or only have little experience using Access 2003. It
how they are performed in Microsoft Access 2003. This tutorial does not
field). The data stored in each column must be of a single data type such
Different tables can have the same column in common. This feature is
Table: tables are the main units of data storage in a database. A table is
fields.
Field: a field is a column in a table and defines a data type for a set of
values in a table. For example, a mailing list table might include fields for
first name, last name, address, city, state, zip code, and telephone
number.
fields.
In a mailing list table, each record would contain the data for one person
Data type: data types are the properties of each field. A field only has
from a table.
System Design
the process the end user requirement were translated into specification
phases:-
1. LOGICAL DESIGN
2. PHYSICAL DESIGN
i.e. output, the inputs and the databases, all in manner that meets
project requirements.
The activity following logical design, are the procedure followed in the
system.
Logical Design
Database Design
confirm to the rule of logical and physical data structures imposed by the
frmMain.Show()
Me.Hide()
End If
rdr.Close()
End Sub
Private Sub frmLogin_Load(ByVal eventSender As System.Object, ByVal eventArgs
As System.EventArgs) Handles MyBase.Load
i=4
j=i+4
cn = New OleDbConnection(My.Settings.HotelDataBaseConnectionString)
cn.Open()
End Sub
End Sub
End Sub
End Class
Main Screen(frmMain)
Public Class frmMain
Inherits System.Windows.Forms.Form
Dim i As Object
Dim j As Short
Dim cn As OleDbConnection
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
Dim cnt As String
Dim dcode As String
End Sub
End Sub
End Sub
End Class
EditStaffInformationForm(frmeditstaff)
Imports System.Data.OleDb
Public Class frmEditStaff
Inherits System.Windows.Forms.Form
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
Dim dcode As String
Dim ecode As String
End Sub
End Sub
End Sub
EndClass
DepartmentEntryForm(frmDeptEntry)
Imports System.Data.OleDb
Public Class frmDeptEntry
Inherits System.Windows.Forms.Form
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
Private Sub cmbCode_SelectedIndexChanged(ByVal eventSender As System.Object,
ByVal eventArgs As System.EventArgs) Handles cmbCode.SelectedIndexChanged
Dim str As String
str = "select * from Department where Dept_Code=" & "'" & Trim(cmbCode.Text)
& "'" & ""
Try
cmd = New OleDbCommand(str, con)
rdr = cmd.ExecuteReader
If rdr.HasRows Then
rdr.Read()
txtName.Text = rdr("Dept_Name").ToString
End If
rdr.Close()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End Sub
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
Dim yn As MsgBoxResult
yn = MsgBox("Are you sure ?", MsgBoxStyle.YesNo + MsgBoxStyle.Question,
"Confirmation")
If yn = MsgBoxResult.Yes Then
Try
Dim sqlStr = "Insert into Department values('" & txtNewCode.Text & "','" &
txtNewName.Text & "')"
cmd.CommandText = sqlStr
Dim c As Short
c = cmd.ExecuteNonQuery()
If c > 0 Then
MsgBox("Record has been saved")
cmdAdd.Enabled = True
cmdSave.Enabled = False
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
Private Sub cmdUpdate_Click(ByVal eventSender As System.Object, ByVal eventArgs
As System.EventArgs) Handles cmdUpdate.Click
Dim yn As MsgBoxResult
yn = MsgBox("Are you sure ?", MsgBoxStyle.YesNo + MsgBoxStyle.Question,
"Confirmation")
If yn = MsgBoxResult.Yes Then
Try
Dim sqlstr As String
sqlstr = "update Department set Dept_Name='" & txtName.Text & "' where
Dept_Code='" & cmbCode.Text & "'"
cmd.CommandText = sqlstr
Dim c As Short = cmd.ExecuteNonQuery()
If c > 0 Then
MsgBox("Record has been updated successfully")
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
Booking)
Imports System.Data.OleDb
Try
Dim sql As String
sql = "select * from roomdetail where RoomNo=" & txtRoomNo.Text
cmd.CommandText = sql
rdr = cmd.ExecuteReader
If rdr.HasRows Then
MsgBox("Room No already exist")
txtRoomNo.Text = ""
txtRoomNo.Focus()
Exit Sub
End If
rdr.Close()
sql = "insert into RoomDetail values(" & txtRoomNo.Text & "," &
txtFloorNo.Text & _
",'" & cmbType.Text & "','" & cmbStatus.Text & "')"
cmd.CommandText = sql
Dim c As Short = cmd.ExecuteNonQuery
If c > 0 Then
MsgBox("New Room Added")
cmdAddNew.Enabled = True
cmdSave.Enabled = False
End If
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
Form(frmeditRoomDetail)
Imports System.Data.OleDb
Public Class frmEditRoomDetail
Inherits System.Windows.Forms.Form
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
Form(frmMomthlycoll)
Public Class frmMonthlyColl
End Sub
End Class
Change User Information
Form(frmChangeUser)
Imports System.Data.OleDb
Public Class frmChangeUser
Inherits System.Windows.Forms.Form
Dim con As OleDbConnection
Dim cmd As OleDbCommand
Dim rdr As OleDbDataReader
1. Bill
End Sub
EndClass
Formatofreport
FormatofReport
3.MonthlyCollectionReport
Imports System.Data.OleDb
Public Class frmMonthlyCollRpt
Private Sub frmMonthlyCollRpt_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
Dim mon, yr As Short
mon = Val(frmMonthlyColl.txtMonth.Text)
yr = Val(frmMonthlyColl.txtYear.Text)
Dim con As OleDbConnection
con = New OleDbConnection(My.Settings.HotelDataBaseConnectionString)
con.Open()
Dim dt As New DataTable
Dim str As String
str = "SELECT BookingDetail.Cust_No, BookingDetail.Name,
BookingDetail.Address, BookingDetail.VaccantDate, BookingDetail.Advance,
BookingDetail.TotalAmount, " & _
"RoomType.Rent, BookingDetail.vaccantdate - BookingDetail.occupationdate
AS NOD FROM ((BookingDetail INNER JOIN RoomDetail ON BookingDetail.RoomNo =" &
_
"RoomDetail.RoomNo) INNER JOIN RoomType ON RoomDetail.Type =
RoomType.Type) WHERE(Month(bookingdetail.vaccantdate) = " & mon & " And
Year(BookingDetail.VaccantDate) = " & yr & ")"
Dim da As New OleDbDataAdapter(str, con)
da.Fill(dt)
Dim cr As New rptMonthlyCollection
cr.SetDataSource(dt)
CrystalReportViewer1.ReportSource = cr
End Sub
End Class
Format of Report
4.Customer Report
Imports System.Data.OleDb
Public Class frmDailyCustRpt
Format of report
5.Staff Report
Imports System.Data.OleDb
Public Class frmStaffRpt
Format of Report
Testing
Testing is a set of activities that can be planned in advance and
a set of steps into which can place specific test case design and testing
methods should be defined for the software process. All provide the
software developer with a template for testing and alll have the following
generic characteristics :
time.
designed.
testing “il the large”: The first tests planned and executed
testing.
software.
finding an errors.
errors.
LEVELS OF TESTING:
There are three levels of testing individual module to the entire software
systems
product.
3) Incorrect intializations
4) Precision inaccuracy
number of test cases is reduced and errors can be more easily predicted
and uncovered.
Integration Testing :The second level of testing is called integration
In this testing many unit tested modules are combined into sub-system ,
which are then tested. The goal here is to see if the modules can be
integrated property.
1) Incremental approaches
2) Top-down approaches
3) Bottam-up integration
4) Regression testing
5) Smoke testing
system. The testing process is concerned with finding error that result
also concerend with validating that the system need its functional or non-
functional requirements.
1) Alpha Testing
2) Beta Testing
3) Acceptance Testing
Alpha Testing: Alpha Testing refers to the system testing caried out by
Various new features can be added so that it can attract more and more
people:
• The project can also be used in the hotel room so the customer
• This project can also be used for the future booking & provides the
the collection of fine. The project will eliminate the need to maintain
become better.
For the development this project I have to follow some books. The
Pressman