Sie sind auf Seite 1von 74

2

A Report

On

“Auditorium Reservation SYSTEM”

For
RTO Office, Ernakulum

Submitted to the

Department of Computer Applications

In partial fulfilment of the Course

Master of Computer Applications

Under the guidance of

Mrs.J.M.Lakshmi mahesh

BY

Davis Thomas .K (CA-143)

2
3

SCMS SCHOOL OF TECHNOLOGY AND


MANAGEMENT
MUTTOM, ALWAYE, COCHIN - 683106
March 2008

SCMS SCHOOL OF TECHNOLOGY AND


MANAGEMENT
MUTTOM, ALWAYE
COCHIN - 683106

CERTIFICATE

This is to certify that the project entitled


“Auditorium Reservation SYSTEM” has been
successfully carried out by Davis Thomas.K(CA-143)

3
4

in partial fulfillment of the course Master of


Computer Applications under my guidance.

Date: 26.10.2009 Mrs.


J.M.Lakshmi Mahesh
(Intern
al Guide)

4
5

SCMS SCHOOL OF TECHNOLOGY AND


MANAGEMENT
MUTTOM, ALWAYE
COCHIN - 683106

CERTIFICATE

This is to certify that the project entitled


“Auditorium Reservation SYSTEM” has been
successfully carried out by Davis Thomas.K (CA-
143) in partial fulfillment of the Course Master of
Computer Applications.

Date: 26.10.2009
DIRECTOR

5
6

Mrs. Indu Nair

SCMS SCHOOL OF TECHNOLOGY AND


MANAGEMENT
MUTTOM, ALWAYE, COCHIN - 683106

DECLARATION
To
The Director,
SCMS School of Technology and Management,
Muttom-683106

Sir,
I, the undersigned, hereby declare that
this project report entitled
“Auditorium Reservation SYSTEM” has been
written and submitted under the guidance of
Mrs.Lakshmi Mahesh and is my original work. The

6
7

empirical findings in the report are based on


information collected by me and not copied from
elsewhere.
I understand that detection of any such
copying is liable to be punished in any way the
school deems fit.

Date: 26.10.2009
Davis Thomas (CA-143)

ACKNOWLEDGEMENT

First of all we bow our head before the God


Almighty in prayer and gratitude for his blessings showed on us to
complete our project. We would like to express our sincere thanks
to our Director Mrs.Indu Nair for her kind consideration and
valuable guidelines throughout the course of our project work.

We express our heartfelt gratitude to Mrs.J.M Lakshmi


Mahesh, our internal guide, for their valuable guidelines,
corporation and constant encouragements throughout the project
work. We extend our sincere thanks to all the faculty members of

7
8

MCA department, SCMS College Muttom for their kind support


and encouragement throughout the project work.

We also thank our parents, who had been a constant source of


inspiration for the successful completion of the project.

Last but not the least, we are very thankful to all our friends
for their constant encouragement and their valuable help during
this project.

INTRODUCTION

TITLE: Auditorium reservation System

The aim of this project is to computerize the


operation of “Lagan auditorium front office”, which
deals with auditorium booking. It can therefore
eliminate the existing manual mode of operation.
The present manual work would be replaced by the
implementation of the software which helps to carry
8
9

out day-to-day activities of the office. It is very


helpful and reduces the man work.

The simplicity of the software make easier for


an average person with minimum knowledge about
computer to operate this software. This system
keeps track of all Booking information –booking
number, booking date. It keeps the record of
customer personal details, accounting details.
The office can view the history of booking as
per booking date and booking number.

The System is developed in C# as Front End, ORACLE as Back


End.
This package is fully menu driven.

9
10

Objective and Scope of Project

The system is confined to the front office of lagan group. When the
office can make booking on auditorium as per customer need.
It there by reduces the time of processing customer requirements.

Existing System:-

The existing system, all activities are done manually, including


searching of availability of date for auditorium booking.

Solving customer queries takes a long time to solve the issue.


Every operations are done manually which is very time
consuming.

As the work is done manually in the existing system, we came


across with many problems.

 The work load is heavy.


 Since every details are entered manually, its time consuming.
 There is a great chance of wrong entry and duplication of
data.
 To retrieve necessary information is a difficult process.
 Up gradation of records is a very laborious process.
 Accuracy is not cent percent.

Drawbacks of existing system|:-


 Tedious manual labor.
 Time consuming.
 Damage of files.
 Manual Errors.
 Current updating of record is much difficult.

10
11

Proposed System

This project work is done for lagan group. The main objective of
the project is conversion of the existing manual system into a
computerized one.

It will be a great help and will be more advantageous if the office


work is computerized.

In the existing system, all the functions is being done manually,


including the booking of auditorium and confirmation

Advantages of proposed system:-

 Search of date for availability


 Faster service
 Record maintained for future reference

 Enquiry can be made more easily


 Faster response and user friendly
 Report generation at desires time

System Analysis & Design vis-a-vis User Requirements

The system is defined as regular arrangements of components


or parts in a connected and interrelated series or whole, a
series of group of components necessary to some operations.

The design is defined as a process of developing the technical


and operational specifications of a candidate system for
implementations.
11
12

Front end and back end

Front End: - C#

Why C#?

C# is a simple, modern, object oriented language derived from C+


+ and Java. It aims to combine the high productivity of Visual
Basic and the raw power of C++.
It is a part of Microsoft Visual Studio7.0. Visual studio supports
Vb, VC++, C++, Vbscript, Jscript. All of these languages provide
access to the Microsoft .NET platform.

NET includes a Common Execution engine and a rich class library.

Microsoft's JVM equiv. is Common language run time (CLR).


CLR accommodates more than one languages such as C#,
VB.NET, Jscript, ASP.NET, C++.

Source code --->Intermediate Language code (IL) ---> (JIT


Compiler) Native code. The classes and data types are common to
all of the .NET languages.
We may develop Console application, Windows application, and
Web application using C#.
12
13

In C# Microsoft has taken care of C++ problems such as Memory


management, pointers etc. It supports garbage collection, automatic
memory management and a lot.

Detailed Life Cycle of the Project

The modules of the project


• Booking
• Confirmation
• Cancellation
• Search by date
• Search by booking date
• Change Password

Input and Output Screen Design

Input design:-

In input design, the input fields involved in various forms are


listed below:-

FORM 1:- WELCOME

FORM 2:- LOGIN

13
14

2.1 Username
2.2 Password

FORM 3:- MDI HOME

3.1 Booking

- Auditorium Booking.
- Confirmation
-Cancellation

3.2 Search

- Search by date
-Search by booking date.

3.3 User

- Change Password

3.4 About us

3.5 Exit.

FORM 4:- Auditorium booking

 Application number
 Booking number
 Name
 House name
 Street
 Location
 Pin code

14
15

 Email
 Contact number
 Number of persons
 Auditorium price
 Stage price
 Stage advance
 Stage balance
 Religion type of function
 Food type
 Food rate
 Number of room
 Booking date

FORM 5- Auditorium Confirmation


 Booking number
 name
 date
 Stage price
 Room price
 Auditorium price
 Food price
 Total

FORM 6-Booking Cancellation

 booking number
 name
 date
 amount paid
 refund

15
16

FORM 7- Search_date

 Search by date

FORM 7- Search_number

 search by booking number

16
17

17
18

18
19

19
20

20
21

21
22

22
23

23
24

24
25

25
26

26
27

27
28

28
29

29
30

30
31

31
32

32
33

33
34

34
35

35
36

36
37

37
38

CODING

FORM 1: WELCOME FORM

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace autoriummgmtsyst
{
public partial class welcome : Form
{
public welcome()
{
InitializeComponent();
}

private void timer1_Tick(object sender,


EventArgs e)
{
loginform l = new loginform();
if (progressBar1.Value ==
progressBar1.Maximum)
{
this.Hide();
timer1.Enabled = false;
l.Show();
}
progressBar1.PerformStep();
}

private void welcome_Load(object sender,


EventArgs e)
{

38
39

}
}
}

FORM 2: LOGIN FORM


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace autoriummgmtsyst
{
public partial class loginform : Form
{
string str;
OleDbCommand com;
OleDbConnection con;
OleDbDataReader r;
public loginform()
{
InitializeComponent();
}

private void button1_Click(object sender,


EventArgs e)
{
try
{
con.Open();
com = new OleDbCommand("select * from
login", con);

39
40

r = com.ExecuteReader();
while (r.Read())
{
string u =
r["username"].ToString();
if (textBox1.Text == u)
{
string p =
r["password"].ToString();
if (textBox2.Text == p)
{
homepage obj1 = new
homepage();
this.Hide();
obj1.Show();
}
else
{
MessageBox.Show("Wrong Username or Password",
"Warning", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}
}
else
{
MessageBox.Show("Wrong Username or Password",
"Warning", MessageBoxButtons.OKCancel,
MessageBoxIcon.Error);
}

}
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();
}
}

40
41

private void pictureBox1_Click(object sender,


EventArgs e)
{
}
private void loginform_Load(object sender,
EventArgs e)
{
str = "Provider=MSDAORA;Data Source=sstmmca;Persist
Security Info=True;User
Id=auditorium;Password=auditorium;Unicode=True";
con = new OleDbConnection(str);
}

private void button2_Click(object sender,


EventArgs e)
{
this.Close();
}

private void pictureBox2_Click(object sender,


EventArgs e)
{

}
}
}

FORM 3: HOME PAGE

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace autoriummgmtsyst
{

41
42

public partial class homepage : Form


{
public homepage()
{
InitializeComponent();
}

private void contextMenuStrip1_Opening(object


sender, CancelEventArgs e)
{

private void
changePasswordToolStripMenuItem_Click(object
sender,EventArgs e)
{
changepassword obj7 = new
changepassword();
obj7.MdiParent = this;
obj7.Show();
}

private void bOOKINHToolStripMenuItem_Click(object


sender, EventArgs e)
{

auditorium_booking obj1 = new


auditorium_booking();
obj1.MdiParent = this;
obj1.Show();

private void
confirmationToolStripMenuItem_Click(object sender,
EventArgs e)
{
confirmation obj2 = new confirmation();
obj2.MdiParent = this;
obj2.Show();

42
43

private void
cancellationToolStripMenuItem_Click(object sender,
EventArgs e)
{
cancellationform obj3 = new
cancellationform();
obj3.MdiParent = this;
obj3.Show();
}

private void dateToolStripMenuItem_Click(object


sender, EventArgs e)
{
searching_date obj4 = new
searching_date();
obj4.MdiParent = this;
obj4.Show();
}

private void
bookingNoToolStripMenuItem_Click(object sender,
EventArgs e)
{
Search_booking obj5 = new
Search_booking();
obj5.MdiParent = this;
obj5.Show();
}

private void createToolStripMenuItem_Click(object


sender, EventArgs e)
{

private void aboutUsToolStripMenuItem_Click(object


sender, EventArgs e)
{
aboutus obj8 = new aboutus();

43
44

obj8.MdiParent = this;
obj8.Show();
}

private void exitToolStripMenuItem_Click(object


sender, EventArgs e)
{
int res;

res = (int)MessageBox.Show("Are you Sure you want


to exit", "Message", MessageBoxButtons.YesNo,
MessageBoxIcon.Information);
if (res == (int)DialogResult.Yes )
{
//homepage h = new homepage();
this.Close();
}
else
{
//homepage h=new homepage ();
this.Show();
}
}
private void pictureBox1_Click(object
sender,EventArgs e)
{
}
private void menuStrip1_ItemClicked(object sender,
ToolStripItemClickedEventArgs e)
{
}
private void homepage_Load(object sender, EventArgs
e)
{
}
private void
decorationToolStripMenuItem_Click(object sender,
EventArgs e)
{
stagedecorationform s = new
stagedecorationform();

44
45

s.MdiParent = this;
s.Show();
}
private void toolTip1_Popup(object sender,
PopupEventArgs e)
{

}
private void toolStripButton1_Click(object sender,
EventArgs e)
{
stagedecorationform s = new
stagedecorationform();
s.MdiParent = this;
s.Show();
}
}
}

FORM 4:- BOOKING FORM

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.OleDb;

namespace autoriummgmtsyst
{

public partial class auditorium_booking : Form


{
string str;
OleDbCommand com;
OleDbConnection con;
OleDbDataReader r;
int sx;
int sy;
45
46

int stagebal;
public auditorium_booking()
{
InitializeComponent();
}

private void auditorium_booking_Load(object sender,


EventArgs e)
{
str = "Provider=MSDAORA;Data Source=sstmmca;Persist
Security Info=True;User
Id=auditorium;Password=auditorium;Unicode=True";
con = new OleDbConnection(str);
try
{
con.Open();
com = new OleDbCommand("select * from d_person",
con);
r = com.ExecuteReader();
while (r.Read())
{
textBox1.Text =
r["appno"].ToString();
textBox5.Text =
r["bookno"].ToString();
}
int n1 = int.Parse(textBox1.Text);
n1++;
textBox1.Text = n1.ToString();
int n2 = int.Parse(textBox5.Text);
n2++;
textBox5.Text = n2.ToString();

}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();

46
47

private void linkLabel1_LinkClicked(object sender,


LinkLabelLinkClickedEventArgs e)
{
//Form f=new Form;

private void textBox12_TextChanged(object sender,


EventArgs e)
{

private void textBox5_TextChanged(object sender,


EventArgs e)
{

private void pictureBox1_Click(object sender,


EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void textBox6_TextChanged(object sender,


EventArgs e)
{
}

private void button1_Click(object sender,


EventArgs e)

47
48

{
try
{
com = new OleDbCommand("insert into
d_person values(?,?,?,?,?,?,?,?,?,?,?,?)", con);
con.Open();
com.Parameters.Add("appno",
OleDbType.VarChar).Value = textBox1.Text;
com.Parameters.Add("Bookno",
OleDbType.VarChar).Value = textBox5.Text;
com.Parameters.Add("bookdate",
OleDbType.VarChar).Value = textBox17.Text; // coded
at line 270
com.Parameters.Add("fname",
OleDbType.VarChar).Value = textBox2.Text;
com.Parameters.Add("mname",
OleDbType.VarChar).Value = textBox15.Text;
com.Parameters.Add("hname",
OleDbType.VarChar).Value = textBox3.Text;
com.Parameters.Add("location",
OleDbType.VarChar).Value = textBox14.Text;
com.Parameters.Add("pin",
OleDbType.VarChar).Value = textBox6.Text;
com.Parameters.Add("religion",
OleDbType.VarChar).Value = comboBox1.Text;
com.Parameters.Add("phno",
OleDbType.VarChar).Value = textBox16.Text;
com.Parameters.Add("street",
OleDbType.VarChar).Value = textBox4.Text;
com.Parameters.Add("email",
OleDbType.VarChar).Value = textBox13.Text;
com.ExecuteNonQuery();

com = new OleDbCommand("insert into food_room


values(?,?,?,?,?,?)", con);
com.Parameters.Add("Bookno",
OleDbType.VarChar).Value = textBox5.Text;
com.Parameters.Add("foodcode",
OleDbType.VarChar).Value = comboBox4 .Text ;

48
49

com.Parameters.Add("noperson",
OleDbType.VarChar).Value = comboBox6.Text;
com.Parameters.Add("noroom",
OleDbType.VarChar).Value = comboBox5.Text ;
int x=int.Parse(comboBox5 .Text );
int y=int.Parse(textBox7.Text );
int roomrate = x * y;
com.Parameters.Add("functiontype",
OleDbType.VarChar).Value = comboBox2.Text ;
int n = int.Parse(comboBox6.Text);
int m = int.Parse(textBox10.Text);
int foodrate = m * n;
com.Parameters.Add("foodcost",
OleDbType.VarChar).Value = foodrate;
com.ExecuteNonQuery();

com = new OleDbCommand("insert into d_cost


values(?,?,?,?,?,?,?,?)", con);
com.Parameters.Add("Bookno",
OleDbType.VarChar).Value = textBox5.Text;
com.Parameters.Add("stageprice",
OleDbType.Numeric).Value = textBox9.Text;
com.Parameters.Add("stagecode",
OleDbType.VarChar).Value = "";
com.Parameters.Add("stageadvance",
OleDbType.Numeric).Value = textBox8.Text;
com.Parameters.Add("satgebalance",
OleDbType.Numeric).Value = stagebal ;
com.Parameters.Add("refund",
OleDbType.Numeric).Value = 0;
com.Parameters.Add("roomprice",
OleDbType.Numeric).Value = roomrate;
com.Parameters.Add("audprice",
OleDbType.Numeric).Value = textBox11.Text ;
com.ExecuteNonQuery();

int audrent =
int.Parse(textBox11.Text);
int stagerent =
int.Parse(textBox9.Text);

49
50

com = new OleDbCommand("insert into d_total


values(?,?)", con);
com.Parameters.Add("Bookno",
OleDbType.VarChar).Value = textBox5.Text;
int totalrent = stagerent + audrent + roomrate +
foodrate;
com.Parameters.Add("totalamount",
OleDbType.VarChar).Value = totalrent;
com.ExecuteNonQuery();
MessageBox.Show("Successfully saved", "message",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information);

}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();
}
int result = 0;
result= (int)MessageBox.Show("Booking
Saved, Do you want to confirm ?", "Message",
MessageBoxButtons.OKCancel,
MessageBoxIcon.Information);
if (result == (int)DialogResult.OK)
{
confirmation obj1 = new
confirmation();
this.Hide();
obj1.Show();
}

}
private void toolTip1_Popup(object sender,
PopupEventArgs e)
{

50
51

}
private void
radioButton1_CheckedChanged(object sender,
EventArgs e)
{
if (radioButton1.Text == "Yes")
panel4.Visible = true;

private void
radioButton2_CheckedChanged(object sender,
EventArgs e)
{
if (radioButton2.Text == "No")
panel4.Visible = false ;
}

private void
radioButton3_CheckedChanged(object sender,
EventArgs e)
{
if (radioButton3.Text == "Yes")
panel5.Visible = true;
}

private void
radioButton4_CheckedChanged(object sender,
EventArgs e)
{
if (radioButton4.Text == "No")
panel5.Visible = false ;
}

private void textBox9_TextChanged(object


sender, EventArgs e)
{

51
52

private void button3_Click(object sender,


EventArgs e)
{
confirmation obj1 = new confirmation();
this.Hide();
obj1.Show();
}

private void
comboBox4_SelectedIndexChanged(object sender,
EventArgs e)
{
string str1 =
comboBox4.SelectedItem.ToString();
if (str1 == "Snacks")
{
textBox10.Text = "75";
}
else if (str1 == "Vegeterian")
{
textBox10.Text = "100";
}
else if (str1 == "Non- VEG")
{
textBox10.Text = "150";
}
}

private void panel4_Paint(object sender,


PaintEventArgs e)
{
}
private void textBox10_TextChanged(object
sender, EventArgs e)
{

}
private void
comboBox5_SelectedIndexChanged(object sender,
EventArgs e)

52
53

{
string str =
comboBox5.SelectedItem.ToString();

if (str == "1")
{
textBox7.Text = "250";
}
else if (str == "2")
{
textBox7.Text = "500";
}
else if (str == "3")
{
textBox7.Text = "750";
}
else if (str == "4")
{
textBox7.Text = "800";
}
else if (str == "5")
{
textBox7.Text = "1100";
}
else if (str == "6")
{
textBox7.Text = "1200";
}
else if (str == "7")
{
textBox7.Text = "1250";
}
else if (str == "8")
{
textBox7.Text = "1400";
}
else if (str == "9")
{
textBox7.Text = "1500";
}
else if (str == "10")

53
54

{
textBox7.Text = "1550";
}
}
private void button2_Click(object sender,
EventArgs e)
{
this.Close();

}
private void
monthCalendar1_DateChanged(object sender,
DateRangeEventArgs e)
{
monthCalendar1.Visible =
false;
textBox17.Visible = true;
textBox17.Text =
monthCalendar1.SelectionStart.ToString();
try
{
con.Open();
com = new OleDbCommand("select
* from d_person", con);
r = com.ExecuteReader();
while (r.Read())
{
if (textBox18.Text ==
textBox17.Text)
{
MessageBox.Show("Bookin
g at " + textBox17.Text + " Already Exist in this
date !!", "Warning", MessageBoxButtons.OK,
MessageBoxIcon.Error);
}
else
{
textBox18.Text =
r["bookdate"].ToString();
}
}

54
55

if (monthCalendar1.Visible ==
true)
{
button4.Visible = false;
}
}
catch (Exception caught)
{
MessageBox.Show(caught.ToString
());
}
finally
{
con.Close();
}
}
private void textBox17_TextChanged(object
sender, EventArgs e)
{
}
private void textBox8_TextChanged(object
sender, EventArgs e)
{
sx = int.Parse(textBox9.Text);
sy = int.Parse(textBox8.Text);
stagebal = sx - sy;
textBox12.Text = stagebal.ToString();
if (stagebal < 0)
{
MessageBox.Show("Your Advance now
exceeds The total Amount", "Hope !Wrong entry",
MessageBoxButtons.OKCancel, MessageBoxIcon.Hand);
}
}

private void label22_Click(object sender,


EventArgs e)
{

55
56

private void
comboBox2_SelectedIndexChanged(object sender,
EventArgs e)
{

private void button4_Click(object sender,


EventArgs e)
{
monthCalendar1.Visible = true;
textBox17.Visible = false;
}
}
}

FORM 5: CONFIRMATION PAGE

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

56
57

using System.Data.OleDb;

namespace autoriummgmtsyst
{
public partial class confirmation : Form
{
string str;
OleDbCommand com;
OleDbConnection con;
OleDbDataReader r;
public confirmation()
{
InitializeComponent();
}

private void confirmation_Load(object sender,


EventArgs e)
{
str = "Provider=MSDAORA;Data
Source=sstmmca;Persist Security Info=True;User
Id=auditorium;Password=auditorium;Unicode=True";
con = new OleDbConnection(str);
}

private void pictureBox1_Click(object sender,


EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void button1_Click(object sender,


EventArgs e)
{
MessageBox.Show("Confirmation Saved",
"Message", MessageBoxButtons.OKCancel,
MessageBoxIcon.Information);
}

57
58

private void label8_Click(object sender,


EventArgs e)
{

private void button3_Click(object sender,


EventArgs e)
{
int result1 = 0;
//int result2=0;
result1=(int)MessageBox.Show("No
Printer Connected", "Warning",
MessageBoxButtons.RetryCancel,
MessageBoxIcon.Error);
if (result1 == (int)DialogResult.Retry)
{
MessageBox.Show("Contact
Administrator", "Error",
MessageBoxButtons.AbortRetryIgnore,
MessageBoxIcon.Warning);
}
else if (result1 ==
(int)DialogResult.Cancel)
{
confirmation obj = new
confirmation();
obj.Show();
}

private void textBox1_TextChanged(object sender,


EventArgs e)
{
/*To reterive data from database by entering
Booking number*/
try
{
con.Open();

58
59

com=new OleDbCommand ("select *


from d_person where bookno='" +textBox1.Text+"'"
,con);
r = com.ExecuteReader();
r.Read();
textBox2.Text =
r["fname"].ToString();
textBox9.Text =
r["mname"].ToString();
textBox8.Text =
r["bookdate"].ToString();

com = new OleDbCommand("select *


from d_cost where bookno='" + textBox1.Text + "'",
con);
r = com.ExecuteReader();
r.Read();
textBox4.Text =
r["stageprice"].ToString();
textBox7.Text =
r["roomprice"].ToString();
textBox6.Text =
r["audprice"].ToString();

com = new OleDbCommand("select *


from food_room where bookno='" + textBox1.Text +
"'", con);
r = com.ExecuteReader();
r.Read();
textBox5.Text =
r["foodcost"].ToString();

com = new OleDbCommand("select *


from d_total where bookno='" + textBox1.Text + "'",
con);
r = com.ExecuteReader();
r.Read();
textBox3.Text =
r["totalamount"].ToString();

59
60

}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();
}

private void button4_Click(object sender,


EventArgs e)
{
panel3.Visible = true;
}

private void panel2_Paint(object sender,


PaintEventArgs e)
{

}
}
}

FORM 6: CANCELLATION FORM

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
60
61

using System.Windows.Forms;
using System.Data.OleDb;

namespace autoriummgmtsyst
{
public partial class cancellationform : Form
{
string str;
OleDbCommand com;
OleDbConnection con;
OleDbDataReader r;
public cancellationform()
{
InitializeComponent();
}

private void label5_Click(object sender,


EventArgs e)
{

private void cancellationform_Load(object sender,


EventArgs e)
{
str = "Provider=MSDAORA;Data
Source=sstmmca;Persist Security Info=True;User
Id=auditorium;Password=auditorium;Unicode=True";
con = new OleDbConnection(str);
}

private void pictureBox1_Click(object sender,


EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void textBox4_TextChanged(object sender,


EventArgs e)

61
62

private void button2_Click(object sender,


EventArgs e)
{
this.Close();
}

private void button1_Click(object sender,


EventArgs e)
{
try
{

con.Open();
com = new OleDbCommand("delete from d_person where
bookno='" + textBox1.Text + "'", con);
com.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();
}
int result = 0;
result=(int)MessageBox.Show("Are you
sure you want to cancel order", "message",
MessageBoxButtons.OKCancel);
if (result == (int)DialogResult.OK)
{
MessageBox.Show("Successfully
done", "message", MessageBoxButtons.OK,
MessageBoxIcon.Information);
cancellationform obj1 = new
cancellationform();
this.Hide();

62
63

obj1.Show();
}
}

private void textBox1_TextChanged(object sender,


EventArgs e)
{
try
{
con.Open();
com=new OleDbCommand ("select *
from d_person where bookno='" +textBox1.Text+"'"
,con);
r = com.ExecuteReader();
r.Read();
textBox3.Text =
r["fname"].ToString();
textBox6.Text =
r["mname"].ToString();
textBox5.Text =
r["bookdate"].ToString();

com = new OleDbCommand("select *


from d_total where bookno='" + textBox1.Text + "'",
con);
r = com.ExecuteReader();
r.Read();
textBox4.Text =
r["totalamount"].ToString();
int tot =
int.Parse(textBox4.Text);
int refd = tot - 2000;
//int tot1 = tot - refd;
textBox2.Text = tot.ToString();
con.Close();
con.Open();

63
64

com = new OleDbCommand("update


d_cost set refund=' " + textBox2.Text + " ' where
bookno=' " + textBox1.Text + " ' ", con);

com.ExecuteNonQuery();
}
catch (Exception ex)
{
MessageBox.Show(ex.ToString());
}
finally
{
con.Close();
}

private void panel1_Paint(object sender,


PaintEventArgs e)
{

}
}
}

FORM 7:SEARCH BY DATE

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace autoriummgmtsyst
{
public partial class searching_date : Form
64
65

{
public searching_date()
{
InitializeComponent();
}

private void pictureBox2_Click(object sender,


EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void searching_date_Load(object


sender, EventArgs e)
{

}
}
}

FORM 8:SEARCH BY BOOKING NUMBER

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace autoriummgmtsyst
{

public partial class Search_booking : Form


{
65
66

public Search_booking()
{
InitializeComponent();
}

private void Form1_Load(object sender,


EventArgs e)

private void pictureBox2_Click(object sender,


EventArgs e)

{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

FORM 9:CHANGE PASSWORD


using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
66
67

using System.Windows.Forms;
using System.Data.OleDb;

namespace autoriummgmtsyst
{
public partial class changepassword : Form
{
string str;
OleDbCommand com;
OleDbConnection con;
OleDbDataReader r;
public changepassword()
{
InitializeComponent();
}
private void pictureBox1_Click(object sender,
EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void changepassword_Load(object sender,


EventArgs e)
{
str = "Provider=MSDAORA;Data
Source=sstmmca;Persist Security Info=True;User
Id=auditorium;Password=auditorium;Unicode=True";
con = new OleDbConnection(str);
}

private void textBox1_TextChanged(object sender,


EventArgs e)
{

}
private void textBox3_TextChanged(object sender,
EventArgs e)
{

67
68

private void button2_Click(object sender,


EventArgs e)
{
string s2 = textBox1.Text;

string s = textBox2.Text;
string s1 = textBox3.Text;
if (s == s1)
{
try
{
con.Open();

com = new OleDbCommand("update login set


password='" + textBox3.Text + "'", con);
com.ExecuteNonQuery();
MessageBox.Show("Password Updated Successfully",
"message", MessageBoxButtons.OK,
MessageBoxIcon.Information);

}
catch (Exception caught)
{
MessageBox.Show(caught.ToString
());
}
finally
{
con.Close();
}
}
else
{
MessageBox.Show("Password does not
match", "warning", MessageBoxButtons.OKCancel,
MessageBoxIcon.Warning);

68
69

}
}
}
}

FORM 9: Auditorium View

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;

namespace autoriummgmtsyst
{
public partial class stagedecorationform : Form
{
public stagedecorationform()
{
InitializeComponent();
}

private void pictureBox9_Click(object


sender, EventArgs e)
{
homepage obj1 = new homepage();
this.Hide();
obj1.Show();
}

private void
stagedecorationform_Load(object sender, EventArgs
e)
{

}
}

69
70

OUTPUT DESIGN

One of the most important features of an information system


for users is the output it produces. Output is information
deliver to users through the information System.

The system has output for view of details by entering date,


search by booking number, display of confirmation details.

Objective of output design:-

 Design output to serve the intended purpose.


 Design output to fit the user.
 Deliver the appropriate quantity of output.
 Assure that output is where it is needed.
 Provide output on time.
 Choose the right output method.

70
71

Sample Tables

desc d_cost;

Name Null? Type


BOOKNO NOT NULL
VARCHAR2(15)
STAGEPRICE
NUMBER(10)
STAGECODE
VARCHAR2(10)
STAGEADVANCE
NUMBER(10)
STAGEBALANCE
NUMBER(10)
REFUND
NUMBER(10)
ROOMPRICE
NUMBER(10)
AUDPRICE
NUMBER(10)

SQL> desc d_person;

71
72

Name Null? Type


APPNO
VARCHAR2(15)
BOOKNO NOT NULL
VARCHAR2(15)
BOOKDATE
VARCHAR2(35)
FNAME
VARCHAR2(40)
MNAME
VARCHAR2(40)
HNAME
VARCHAR2(40)
LOCATION
VARCHAR2(40)
PIN
VARCHAR2(8)
RELIGION
VARCHAR2(15)
PNO
VARCHAR2(15)
STREET
VARCHAR2(40)
EMAIL
VARCHAR2(40)

d_total;

72
73

Name Null? Type


BOOKNO NOT NULL
VARCHAR2(15)
TOTALAMOUNT
NUMBER(10)

food_room;

Name Null? Type


BOOKNO NOT NULL
VARCHAR2(15)
FOODCODE
VARCHAR2(10)
NOPERSON
VARCHAR2(5)
NOROOM
VARCHAR2(5)
FUNCTIONTYPE
VARCHAR2(40)
FOODCOST
NUMBER(10)

desc login;

Name Null? Type


USERNAME NOT NULL
VARCHAR2(25)
PASSWORD
VARCHAR2(15)

73
74

CONCLUSION

In this project, we have consulted various sources and have got the

valuable information. It helped to acquire good knowledge about

analyzing a system, designing it and developing software

according to the specified requirements. This project work has

given ample requirements for analyzing, designing, testing and

implementing a new system. We are sure that this presentation of

project will help everybody and many will be benefited from it.

74

Das könnte Ihnen auch gefallen