Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Online Movie Ticket Booking

Online Movie ticket booking project in asp .net

  • Login to see the comments

Online Movie Ticket Booking

  1. 1. A Project Report on Online Movie Ticket Booking Submitted as partial fulfillment of the requirement For M.Sc. IT Semester I Prepared for Subject: PROJECT I (P105) Prepared By Group No:-23 Name of Project Developer 1. Astha Patel (1416it22025) (237) 2012 PROJECT – I P105 Semester - I 2013 Group No : 23
  2. 2. 2. Hetal Zala (1416it22085) (271) 3. Zarana Patel (1416it22251) (251) M.Sc. IT Programme Department of Computer Science Kadi Sarva Vishwavidyalaya Gandhinagar M.Sc. IT Programme, Department of Computer Science Kadi Sarva Vishwavidyalaya Gandhinagar Date: PROJECT WORK CERTIFICATE This is to certify that the project report submitted by Astha Patel,Hetal Zala,Zarana Patel having Enrollment no.1416it22025,1416it22085,1416it22251, a student of M.Sc. IT
  3. 3. Semester- I, Department of Computer Science, KSV University, Gandhinagar have/has completed his/her project titled as Online Movie Ticket Booking satisfactorily. We appreciate the enthusiasm & dedication towards work submitted. ACKNOWLEDGMENT I am grateful to my Mr.Yagnesh Vyas for providing me valuable guidance for project work and other domain related information. I would like to express my endless thanks to external source of referral, for giving invaluable advice, direction, support and transferring knowledge throughout the project work. Also my hearty gratitude to Head of Department, Prof. B. R. Pandya for giving me an opportunity for learning through the process of project work by which I can improve my technical skills along with practical exposure and its applicability in the industry. Internal Project Guide Mr. Yagnesh Vyas M.Sc. IT, Gandhinagar Kadi Sarva Vishwavidyalaya Prof. B. R. Pandya Head of Department, M.Sc. IT, Gandhinagar Kadi Sarva Vishwavidyalaya
  4. 4. Name of Student: Enrollment No.: Astha Patel 1416it22025 Hetal Zala 1416it22085 Zarana Patel 1416it22251 Index
  5. 5. No Description Page No 1 Scope 1 2 Objective 2 3 System Architecture - Tools & Technology 4 4 System Design - Entity Relationship Diagram 7 - Data Dictionary 9 5 Coding 19 6 Testing 24 7 Screen Layouts 27 8 Formatted Reports 56
  6. 6.  scope  The proposed system is online ticket booking.  User can book ticket easily.  Current system allows the user to create account and book ticket.  Administrator can manage movie,screen,show etc.  User can manage his own profile.  This system provide facility like watch trailer,movie information,etc.
  7. 7. Requirement  User • Registration-: First name,Last Name,city,Address,Gender,E- mail,Phone,Username,pasword. • Login-:Username,password. • Watch Trailers. • Book Ticket. • Manage Account.  Admin • Add movie-: movie_name,movie_type,movie_status,movie_director movie_image,movie_cast,movie_trailer,movie_music,moviedate,movie_end_date • Add screen-:screen_name.
  8. 8. • Add show:-show_time,movie_id,screen_id • Update movie, update show, update seat price,, delete movie, delete show  In present there are three screen and each screen has three category like gold,silver, platinum..  Category seat schedule  Platinum—20 seats  Gold—65 seats  Silver—24 seats Tools And Technology • Code Building Language :- Microsoft Visual Studio 2010 • Scripting Language :- ASP.NET(C#) CSS(Cascading Style Sheet) HTML(Hyper Text Markup Language ) JAVA Script • Application Browser :- Mozilla Firefox 17.0.1 or above • Multimedia Tools:- Adobe Photoshop CS5
  9. 9. • Data Base:- Microsoft Sqlserver-2008 • Scripting Tool : AJAX • Platform :- Microsoft Windows 7 Hardware Requirement • Server Side :-  60 GB of available hard-disk space  2 GB of RAM  2.5 GHz processor • Clint Side :-  256 MB of RAM  Intel Pentium 4 processor  HDD 50 GB Software Requirement
  10. 10. • Server Side :-  Operating System : Microsoft Windows 7  Front End : MS Visual Studio 2010  Back End : SQL Server 2008  Programming Language : Asp.Net with C#  Web browser : Internet Explorer, Mozilla Firefox 17.0.1 • Clint Side :-  web browser :Mozila Firefox 17.0 or above Internet Explorer 9 or above  Microsoft Windows XP/7 OS
  11. 11. Er Diagram
  12. 12. Data Dictionary 1) Registration Table:- Description:- Sr. No Field Name Data Type Size Constraint 1 User_id Int 5 Primary Key 2 F_name Varchar 30 Not null 3 L_name Varchar 30 Not null 4 City Varchar 30 Not null 5 Address Varchar 30 Not null 6 Gender Varchar 10 Not null 7 Email Varchar 50 Not null 8 Mobile no Int 10 Not null 9 Username Varchar 30 Not null 10 Password Varchar 20 Not null
  13. 13. 2) Admin Table Description:- Sr.No Field Name Data Type Size Constraint 1 admin_id Int 5 Primary Key 2 Admin_username Varchar 50 Not null 3 Admin_password varchar 50 Not null 3) Booking_master Table
  14. 14. Description:- Sr. no Field Name Data Type Size Constraint 1 Booking_id Int 5 Primary Key 2 User_id int 5 F.k 3 Show_id int 5 F.K. 4 Booking_date Varchar 10 Not null 5 Booking_showdate Varchar 10 Not null 4) Booking_detail Table Description:-
  15. 15. Sr.no Field Name Data Type Size Constraint 1 booking Int 5 Primary Key 2 Booking_id int 5 F. k. 3 Booking_seat varchar 30 F.K. 5) Screen Table
  16. 16. Description:- Sr.no Field Name Data Type Size Constraint 1 Screen_id Int 2 Primary Key 2 Screen_name varchar 30 Not null
  17. 17. 6) Seat Table Description:- Sr.no Field Name Data Type Size Constraint 1 seat_id Int 3 Primary Key 2 Seat_name Varchar 30 Not null 3 St_id int 3 F.K.
  18. 18. 7) Movie Table Description:- Sr.no Field Name Data Type Size Constraint 1 Movie_id Int 5 Primary Key 2 Movie_name Varchar 30 Not null 3 Movie_image Varchar 30 Not null 4 Movie_trailer Varchar 30 Not null 5 Movie_director Varchar 30 Not null 6 Movie_cast Varchar 70 Not null 7 Movie_music Varchar 50 Not null 8 Movie_type varchar 30 Not null 9 Movie_status Varchar 30 Not null 10 Movie_date varchar 10 Not null 11 Movie_end_date Varchar 10 Not null
  19. 19. 8) Seat_type Table Description:- Sr.no Field Name Data Type Size Constraint 1 st_id Int 5 Primary Key 2 type Varchar 30 Not null 3 price int 5 Not null
  20. 20. 9) Show Table Description:- Sr.no Field Name Data Type Size Constraint 1 show_id Int 5 Primary Key 2 Show_time Varchar 30 Not null 3 Movie_id Int 30 F. k. 4 Screen_id Int 30 F. k. 5 Show_end_time Varchar 30 Not null
  21. 21. 10) Cancel_charge Table Description:- Sr.no Field Name Data Type Size Constraint 1 Charge_id Int 5 Primary Key 2 time varchar 20 Not null 3 charge int 3 Not null
  22. 22. 11) Cancelation Table Description:- Sr.no Field Name Data Type Size Constraint 1 cancel_id Int 5 Primary Key 2 Booking_id Int 5 f.k 3 id int 5 f.k 4 Show_id int 5 f.k. 5 date Varchar 10 Not null 6 Booking_showdate Varchar 10 Not null 7 Charge Int 10 Notnull
  23. 23. 12) Cancel_Detail Table Description:- Sr.no Field Name Data Type Size Constraint 1 booking Int 5 Primary Key 2 Booking_id int 5 F. k. 3 Seat_id int 3 f.k.
  24. 24. CODING  Login:- public partial class admin_login : System.Web.UI.Page { SqlConnection con = new SqlConnection(ConfigurationManager.ConnectionStrings["mycinema"].ConnectionString); protected void Page_Load(object sender, EventArgs e) { } protected void Submit_Click(object sender, EventArgs e) { con.Open(); SqlCommand cmd1 = con.CreateCommand(); cmd1.CommandType = CommandType.Text; cmd1.CommandText = "select * from admin where admin_username='" + txtunm.Text + "' and admin_password='" + txtpwd.Text + "'"; cmd1.ExecuteNonQuery(); DataTable dt = new DataTable(); SqlDataAdapter da1 = new SqlDataAdapter(cmd1); da1.Fill(dt); foreach (DataRow dr in dt.Rows) { Session["admin"] = dr["admin_id"]; con.Close();
  25. 25. Response.Redirect("Default.aspx"); } Label1.ForeColor = Color.Red; Label1.Text = "Username or Password is Invalid"; } }  Registration:- public partial class _Default : System.Web.UI.Page { SqlConnection con=new SqlConnection(ConfigurationManager.ConnectionStrings["mycinema"].ConnectionString); protected void Page_Load(object sender, EventArgs e) { } protected void Submit_Click(object sender, EventArgs e) { try { con.Open(); SqlDataAdapter da = new SqlDataAdapter("select * from registration where username='" + txtunm.Text + "'", con); DataSet ds = new DataSet(); da.Fill(ds); if (ds.Tables[0].Rows.Count > 0) { con.Close(); Label1.ForeColor = Color.Red; Label1.Text = "Sorry,Username is Not Valid!"; } else { SqlCommand cmd = con.CreateCommand(); cmd.CommandType = CommandType.Text;
  26. 26. cmd.CommandText = "insert into registration values('" + txtfnm.Text + "','" + txtlnm.Text + "','" + txtct.Text + "','" + txtadd.Text + "','" + RadioButtonList1.SelectedValue.ToString() + "','" + txtmn.Text + "','" + txtem.Text + "','" + txtunm.Text + "','" + txtpwd.Text + "')"; cmd.ExecuteNonQuery(); SqlCommand cmd1 = con.CreateCommand(); cmd1.CommandType = CommandType.Text; cmd1.CommandText = "select id,firstname from registration where username='" + txtunm.Text + "' and password='" + txtpwd.Text + "'"; cmd1.ExecuteNonQuery(); DataTable dt = new DataTable(); SqlDataAdapter da1 = new SqlDataAdapter(cmd1); da1.Fill(dt); foreach (DataRow dr in dt.Rows) { Session["userid"] = dr["id"]; Session["user"] = dr["firstname"]; con.Close(); Response.Redirect("index.aspx"); } } } catch { con.Close(); Label1.ForeColor = Color.Red; Label1.Text = "Sorry, Registration Fail!"; } } }
  27. 27. Testing Test Case: Registration 1. User Name 1.1.User Name Must be Unique 2. E-Mail 2.1. E-mail Must be in proper format like(abc@example.com) Project : Online Theater Ticket Booking Author: Group No. - 27 Date Reviewer : Date Module : registration Stage : TC id Requiremen ts/ Scenario/ Use case ID Pre- conditio n Test case Descriptio n Steps Test Data Expected Result Actu al Resul t
  28. 28. TC_1 1.1 User’s username is required This test case for use for the user’s registration form. 1) Enter username in “txt_userna me ” page. 2) Check validation of username 1) Username =”hardik123” IF username is registered then MSG (“Usernam e already registered”) Else success 2) Username =”hardik123” IF username is registered then MSG (“Usernam e already registered”) Else success TC_2 2.1 User’s email is required Checking of E-Mail format for Registration. 1)Enter E- mail in “txtemail”’ box 2)check validation of “txtemail”’ 1) “txtemail”’ = abc@example MSG (“Invalid Email ”) 2) “txtemail”’ = abc@example.com MSG (“Valid Email”) Test Case: Booking Show 1. Select Show Time And Date 1.1. Select Show time and date of movie (If Selected Date is Today then Show time Must be Greater than One hour to current time)
  29. 29. Project : Online Theater Ticket Booking Author: Group No. - 16 Date : Reviewer : Date : Module : Select Show/Date Stage : TC id Requiremen ts/ Scenario/ Use case ID Pre- conditi on Test case Descripti on Steps Test Data Expect ed Result Actu al Resul t Smoke (Yes/N o) TC_1 1.1 Show time and date is required. This test case use for the select perticuler show select show “sho w” select show “date ” 1)Show=09:30 AM Date=Today (current time=10:00 AM) MSG (“You Can not book this show.”) Yes 2) Show=11:30 AM Date=Today (current time=10:00 AM) MSG (“”) Yes 3) Show=10:00 AM Date=Tommorow (current time=11:00 AM) MSG (“”) Yes
  30. 30. Screen Layouts Admin Login:-
  31. 31. Admin Home:-
  32. 32. Add Movie:- Add Show:-
  33. 33. Movie Detail:-
  34. 34. Show Detail:- Booking Detail:-
  35. 35. Price:-
  36. 36. Users:-
  37. 37. User Registration:-
  38. 38. User Login:-
  39. 39. Schedual:-
  40. 40. Movie Tailer:-

×