Download - Hotel Reservation Project Report
-
8/10/2019 Hotel Reservation Project Report
1/43
A Minor Project Report
Submitted to
WEST BENGAL UNIVERSITY OF TECHNOLOGY
By
ABDUL GHULAM MUSTAFA
ROLL NO: 08105010041
REG. NO: 081050510001 of 2008-2009,
In partial fulfilment for the award of the degree
of
MASTER COMPUTER APPLICATION
BANKURA UNNYANI INSTITUTE OF ENGINEERING
Poabagan, Bank ura
-
8/10/2019 Hotel Reservation Project Report
2/43
Table of Contents
CERTIFICATE BY GUIDE 4
ACKNOWLEDGEMENT 5
INTRODUCTION 6
PROJECTOVERVIEW................................................................................................................................ 6
OBJECTIVE.................................................................................................................................................. 8
SCOPE............................................................................................................................................................ 9
THREAT .......................................................................................................................................................10
SOLUTION................................................................ ................................................................... ................11
PROJECTCATEGORY ...............................................................................................................................12
HOSTINGREQUIREMENT......................................................................................................................13
SOFTWARE SOLUTION 15
FEASIBILITY STUDY.................................................................................................................................15
Technical feasibility 15
Operational feasibility 16
Economic feasibility 16
SYSTEMREQUIREMENT&SPECIFICATION......................................................................................17
Functional Requirements 18
Technical Requirements: 19
Non-Functional Requirements: 19
Design Goals and Constraints 20
SYSTEMDESIGN................................................................. .................................................................. .....21
Use Case 22
Data Flow Diagram 23
Sequence Diagram 25
E-R Diagram 27
Data Model 28
IMPLEMENTAIONTECHNOLOGIES.....................................................................................................29 USERINTERFACESCREENSHOT.......................................................... ................................................32
CODING(VB.NET)......................................................................................................................................33
SCOPE OF FUTURE APPLICATION 42
SCOPE OF IMPROVEMENT 42
REFERENCES 43
-
8/10/2019 Hotel Reservation Project Report
3/43
3
-
8/10/2019 Hotel Reservation Project Report
4/43
4
CERTIFICATE BY GUIDE
This to certify that the report of the project submitted is the outcome of the project work
entitled HOTEL RESERVATION SYSTEM carried out by ABDUL GHULAMMUSTAFA & SOUMEN DAS under my guidance and supervision for the award of
Degree in Master of Computer Applicationof West Bengal University of Technology
(W.B.), India.
To the best of the my knowledge the report
Embodies the work of the candidate him/herself,
Has duly been completed,
Fulfils the requirement of the ordinance relating to the MCA degree of the
University and
Is up to the desired standard for the purpose of which is submitted.
Signature
Mr Subhabrata Rakshit
The project work as mentioned above is hereby being recommended and forwarded for
examination and evaluation.
-
8/10/2019 Hotel Reservation Project Report
5/43
5
ACKNOWLEDGEMENT
Completing a task is never one mans effort. It needs help of numbers of persons in direct
or indirect ways.
I wish to express my gratitude to DPL Reservation and also to Mr . Subhabrata Rakshit, to
grant me permission to do same project.
My sincere thanks to all the faculty members of my institute for providing me their valuable
supports and cooperation that was necessary to carry out the work.
Finally I would like to express my deepest gratitude and reverence to my parents and
friends for their steady encouragements throughout the progress of this work.
ABDUL GHULAM MUSTAFA
SOUMEN DAS
MCA, 5ThSem
-
8/10/2019 Hotel Reservation Project Report
6/43
6
INTRODUCTION
PROJECT OVERVIEW
In this case, we will be designing a simple online e-commerce Bicycle Store. The site will
provide a soothing shopping experience for customers. The system will allow more than
one Categories and different items to choose and can be added in cart. The case will trace
the following sequence.
A customer visits the online e-commerce Bicycle Store. A customer may buy item or just
visit the page and logout. The customer can select a category, and items to get the differentproducts in the desired category.
The customer can select the product for purchasing. The process can be repeated for more
items. Once the customer finishes selecting the product/s the cart can be viewed , If the
customer wants to edit the final cart it can be done here.
For final payment the customer has to login the website, if the customer is visiting for the
first time he must register with the site, else the customer must use the login page to
proceed.
Final cart is submitted for payment and card details and address (where shipment has to be
made) are be confirmed by the customer .Customer is confirmed with a shipment Id and
delivery of goods within 15 days.
PAYPAL SHOPPING CART
PayPal Shopping Cart has been integrated in Bicycle store website, customers can purchase
multiple items with a single payment, browse your entire selection, and view a consolidated
list of all their items before purchasing. The PayPal Shopping Cart is a low-cost way for you
to accept credit card and bank account payments, and can be fully integrated with yourwebsite in a few easy steps.
What are the benefits?
Save time and money with PayPal's hassle-free Shopping Cart:
Easy to implement - no CGI scripting necessary
No up-front costs - you'll enjoy the same low fee schedule used when you receive
other PayPal payments
Sell with ease - PayPal maintains detailed transaction records on our website
-
8/10/2019 Hotel Reservation Project Report
7/43
7
Improve buyer experience - with customizable buttons and secure payments, happy
customers become repeat customers
The limited time and resources have restricted us to incorporate, in this project, only a
main activities that are performed in a Bicycle Store web application, but utmost care has
been taken to make the system efficient and user friendly navigation. This web
application has been designed to support the full featured e-commerce solution through
which the following functions are performed:
Register to the Site.
Log in to Check Out.
Browse/Search through Product catalog.
Filter the product as per need like Color, Weight etc.
Change/Recover the Password. Multiple items can be added in Shopping Cart.
View the Recent & Related product individually by the customer.
Check-out customer with PayPal account.
Bill Print after successful payment.
E-mail acknowledgment after payment made for product.
Only Admin can Add/Remove/Update product related items.
Individual customer Report
-
8/10/2019 Hotel Reservation Project Report
8/43
8
OBJECTIVE
Ecommerce and online stores go hand in hand. If you want to sell your products and
services online, its important that you have the necessary elements in place that will help a
visitor buy your products and services. This can only happen if you integrate shopping cart
solutions in your E-commerce site.
Customized Shopping Cart DevelopmentThe needs and requirements of every business are unique. Businesses might belong to the
same domain, but the way they will be going about achieving their goals will be different. At
Bicycle Store, we focus on custom shopping cart design, and our objective is to deliver out-
of-the-box solutions. We bring together all the ecommerce elements in one single packageto ensure an improvement in customer conversion rates, sales growth and an enhanced
interaction between customers, business partners and suppliers.
Spotlight is on Customer OrientationProviding customer oriented solutions lie at the very heart of any and every ecommerce
application development including ecommerce shopping cart development. Bicycle Store is
home to individuals who have superior online store development and management
expertise. Their primary goal is to gather a complete understanding of the client
requirements and deliver solutions with strong revenue generation potential. Our
proficiency in shopping cart development is an integral part of our e-store design services
and the wide scope of our services helps us give due importance to the various factors that
contribute to the growth and development of an online business.
-
8/10/2019 Hotel Reservation Project Report
9/43
9
SCOPE
Companies involved in e-commerce as ether buyer s or sellers rely on Internet based
technologies, and E-commerce applications and service to accomplish marketing,
discovery, transaction, processing, and product and customer services processing. For
example, electronic commerce can include interactive, marketing, ordering, payment and
customer support process at E-commerce catalog and auction site on the World Wide Web,
extranet access of inventory databases by customers and suppliers, intranet access of
customer relationship management systems by sales and customer collaboration in product
development via E-mail and internet newsgroup.
Many companies today are participating in or sponsoring three basic categories ofelectronic commerce applications, business-to-consumer, business-to-business and
consumer-to-consumer E-commerce. However, many E-commerce concepts apply to such
applications.
Business to Consumer or B2C
In this form electronic commerce, business must develop attractive electronic marketplaces
to entice and sell product and services to consumer. For example, many companies offer E-
commerce websites that provide virtual storefronts and multimedia catalogs, interactive
order processing, secure electronic payment system, and online customer support.
-
8/10/2019 Hotel Reservation Project Report
10/43
10
THREAT
eCommerce has forever revolutionized the way business is done. Retail has now a long way
from the days of physical transactions that were time consuming and prone to errors.
However, eCommerce has unavoidably invited its share of trouble makers. As much as
eCommerce simplifies transactions, it is occasionally plagued by serious concerns that
jeopardize its security as a medium of exchanging money and information.
Major threats to present day eCommerce include
BREACH OF SECURITY:
Money Thefts
eCommerce services are about transactions, and transactions are very largely driven by
money. This attracts hackers, crackers and everyone with the knowledge of exploiting
loopholes in a system. Once a kink in the armor is discovered, they feed the system(and
users) with numerous bits of dubious information to extract confidential data(phishing).
This is particularly dangerous as the data extracted may be that of credit card numbers,
security passwords, transaction details etc.
Also, Payment gateways are vulnerable to interception by unethical users. Cleverly crafted
strategies can sift a part or the entire amount being transferred from the user to the online
vendor.
Identity thefts
Hackers often gain access to sensitive information like user accounts, user details,
addresses, confidential personal information etc. It is a significant threat in view of the
privileges one can avail with a false identity.
For instance, one can effortlessly login to an online shopping mart under a stolen identity
and make purchases worth thousands of dollars. He/she can then have the order delivered
to an address other than the one listed on the records. One can easily see how those orders
could be received by the impostor without arousing suspicion. While the fraudsters gains,
the original account holder continues to pay the price until the offender is nabbed.
Threats to the system
Viruses, worms, Trojans are very deceptive methods of stealing information. Unless a
sound virus-protection strategy is used by the eCommere Solutions firm, these malicious
-
8/10/2019 Hotel Reservation Project Report
11/43
11
agents can compromise the credibility of all eCommerce web solution services. Often
planted by individuals for reasons known best to them alone, viruses breed within the
systems and multiply at astonishing speeds. Unchecked, they can potentially cripple the
entire system.
SOLUTION
There is but one solution to all issues that at times dent the security of eCommerce services.
Strict vigil on malicious intruders.
Easier said than done? So is every preventive measure. However, with online transactions,
progress in security has been overwhelming.
Authentication
Most notable are the advances in identification and elimination of non-genuine users.
Ecommerce service designers now use multi-level identification protocols like security
questions, encrypted passwords(Encryption), biometrics and others to confirm the identity
of their customers. These steps have found wide favor all around due to their effectiveness
in weeding out unwelcome access.
Intrusion Check
The issue of tackling viruses and their like has also seen rapid development with anti-virus
vendors releasing strong anti-viruses. These are developed by expert programmers who are
a notch above the hackers and crackers themselves.
Firewalls are another common way of implementing security measures. These programs
restrict access to and from the system to pre-checked users/access points.
Educating Users
eCommerce is run primarily by users. Thus, eCommerce service providers have also turned
to educating users about safe practices that make the entire operation trouble free. Recent
issues like phishing have been tackled to a good extent by informing genuine users of the
perils of publishing their confidential information to unauthorized information seekers.
-
8/10/2019 Hotel Reservation Project Report
12/43
12
PROJECT CATEGORY
This Project is coupled with material on how to use the various tool, sub sets
available in
IDE : Visual Studio 2010
Database : MS SQL SERVER
GUI 3rdParty : Component One Custom Control for ASP.NET.
Web Server : IIS 6.0/7.0
Client Side : HTML, Ajax, CSS, JavaScript, jQuery, XML
Server Side : Asp.net C#.
The app uses Entity Framework, Linq, AJAX, jQuery, CSS, and so much more. This is a full
blown reference web application for the fictitious Bicycle Store.
-
8/10/2019 Hotel Reservation Project Report
13/43
13
HOSTING REQUIREMENT
Hardware requirements .
Processor
Minimum 1 GHz
Recommended 1 GHz
RAM
Minimum 128 MB
Recommended 256 MB
Disk space (minimum) Mirrored/RAID disk sub-system 10 GB
Duplex Ethernet adapters 100Mbit
Software Requirements
Operating System : Windows 2000 or higher.
Web Server : IIS 6.0 or Higher.
Database : SQL Server 7 or higher
Additional Software Requirements
Firewall & Good Antivirus Solution.
.Net 3.5 or higher.
Latest service pack .
Servers should backed up nightly and there should be a number of hot-standby servers(and components) in the event of a systems failure.
Bandwidth
In working out ourhosting costs,Home page calculates the amount of bandwidth that yoursite will need, based on the number of visits you require it to cope with. For example, a siteexpecting 500,000 hits per month equates to a bandwidth requirement of an average of158Kbit/s. This is based on:
Average 50K page size 30 days per month Traffic spread evenly over 12 hours
http://www.homepage.co.uk/hosting/hostcosts.asphttp://www.homepage.co.uk/hosting/hostcosts.asp -
8/10/2019 Hotel Reservation Project Report
14/43
14
-
8/10/2019 Hotel Reservation Project Report
15/43
15
SOFTWARE SOLUTION
FEASIBILITY STUDY
Feasibility study conducted once the problem is clearly understood. Feasibility
study is a high level capsule version of the entire system-analysis and design process. The
objective is to determine quickly and at the minimum expense how to solve the problem
and to determine the problem is solved. The system has been tested for feasibility in thefollowing ways.
Technical feasibility
Operational feasibility
Economic feasibility
Technical feasibility
A study of function, performance and constraints may affect the ability to achieve anacceptable system so, that necessary function and performance are achieved within the
constraints uncovered during system analysis. This is a Product based e-commerce website
which include Product catalog, Shopping Cart, PayPal Payment and Administrative Page.
MS SQL Server is used as backend considering the Three Tier Architecture. When
building the web site, implementing a flexible architecture composed of pluggable
components allows you to add new featuressuch as the shopping cart, the departments
list, or the product search featureby coding them as separate components and plugging
them into the existing application. Achieving a good level of flexibility is one of the goals
regarding the applications architecture. Youll see that the level of flexibility is proportional
to the amount of time required to design and implement it, so well try to find a
compromise that provides the best gains without complicating the code too much., so the
project is technically feasible.
-
8/10/2019 Hotel Reservation Project Report
16/43
16
Operational feasibility
The purpose of this project is to develop a Full Featured E Commerce Solution
which facilitates Product Browsing, Adding/Removing items in Shopping Cart and Provide
the easy way to payment such as PayPal from anywhere in the world. The activities of the
system such as Add/Remove Product by Administrator, information retrieval, updating and
deletion of records from various tables etc. are made easy. All the operators of this website
are trained in this area. So this project is operational feasible.
Economic feasibility
Economic analysis includes a broad range of concerns that include cost benefit
analysis, long term cooperative income strategies, cost of resources needed fordevelopment .In existing they had to maintain a large number of Products/registers is a
costly affair. This can be avoided by putting the data in the computer format that is cheaper
and reliable such as SQL Express which is free to use in Production environment. Since the
cost of resources for development of system satisfies the organization, the software is
economically feasible.
-
8/10/2019 Hotel Reservation Project Report
17/43
17
SYSTEM REQUIREMENT & SPECIFICATION
The Software Requirements Specification (SRS) will provide a detailed description
Of the requirements for the Bicycle Store (BS). This SRS will allow for a complete
understanding of what is to be expected of the BS to be constructed.
USER STORIES
Story 1. A customer connects to the e-commerce front-end looking for aproduct:
1. The customer starts at the e-commerce front-end main page.2. The customer searches in the products catalog for a specific product.3. The customer gets information about the product.
4.
The customer decides if she wants to proceed with an order.
Story 2. A customer connects to the e-commerce front-end for browsing theproducts catalog:
1. The customer starts at the e-commerce front-end main page.2. The customer browser hierarchically the products catalog.3. The customer gets information about the product.4. The customer decides if she wants to proceed with an order.
Story 3. A customer places successfully an order into the system:
1. The customer registers or logins into the system.2. The customer places an order within the system.3. Completes the order successfully.4. Decides if she wants an invoice send by mail or shown to her.
Story 4. A customer tracks the status of her orders:
1. The customer logins into the system.2. The customer can change /recover his password.
3.
Browses her recent list of visited items.4. Browses her related list of items.5. Selects the order for which wants more detail and its status.6. Detail of the order is shown.
-
8/10/2019 Hotel Reservation Project Report
18/43
18
Functional Requirements
User roles & profiles
The system administrator. The person that installs & configure IIS, SQL Express for
website up & running. Additionally, this person also Maintain, Backup, Restore theDatabase.
The customer. The person that connects to the on-line e-commerce front-end and
browses the product catalog or places an order and pay the bill through PayPal.
The sales manager. The person is the company that looks after the sales orders andensures that all the sales operations work correctly.
Business process definition
Search the product catalog.
Browse the product catalog. Making an order using an on-line front-end.
Generate an invoice for an order that has been completed. Pay through PayPal.
Customer management
It's a common scenario that a new user registers using the e-commerce front-end to be ableto perform a commercial transaction later. It should be possible to:
Check if a customer already exists in System. Create new customers in System. Modify the information of a customer in Website system.
Product catalog
A product catalog contains all the products that a user can view.
General considerations:
This website supports multiple items for the product. All the information about the products in the catalog is stored in SQL Server
database.
It should be possible for a user to perform the following actions:
Browse the product catalog hierarchically by product category.
Search the product catalog. Get all the details of a product.
Every product object can contain at least the following details:
-
8/10/2019 Hotel Reservation Project Report
19/43
19
Product name. Product description. Product category. Product attributes (weight, color, size, etc.). Product price and tax.
It should be possible for users to query product's inventory availability. This can bedisplayed when the user is viewing the product information.
Sales order
It should be possible for a user to:
Perform a full sales order. Get a list of the products that has bought. Track the status of his orders pending to be send. Give details of Shipping method and shipping Address
Invoicing
It should be possible for the e-commerce system:
Get access to the full invoice object to render an invoice by itself. Get a PDF version of an invoice using the default server report.
User Interface Mockups
Technical Requirements:
Web services allows applications to be integrated more rapidly and easily. Integrationfocuses on the XML messages that define the services rather than the protocol used to relaythese messages. These characteristics are ideal for connecting business functions acrossheterogeneous systems.
The integration requirements are:
The e-commerce system makes calls to the web server whenever it requires asynchronization.
The definition of these web services should not change from version to version toguarantee the integration with different web server versions.
Non-Functional Requirements:
These are general requirements that impact in the technical decisions:
The final system should scale correctly to support high traffic loads.
Security is a key area since we are performing commercial translations and dealingwith confidential data.
Open Discussion Items
-
8/10/2019 Hotel Reservation Project Report
20/43
20
Which e-commerce platform is better to do the example integration?
Design Goals and Constraints
Performance
No more than a 5-percent degradation in average page response is allowed with each 100
concurrent users that are added to the system.
Processor utilization should not exceed 80 percent during spikes of 1000 concurrent users.
Availability
Because the Web site is accessed by customers across the world, it needs to be available 24
hours a day, 7 days a week.
Reliability
Because of the need for 24 x 7 availability, automatic failover will be required. In addition,
existing disaster recovery and backup plans and procedures must be revised to incorporate
the e-commerce Application.
Scalability
E-commerce Application anticipates an average load of 500 concurrent users after the
system is fully operational, and expects that to grow by 5 percent each year for the next five
years.
Security
For the Web Site Enhancement project, customers will need to log on securely, and
sensitive information will be encrypted by using SSL.
For the Sales Force Automation project, no data encryption is required. Sales staff will need
to log on, and their user names will be used to determine access to different parts of thesystem.
-
8/10/2019 Hotel Reservation Project Report
21/43
21
SYSTEM DESIGN
Based on the requirements and specifications, the system design was carried out to give
detailed description of input screens, output screens, and table descriptions. The system
has been designed to provide easy browsing through different product category and
shopping cart .Data can be entered in the form of database tables. Payment Bill are also
generated. The system has been designed to reduce workload inconsistencies, redundancy
of data and also to improve transparency.
-
8/10/2019 Hotel Reservation Project Report
22/43
22
Use Case
Use cases have their beginnings in software engineering, where they were used to visually
or textuallydescribe a system's behavior as it responds to queries, input, or other actions
from external systems or "actors." But marketers have adopted use cases to provide
descriptions of how users will perform specific tasks on a website.
In the case of ecommerce, we know that customers are generally going to be researching
products or services, searching for products or services, or ready to purchase products or
services when they visit our site. But developing use cases can help us clearly understand
how these interactions take place and may help us streamline the experience for our
customers.
There are two Actor:
1. Customer
2.Admin
Use Case 1-Bicycle Store
-
8/10/2019 Hotel Reservation Project Report
23/43
23
Data Flow Diagram
A data flow diagram (DFD) is a graphical representation of the "flow" of data through an
information system. DFDs can also be used for the visualization of data processing
(structured design).
DFD: 1-Context Level diagram
DFD: 2-Register
-
8/10/2019 Hotel Reservation Project Report
24/43
24
DFD: 3-Login
DFD: 4-Add Item to Cart
DFD: 5-Add/Remove item in Product Table
DFD: 6-Payment Info
-
8/10/2019 Hotel Reservation Project Report
25/43
25
Sequence Diagram
UML sequence diagrams are used to represent or model the flow of messages, events and
actions between the objects or components of a system.
Sequence Diagram 1-View Catalog
-
8/10/2019 Hotel Reservation Project Report
26/43
26
Sequence Diagram 2-Create Order
-
8/10/2019 Hotel Reservation Project Report
27/43
-
8/10/2019 Hotel Reservation Project Report
28/43
28
Data Model
Data modeling defines primary data objects, composition of each data object, and
attributes of the object, relationships between each object and other objects and between
objects and the processes.
Data Model 1-Bicycle Store
-
8/10/2019 Hotel Reservation Project Report
29/43
29
IMPLEMENTAION TECHNOLOGIES
Introducing ASP.NET
ASP.NETwas developed in direct response to the problems that developers had with classic ASP.
Since ASP is in such wide use, however, Microsoft ensured that ASP scripts execute without
modification on a machine with the .NET Framework (the ASP engine, ASP.DLL, is not modified
when installing the .NET Framework). Thus, IIS can house both ASP andASP.NETscripts on the
same machine.
Advantages of ASP.NET
1.
Separation of Code from HTML
To make a clean sweep, withASP.NETyou have the ability to completely separate layout
and business logic. This makes it much easier for teams of programmers and designers to
collaborate efficiently. This makes it much easier for teams of programmers and designers to
collaborate efficiently.
2.
Support for compiled languages
developer can use VB.NET and access features such as strong typing and object-oriented
programming. Using compiled languages also means thatASP.NETpages do not suffer the
performance penalties associated with interpreted code.ASP.NETpages are precompiled
to byte-code and Just In Time (JIT) compiled when first requested. Subsequent requests aredirected to the fully compiled code, which is cached until the source changes.
3. Use services provided by the .NET Framework
The .NET Framework provides class libraries that can be used by your application. Some of
the key classes help you with input/output, access to operating system services, data access,
or even debugging. We will go into more detail on some of them in this module.
4.
Graphical Development Environment
Visual Studio .NET provides a very rich development environment for Web
developers. You can drag and drop controls and set properties the way you do in Visual
Basic 6. And you have full IntelliSense support, not only for your code, but also for HTML
and XML.
5.
State management
To refer to the problems mentioned before,ASP.NETprovides solutions for session and
application state management. State information can, for example, be kept in memory or
stored in a database. It can be shared across Web farms, and state information can be
recovered, even if the server fails or the connection breaks down.
6. Update files while the server is running!
Components of your application can be updated while the server is online and clients are
-
8/10/2019 Hotel Reservation Project Report
30/43
30
connected. The Framework will use the new files as soon as they are copied to the
application. Removed or old files that are still in use are kept in memory until the clients
have finished.
7.
XML-Based Configuration Files
Configuration settings inASP.NETare stored in XML files that you can easily read andedit. You can also easily copy these to another server, along with the other files that
comprise your application.
ASP.NET Overview
Here are some point that gives the quick overview ofASP.NET.
ASP.NETprovides services to allow the creation, deployment, and execution of Web
Applications and Web Services
Like ASP,ASP.NETis a server-side technology
Web Applications are built using Web Forms.ASP.NETcomes with built-in Web Forms
controls, which are responsible for generating the user interface. They mirror typical HTML
widgets like text boxes or buttons. If these controls do not fit your needs, you are free to
create your own user controls.
Web Forms are designed to make building web-based applications as easy as building Visual
Basic applications
ASP.NET 3.5 Architecture
ASP.NETis based on the fundamental architecture of .NET Framework. Visual studio provide a
uniform way to combine the various features of this Architecture.
-
8/10/2019 Hotel Reservation Project Report
31/43
31
LINQ
Language-Integrated Query (LINQ) is a set of features introduced in Visual Studio 2008 that
extends powerful query capabilities to the language syntax of C# and Visual Basic. LINQ introduces
standard, easily-learned patterns for querying and updating data, and the technology can be
extended to support potentially any kind of data store. Visual Studio includes LINQ provider
assemblies that enable the use of LINQ with .NET Framework collections, SQL Server databases,
ADO.NET Datasets, and XML documents.
ADO.NET ENTITY FRAMEWORK
ADO.NET Entity Framework abstracts therelational (logical) schema of the data that is stored in
adatabase and presents its conceptual schema to the application. For example, in the database,
entries about a customer and their information can be stored in the Customerstable, their orders in
theOrders table and their contact information in yet another Contactstable. For an application to
deal with this database, it has to know which information is in which table, i.e., the relational schemaof the data is hardcoded into the application.
http://en.wikipedia.org/wiki/Relational_schemahttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Conceptual_schemahttp://en.wikipedia.org/wiki/Conceptual_schemahttp://en.wikipedia.org/wiki/Databasehttp://en.wikipedia.org/wiki/Relational_schema -
8/10/2019 Hotel Reservation Project Report
32/43
32
USER INTERFACE SCREENSHOT
2 Login Screen
Home Screen
6Check in Screen
1Report Screen
3Visual Report
5Hotel Profile Screen
-
8/10/2019 Hotel Reservation Project Report
33/43
33
CODING(VB.NET)
A coding standard is a set of guidelines, rules and regulations on how to write code. Usually
a coding standard includes guide lines on how to name variables, how to indent the code,
how to place parenthesis and keywords etc. The idea is to be consistent in programming so
that, in case of multiple people working on the same code, it becomes easier for one to
understand what others have done.
PublicClassCheckIn
DimdaRoomFlagAsNewDBDataSetTableAdapters.RoomflagTableAdapterDimdaCusAsNewDBDataSetTableAdapters.TblCustomerTableAdapterDimNewCheckinRowAsDBDataSet.TblCheckInRowDimdaCheckInAsNewDBDataSetTableAdapters.TblCheckInTableAdapter
Private Sub TblCustomerBindingNavigatorSaveItem_Click(ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesTblCustomerBindingNavigatorSaveItem.Click
Me.Validate()Me.TblCustomerBindingSource.EndEdit()Me.TableAdapterManager.UpdateAll(Me.DBDataSet)
EndSubPrivate Sub CheckIn_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs)HandlesMyBase.Load'TODO: This line of code loads data into the 'DBDataSet.hotelname' table. You can
move, or remove it, as needed.
-
8/10/2019 Hotel Reservation Project Report
34/43
34
' ClearText()Me.HotelnameTableAdapter.Fill(Me.DBDataSet.hotelname)'TODO: This line of code loads data into the 'DBDataSet1.tblPrice' table. You can
move, or remove it, as needed.Me.TblPriceTableAdapter.Fill(Me.DBDataSet1.tblPrice)'TODO: This line of code loads data into the 'DBDataSet1.tblPrice' table. You can
move, or remove it, as needed.Me.TblPriceTableAdapter.Fill(Me.DBDataSeRoomInfo.tblPrice)CheckInDateDateTimePicker.Value =Date.Now
Me.DataTableRoomNoComboTableAdapter.FillRoomNoCombo(Me.DBDataSet.DataTableRoomNoCombo, ComboBoxRoomType.Text)
'TODO: This line of code loads data into the 'DBDataSet.TblCheckIn' table. You canmove, or remove it, as needed.
'Me.TblCheckInTableAdapter.Fill(Me.DBDataSet.TblCheckIn)'TODO: This line of code loads data into the 'DBDataSet.TblCustomer' table. You can
move, or remove it, as needed.Me.TblCustomerTableAdapter.Fill(Me.DBDataSet.TblCustomer)TblCustomerBindingNavigator.AddNewItem.PerformClick()
EndSub
SubTextBoxNotEmpty(ByValtxboxAsTextBox)DimmsgAsString= ""Iftxbox.Text.Trim.Length = 0 Thenmsg =My.Settings.NotEmptyTextBoxMe.ErrorProvider1.SetError(txbox, msg)
EndSub
SubTextBoxIsNumeric(ByValtxboxAsTextBox)DimmsgAsString= ""IfNotIsNumeric(txbox.Text) Thenmsg =My.Settings.MustBeNumberMe.ErrorProvider1.SetError(txbox, msg)
EndSub
Private Sub GroupBox4_Enter(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesGroupBox4.Enter
EndSub
Private Sub Label1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)
EndSub
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)
Me.Close()EndSubPrivateSubsetflag()
daRoomFlag.Update("True", RoomNoComboBox.SelectedValue)
-
8/10/2019 Hotel Reservation Project Report
35/43
35
EndSub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)
'TblCustomerBindingNavigatorSaveItem.PerformClick()EndSub
Private Sub CheckInDateDateTimePicker_ValueChanged(ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesCheckInDateDateTimePicker.ValueChanged
EndSub
Private Sub CheckOutDateDateTimePicker_ValueChanged(ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesCheckOutDateDateTimePicker.ValueChanged
EndSub
Private Sub No_of_NightTextBox_GotFocus(ByVal sender As Object, ByVal e AsSystem.EventArgs)HandlesNo_of_NightTextBox.GotFocus
EndSub
Private Sub No_of_NightTextBox_KeyPress(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyPressEventArgs)HandlesNo_of_NightTextBox.KeyPress
IfNot(Char.IsNumber(e.KeyChar) Ore.KeyChar = vbBack) Thene.Handled = TrueEndIf
EndSub
Private Sub No_of_NightTextBox_KeyUp(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyEventArgs)HandlesNo_of_NightTextBox.KeyUp
EndSub
Private Sub No_of_NightTextBox_LostFocus(ByVal sender As Object, ByVal e AsSystem.EventArgs)HandlesNo_of_NightTextBox.LostFocus
' CalcDue()EndSub
PrivateSubNo_of_NightTextBox_MouseEnter(ByVal sender As Object, ByVal e AsSystem.EventArgs)HandlesNo_of_NightTextBox.MouseEnter
No_of_NightTextBox.SelectAll()EndSub
PrivateSubNo_of_NightTextBox_TextChanged(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesNo_of_NightTextBox.TextChanged
-
8/10/2019 Hotel Reservation Project Report
36/43
36
CalcTotal()
IfString.IsNullOrEmpty(No_of_NightTextBox.Text) ThenAdvanceTextBox.Enabled =False
ElseCalcDue()
EndIfcalcCheckout()
EndSub
Private Sub FillToolStripButton_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)
EndSub
Private Sub FillToolStrip_ItemClicked(ByVal sender As System.Object, ByVal e AsSystem.Windows.Forms.ToolStripItemClickedEventArgs)
EndSubPrivateSubcalcCheckout()
IfNo_of_NightTextBox.Text > ""ThenCheckOutDateDateTimePicker.Value =
CheckInDateDateTimePicker.Value.AddDays(CType(No_of_NightTextBox.Text,Double))Else
CheckOutDateDateTimePicker.Value = NowEndIf
EndSub
Private Sub AdvanceTextBox_KeyPress(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyPressEventArgs)HandlesAdvanceTextBox.KeyPress
IfNot(Char.IsNumber(e.KeyChar) Ore.KeyChar = vbBack) Thene.Handled = True
EndIf
EndSub
PrivateSubAdvanceTextBox_TextChanged(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesAdvanceTextBox.TextChanged
CalcDue()
EndSub
PrivateSubCalcTotal()
-
8/10/2019 Hotel Reservation Project Report
37/43
37
IfNo_of_NightTextBox.Text > ""ThenDimSubTotalAsDouble= (No_of_NightTextBox.Text * UnitPriceTextBox.Text)TotalTextBox.Text = SubTotal - (SubTotal) * DiscountTextBox.Text / 100
ElseTotalTextBox.Text = ""
EndIfEndSubPrivateSubCalcDue()
Try
IfAdvanceTextBox.Text > ""ThenAdvanceTextBox.Enabled = True
DueTextBox.Text = TotalTextBox.Text - AdvanceTextBox.TextElse
AdvanceTextBox.Enabled = TrueDueTextBox.Text = TotalTextBox.Text
EndIfCatchexAsException
MessageBox.Show("Enter No Night To Stay")EndTry
EndSub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)TblCustomerBindingNavigator.AddNewItem.PerformClick()EndSub
PrivateSubUnitPriceTextBox_TextChanged(ByVal sender As System.Object, ByVal eAsSystem.EventArgs)HandlesUnitPriceTextBox.TextChanged
CalcTotal()EndSubPrivate Sub ComboBoxRoomType_SelectedValueChanged(ByVal sender As Object,
ByValeAsSystem.EventArgs)HandlesComboBoxRoomType.SelectedValueChangedMe.RoomInfoTableAdapter.Fill(Me.DBDataSeRoomInfo.RoomInfo,
ComboBoxRoomType.Text)
EndSub
PrivateSubDiscountTextBox_TextChanged(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesDiscountTextBox.TextChanged
EndSub
PrivateSubTotalTextBox_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesTotalTextBox.TextChanged
CalcDue()EndSub
PrivateSubSaveCustomer()
-
8/10/2019 Hotel Reservation Project Report
38/43
38
daCus.Insert(CusNameTextBox.Text,ComboBoxGender.SelectedItem,AgeTextBox.Text,CardNoTextBox.Text,Mobile_NoTextBox.Text,AddressTextBox.Text,CityTextBox.Text,StateTextBox.Text,CountryTextBox.Text)
EndSub
PrivateSubSaveCheckIn()daCheckIn.Insert(CusIDTextBox.Text, CusNameTextBox.Text,
CheckInDateDateTimePicker.Value,CheckOutDateDateTimePicker.Value,No_of_NightTextBox.Text,ComboBoxRoomType.Text,RoomNoComboBox.Text,FloorTextBox.Text,UnitPriceTextBox.Text,DiscountTextBox.Text,TotalTextBox.Text,AdvanceTextBox.Text,DueTextBox.Text)
EndSubPrivateSubadvpaid()
IfAdvanceTextBox.Text > ""ThenElse
AdvanceTextBox.Text = 0
EndIfEndSubPrivate Sub ButtonNewCheckin_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs)
ButtonCheckin.Enabled = TrueTblCustomerBindingNavigator.AddNewItem.PerformClick()CusNameTextBox.Focus()Me.RoomInfoTableAdapter.Fill(Me.DBDataSeRoomInfo.RoomInfo,
ComboBoxRoomType.Text)ClearText()ButtonNewCheckin.Enabled =False
EndSub
Private Sub ComboBoxRoomType_SelectedIndexChanged(ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handles
ComboBoxRoomType.SelectedIndexChanged
-
8/10/2019 Hotel Reservation Project Report
39/43
39
EndSub
PrivateSubClearText()
No_of_NightTextBox.Text = 0TotalTextBox.Text = 0.0AdvanceTextBox.Text = 0.0DueTextBox.Text = 0.0
EndSubPrivate Sub Button1_Click_1(ByVal sender As System.Object, ByVal e As
System.EventArgs)setflag()
EndSub
Private Sub KryptonButton1_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesKryptonButton1.Click
Me.Close()EndSub
Private Sub KryptonButton2_Click(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesButtonNewCheckin.Click
ButtonCheckin.Enabled = TrueTblCustomerBindingNavigator.AddNewItem.PerformClick()CusNameTextBox.Focus()Me.RoomInfoTableAdapter.Fill(Me.DBDataSeRoomInfo.RoomInfo,
ComboBoxRoomType.Text)ClearText()
ButtonNewCheckin.Enabled =FalseEndSub
Private Sub Button1_Click_2(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)
EndSub
Private Sub KryptonButton2_Click_1(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesButtonCheckin.Click
Me.ValidateChildren()
TryDimInvalidInputAsBoolean=FalseDimctrlAsControlForEachctrlInMe.Controls
IfErrorProvider1.GetError(ctrl) ""ThenInvalidInput = True
Exit ForEndIf
-
8/10/2019 Hotel Reservation Project Report
40/43
40
NextIfInvalidInput = TrueThen
MessageBox.Show("Please Enter Required Field", "Invalid Input",MessageBoxButtons.OK,MessageBoxIcon.Information)
Else'Enter here to Execute after Validation
SaveCustomer()SaveCheckIn()setflag()MessageBox.Show("CheckIn Successfully Done", "Status",
MessageBoxButtons.OK,MessageBoxIcon.None,MessageBoxDefaultButton.Button1)ButtonCheckin.Enabled =FalseButtonNewCheckin.Enabled = TrueButtonNewCheckin.Focus()
EndIf
CatchexAsExceptionMessageBox.Show("Fill Required Field Indicated By Red Button", "CheckIn Satus",
MessageBoxButtons.OK,MessageBoxIcon.Asterisk,MessageBoxDefaultButton.Button1)CusNameTextBox.Focus()
EndTry
EndSub
Private Sub AgeTextBox_KeyPress(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyPressEventArgs)HandlesAgeTextBox.KeyPress
IfNot(Char.IsNumber(e.KeyChar) Ore.KeyChar = vbBack) Then
e.Handled = TrueEndIfEndSub
PrivateSub AgeTextBox_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesAgeTextBox.TextChanged
EndSub
Private Sub Mobile_NoTextBox_KeyPress(ByVal sender As Object, ByVal e AsSystem.Windows.Forms.KeyPressEventArgs)HandlesMobile_NoTextBox.KeyPress
IfNot(Char.IsNumber(e.KeyChar) Ore.KeyChar = vbBack) Then
e.Handled = TrueEndIfEndSub
PrivateSubMobile_NoTextBox_TextChanged(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesMobile_NoTextBox.TextChanged
EndSubPrivateSub CusNameTextBox_TextChanged(ByVal sender As System.Object, ByVal e
AsSystem.EventArgs)HandlesCusNameTextBox.TextChangedComboBoxGender.SelectedIndex = 0
EndSub
-
8/10/2019 Hotel Reservation Project Report
41/43
41
Private Sub CusNameTextBox_Validating(ByVal sender As Object, ByVal e AsSystem.ComponentModel.CancelEventArgs)HandlesCusNameTextBox.Validating
DimtxboxAsTextBox=DirectCast(sender, TextBox)TextBoxNotEmpty(txbox)
EndSub
PrivateSubAddressTextBox_TextChanged(ByValsenderAsSystem.Object,ByValeAsSystem.EventArgs)HandlesAddressTextBox.TextChanged
EndSub
Private Sub AddressTextBox_Validating(ByVal sender As Object, ByVal e AsSystem.ComponentModel.CancelEventArgs)HandlesAddressTextBox.Validating
DimtxboxAsTextBox=DirectCast(sender, TextBox)TextBoxNotEmpty(txbox)
EndSub
PrivateSub CityTextBox_TextChanged(ByVal sender As System.Object, ByVal e AsSystem.EventArgs)HandlesCityTextBox.TextChanged
EndSub
Private Sub CityTextBox_Validating(ByVal sender As Object, ByVal e AsSystem.ComponentModel.CancelEventArgs)HandlesCityTextBox.Validating
DimtxboxAsTextBox=DirectCast(sender, TextBox)TextBoxNotEmpty(txbox)
EndSub
Private Sub No_of_NightTextBox_Validating(ByVal sender As Object, ByVal e As
System.ComponentModel.CancelEventArgs)HandlesNo_of_NightTextBox.ValidatingDimtxboxAsTextBox=DirectCast(sender, TextBox)DimtxtBoxAsTextBox=DirectCast(sender, TextBox)IftxtBox.Text.Length = 0 Then
Me.ErrorProvider1.SetError(txtBox,"Enter No of Days to Stay")Else
Me.ErrorProvider1.SetError(txtBox,"")EndIf
EndSub
Private Sub AdvanceTextBox_Validating(ByVal sender As Object, ByVal e AsSystem.ComponentModel.CancelEventArgs)HandlesAdvanceTextBox.Validating
IfString.IsNullOrEmpty(AdvanceTextBox.Text)ThenMe.ErrorProvider1.SetError(AdvanceTextBox,"Please Make Prepaid")
ElseMe.ErrorProvider1.SetError(AdvanceTextBox,"")
EndIfEndSubPrivateSubComboBoxGender_SelectedIndexChanged(ByValsenderAsSystem.Object,
ByValeAsSystem.EventArgs)HandlesComboBoxGender.SelectedIndexChanged
EndSub
EndClass
-
8/10/2019 Hotel Reservation Project Report
42/43
42
Scope of Future Application
This project can be used in the hotel after adding some more useful modules in the
project for which hotel are providing services.
Utmost care and back-up procedures must be established to ensure 100% successful
implementation of the computerized hotel system. In case of system failure, the
organization should be in a position to process the transaction with another organization or
if the worst comes to the worst, it should be in a position to complete it manually.
Scope of Improvement
Now a days hotels are providing many other facilities, this project can also be improved
with the improvement in the Hotels.
Utmost care and back-up procedures must be established to ensure 100% successful
implementation of the computerized banking system. In case of system failure, the
organization should be in a position to process the transaction with another organization or
if the worst comes to the worst, it should be in a position to complete it manually.
-
8/10/2019 Hotel Reservation Project Report
43/43
References
BOOKS:
Visual Basic 2010 Programmers Referenceby Rod Stephens.
Beginning Visual Basic 2010 Microsoft by Thearon Willis, BryanNewsome.
Visual Basic 2010 MASTERING Microsoft by Evangelos Petroutsos.
VB.NET by P.Radhaganesan.
WEBSITES:
www.google.co.in
www.windowsclient.net
www.msdn.microsoft.com
http://www.google.co.in/http://www.windowsclient.net/http://www.windowsclient.net/http://www.google.co.in/