Вы находитесь на странице: 1из 78

Online Movie Ticket Booking System

CONTENTS

CHAPTER NO CHAPTER NAME PAGENO


ABSTRACT 3
1. INTRODUCTION 4
1.1 About the Project 5
1.2 Objective 5
1.3 Scope of the Project 6
2. SYSTEM ANALYSIS 7
2.1 Introduction 8
2.2 Existing System 8
2.3 Proposed System 12
2.4 Feasibility Study 12
3. SOFTWARE SPECIFICATION 15
3.1 Hardware and Software
Requirements 16
4. SOFTWARE DESCRIPTION 17
4.1 Visual Studio 2008 18
4.2 SQL Server Compact Edition 21
4.3 ASP.Net 24
5. PROJECT DESCRIPTION 26

Department of BCA VI SEM Page 1


Online Movie Ticket Booking System

5.1 Problem Analysis 27


5.2 Problem Analysis Approaches 27
5.3 Module Description 27
5.4 Data Flow Diagram 29
6. TESTING 33
6.1 Introduction 34
6.2 Testing Methodologies 34
6.3 Test Cases 36
6.4 Data Validation 37
7. SYSTEM IMPLEMENTATION 39
7.1 Purpose 40
7.2 System Maintenance 40
8. CONCLUSION 42
9. APPENDICES 43
9.1 Source Code 43
9.2 Screen Shots 65
10. BIBLIOGRAPHY 78

Department of BCA VI SEM Page 2


Online Movie Ticket Booking System

ABSTRACT

“Online Movie Ticket Booking System” aimed at developing a ticket


reservation system for a Cinema Hall which basically manages the
ticket booking process providing an interface to the user to book
movie tickets in a more easy way.
This project is basically aimed to provide the customers facility to
book the movie tickets online. Our online tickets reservation system
is one of the best opportunities for those who cannot afford enough
time to get their tickets reserved standing in long queues. People can
book tickets online at any time of day or night. Our reservation
system also provides option to cancel the tickets which are reserved
previously.
The Ticket Reservation System is an Internet based application that
can be accessed throughout the Net and can be accessed by anyone
who has a net connection. This application will automate the
reservation of tickets.

Department of BCA VI SEM Page 3


Online Movie Ticket Booking System

1. INTRODUCTION

Department of BCA VI SEM Page 4


Online Movie Ticket Booking System

1.1 ABOUT THE PROJECT


 This project is aimed to provide the customers facility to book
tickets for cinema halls online, through which they can book
tickets anytime, anywhere.
 E-ticket system is basically made for providing the customer an
anytime and anywhere service for booking the seat in the
cinema hall and to gather information about the movies
online. The user can easily be able to know about the movies
released and then make the choice.
 In this project, we will illustrate our system by providing DFD
on some functions. And we will also provide some process
description and data dictionary.
 Admin can use the system to insert and delete data (e.g. film
description, time table) which will update the webpage
(webpage are dynamic page, changing according to the data in
database). Also, admin can check the statistic information from
the system.

1.2 OBJECTIVES
Cinema-going is one of the most popular out-of-home cultural
activities, affecting a serious of social, economic and cultural
phenomena in modern societies.
Cinemas are considered to be an integral part of cities and they
contribute to the definition of a local geography and identity.
They also contribute to the preservation of the collective memory,
since they constitute a significant social and cultural practice linked
to a specific place, which acts as a common reference or landmark
for many individuals.

Department of BCA VI SEM Page 5


Online Movie Ticket Booking System

Through this project we present a comprehensive solution for ticket


booking in multiplexes.
Theatre management system, an online ticket selling software that is
easy to understand, easy to use and offers the simplicity of fast
point-and-click service to the customers.
This powerful software program is specifically designed for theatre
owners, to sell tickets online. This intuitive visual interface makes
day-to-day aspects of selling, exchanging, refunding, and reporting
fast and easy for both the user and administrators. Theatre
management controls all back-end functionalities like, movie details,
ticket rate and show time, customer information and sales history
saved in a database, etc.
Theatre admin manages the report details like counter wise report,
daily, weekly, monthly report and movie report etc.

1.3 SCOPE OF THE PROJECT


The scope of this project is to provide an easy
option for the customer who is willing to book tickets online for a
movie. It saves his time and labour. On the other hand half of the
tickets of the cinema hall are been provided for booking online. Such
that labour of staff is reduced. This system can be accessed
anywhere who has net connection at any time of day or night, thus
providing customer’s comfort. And also plays a major role in
promoting the multiplex and the movies.
Keeping in view the customer’s benefit, the system
also has an additional functionality where the refund is available on
cancellation of tickets. This is one of the functionalities where the
previous systems were lacking with.

Department of BCA VI SEM Page 6


Online Movie Ticket Booking System

2. SYSTEM ANALYSIS

Department of BCA VI SEM Page 7


Online Movie Ticket Booking System

2.1 INTRODUCTION
Analysis can be defined as breaking up of any whole so
as to find out their nature, function etc. It defines design as to make
preliminary sketches of; to sketch a pattern or outline for plan. To
plan and carry out especially by artistic arrangement or in a skilful
wall. System analysis and design can be characterized as a set of
techniques and processes, a community of interests, a culture and an
intellectual orientation.
The various tasks in the system analysis include the following.
 Understanding application.
 Planning.
 Scheduling.
 Developing candidate solution.
 Performing trade studies.
 Performing cost benefit analysis.
 Recommending alternative solutions.
 Selling of the system.
 Supervising, installing and maintaining the system

2.2 EXISTING SYSTEM


For studying the existing system on ticket booking, we
conducted a case study on a major ticket booking venture present
today in India.
2.2.1 A Case Study on KVR
An Online Ordering, Payment and Loyalty Management
Solution for Krishna Village Road show (KVR) Cinemas
KVR Cinemas has broken many national records in field of cinema
exhibition. Their theatres, the first chains of multiplexes in the
country, boast of the highest box office collections in India for 5
Department of BCA VI SEM Page 8
Online Movie Ticket Booking System

consecutive years. The cumulative admissions till date have


exceeded more than 6 million movie goers.
KVR Cinemas is a brand name synonymous with state-of-the-art
cinema exhibition in India. It started operations as a joint venture
between Krishna Exhibitors and Village Road show Pictures, one of
the world’s largest media distribution conglomerates. KVR Cinemas
specializes in developing and operating state-of-the-art Multiplexes
and has been a pioneer in multiplex development by setting up
India's first - KVR Anupam 4, at Saket in city of Delhi. Over the last
three years, KVR Cinemas has established itself as a very strong
brand associated with movies, quality exhibition, food and youth
targeted promotions. The company presently has 4 multiplex
theatres with 12 screens in the city of Delhi with another 7 screen
theatre under construction in city of Gorgon, which is the fastest
growing suburb in India. By attracting a record number of urban
middle & upper income consumers to the complex, major national &
international brands - have opened their outlets in the multiplexes,
making KVR the destination for complete family entertainment.
Situation:
Faced with an increasing number of customers standing in long
queues outside their theatres, KVR faced the challenge of providing
"Customer Delight". Customers desperately wanted a easy way of
ordering and paying for their tickets without the delays and
inconvenience of standing in long queues.KVR needed a mechanism
to administer their loyalty program "The KVR Movie Club", as well as
provide for other promotional and membership services to help
partners maximize their presence at the multiplexes. KVR Cinemas
had introduced phone booking but it was not to prove viable, as
customers were often "no-shows", leading to un-sold seats. This
affected business profits.
Department of BCA VI SEM Page 9
Online Movie Ticket Booking System

Solution:
1. Movie Ticket Booking over the Internet
In response to the KVR Cinemas requirements, we proposed an
e-business solution using Microsoft Platform which would enable
movie goers to book their tickets electronically over the Internet
from the comfort of their office or home. With the advent of the
modern age, the typical user didn't have enough time to stand in line
outside the theatres. The online solution allows users to select their
shows, book and pay for their tickets. This guarantees them a ticket
even before they arrive at the cinema hall.
2. Secure electronic booking through bank payment gateway
Customers were provided with a convenient option of booking
tickets through the Internet via a secure channel using VeriSign SSL
(Secure Socket Layer) and for the first-time the customers
experienced the advantages of an electronic ordering system. This
feature enabled customers to get confirmed tickets online from the
web site by making payment using their credit card or debit cards.
Trisoft integrated the online transaction seamlessly with the bank
Payment Gateway Server.
In order to market the website to the customers and increase the
customer base for online booking, KVR Cinemas introduced the
concept of a movie club for those users who register themselves as
members. Once a customer becomes a member, they are allowed to
buy tickets within minutes using their credit cards and, can
participate in contests and win prizes. Members can also subscribe to
newsletters containing movie-related events and movie charts.
3. Statement of Account and Payment Reconciliation

Department of BCA VI SEM Page 10


Online Movie Ticket Booking System

The application also provides the facility to generate an end-of-


month statement of transactions executed by the system. This helps
the KVR staff to reconcile their accounts with the Citibank Payment
Gateway and has drastically reduced the time-consuming process of
manual reconciliation.
4. The Technology
The website runs on Microsoft Windows 2000 Server and
Microsoft SQL Server 2000. It receives more than 200,000 hits a per
day and has the capacity to cater to 250 concurrent users at any
given time.

Benefits:
The movie portal has benefited KVR in many ways out of which a
few have been outlaid below:
•Convenient online ticket booking through the Internet, which in
turn leads to more and repeat customers and shorter queues.
•Access to information and other movie-related promotional news
through the newsletters.
•Increased Operational Efficiency through painless transaction
reconciliation at the month end.
•Online Brand extension by projecting a tech-savvy image, and
appealing to Generation Y consumers who spend a lot of time
browsing the Internet.
• The Club Class memberships through the portal have built
successful and lasting relationships with customers who are provided
with special services like contests, loyalty points and redemption
against exciting gifts, home delivery of tickets at a nominal cost,
online account maintenance and more.

Department of BCA VI SEM Page 11


Online Movie Ticket Booking System

2.3 PROPOSED SYSTEM


We propose a system which is more reliable, entertaining and easy
than the present system. Our solution targets those users who do
not have spare time to stand in queue for booking tickets. We
propose an easy way of ordering and paying for the tickets without
any delays and inconvenience. The people who book tickets are
assured of a ticket before going to the theatre without their physical
presence. Customers who book tickets will receive an instant
message (m-ticket) in their mobile phone. By splashing this m-ticket
at the counter of theatres, the customer can get the physical ticket.
The staff at the multiplex no longer needs complicated manual ticket
availability and tracking mechanisms for issuing tickets. The ticket
information is stored securely in a database which can be accessed
any time for verification.
The efficient reports can be generated by using this proposed
system.
2.3.1 Advantages of Proposed System
 It is trouble-free to use.
 It is highly reliable, approximate result from user.
 Best user Interface.
 Efficient reports.

2.4 FEASIBILITY STUDY


Feasibility analysis begins once the goals are defined.
It starts by generating broad possible solutions, which are possible to
give an indication of what the new system should look lime. This is
where creativity and imagination are used. Analysts must think up
new ways of doing things- generate new ideas. There is no need to
go into the detailed system operation yet. The solution should

Department of BCA VI SEM Page 12


Online Movie Ticket Booking System

provide enough information to make reasonable estimates about


project cost and give users an indication of how the new system will
fit into the organization. It is important not to exert considerable
effort at this stage only to find out that the project is not worthwhile
or that there is a need significantly change the original goal.
Feasibility of a new system means ensuring that the new system,
which we are going to implement, is efficient and affordable. There
are various types of feasibility to be determined. They are:-
2.4.1 Economical Feasibility
Development of this application is highly economically
feasible. The only thing to be done is making an environment with an
effective supervision. It is cost effective in the sense that has
eliminated the paper work completely. The system is also time
effective because the calculations are automated which are made at
the end of the month or as per the user requirement.
2.4.2 Technical feasibility
The technical requirement for the system is economic
and it does not use any other additional Hardware and software.
Technical evaluation must also assess whether the existing systems
can be upgraded to use the new technology and whether the
organization has the expertise to use it. Install all upgrades
framework into the .Net package supported widows based
application. This application depends on Microsoft office and
intranet service, database. Enter their attendance and generate
report to excel sheet.
2.4.3 Operational Feasibility
The system working is quite easy to use and learn due
to its simple but attractive interface. User requires no special training

Department of BCA VI SEM Page 13


Online Movie Ticket Booking System

for operating the system. Technical performance include issues such


as determining whether the system can provide the right information
for the Department personnel student details, and whether the
system can be organized so that it always delivers this information at
the right place and on time using intranet services. Acceptance
revolves around the current system and its personnel.

Department of BCA VI SEM Page 14


Online Movie Ticket Booking System

3. SOFTWARE SPECIFICATION

Department of BCA VI SEM Page 15


Online Movie Ticket Booking System

3.1 HARDWARE REQUIREMENTS (Minimum Requirement)


 Minimum RAM : - 1GB
 Hard Disk : - 128 GB
 Processor: - Intel core i3

SOFTWARE REQUIREMENTS (Minimum Requirement)


 Operating system :- Windows 7
 Front-End Design :- ASP.Net
 Front-End Language :- Visual basic 2008
 Back-End :- My SQL 2005

Department of BCA VI SEM Page 16


Online Movie Ticket Booking System

4. SOFTWARE DESCRIPTION

Department of BCA VI SEM Page 17


Online Movie Ticket Booking System

4.1 PACKAGE - VISUAL STUDIO 2008


Microsoft Visual Studio is an integrated development
environment (IDE) from Microsoft. It is used to develop console and
graphical user interface applications along with Windows Forms or
WPF applications, web sites, web applications, and web services in
both native code together with managed code for all platforms
supported by Microsoft Windows, Windows Mobile, Windows CE,
VB.NET Framework, VB.NET Compact Framework and Microsoft
Silver light. Visual Studio supports different programming languages
by means of language services, which allow the code editor and
debugger to support (to varying degrees) nearly any programming
language, provided a language-specific service exists. Visual Studio
also includes a web-site editor and designer that allow web pages to
be authored by dragging and dropping widgets. It is used for
developing VB.NET application efficiently to get input and output
design easiest one. It will be run at windows application based
services provide the use.
Visual Studio 2008, and Visual Studio Team System 2008 codenamed
Orcas (a reference to Orcas Island, also an island in Puget Sound, like
Whidbey for the previous 2005 release), were released to MSDN
subscribers on 19 November 2007 alongside .NET Framework 3.5.
The source code for the Visual Studio 2008 IDE is available under a
shared source license to some of Microsoft's partners and ISVs.
Microsoft released Service Pack 1 for Visual Studio 2008 on 11
August 2008. The internal version number of Visual Studio 2008 is
version 9.0 while the file format version is 10.0. Visual Studio 2008 is
the last version to support targeting Windows 2000 for C++
applications.

Department of BCA VI SEM Page 18


Online Movie Ticket Booking System

Visual Studio 2008 is focused on development of Windows Vista,


2007 Office system, and Web applications. For visual design, a new
Windows Presentation Foundation visual designer and a new
HTML/CSS editor influenced by Microsoft Expression Web are
included. J# is not included. Visual Studio 2008 requires .NET 3.5
Framework and by default configures compiled assemblies to run on
.NET Framework 3.5, but it also supports multi-targeting which lets
the developers choose which version of the .NET Framework (out of
2.0, 3.0, 3.5, Silverlight CoreCLR or .NET Compact Framework) the
assembly runs on. Visual Studio 2008 also includes new code analysis
tools, including the new Code Metrics tool (only in Team Edition and
Team Suite Edition). For Visual C++, Visual Studio adds a new version
of Microsoft Foundation Classes (MFC 9.0) that adds support for the
visual styles and UI controls introduced with Windows Vista. For
native and managed code interoperability, Visual C++ introduces the
STL/CLR, which is a port of the C++ Standard Template Library (STL)
containers and algorithms to managed code. STL/CLR defines STL-like
containers, iterators and algorithms that work on C++/CLI managed
objects.
Visual Studio 2008 features include an XAML-based designer
(codenamed Cider), workflow designer, LINQ to SQL designer (for
defining the type mappings and object encapsulation for SQL Server
data), XSLT debugger, JavaScript Intellisense support, JavaScript
Debugging support, support for UAC manifests, a concurrent build
system, among others. It ships with an enhanced set of UI widgets,
both for Windows Forms and WPF. It also includes a multithreaded
build engine (MSBuild) to compile multiple source files (and build the
executable file) in a project across multiple threads simultaneously. It
also includes support for compiling icon resources in PNG format,
introduced in Windows Vista. An updated XML Schema designer was

Department of BCA VI SEM Page 19


Online Movie Ticket Booking System

released separately some time after the release of Visual Studio


2008.
Visual Studio Debugger includes features targeting easier debugging
of multi-threaded applications. In debugging mode, in the Threads
window, which lists all the threads, hovering over a thread displays
the stack trace of that thread in tooltips. The threads can directly be
named and flagged for easier identification from that window itself.
In addition, in the code window, along with indicating the location of
the currently executing instruction in the current thread, the
currently executing instructions in other threads are also pointed
out. The Visual Studio debugger supports integrated debugging of
the .NET 3.5 Framework Base Class Library (BCL) which can
dynamically download the BCL source code and debug symbols and
allow stepping into the BCL source during debugging. As of 2010 a
limited subset of the BCL source is available, with more library
support planned for later.
4.1.1 DEVELOPMENT TOOLS AND TECHNOLOGIES
My goal in this article is to provide you with an
introductory, yet intensive, look at Visual Basic .NET and the new
Microsoft®.NET platform. In order to learn what Visual Basic .NET is
all about, you must first understand a few core aspects of the .NET
platform. This article will build your knowledge of Visual Basic .NET
from the ground up, so I'll begin by discussing the new programming
model and the high-level architecture of the platform's execution
engine called the common language runtime (CLR).
While explaining what the CLR is and how it works, I'll
show a few examples using Visual Basic .NET. As you'll see, Visual
Basic® has undergone a significant overhaul to accommodate the CLR
and its associated programming model. Consequently, Visual Basic

Department of BCA VI SEM Page 20


Online Movie Ticket Booking System

.NET has many new object-oriented design features and much higher
levels of type safety than previous versions of Visual Basic. Either
language can be used to write software that takes full advantage of
the CLR .NET Framework. Now, let me get started by introducing the
core concepts of the .NET platform.

4.2 SQL Server Compact Edition


4.2.1 Introduction
A new generation of applications is on the horizon for
businesses and consumers. This is driven by market changes such as
a growing mobile workforce and its need for productivity even when
not “connected” and an explosive growth of new devices such as
personal digital assistants (PDAs), portable music players, and
gaming consoles, creating exciting possibilities for new applications.
These new applications place new demands on the data platform on
which they are developed.
To meet the needs of this changing application landscape, Microsoft
introduces its newest edition of the SQL Server database product
line, SQL Server 2005 Compact Edition—a maintenance-free,
compact embedded database for single-user client applications for
all Windows Platforms, including Tablet PCs, Pocket PCs, Smart
Phones and Desktops. Compact Edition is available to deploy and
redistribute free of charge.
This white paper outlines the current business and consumer
environment and the key factors that influence the need for this new
generation of applications. It describes how SQL Server Compact
Edition can be used to satisfy the data platform demands of these
applications.
4.2.2 Business Environment and Customer Challenges

Department of BCA VI SEM Page 21


Online Movie Ticket Booking System

Evolving business and consumer needs are placing new


demands on the next generation of applications. In the business
sphere, more and more employees or information workers are
mobile and are seeing the need to run their traditional desktop
applications on mobile devices like PDAs and Tablet PCs. For
example, sales personnel require Customer Relationship
Management (CRM) applications on their mobile devices; field
service employees need to check product specifications and perform
online ordering from mobile devices, and so on. In addition, these
mobile information workers cannot rely on being connected to the
corporate network at all times, but need to have the same rich and
complete application experience in the “disconnected” or
“occasionally connected” state, as they would have in the
“connected” state. A classic example of this is the offline e-mail
experience presented by Microsoft Office Outlook, where users can
work on their locally stored e-mails in a disconnected state and
synchronize with the server when connectivity is available.
Information workers also expect a seamless integrated experience
between multiple devices. For example, one may start entering data
into an expense reporting application on a PDA and continue working
on the same application from a desktop at a later point, starting from
where he or she left off on the PDA.
Another growing trend in businesses today is to gain competitive
advantage by gaining insights from a plethora of data that is
collected every day. This data is being gathered at the “edges” of the
enterprise – for example: inventory information gathered through
scanning radio frequency identification (RFID) tags at a warehouse –
and needs to be aggregated with data from other edge locations at a
central site for analysis. Similarly, the mobile workforce that works at

Department of BCA VI SEM Page 22


Online Movie Ticket Booking System

the edges of the enterprise needs relevant and current business


information from the central data repository.
Meanwhile, information technology (IT) departments that develop
and deploy these line-of-business (LOB) applications in their
businesses continue to grapple with the challenge of providing
robust IT services that are secure and reliable in spite of constantly
falling budgets. IT departments continue to look for ways to develop
new applications rapidly by leveraging existing skills and tools and to
find ways to easily deploy and manage end-user applications, which
helps to keep costs down.
For consumers, rich personal applications continue to proliferate and
evolve on desktops and home devices, such as gaming consoles and
digital video recorders (DVRs). These applications are becoming
more and more connected as vendors sell additional personalized
services through the Internet. For example, a vendor that sells a tax
application can offer services to consumers to securely store their
year-end data online for any future need. Similarly, vendors can offer
enhanced end-user experiences with their client applications using
this service model. For example, an online streaming audio/video
service that automatically downloads images of the album or video
cover can enhance the end-user experience. Staying in touch with
the customer through an Internet service can also help vendors track
user preferences and better target their software offerings.
Rich consumer applications also continue to grow rapidly in mobile
phones and in the convergent devices arena. Applications such as
calendaring that were in the business realm are now also increasingly
being required in personal devices.
As application paradigms change, application developers have new
requirements for the database platform on which these applications

Department of BCA VI SEM Page 23


Online Movie Ticket Booking System

are built. In particular, there is a growing need for local-store


databases that are:
 Embeddable to provide better application security, performance,
and ease of distribution and deployment.
 Lightweight and compact to preserve system resources, especially in
devices where processor and memory is premium.
 Componentizable to allow application vendors to choose essential
functionality only, this keeps application size to a minimum.
 Supported on multiple devices so the same application code can be
used to build applications on multiple devices and platforms.
 Capable of providing automatic synchronization to allow end-users
to work with most recent data in an offline application experience
and to push updates to a central location.
4.2.3 The Solution
In light of the changing needs of the new class of
applications, Microsoft introduces its newest edition of the SQL
Server database product line, SQL Server 2005 Compact Edition. It is
an evolution of the SQL Server Mobile Edition technology. While the
latter was used exclusively for mobile devices, its capabilities are
now being leveraged to create maintenance-free, compact (less than
2 MB disk footprint) embedded databases for single-user client
applications for all Microsoft Windows platforms, including Tablet
PCs, Pocket PCs, smart phones, and desktops, to enable the scenarios
discussed earlier in the paper.

4.3 ASP.NET
ASP.NET is a technology that allows us to build and control
dynamic Web pages easily. It also provides many enhancements to

Department of BCA VI SEM Page 24


Online Movie Ticket Booking System

take advantage of new technology as we can interact with databases,


personalize Web pages for visitors, display page on mobile devices
(such as cell phones), and even build an entire e-commerce site from
scratch. Previously internet works on request/response model that is
an integral part of client/server model.
Although this is a marvellous way of communicate and distribute
information, it's rather simple and static. When the process is over,
once client receives the requesting page from the server the server
has no idea what the client is doing unless it makes another request.
There is another model for communicating between server and
clients, known as event-driven model. ASP.NET work on this model, it
detects action and responds to them i.e. the server waits around for
something to happen on the client. Once it does, the server takes
action and performs some piece of functionality. Of course, a Web,
server cannot know what you are thinking, but it can respond to your
actions. If you type some text on Web page, the server responds to
it. If you click an image, the server responds.

Department of BCA VI SEM Page 25


Online Movie Ticket Booking System

5. PROJECT DESCRIPTION

Department of BCA VI SEM Page 26


Online Movie Ticket Booking System

5.1 Problem Analysis


The basic aim of problem analysis is to obtain clear understanding of
the needs of the clients and the users, what exactly is desired from
the software, and what the constraints on the solution are. Analysis
leads to the actual specification.

5.2 Problem Analysis Approaches


There are three basic approaches to problem analysis.
1. Informal Approach.
2. Conceptual modelling-based Approach
3. Prototyping Approach.
In this project we use Conceptual modelling-based Approach to
understand the exact requirement of the organization.

5.3 MODULE DESCRIPTION


The system should be designed in such a way that only authorized
people should be allowed to access some particular modules. The
records should be modified by only administrators and no one else.
The user should always be in control of the application and not the
vice versa. The user interface should be consistent so that the user
can handle the application with ease and speed. The application
should be visually, conceptually clear.

Login Module:
This module is for both type of users (customers and admin).In
this module according to the type of user (customer or admin) the
further links and operations will be provided.

Department of BCA VI SEM Page 27


Online Movie Ticket Booking System

Customer Module:
As soon as a visitor registers himself as a customer, the
customer can now book the movie tickets and pay for them online.
Theater Module:
This module deals with the information about the hall. There
are several multiplexes and each of them has 4 halls and according to
the vacancy of seats in the hall the booking takes place.
Booking Module:
In this module movie ticket is booked for a customer. This
module contains all the information related to booking. As soon as
the customer request is complete, all the booking details are
displayed to him.

Department of BCA VI SEM Page 28


Online Movie Ticket Booking System

5.4 DATA FLOW DIAGRAM

Department of BCA VI SEM Page 29


Online Movie Ticket Booking System

5.4.1 Database Design


Admin Login Tab
Column Name Data Type Allow Null

uName nvarchar(50)

pWord nvarchar(50)

Customer Tab
Column Name Data Type Allow Null

uName nvarchar(50)

pWord nvarchar(50)

cName nvarchar(50)

cAdd nvarchar(50)

eMail nvarchar(50)

Mobile nvarchar(50)

PassportNo nvarchar(50)

Approved nvarchar(50)

Feedback tab
Column Name Data Type Allow Null

fbNo nvarchar(50)

fbDate nvarchar(50)

uName nvarchar(50)

Heading nvarchar(50)

details nvarchar(50)

Department of BCA VI SEM Page 30


Online Movie Ticket Booking System

Movie show tab


Column Name Data Type Allow Null

rNo nvarchar(50)

MovieName nvarchar(50)

ScreenName nvarchar(50)

ShowName nvarchar(50)

fromdate nvarchar(50)

toDate nvarchar(50)

Screen tab
Column Name Data Type Allow Null

ScreenName nvarchar(50)

eClassSeats nvarchar(50)

eClassPrice nvarchar(50)

qClassSeats nvarchar(50)

qClassPrice nvarchar(50)

pClassSeats nvarchar(50)

pClassPrice nvarchar(50)

show1 nvarchar(50)

show2 nvarchar(50)

show3 nvarchar(50)

show4 nvarchar(50)

show5 nvarchar(50)

Department of BCA VI SEM Page 31


Online Movie Ticket Booking System

Ticket tab
Column Name Data Type Allow Null

TicketNo nvarchar(50)

bDate nvarchar(50)

sDate nvarchar(50)

MovieName nvarchar(50)

ScreenName nvarchar(50)

ShowName nvarchar(50)

TicketType nvarchar(50)

tPrice nvarchar(50)

tQty nvarchar(50)

tTotal nvarchar(50)

uName nvarchar(50)

Movie tab
Column Name Data Type Allow Null

MovieName nvarchar(50)

Language nvarchar(50)

Actors nvarchar(50)

details nvarchar(50)

mfileName nvarchar(50)

Department of BCA VI SEM Page 32


Online Movie Ticket Booking System

6. TESTING

Department of BCA VI SEM Page 33


Online Movie Ticket Booking System

6.1 Introduction
Once source code has been generated, software must be
tested to uncover (and correct) as many errors as possible before
delivery to customer. Our goal is to design a series of test cases that
have a high likelihood of finding errors. To uncover the errors
software techniques are used. These techniques provide systematic
guidance for designing test that
(1) Exercise the internal logic of software components, and
(2) Exercise the input and output domains of the program to uncover
errors in program function, behaviour and performance.
6.1.1 Steps
Software is tested from two different perspectives:
(1) Internal program logic is exercised using ―White box‖ test case
design Techniques.
(2) Software requirements are exercised using ―block box‖ test case
Design techniques. In both cases, the intent is to find the maximum
number of errors with the Minimum amount of effort and time.

6.2 Testing Methodologies


A strategy for software testing must accommodate low-level
tests that are necessary to verify that a small source code segment
has been correctly implemented as well as high-level tests that
validate major system functions against customer requirements. A
strategy must provide guidance for the practitioner and a set of
milestones for the manager. Because the steps of the test strategy
occur at a time when deadline pressure begins to rise, progress must
be measurable and problems must surface as early as possible.
Following testing techniques are well known and the same strategy is
adopted during this project testing.
Department of BCA VI SEM Page 34
Online Movie Ticket Booking System

6.2.1 Unit testing


Unit testing focuses verification effort on the smallest unit
of software design- the software component or module. The unit test
is white-box oriented. The unit testing implemented in every module
of student attendance management System. By giving correct
manual input to the system, the data’s are stored in database and
retrieved. If you want required module to access input or gets the
output from the End user. Any error will accrued the time will
provide handler to show what type of error will accrued.
6.2.2 System testing
System testing is actually a series of different tests whose
primary purpose is to fully exercise the computer-based system.
Below we have described the two types of testing which have been
taken for this project. It is to check all modules worked on input basis
.if you want change any values or inputs will change all information,
so specified input is must.
6.2.3 Performance Testing
Performance testing is designed to test the run-time
performance of software within the context of an integrated system.
Performance testing occurs throughout all steps in the testing
process. Even at the unit level, the performance of an individual
module may be assessed as white-box tests are conducted.
This project reduce attendance table, codes. It will generate report
fast. No has extra time or waiting of results .entered correct data will
show result few millisecond. Just used only low memory of our
system. Automatically do not getting access at another software. Get
user permission and access to other applications.

Department of BCA VI SEM Page 35


Online Movie Ticket Booking System

6.3 Test cases


Test case is an object for execution for other modules in the
architecture does not represent any interaction by itself. A test case
is a set of sequential steps to execute a test operating on a set of
predefined inputs to produce certain expected outputs. There are
two types of test cases:-manual and automated. A manual test case
is executed manually while an automated test case is executed using
automation.
In system testing, test data should cover the possible values of each
parameter based on the requirements. Since testing every value is
impractical, a few values should be chosen from each equivalence
class. An equivalence class is a set of values that should all be treated
the same.
Ideally, test cases that check error conditions are written separately
from the functional test cases and should have steps to verify the
error messages and logs. Realistically, if functional test cases are not
yet written, it is ok for testers to check for error conditions when
performing normal functional test cases. It should be clear which test
data, if any is expected to trigger errors.
This section deals with the details of the classes of tests which must
be conducted to validate the functions, performance, and the
constraints. This is achieved basically by the means of testing which
plays a vital role in the development of the software. The various low
level testing which can be grouped on a broader sense are discussed
as below:
 Integration Testing: Integration testing is one in which the modules
are combined with one another to synchronize the outputs and co-
ordinate the flow of control. Each module is coalesced with other

Department of BCA VI SEM Page 36


Online Movie Ticket Booking System

module to establish proper connectivity between the two modules.


All the individual modules have been integrated and tested.
 Validation Testing: Validation testing deals with testing that whether
the validations are justified and all the requirements are fulfilled
logically as per the requirements as the validations are designed
according to the requirements of the application – an approach to
the problem in a logical and relational manner. All the validation
testing have been done (like only the numbers should be accepted in
the phone number , amount , bill no fields ,quantity and other
related fields, similarly for the text to accepted only in related fields
like the names and other related fields). The stock validation is the
major validation that keeps track of the products dealt and the
reorder levels.

6.4 DATA VALIDATION


Data validation is a very important part in any application
involving a database. We have to be aware of the specifications of
the database organization and also about the kind of data that goes
into the database. We have to provide for stringent error checking, in
order to discard invalid data and prevent it from getting it into the
database.
Data validation can be done in two places. While creating the
database schema, we can specify certain integrity constraints that
have to be maintained between various relations in the schema. This
ensures that no insertion, deletion and update anomalies creep in
during operation. Data validation can also be done at the interface
itself, to provide more robust level of data validation. For example,
in the login form whose loginId has been established by the
administrator will be given login permission. This can be trapped at
the interface level itself. And in the form, to modify the user profile,

Department of BCA VI SEM Page 37


Online Movie Ticket Booking System

the administrator is allowed to modify only if that loginId has need


permission.
6.4.1 Some Examples of Data Validation done in this project are:
 Invalid loginId cannot be entered.
 Invalid Email Id, Phone no. cannot be entered.
 All the Mandatory fields should be filled.
 And various Front End and Back End Validations.

Department of BCA VI SEM Page 38


Online Movie Ticket Booking System

7. SYSTEM IMPLEMENTATION

Department of BCA VI SEM Page 39


Online Movie Ticket Booking System

7.1 Purpose
System implementation is the important stage of project
when the theoretical design is tuned into practical system. The main
stages in the implementation are as follows:
1. Planning.
2. Training.
3. System testing and
4. Changeover Planning.
Planning is the first task in the system implementation. At the time
of implementation of any system people from different departments
and system analysis involve. They are confirmed to practical
problem of controlling various activities of people outside their own
data processing departments.
The line managers controlled through an implementation
coordinating committee. The committee considers ideas, problems
and complaints of user department, it must also consider:
1. The implication of system environment
2. Self selection and allocation for implementation tasks
3. Consultation with unions and resources available
4. Standby facilities and channels of communication

7.2 SYSTEM MAINTENANCE


Software maintenance is far more than finding mistakes.
Provision must be made for environment changes, which may affect
either the computer, or other parts of the computer based systems.
Such activity is normally called maintenance. It includes both the

Department of BCA VI SEM Page 40


Online Movie Ticket Booking System

improvement of the system functions and the corrections of faults,


which arise during the operation of a new system.
It may involve the continuing involvement of a large proportion of
computer department recourses. The main task may be to adapt
existing systems in a changing environment.
Back up for the entire database files are taken and stored in storage
devices like flash drives, pen drives and disks so that it is possible to
restore the system at the earliest. If there is a breakdown or
collapse, then the system gives provision to restore database files.
Storing data in a separate secondary device leads to an effective and
efficient maintains of the system. The nominated person has
sufficient knowledge of the organization’s computer passed based
system to be able to judge the relevance of each proposed change.

Department of BCA VI SEM Page 41


Online Movie Ticket Booking System

8. CONCLUSION
Nowadays, traditional reservation ways of cinema ticketing is dying.
Its new age where technology dominates human life. With the
software and technological devices, exceptions are reduced and even
terminated. Also, people prefer easy, quick and safe way for every
part of his life. This project is designed to meet the requirements of
a cinema ticket booking system. It has been developed in PHP and
the database has been built in My SQL server keeping in mind the
specifications of the system.
In our project: with this cinema ticketing system; cinema companies
can satisfy comfortable facilities to their customers. The relationship
between cinema manager, employee, and customer satisfy a good
communication to complete ticketing process. With this platform we
developed, we are hoping to reduce time wasting, avoid
misunderstandings, provide easy data flow, customer pleasure, and
less hard work. We believe that we have accomplished our goals and
satisfied with the code we developed.

Department of BCA VI SEM Page 42


Online Movie Ticket Booking System

9. APPENDICES
9.1 Source Code
Admin Login Page
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class AdminLoginPage : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");

protected void Page_Load(object sender, EventArgs e)


{

protected void Button1_Click(object sender, EventArgs e)


{
Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from AdminUsersTab where uname='" + TextBox1.Text +
"' and pword='" + TextBox2.Text + "' ";
dr = cmd.ExecuteReader();
if (dr.Read())
{
Application["adminVar"] = TextBox1.Text;
Response.Redirect("AdminMainPage.aspx");
}
else
{

Department of BCA VI SEM Page 43


Online Movie Ticket Booking System
MessageBox.Show("Entered UserName or Password is not correct");

}
}
}

Admin Main Page


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminMainPage : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

Admin Movie Assign


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;

public partial class AdminMovieAssign : System.Web.UI.Page


{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr = "";

Department of BCA VI SEM Page 44


Online Movie Ticket Booking System
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button2_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Button3_Click(object sender, EventArgs e)
{
Calendar2.Visible = true;
}
protected void Calendar2_SelectionChanged(object sender, EventArgs e)
{
TextBox2.Text = string.Format("{0:dd-MMM-yyyy}",Calendar2.SelectedDate.Date);
Calendar2.Visible = false;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = string.Format("{0:dd-MMM-yyyy}", Calendar1.SelectedDate.Date);
Calendar1.Visible = false;
}
protected void Button1_Click(object sender, EventArgs e)
{
long bNoVar = 1000;
Conn.Open();
SqlCommand cmd3 = new SqlCommand();
SqlDataReader dr3;
cmd3.Connection = Conn;
cmd3.CommandText = "select max(rNo) + 1 as appNo from MovieShowTab";
dr3 = cmd3.ExecuteReader();
dr3.Read();
bNoVar = long.Parse(dr3.GetValue(0).ToString());
Conn.Close();

Conn.Close();
Conn.Open();
SqlStr = "insert into MovieShowTab values(";
SqlStr = SqlStr + "" + bNoVar + ",'" + DropDownList1.Text + "','" + DropDownList2.Text +
"','" + DropDownList3.Text + "','" + TextBox1.Text + "','" + TextBox2.Text + "')";
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();

MessageBox.Show("New record created successfully", "New Record");


}}

Department of BCA VI SEM Page 45


Online Movie Ticket Booking System

Admin Movie Details


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;

public partial class AdminMovieDetails : System.Web.UI.Page


{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr = "";
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button1_Click(object sender, EventArgs e)
{

if (TextBox1.Text == "")
{
MessageBox.Show("Please enter the Movie Name");
return;
}
Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from MovieTab where MovieName='" + TextBox1.Text +
"'";
dr = cmd.ExecuteReader();
dr.Read();
if (dr.HasRows)
{
MessageBox.Show("This record is all ready present");
return;

}
Conn.Close();

Department of BCA VI SEM Page 46


Online Movie Ticket Booking System
string FileNameVar = "";
if (FileUpload1.HasFile)
{
FileNameVar = FileUpload1.FileName.ToString();
string toDir = Server.MapPath(".") + "/Images/" + FileNameVar;
FileUpload1.SaveAs(toDir);
}

Conn.Open();
SqlStr = "insert into MovieTab values(";
SqlStr = SqlStr + "'" + TextBox1.Text + "','" + DropDownList1.Text + "','" + TextBox2.Text
+ "','" + TextBox3.Text + "','" + FileNameVar + "')";
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();
MessageBox.Show("Record created successfully");
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
}

Admin Screen Details


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Text.RegularExpressions;
public partial class AdminScreenDetails : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr = "";
protected void Page_Load(object sender, EventArgs e)
{

Department of BCA VI SEM Page 47


Online Movie Ticket Booking System
private void TextBox2_KeyPress(object
sender,System.Windows.Forms.KeyPressEventArgs e)
{

e.Handled = !char.IsDigit(e.KeyChar);

}
protected void Button1_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "")
{
MessageBox.Show("Please enter the Screen Name");
return;
}
// to check whether number is entered or not

Regex f1 = new Regex(@"\D");


if (f1.IsMatch(TextBox2.Text))
{
MessageBox.Show("please enter only Numeric Value");
TextBox2.Focus();
return;
}

Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from ScreenTab where ScreenName='" + TextBox1.Text
+ "'";
dr = cmd.ExecuteReader();
dr.Read();
if (dr.HasRows)
{
MessageBox.Show("This record is all ready present");
return;

}
Conn.Close();

Conn.Open();
SqlStr = "insert into ScreenTab values(";
SqlStr = SqlStr + "'" + TextBox1.Text + "'," + int.Parse(TextBox2.Text) + "," +
int.Parse(TextBox3.Text) + "," + int.Parse(TextBox4.Text) + "," + int.Parse(TextBox5.Text) +

Department of BCA VI SEM Page 48


Online Movie Ticket Booking System
"," + int.Parse(TextBox6.Text) + "," + int.Parse(TextBox7.Text) + ",'" + TextBox8.Text + "','" +
TextBox9.Text + "','" + TextBox10.Text + "','" + TextBox11.Text + "','" + TextBox12.Text + "')";
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();
MessageBox.Show("Record created successfully");
TextBox1.Text = "";
TextBox2.Text = "";
TextBox3.Text = "";
}
}

Admin Ticket View


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminTicketView : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack == false)
{
try
{
TextBox1.Text = Application["d1var"].ToString();
}
catch
{}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = string.Format("{0:dd-MMM-yyyy}", Calendar1.SelectedDate.Date);
Calendar1.Visible = false;
}

Department of BCA VI SEM Page 49


Online Movie Ticket Booking System
protected void Button3_Click(object sender, EventArgs e)
{
Application["v1"] = TextBox1.Text;
Response.Redirect("AdminTicketView.aspx?var1=" + TextBox1.Text);
}
}

Admin View Cancel Ticket


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminViewCancelTicket : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack == false)
{
try
{
TextBox1.Text = Application["v1"].ToString();
}
catch
{}
}
}
protected void Button2_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = string.Format("{0:dd-MMM-yyyy}", Calendar1.SelectedDate.Date);
Application["v1"] = TextBox1.Text;
Calendar1.Visible = false;
}
protected void Button3_Click(object sender, EventArgs e)
{
Response.Redirect("AdminViewCancelTicket.aspx?var1=" + TextBox1.Text);
}}

Department of BCA VI SEM Page 50


Online Movie Ticket Booking System

Admin Feedback List


using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class AdminFeedbackList : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

CustBookTicket1
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CustBookTicket1 : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
try
{
TextBox1.Text = Application["v1"].ToString();
}
catch
{}
}
protected void Button2_Click(object sender, EventArgs e)
{
Calendar1.Visible = true;

Department of BCA VI SEM Page 51


Online Movie Ticket Booking System
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{

TextBox1.Text = string.Format("{0:dd-MMM-yyyy}", Calendar1.SelectedDate.Date);


Application["v1"] = TextBox1.Text;
Calendar1.Visible = false;
}
protected void Button3_Click(object sender, EventArgs e)
{

Response.Redirect("custbookticket1.aspx?var1=" + TextBox1.Text);
}
protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
{
Response.Redirect("custbookticket2.aspx?tvar=" + Application["v1"].ToString() +
"&rvar=" + GridView1.SelectedRow.Cells[1].Text);
}
}

CustBookTicket2
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Text.RegularExpressions;

public partial class CustBookTicket2 : System.Web.UI.Page


{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr = "";
protected void Page_Load(object sender, EventArgs e)
{
TextBox7.Text = string.Format("{0:dd-MMM-yyyy}",
Request.QueryString["tVar"].ToString());

if (IsPostBack == false) {

Department of BCA VI SEM Page 52


Online Movie Ticket Booking System
Conn.Open();
SqlCommand cmd3 = new SqlCommand();
SqlDataReader dr3;
cmd3.Connection = Conn;
cmd3.CommandText = "select * from movieshowTab where rNo=" +
Request.QueryString["rVar"].ToString() + "";
dr3 = cmd3.ExecuteReader();
if (dr3.Read())
{
TextBox1.Text = dr3.GetValue(1).ToString();
TextBox2.Text = dr3.GetValue(2).ToString();
TextBox3.Text = dr3.GetValue(3).ToString();
}
Conn.Close();

Conn.Open();
SqlCommand cmd4 = new SqlCommand();
SqlDataReader dr4;
cmd4.Connection = Conn;
cmd4.CommandText = "select mfileName from movieTab where movieName='" +
TextBox1.Text + "'";
dr4 = cmd4.ExecuteReader();
if (dr4.Read())
{
Image3.ImageUrl = "~/images/" + dr4.GetValue(0).ToString();

}
Conn.Close();

}
}
protected void Button1_Click(object sender, EventArgs e)
{
int a1=0, a2 = 0,a3=0;
// to check whether number is entered or not

Regex f1 = new Regex(@"\D");


if (f1.IsMatch(TextBox5.Text))
{
MessageBox.Show("please enter only Numeric Value");
TextBox5.Focus();
return;
}
Conn.Open();
SqlCommand cmd11 = new SqlCommand();
SqlDataReader dr11;
cmd11.Connection = Conn;

Department of BCA VI SEM Page 53


Online Movie Ticket Booking System
cmd11.CommandText = "select sum(tqty) from TicketTab where sDate='" +
TextBox7.Text + "' and screenName='" + TextBox2.Text + "' and showName='" +
TextBox3.Text + "' and TicketType='" + DropDownList3.Text + "'";
dr11 = cmd11.ExecuteReader();
dr11.Read();
if (dr11.GetValue(0) == null)
{
a1 = int.Parse(dr11.GetValue(0).ToString());
}
Conn.Close();

a2=int.Parse(Session["totseats"].ToString());

a3 = int.Parse(TextBox5.Text) + a1;

if (a2 < a3)


{
MessageBox.Show("All seats are booked for this show please try for another show",
"Ticket Not Available");
return;
}

long bNoVar = 1000;


Conn.Open();
SqlCommand cmd3 = new SqlCommand();
SqlDataReader dr3;
cmd3.Connection = Conn;
cmd3.CommandText = "select max(TicketNo) from TicketTab";
dr3 = cmd3.ExecuteReader();
dr3.Read();
bNoVar = long.Parse(dr3.GetValue(0).ToString());
Conn.Close();

Conn.Open();
SqlStr = "insert into TicketTab values(";
SqlStr = SqlStr + bNoVar + ",'" + string.Format("{0:dd-MMM-yyyy}",
DateTime.Today.Date) + "','" + string.Format("{0:dd-MMM-yyyy}", TextBox7.Text) + "','" +
TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox3.Text + "','" + DropDownList3.Text +
"'," + int.Parse(TextBox4.Text) + "," + int.Parse(TextBox5.Text) + "," +
int.Parse(TextBox6.Text) + ",'" + Application["uName"].ToString() + "','" +
DropDownList1.Text + "','" + TextBox8.Text + "','B')";
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();
Label13.Text = "Your Ticket No is : " + bNoVar;

Department of BCA VI SEM Page 54


Online Movie Ticket Booking System
MessageBox.Show("Your ticket is generated successfully, Your Ticket No is : " +
bNoVar);

}
protected void DropDownList3_SelectedIndexChanged(object sender, EventArgs e)
{
Conn.Open();
string a1=DropDownList3.Text;
//MessageBox.Show(a1.Substring(0, 1));
if (a1.Substring(0, 1) == "E")
{
SqlStr = "select eclassseats,eclassprice from ScreenTab where screenName='" +
TextBox2.Text + "'";
}
if (a1.Substring(0, 1) == "G")
{
SqlStr = "select gclassseats,gclassprice from ScreenTab where screenName='" +
TextBox2.Text + "'";
}
if (a1.Substring(0, 1) == "P")
{
SqlStr = "select pclassseats,pclassprice from ScreenTab where screenName='" +
TextBox2.Text + "'";
}

SqlCommand cmd3 = new SqlCommand();


SqlDataReader dr3;
cmd3.Connection = Conn;
cmd3.CommandText =SqlStr;
dr3 = cmd3.ExecuteReader();
dr3.Read();
Session["totseats"] = dr3.GetValue(0).ToString();
double a5=double.Parse(dr3.GetValue(1).ToString());
TextBox4.Text = a5.ToString();
Conn.Close();
}
protected void TextBox5_TextChanged(object sender, EventArgs e)
{
try
{
double a = double.Parse(TextBox4.Text) * double.Parse(TextBox5.Text);
TextBox6.Text = a.ToString();
}

catch { }
} }

Department of BCA VI SEM Page 55


Online Movie Ticket Booking System

CustCancelTicket
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
using System.Text.RegularExpressions;
public partial class CustCancelTicket : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr = "";
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button3_Click(object sender, EventArgs e)
{
if (TextBox1.Text == "")
{
MessageBox.Show("Please enter the Screen Name");
return;
}
// to check whether number is entered or not

Regex f1 = new Regex(@"\D");


if (f1.IsMatch(TextBox1.Text))
{
MessageBox.Show("please enter only Numeric Value");
TextBox1.Focus();
return;
}

Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from TicketTab where TicketNo=" +
int.Parse(TextBox1.Text) + " and uName='" + Application["uName"].ToString() + "'";

Department of BCA VI SEM Page 56


Online Movie Ticket Booking System
dr = cmd.ExecuteReader();
if (dr.HasRows)
{}
else{
MessageBox.Show("This ticke no is not valid for cancellation");
return;

}
Conn.Close();

Conn.Open();
SqlStr = "Update TicketTab set Rem1='C' where TicketNo=" + int.Parse(TextBox1.Text) +
"";

SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);


cmd2.ExecuteNonQuery();
Conn.Close();
MessageBox.Show("Your ticket is cancelled");
}
}

CustFeedback
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class CustFeedback : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr;

protected void Page_Load(object sender, EventArgs e)


{

}
protected void Button1_Click(object sender, EventArgs e)

Department of BCA VI SEM Page 57


Online Movie Ticket Booking System
{
int n1Var = 0;
if (Conn.State == ConnectionState.Open) { Conn.Close(); Conn.Open(); } else {
Conn.Open(); }
SqlCommand cmd = new SqlCommand("select Max(fbno)+1 as NewNo from
FeedbackTab", Conn);
SqlDataReader dr = cmd.ExecuteReader();
if (dr.Read())
{
if (dr.IsDBNull(0)) n1Var = 1001;
else
n1Var = int.Parse(dr.GetValue(0).ToString());
}
Conn.Close();

Conn.Open();
SqlStr = "insert into FeedbackTab values(";
SqlStr = SqlStr + "" + n1Var + ",";
SqlStr = SqlStr + "'" + string.Format("{0:dd/MMM/yyyy}", DateTime.Now.Date) + "',";
SqlStr = SqlStr + "'" + Application["UserVar"] + "',";
SqlStr = SqlStr + "'" + TextBox1.Text + "',";
SqlStr = SqlStr + "'" + TextBox2.Text + "')";
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();

MessageBox.Show("Record created successfully");


TextBox1.Text = "";
TextBox2.Text = "";
}
}

CustMainPage
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CustMainPage : System.Web.UI.Page

Department of BCA VI SEM Page 58


Online Movie Ticket Booking System
{
protected void Page_Load(object sender, EventArgs e)
{

}
}

CustMovieDateWise
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CustMoviesDatewise : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{
if (IsPostBack == false)
{
try
{
TextBox1.Text = Application["d1var"].ToString();
}
catch
{}

}
}
protected void Button2_Click(object sender, EventArgs e)
{
Application["d1var"] = TextBox1.Text;
Response.Redirect("CustmoviesdateWise.aspx?var1=" + TextBox1.Text);
}
protected void Calendar1_SelectionChanged(object sender, EventArgs e)
{
TextBox1.Text = string.Format("{0:dd-MMM-yyyy}", Calendar1.SelectedDate.Date);
Calendar1.Visible = false;
}
protected void Button3_Click(object sender, EventArgs e)
{
Calendar1.Visible = true; } }

Department of BCA VI SEM Page 59


Online Movie Ticket Booking System

CustMoviesScreenWise
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class CustMoviesScreenwise : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
protected void Button2_Click(object sender, EventArgs e)
{
Response.Redirect("Custmoviesscreenwise.aspx?svar=" + DropDownList1.Text + "");
}
}

CustomerLoginPage
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class CustomerLoginPage : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");

protected void Page_Load(object sender, EventArgs e)


{

Department of BCA VI SEM Page 60


Online Movie Ticket Booking System

protected void Button1_Click(object sender, EventArgs e)


{
Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from CustomerTab where uName='" + TextBox1.Text + "'
and pword='" + TextBox2.Text + "' ";
dr = cmd.ExecuteReader();
if (dr.Read())
{
Application["uName"] = TextBox1.Text;
Response.Redirect("CustMainPage.aspx");
}
else
{
MessageBox.Show("Entered UserName or Password is not correct");

}
}
}

CustomerSignup
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class CustomerSignup : System.Web.UI.Page
{
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");
string SqlStr;
protected void Page_Load(object sender, EventArgs e)
{

Department of BCA VI SEM Page 61


Online Movie Ticket Booking System
}
protected void Button1_Click(object sender, EventArgs e)
{
Conn.Open();
SqlCommand cmd = new SqlCommand();
SqlDataReader dr;
cmd.Connection = Conn;
cmd.CommandText = "select * from CustomerTab where uName='" + TextBox1.Text +
"'";
dr = cmd.ExecuteReader();
dr.Read();
if (dr.HasRows)
{
MessageBox.Show("This record is all ready present");
return;

}
Conn.Close();
Conn.Open();
SqlStr = "insert into
CustomerTab(uName,pWord,CName,CAdd,eMail,Mobile,PassPortNo,approved) Values(";
SqlStr = SqlStr + "'" + TextBox1.Text + "','" + TextBox2.Text + "','" + TextBox4.Text + "','"
+ TextBox5.Text + "','" + TextBox6.Text + "','" + TextBox7.Text + "','" + TextBox8.Text +
"','Y')";
//MessageBox.Show(SqlStr);
SqlCommand cmd2 = new SqlCommand(SqlStr, Conn);
cmd2.ExecuteNonQuery();
Conn.Close();
Response.Redirect("customersignupres.aspx");
}
}

CustPerDetails
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using System.Data.SqlClient;
using System.Windows.Forms;
public partial class CustPerDetails : System.Web.UI.Page
{

Department of BCA VI SEM Page 62


Online Movie Ticket Booking System
SqlConnection Conn = new SqlConnection("Data
Source=.\\SQLEXPRESS;AttachDbFilename=|DataDirectory|\\MovieTicketData.mdf;Integrat
ed Security=True;User Instance=True");

protected void Page_Load(object sender, EventArgs e)


{
Conn.Open();
SqlCommand cmd3 = new SqlCommand();
SqlDataReader dr3;
cmd3.Connection = Conn;
cmd3.CommandText = "select * from CustomerTab where uName='" +
Application["uName"] + "'";
dr3 = cmd3.ExecuteReader();
if (dr3.HasRows)
{
dr3.Read();

HyperLink1.Text = "Name : " + dr3.GetValue(3).ToString();


HyperLink2.Text = "Address : " + dr3.GetValue(4).ToString();
HyperLink4.Text = "eMail : " + dr3.GetValue(5).ToString();
HyperLink5.Text = "MobileNo : " + dr3.GetValue(6).ToString();
HyperLink6.Text = "PassportNo : " + dr3.GetValue(7).ToString();
}

Conn.Close();
}
}

Default
using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

Department of BCA VI SEM Page 63


Online Movie Ticket Booking System

MainPage
using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class MainPage : System.Web.UI.Page


{
protected void Page_Load(object sender, EventArgs e)
{

}
}

Department of BCA VI SEM Page 64


Online Movie Ticket Booking System

9.2 Screen Shots


Flash screen:

Main Page:

Department of BCA VI SEM Page 65


Online Movie Ticket Booking System

Admin Login Page:

Admin Main Page:

Department of BCA VI SEM Page 66


Online Movie Ticket Booking System

Admin Screen Details:

Admin Screen List:

Department of BCA VI SEM Page 67


Online Movie Ticket Booking System

Admin Movie Details:

Admin Movie List:

Department of BCA VI SEM Page 68


Online Movie Ticket Booking System

Admin Movie Assign Details:

Admin Movie Assign List:

Department of BCA VI SEM Page 69


Online Movie Ticket Booking System

View Ticket Booking Details:

View Ticket Cancelling Details:

Department of BCA VI SEM Page 70


Online Movie Ticket Booking System

Received Feedback Lists:

Customer Side
Customer Signup Page:

Department of BCA VI SEM Page 71


Online Movie Ticket Booking System

Customer Signup Successful Page:

Customer Login Page:

Department of BCA VI SEM Page 72


Online Movie Ticket Booking System

Customer Main Page:

Customer Page to Check Movies:

Department of BCA VI SEM Page 73


Online Movie Ticket Booking System

Movies Screen Page:

All Movies List Page:

Department of BCA VI SEM Page 74


Online Movie Ticket Booking System

Selecting Movie Ticket Booking:

Booking Movie Ticket:

Department of BCA VI SEM Page 75


Online Movie Ticket Booking System

Cancelling Movie Ticket:

Customer Personal Details:

Department of BCA VI SEM Page 76


Online Movie Ticket Booking System

Feedback Form:

Department of BCA VI SEM Page 77


Online Movie Ticket Booking System

BIBLIOGRAPHY

Websites:
1. http://final-year-projects.in/bca-project-topics-ideas
2. http://cse.final-year-projects.in/a/77-online-cinema-ticket-
booking-system-in-net.html
3.http://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web
&cd=2&ved=0ahUKEwjbh7CWlJfRAhVJto8KHfSpDfYQFgghMAE&url=
http%3A%2F%2Fgnu.inflibnet.ac.in%2Fbitstream%2F123456789%2F
2231%2F1%2FOnline%2520Movie%2520Ticket%2520Booking%2520
System%25201.pdf&usg=AFQjCNHL_mxOoNXuTccDZ-
EFuhN6roTf8g&bvm=bv.142059868,d.c2I
4. http://projects-seminars.net/s/project-modules-for-online-movie-
ticket-booking-system

Department of BCA VI SEM Page 78

Вам также может понравиться