Online Cinema Ticket Booking System
Online Cinema Ticket Booking System
Online Cinema Ticket Booking System
Bachelor of Technology
In
Computer Engineering
By
SHIVIN BAWEJA(1106733)
Title
1. Certificate
2. Preface
3. Acknowledgement
4. Organization Profile
5. Introduction to ASP.NET using C#
6. Introduction to ONLINE CINEMA TICKET BOOKING
SYSTEM
7. Planning Phase
8. Analysis Phase
9. Design & Implementation
10. Screen Shots & their Description
11. Testing
12. Bibliography
PREFACE
Constitution:
DOEACC Centre, Chandigarh is an autonomous society
registered under The Societies Registration ACJXX9 of
1886. it is an autonomous body of Deptt. Of Information
Technology, Ministry of Communications and
Information Technology, Government of India. It was
established in 29th March, 1978 (Registration No. 1003).
It works on no profit no loss basis.
Objective:
1. Encourage and promote the development and
progress of Electronic Data Processing towards
achieving self-reliance in the field of computer
sciences and technology for scientific research and
development, educational, governmental,
commercial and industrial applications both for
indigenous utilization as well as for export.
LANGUAGES USED
Why .NET?
execution environments
reduced
devices
Internet
2. "Cross-Language Development”
ASP.NET:
ASP.NET is a technology that allows us to build and
control dynamic Web pages easily. It also provides
many enhancements to 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.
SQL SERVER:
SQL Server is an SQL-compliant RDBMS. SQL-
compliant means it use the ANSI (American
National Standard Institute) version of Structured
Query Language or ‘SQL’. Structured Query
Language is a command that allow us to modify or
retrieve information from the database.
Information representation
Guaranteed access
Optimizing queries
SOFTWARE DEVELOPMENT LIFE CYCLE
FEASIBILILTY ANALYSIS
TECHNICAL ANALYSIS
During technical analysis, the technical merits of the
system are studied and at the same time collecting
additional information about performance, reliability,
maintainability and predictability.
SYSTEM ANALYSIS
INTRODUCTION:
INVESTIGATION
Design objectives:-
INTRODUCTION:
INTRODUCTION:
For e.g. - Is the system within the budget allowed for it?
Will the organizations needs, be met by the
new proposed system as
Originally envisaged?
Types Of Feasibility
• Operational Feasibility
• Technical Feasibility
• Economical and Financial Feasibility
Each of these types will be explained in detail
throughout the project report.
Operational Feasibility
A proposed system is beneficial only if it can be turned
into an information system that will meet the
operational requirements of an organization. A system
often fails if it does not fit within existing operations
and if users resist the change.
• Accuracy
• Efficiency
• Productivity
• Robustness
• Lesser time consuming
System Security
DATABASE DESIGN:
Data Integration
Data Integrity
Data Independence
The databases are implemented using a DBMS
package. Each particular DBMS has unique
characteristics and general techniques for
Database Design.
SYSTEM REQUIREMENTS
The basic system requirements for running this project
are listed below:
• CDROM
INTRODUCTION:
In database design, several views of data must be
considered along with the persons who use them.
In addition to data structuring, where relationships
are reflected between and within entities, we need
to identify the application program’s logical views
of data within an overall logical data structure. The
logical view is what the data look like, regardless of
how they are stored. The physical view is the way
data exist in physical storage. It deals with hoe
data are stored, accessed, or related to other data
in storage.
The schema is the view that helps the DBMS
decide in storage act upon as requested by the
application program.
RELATIONAL MODEL:
Certain rules followed in creating and relating
databases in the relational databases. This governs
how to relate data and prevent redundancy of the
data in the databases. The first set of rules called
relational rules ensures that the database is a
relational database. The second set called the
normalization rules simplifies the database and
reduce the redundancy of the data.
CODE DESIGN
When large volumes of data are being handled, it
is important that the item be identified, stored or
selected easily and quickly. To accomplish this,
each data item must have unique identification
and must be related to other items of the same
type. Codes can provide brief identification of each
item, which replace longer description that would
be more awkward to store and manipulate.
The ability to interrupt codes, evaluate coding
schemes and devices new or improved codes are
important skills for a system analyst. Common
types of codes are:
SEQUENCE CODES:
A sequence code has no relation to the
characteristics of an item. Here a dictionary is
required. The data is arranged alphabetically and
numbered sequentially. When a new data item is
added it is given the next sequence number. The
advantage of this code is that it has the ability
touched with an unlimited number of digits.
VALIDATION CHECKS:
A common problem with computer system is that
it is very easy to put incorrect data into them. So
the input data is validated to minimize errors and
data entry. For certain data specific code has been
given and validations are done which enable the
user to enter the required data and correct them if
they have entered wrong codes, e.g. you could
mistype a link name or a URL in a database
resulting in reports being occurred in the wrong
link name. if you put incorrect data into the
computer system then you will get incorrect results
out of it. Processing incorrect inputs will produce
incorrect outputs. This lead to the acronym: GIGO
(Garbage In Garbage Out).
Sometimes incorrect data can actually cause a
computer system to stop work temporarily. This is
a particular problem in batch processing systems
when data may be processed overnights. If
incorrect data stops a batch processing systems
for working then a whole night processing time
may be lost.
VERIFICATION
VALIDATION
VERIFICATION:
A verification check ensures that data i9s correctly
transferred into a computer from the medium that
it was originally stored on. Verification checks are
usually used to check that a data entry worker has
correctly typed information written on a data
collection form into a computer.
Methods of Verification:
The two most common methods of verification are:
On-Screen prompts: After a user has entered
some data it is redisplayed on the screen. The user
is prompted to read the data and confirm that it
has been entered correctly. If the user has entered
any data incorrectly he should response that the
data is inaccurate and retypes the incorrect parts.
VALIDATION:
A validation check is an automatic check made by
computer to ensure that any data entered into the
computer is sensible. A validation check does not
make sure that data has been entered correctly. It
only ensures that data is sensible. For this reason
validation checks are not usually as effective as
verification checks. They can however be carried
out automatically by the computer and therefore
require less work by the computer operators
making them cheaper to use.
Methods of validation:
There are many different methods of validations.
The most appropriate method to use will depend
upon what data is being entered. The most
common methods are listed here.
DATA DICTIONARY:
SYSTEM TESTING
INTRODUCTION:
The purpose of system testing is to identify and
correct errors in the candidate system. Testing is
and important element of software quality
assurance ad represents the ultimate review of
specification, design and coding. The increasing
visibility of the software as a system element and
the cost associated with a software failure are
motivated forces for well planned, through testing.
Performance Unit
Stress Unit
Structure Unit
System Testing:
Compile/Assemble program
Objectives of testing.
Movie Information
This page stores the information about the movie
schedule
Booking Page
Booking Data
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;
protected void
drp_select_movie_SelectedIndexChanged(object
sender, EventArgs e)
{
drp_select_date.Items.Clear();
drp_select_date.Items.Add("Select
Date");
drp_select_date.Items.Add(Convert.ToStr
ing(tm.ToShortDateString()));
tm = tm.AddDays(1);
drp_select_date.Items.Add(Convert.ToStr
ing(tm.ToShortDateString()));
tm = tm.AddDays(1);
drp_select_date.Items.Add(Convert.ToStr
ing(tm.ToShortDateString()));
drp_select_date.Enabled = true;
drp_select_date.Visible = true;
drp_select_movie.Enabled = false;
}
protected void
drp_select_date_SelectedIndexChanged(object
sender, EventArgs e)
{
drp_select_time.Enabled = true;
drp_select_time.Visible = true;
//drp_select_time.Items.Add("Select
Time");
drp_select_date.Enabled = false;
}
protected void
drp_select_center_SelectedIndexChanged(object
sender, EventArgs e)
{
drp_select_movie.Enabled = true;
drp_select_movie.Visible = true;
//drp_select_movie.Items.Add("Select
Movie");
drp_select_center.Enabled = false;
}
protected void
drp_select_time_SelectedIndexChanged(object
sender, EventArgs e)
{
}
protected void btn_reset_Click(object
sender, EventArgs e)
{
Response.Redirect("home.aspx");
}
protected void btn_book_now_Click1(object
sender, EventArgs e)
{
SqlConnection conn = new
SqlConnection();
conn.ConnectionString =
ConfigurationManager.ConnectionStrings["cinema_
tckt_bookingConnectionString"].ConnectionString
;
conn.Open();
string center
=Convert.ToString( drp_select_center.SelectedIt
em);
string movie =
Convert.ToString( drp_select_movie.SelectedItem
);
string date =
drp_select_date.SelectedValue;
string time =
Convert.ToString( drp_select_time.SelectedItem)
;
string sql = "insert into movie_info
(center_name,movie_name,date,time) values('" +
center + "','" + movie + "','" + date + "','" +
time + "')";
SqlCommand cmd = new SqlCommand(sql,
conn);
cmd.ExecuteNonQuery();
string del="delete from booking_info";
string del1 = "delete from booking";
string insert = "insert into booking
(no_of_seats,type) values('0','gold')";
string insert1 = "insert into booking
(no_of_seats,type) values('0','silver')";
SqlCommand delete = new SqlCommand(del,
conn);
SqlCommand delete1 = new
SqlCommand(del1, conn);
SqlCommand inser = new
SqlCommand(insert, conn);
SqlCommand inser1 = new
SqlCommand(insert1, conn);
delete.ExecuteNonQuery();
delete1.ExecuteNonQuery();
inser.ExecuteNonQuery();
inser1.ExecuteNonQuery();
Response.Redirect("login.aspx?
m="+movie);
}
}
Coding of login.aspx.cs
using System.Configuration;
using System.Data;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
//using System.Xml.Linq;
using System.Data.SqlClient;
public partial class login : System.Web.UI.Page
{
}
protected void btn_login_Click(object
sender, EventArgs e)
{
string u = Request.QueryString["m"];
SqlConnection conn = new
SqlConnection();
conn.ConnectionString =
ConfigurationManager.ConnectionStrings["cinema_
tckt_bookingConnectionString"].ConnectionString
;
conn.Open();
string sql = "select * from login where
username='" + txt_uname.Text + "' and
password='" + txt_password.Text + "'";
SqlCommand cmd = new SqlCommand(sql,
conn);
SqlDataReader dr;
dr = cmd.ExecuteReader();
if (dr.Read())
{
conn.Close();
conn.Open();
string sql1 = "update movie_info
set username='"+txt_uname.Text+"' where
movie_name=('"+ u +"')";
SqlCommand cmd1 = new
SqlCommand(sql1, conn);
cmd1.ExecuteNonQuery( );
lbl_message.Text = "login
sucessfull";
Response.Redirect("booking.aspx?
q="+txt_uname.Text);
}
else
lbl_message.Text = "login failed";
}
protected void btn_register_Click(object
sender, EventArgs e)
{
Response.Redirect("register.aspx");
}
}
Coding of booking.aspx.cs
using System;
using System.Collections;
using System.Configuration;
using System.Data;
//using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Data.SqlClient;
}
protected void btn_reset_Click(object
sender, EventArgs e)
{
total_cost = 0;
lbl_total_price.Text = "0";
}
protected void btn_seat_select_Click(object
sender, EventArgs e)
{
if (DropDownList2.SelectedIndex == 0)
lbl_error1.Text = "please select
the ticket type and quantity";
else
{
string w =
Request.QueryString["q"];
Response.Redirect("Payment.aspx?e="
+ w);
}
}
protected void
btn_how_to_collect_tckt_Click(object sender,
EventArgs e)
{
Response.Redirect("how to collect your
ticket.aspx");
}
protected void
btn_rules_regulations_Click(object sender,
EventArgs e)
{
Response.Redirect("rule and
regulations.aspx");
}
protected void
DropDownList2_SelectedIndexChanged(object
sender, EventArgs e)
{
string w = Request.QueryString["q"];
total_cost
=Convert.ToInt16(lbl_total_price.Text);
if (DropDownList1.SelectedValue == "1")
ticket_price = 130;
if (DropDownList1.SelectedValue == "2")
ticket_price = 110;
int s
=Convert.ToInt16(DropDownList2.SelectedValue);
ticket_price = ticket_price * s;
txt_ticket_price.Text =
ticket_price.ToString(); ;
txt_ticket_price.Enabled = false;
txt_combo_price.Text =
total_cost.ToString();
txt_combo_price.Enabled = false;
txt_service_fees.Text = "10";
txt_service_fees.Enabled = false;
int net_payable;
net_payable = total_cost +
ticket_price;
txt_net_payable.Text =
net_payable.ToString();
txt_net_payable.Enabled = false;
int t_seat=
Convert.ToInt16(total_seat);
string seat_info =
seat.ExecuteScalar().ToString() ;
int drp=DropDownList2.SelectedIndex;
int s_info= Convert.ToInt16(seat_info);
s_info = s_info + drp;
string sql,no_of_seats,type;
if(s_info<t_seat)
{
if (DropDownList1.SelectedValue ==
"1")
{
type = "update booking set
no_of_seats='" + s_info +
"',seat_booked_now='gold' where type='gold'";
sql = "insert into booking_info
(username,gold_booked,combo_cost,ticket_cost,se
at_type,no_of_seats,net_payable) values('" + w
+ "','" + s_info + "','" + a + "','" + b +
"','" + c + "','" + d + "','" + f + "')";
}
else
{
type = "update booking set
no_of_seats='" + s_info +
"',seat_booked_now='silver' where
type='silver'";
sql = "insert into booking_info
(username,silver_booked,combo_cost,ticket_cost,
seat_type,no_of_seats,net_payable) values('" +
w + "','" + s_info + "','" + a + "','" + b +
"','" + c + "','" + d + "','" + f + "')";
}
SqlCommand typ = new
SqlCommand(type, conn);
SqlCommand cmd = new
SqlCommand(sql, conn);
typ.ExecuteNonQuery();
cmd.ExecuteNonQuery();
}
else
Response.Write("not enough seats
available");
}
}
CONCLUSION OF THE PROJECT