Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
INTRODUCTION
1
1.2 OVERVIEW OF PROJECT
Restaurant Management System is a web application .This system wake to
provide service facility to restaurant and also to the customer. The services that are
provided is food ordering and reservation table management by the customer through the
system online, customer information management and waiter information management,
menu information management and report. Main objective of this project is to build the
system this is to provide ordering and reservation service by online to the customer. Each
menu item has a name, price and associated recipe. A recipe for a menu item has a chef,
preparation instruction send ingredients.
2
CHAPTER 2
2.1 INTRODUCTION
Restaurant management system is the system for manage the restaurant business.
The main point of developing this system is to help restaurant administrator manage the
restaurant business and help customer for online ordering and reserve table. The project
is developing , many restaurants have a lot difficult to manage the business such as
customer ordering and reservation table. By using manual customer ordering is difficult
to waiter keep the correct customer information and maybe loss the customer
information. So, online restaurant management system will develop to help the restaurant
administrator to manage restaurant management and for customer make their online
ordering and reservation table. Other than that, this project is to upgrade the manual
system and make the business easily to access and systematic.
3
manual system kept use paper and this is difficult for restaurant administrator to find
waiter information, probability missing the paper and difficult to arrange the schedule.
Sometimes, waiter information and customer information is important to restaurant
administrator for reference in the future.
2.3.1 Demerits of Existing System
It is time consuming
It leads to error prone results
It consumes lot of manpower to better results
It lacks of data security
Retrieval of data takes lot of time
Percentage of accuracy is less
Reports take time to produce
Sometimes it happens that the tables get booked soon during festive seasons
therefore user can make advance booking using this system.
It saves user’s time looking out for restaurants.
It saves business's resources and expenses.
4
2.5.2 User Account Module
Users have to first create an account into the system by registering themselves.
Then he/she can login into the system to avail various services.
2.5.3 View Customer Module
The admin can view the information of the customers who have placed the order
and also the date and the timing information along with the table numbers that the
customer has placed order for.
2.5.4 Restaurant Table Booking Module
The system has a graphical view of tables that user can select or deselect from the
available slot in the system. The booking system is such that already booked tables are
shown in red color and the available ones in usual color. These bookings can be seen by
admin from his account and he may approve or disapprove the request.
The user can check status of his order i.e. whether the order is being approved
by the admin.
RAM : 4GB
5
2.7 FEASIBLITY STUDY
The feasibility of the project is analyzed in this phase and business proposal is
put forth with a very general plan for the project and some cost estimates. During system
analysis the feasibility study of the proposed system is to be carried out. This is to ensure
that the proposed system is not a burden to the company. For feasibility analysis, some
understanding of the major requirements for the system is essential.
Economical feasibility
Technical feasibility
Social feasibility
This study is carried out to check the economic impact that the system will have on
the organization. The amount of fund that the company can pour into the research and
development of the system is limited. The expenditures must be justified. Thus the
developed system as well within the budget and this was achieved because most of the
technologies used are freely available. Only the customized products had to be
purchased.
This study is carried out to check the technical feasibility, that is, the technical
requirements of the system. Any system developed must not have a high demand on the
available technical resources. This will lead to high demands on the available technical
resources. This will lead to high demands being placed on the client. The developed
system must have a modest requirement, as only minimal or null changes are required for
implementing this system.
The aspect of study is to check the level of acceptance of the system by the user.
This includes the process of training the user to use the system efficiently. The user must
not feel threatened by the system, instead must accept it as a necessity. The level of
6
acceptance by the users solely depends on the methods that are employed to educate the
user about the system and to make him familiar with it. His level of confidence must be
raised so that he is also able to make some constructive criticism, which is welcomed, as
he is the final user of the system.
7
CHAPTER 3
3.1 INTRODUCTION
This section presents the research methodology used in the study, the research
design, and the data collection process. This section also presents the theoretical or
conceptual framework of the study, the sampling plan, and tools to be used for data
analysis.
User Account
Admin/User
Details
Customer
Login Customer
Details Database
Payment
Employee
Details
Logout
FIGURE 3.2
8
3.3 DATA FLOW DIAGRAM
Level 0
Web
Ordering Database Order Restaurant
Login Retrieval Employee
Order System
Menu
Management
system
Admin
Figure 3.3.1
9
Level 1
Menu Details
Receipt Customer
Figure 3.3.2
10
3.4 UML DIAGRAMS
A UML diagram is a diagram based on the UML (Unified Modeling Language) with
the purpose of visually representing a system along with its main actors, roles, actions,
artifacts or classes, in order to better understand, alter, maintain, or document
information about the system.
A use case diagram is a graphic depiction of the interaction among the elements
of a system. A Use case diagram is methodology used in system analysis to identify,
clarify, and organize system requirements .the actor, usually individuals involved with
system defined according to their roles.
11
Register
Login
Menu
Customer
Order Food
Delivery
Manager
Billing
Inventory
Employee
User Management
Customer
Mamagement
Employee
Management
Figure 3.4.1
12
3.4.2 Class diagram
Class diagram is the type of static structure diagram that describe the structure of
a system by showing the systems classes, their attributes operations or methods under
relationship among the objects.
Figure 3.4.2
13
3.4.3 Activity Diagram
Login
check
permissions
Logout
Figure 3.4.3
14
3.4.4 Sequence diagram
A sequence diagram shows the object interaction arranged in time sequence. It depicts
the object and classes involved in the scenario and the sequence of message exchanged
between the object needed to carry out the functionally of the scenario. Sequence
diagram sometimes called the Event Diagram or Event Scenario.
4: return status
3: return status
5: book table
6: return
7: orders()
8: Makes()
9: return
10: delivery()
11: generate bill[]
17: Report
Figure 3.4.4
15
3.4.5 Collaboration diagram
4: return status
customer 15:take feedback Manager
1:Request Table 16: return
13: paybill()
14: return
17: report 2: check table
9: return
5: book table Food items
11: generate bill
10: delivery()
3: return status
7:
6: orders()
8: return 12: return bill()
Chef Bill
Figure 3.4.5
16
3.4.5 Component diagram
payment employee
details
FIGURE 3.4.6
17
3.5 TABLE DESIGN
18
3.5.4 Food Item Table
19
3.5.7 Sales Billing Table
20
CHAPTER 4
TECHNICAL BACKGROUND
FRONT END
4.1 Overview of Visual Studio.NET
C# is an elegant and type-safe object-oriented language that enables developers to
build a variety of secure and robust applications that run on the.NET Framework. You
can use C# to create Windows client applications, XML Web services, distributed
components, client-server applications, database applications, and much, much more.
Visual C# provides an advanced code editor, convenient user interface designers,
integrated debugger, and many other tools to make it easier to develop applications based
on the C# language and the.NET Framework. The Visual C# documentation assumes
that you have an understanding of basic programming concepts. Developers who know
any of these languages are typically able to begin to work productively in C# within a
very short time. C# syntax simplifies many of the complexities of C++ and provides
powerful features such as null able value types, enumerations, delegates, lambda
expressions and direct memory access, which are not found in Java. C# supports generic
methods and types, which provide increased type safety and performance, and iterates,
which enable implementers of collection classes to define custom iteration behaviors that
are simple to use by client code. Language-Integrated Query (LINQ) expressions make
the strongly-typed query a first-class language construct.
As an object-oriented language, C# supports the concepts of encapsulation,
inheritance, and polymorphism. All variables and methods, including the Main method,
the application's entry point, are encapsulated within class definitions. A class may
inherit directly from one parent class, but it may implement any number of interfaces.
Methods that override virtual methods in a parent class require the override keyword as a
way to avoid accidental redefinition. In C#, a struck is like a lightweight class; it is a
stack-allocated type that can implement interfaces but does not support inheritance. In
addition to these basic object-oriented principles, C# makes it easy to develop software
components through several innovative language constructs, including the following:
Encapsulated method signatures called delegates, which enable type-safe event
notifications. Properties, which serves accesses for private member variables.
21
Attributes, which provide declarative metadata about types at run time. The C#
build process is simple compared to C and C++ and more flexible than in Java. There are
no separate header files, and no requirement that methods and types be declared in a
particular order. A C# source file may define any number of classes, struts, interfaces,
and events. For more information about LINQ, seal INQ (Language-Integrated Query).
C# programs run on the.NET Framework, an integral component of Windows that
includes a virtual execution system called the common language runtime (CLR) and a
unified set of class libraries. The CLR is the commercial implementation by Microsoft of
the common language infrastructure (CLI), an international standard that is the basis for
creating execution and development environments in which languages and libraries work
together seamlessly.
Source code written in C# is compiled into an intermediate language (IL) that
conforms to the CLI specification. Their code and resources, such as bitmaps and strings,
restored on disk in an executable file called an assembly, typically with an extension of
.exe or .dll. The CLR also provides other services related to automatic garbage
collection, exception handling, and resource management. Code that is executed by the
CLR is sometimes referred to as "managed code," in contrast to "unmanaged code"
which is compiled into native machine language that targets a specific system. The
following diagram illustrates the compile-time and run-time relationships of C# source
code files, the.NET Framework class libraries, assemblies, and the CLR. Language
interoperability is a key feature of the.NET Framework. Because the IL code produced
by the C# compiler conforms to the Common Type Specification (CTS), IL code
generated from C# can interact with code that was generated from the.NET versions of
Visual Basic, Visual C++, or any of more than 20 other CTS compliant languages. A
single assembly may contain multiple modules written in different .NET languages, and
the See also types can reference each other just as if they were written in the same
language.
4.2 Overview of SQL
SQL is a language to operate databases; it includes database creation, deletion, fetching
rows, modifying rows, etc. SQL is an ANSI (American National Standards Institute)
standard language, but there are many different versions of the SQL language.
What is SQL?
22
SQL is Structured Query Language, which is a computer language for storing,
manipulating and retrieving data stored in a relational database.
SQL is the standard language for Relational Database System. All the Relational
Database Management Systems (RDMS) like MySQL, MS Access, Oracle, Sybase,
Informix, Postgres and SQL Server use SQL as their standard database language.
Also, they are using different dialects, such as −
MS SQL Server using T-SQL,
Oracle using PL/SQL,
MS Access version of SQL is called JET SQL (native format) etc.
Why SQL?SQL is widely popular because it offers the following advantages :
Allows users to access data in the relational database management systems.
Allows users to describe the data.
Allows users to define the data in a database and manipulate that data.
Allows embedding within other languages using SQL modules, libraries & pre-
compilers.
Allows users to create and drop databases and tables.
Allows users to create view, stored procedure, functions in a database.
23
CHAPTER 5
ImportsSystem.Data.SqlClient
PublicClassForm1
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet PrivateSub Label2_Click(ByVal sender AsSystem.Object, ByVal
e AsSystem.EventArgs) Handles Label2.Click
EndSub
PrivateSub LinkLabel2_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel2.LinkClicked
Me.Hide()
Form3.Show()
EndSub
PrivateSub LinkLabel1_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form2.Show()
EndSub
PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) Handles Button1.Click
com.CommandText = "select *from ADMIN "
rd = com.ExecuteReader()
Dim a, b AsString
Dim x AsInteger
a = TextBox1.Text
24
b = TextBox2.Text
x=7
Whilerd.Read
If a = rd.GetString(0) And b = rd.GetString(1) Then
Me.Hide()
Form4.Show()
x=0
EndIf
EndWhile
If x <> 0 Then
MsgBox("authentication failed")
EndIf
rd.Close()
TextBox2.Text = ""
TextBox1.Text = ""
EndSub
PrivateSub Form1_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=N:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm1
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
25
PrivateSub Label2_Click(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) Handles Label2.Click
EndSub
PrivateSub LinkLabel2_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel2.LinkClicked
Me.Hide()
Form3.Show()
EndSub
PrivateSub LinkLabel1_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form2.Show()
EndSub
PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) Handles Button1.Click
com.CommandText = "select *from ADMIN "
rd = com.ExecuteReader()
Dim a, b AsString
Dim x AsInteger
a = TextBox1.Text
b = TextBox2.Text
x=7
Whilerd.Read
If a = rd.GetString(0) And b = rd.GetString(1) Then
Me.Hide()
Form4.Show()
x=0
EndIf
EndWhile
If x <> 0 Then
MsgBox("authentication failed")
26
EndIf
rd.Close()
TextBox2.Text = ""
TextBox1.Text = ""
EndSub
PrivateSub Form1_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=N:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm12
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub Form12_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
'TODO: This line of code loads data into the 'Database1DataSet18.ATT' table. You can
move, or remove it, as needed.
Me.ATTTableAdapter.Fill(Me.Database1DataSet18.ATT)
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
27
com.Connection = con
EndSub
PrivateSub DataGridView1_CellContentClick(sender AsSystem.Object, e
AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
Dim a, f, a1, a3 AsString
' Dim a2 As Date
a = DataGridView1.CurrentRow.Cells(0).Value.ToString()
f = DataGridView1.CurrentRow.Cells(1).Value.ToString()
a1 = DataGridView1.CurrentRow.Cells(2).Value.ToString()
' a2 =
a3 = DataGridView1.CurrentRow.Cells(4).Value.ToString()
28
com.CommandText = "select *from ATT where ID='"& TextBox1.Text &"'"rd =
com.ExecuteReader()
Dim a AsInteger
a=0
Whilerd.Read
Ifrd.GetString(4) = "p"Then
a=a+1
EndIf
EndWhile
MsgBox(a * 100)
rd.Close()
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm11
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub Form11_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
'TODO: This line of code loads data into the 'Database1DataSet17.EMP' table. You can
move, or remove it, as needed.
Me.EMPTableAdapter.Fill(Me.Database1DataSet17.EMP)
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
29
EndSub
PrivateSub Button1_Click_1(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
com.CommandText = "insert into EMP values('"& TextBox1.Text &"','"&
TextBox2.Text &"','"& TextBox3.Text &"','"&CDbl(TextBox4.Text) &"','"&
Val(TextBox5.Text) &"','"& TextBox6.Text &"','"& TextBox7.Text &"','"&
TextBox8.Text &"')"
com.ExecuteNonQuery()
MsgBox("inserted")
EndSub
PrivateSub Button2_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button2.Click
com.CommandText = "update EMP set NAME='"& TextBox2.Text &"',[D.O.B]='"&
TextBox3.Text &"',SALARY='"&CDbl(TextBox4.Text) &"',EXP='"&
Val(TextBox5.Text) &"',DEPT='"& TextBox6.Text &"', MOB='"& TextBox7.Text &"',
ADDRESS='"& TextBox3.Text &"' where ID='"& TextBox1.Text &"'"
com.ExecuteNonQuery()
MsgBox("updated")
EndSub
PrivateSub Button3_Click_1(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button3.Click
com.CommandText = "delete from EMP where ID='"& TextBox1.Text &"'"
com.ExecuteNonQuery()
MsgBox("deleted")
EndSub
PrivateSub Button4_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button4.Click
com.CommandText = " select *from EMP "
ad.SelectCommand = com
ad.Fill(ds, "EMP")
DataGridView1.DataSource = ds.Tables("EMP")
ImportsSystem.Data.SqlClient
PublicClassForm3
30
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub Button1_Click(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) Handles Button1.Click
com.CommandText = "select *from ADMIN "
rd = com.ExecuteReader()
Dim a, b AsString
Dim x AsInteger
a = TextBox1.Text
b = TextBox2.Text
x=7
Whilerd.Read
If a = rd.GetString(0) And b = rd.GetString(1) Then
MsgBox("FDFD")
rd.Close()
com.CommandText = "update ADMIN set USERNAME='"& TextBox3.Text
&"',PASSWORD='"& TextBox4.Text &"' where USERNAME='"& TextBox1.Text &"'
"
com.ExecuteNonQuery()
com.CommandText = "select *from ADMIN "
rd = com.ExecuteReader()
MsgBox("FDFD")
x=0
Me.Hide()
Form1.Show()
EndIf
EndWhile
If x <> 0 Then
MsgBox("failed")
31
EndIf
EndSub
PrivateSub LinkLabel1_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form1.Show()
EndSub
PrivateSub Label4_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Label4.Click
EndSub
PrivateSub Form3_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm4
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub Form4_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
32
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
PrivateSub Button5_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button5.Click
Me.Hide()
Form1.Show()
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
If RadioButton1.Checked Then
Me.Hide()
Form5.Show()
EndIf
If RadioButton3.Checked Then
Me.Hide()
Form7.Show()
EndIf
If RadioButton2.Checked Then
Me.Hide()
Form8.Show()
EndIf
If RadioButton4.Checked Then
Me.Hide()
Form9.Show()
EndIf
If RadioButton5.Checked Then
Me.Hide()
Form10.Show()
33
EndIf
If RadioButton6.Checked Then
Me.Hide()
Form11.Show()
EndIf
EndSub
PrivateSub RadioButton6_CheckedChanged(sender AsSystem.Object, e
AsSystem.EventArgs) Handles RadioButton6.CheckedChanged
EndSub
EndClass
EndSub
PrivateSub Button5_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button5.Click
Me.Hide()
Form12.Show()
EndSub
PrivateSub Button6_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button6.Click
Me.Hide()
Form4.Show()
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm10
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim da AsNewSqlDataAdapter
Dim ds AsNewDataSet
Dim P AsString
PrivateSub Label1_Click(sender AsSystem.Object, e AsSystem.EventArgs)
EndSub
34
PrivateSub TextBox2_TextChanged(sender AsSystem.Object, e AsSystem.EventArgs)
Handles TextBox2.TextChanged
EndSub
PrivateSub Label1_Click_1(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Label1.Click
EndSub
PrivateSub LinkLabel1_LinkClicked(sender AsSystem.Object, e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form4.Show()
EndSub
PrivateSub Form10_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
'TODO: This line of code loads data into the 'Database1DataSet14.PROFILE' table. You
can move, or remove it, as needed.
Me.PROFILETableAdapter.Fill(Me.Database1DataSet14.PROFILE)
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
PrivateSub Button3_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button3.Click
rd.Close()
com.CommandText = "delete from PROFILE where ID='"& TextBox2.Text &"' "
com.ExecuteNonQuery()
MsgBox("DELETED")
Me.Controls.Clear()
InitializeComponent()
35
com.CommandText = " select *from PROFILE "
da.SelectCommand = com
da.Fill(ds, "PROFILE")
DataGridView1.DataSource = ds.Tables("PROFILE")
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
Dim Q AsDate
com.CommandText = "select *from CD"
rd = com.ExecuteReader
Whilerd.Read
Q = rd.GetDateTime(1)
' MsgBox(Q)
If Q <System.DateTime.NowThen
MsgBox(rd.GetString(0))
P = rd.GetString(0)
EndIf
EndWhile
rd.Close()
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm5
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub Button2_Click(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) Handles Button2.Click
Me.Hide()
Form6.Show()
36
EndSub
PrivateSub LinkLabel1_LinkClicked(ByVal sender AsSystem.Object, ByVal
eAsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form4.Show()
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
com.CommandText = "select *from PROFILE"
rd = com.ExecuteReader()
' Dim a As String
Dim b AsInteger
Whilerd.Read
If TextBox5.Text = rd.GetString(4) Then
b=1
EndIf
EndWhile
If b = 1 Then
MsgBox("room already booked")
Else
rd.Close()
com.CommandText = "insert into PROFILE values('"& TextBox1.Text &"' ,'"&
TextBox2.Text &"' ,'"& TextBox3.Text &"' ,'"& TextBox4.Text &"' , '"& TextBox5.Text
&"','"& RichTextBox1.Text &"' ,'"& TextBox6.Text &"' ,'"& TextBox7.Text &"' ) "
com.ExecuteNonQuery()
com.CommandText = "insert into CD values('"& TextBox2.Text &"'
,'"&Date.Parse(TextBox8.Text) &"' )"
com.ExecuteNonQuery()
MsgBox("CHECKIN SUCCESSFULL")
EndIf
ImportsSystem.Data.SqlClient
PublicClassForm6
37
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim da AsNewSqlDataAdapter
Dim ds AsNewDataSet
PrivateSub LinkLabel1_LinkClicked(ByVal sender AsSystem.Object, ByVal e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form5.Show()
EndSub
PrivateSub Form6_Load(ByVal sender AsSystem.Object, ByVal e
AsSystem.EventArgs) HandlesMyBase.Load
'TODO: This line of code loads data into the 'Database1DataSet12.PROFILE' table. You
can move, or remove it, as needed.
Me.PROFILETableAdapter4.Fill(Me.Database1DataSet12.PROFILE)
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
Me.Controls.Clear()
InitializeComponent()
com.CommandText = " select *from PROFILE "
da.SelectCommand = com
da.Fill(ds, "PROFILE")
DataGridView1.DataSource = ds.Tables("PROFILE")
EndSub
38
EndClass
rd.Close()
EndSub
PrivateSub Form5_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
PrivateSub Button3_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button3.Click
com.CommandText = "delete from PROFILE where ID='"& TextBox2.Text &"' "
com.ExecuteNonQuery()
MsgBox("CHECKOUT SUCCESSFULL")
EndSub
PrivateSub TextBox1_TextChanged(sender AsSystem.Object, e AsSystem.EventArgs)
Handles TextBox1.TextChanged
EndSub
EndClass
ImportsSystem.Data.SqlClient
PublicClassForm7
Dim con AsNewSqlConnection
Dim com AsNewSqlCommand
DimcommAsNewSqlCommand
DimrdAsSqlDataReader
Dim ad AsNewSqlDataAdapter
Dim ds AsNewDataSet
Dim j, h, w, c AsInteger
Dim a AsString
39
PrivateSub Form7_Load(sender AsSystem.Object, e AsSystem.EventArgs)
HandlesMyBase.Load
con.ConnectionString() = "Data
Source=.\SQLEXPRESS;AttachDbFilename=F:\vignesh\vicky\MY SOFT\PRO\PRO 2
MOD IMP\WindowsApplication1\WindowsApplication1\Database1.mdf;Integrated
Security=True;User Instance=True"
con.Open()
com.Connection = con
EndSub
PrivateSub LinkLabel1_LinkClicked(sender AsSystem.Object, e
AsSystem.Windows.Forms.LinkLabelLinkClickedEventArgs) Handles
LinkLabel1.LinkClicked
Me.Hide()
Form4.Show()
EndSub
PrivateSub Button3_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button3.Click
IfVal(TextBox1.Text) > 0 And Val(TextBox3.Text) > 0 Then
Dim t AsString
Dim z AsDouble
t=0
For i AsInteger = 0 To DataGridView1.RowCount - 1
t = t + DataGridView1.Rows(i).Cells(4).Value
Next
TextBox2.Text = t
z = Val(TextBox3.Text) - t
MsgBox("BALANCE'"& z &"' ")
Else
MsgBox("ENTER BILL NO OR AMT RECIVED")
EndIf
EndSub
40
PrivateSub DataGridView1_CellContentClick(sender AsSystem.Object, e
AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handles
DataGridView1.CellContentClick
Dim a, f AsString
Dim d, q1, q2, z1 AsInteger
Dim z, g, prAsDouble
Dim c, b AsDate
a = DataGridView1.CurrentRow.Cells(1).Value.ToString()
f = DataGridView1.CurrentRow.Cells(3).Value.ToString()
d = Val(f)
com.CommandText = "select *from ITEM "
rd = com.ExecuteReader()
Whilerd.Read
If a = rd.GetString(0) Then
g = rd.GetFloat(1)
MsgBox(g)
z=d*g
EndIf
DataGridView1.CurrentRow.Cells(4).Value = z
DataGridView1.CurrentRow.Cells(2).Value = g
EndWhile
rd.Close()
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
PrintPreviewDialog1.Document = PrintDocument1
PrintPreviewDialog1.ShowDialog()
EndSub
PrivateSub PrintDocument1_PrintPage(sender AsSystem.Object, e
AsSystem.Drawing.Printing.PrintPageEventArgs) Handles PrintDocument1.PrintPage
w = 200
h = 100
j=0
41
While j < DataGridView1.Rows.Count - 1
e.Graphics.DrawString(Me.DataGridView1.Rows(j).Cells(0).Value.ToString,
SystemFonts.DefaultFont, Brushes.Black, h,
e.Graphics.DrawString(Me.DataGridView1.Rows(j).Cells(1).Value.ToString,
SystemFonts.DefaultFont, Brushes.Black, h + 50, w)
e.Graphics.DrawString(Me.DataGridView1.Rows(j).Cells(2).Value.ToString,
SystemFonts.DefaultFont, Brushes.Black, h + 250, w)
e.Graphics.DrawString(Me.DataGridView1.Rows(j).Cells(3).Value.ToString,
SystemFonts.DefaultFont, Brushes.Black, h + 390, w)
e.Graphics.DrawString(Me.DataGridView1.Rows(j).Cells(4).Value.ToString,
SystemFonts.DefaultFont, Brushes.Black, h + 550, w)
j += 1
w += 60
EndWhile
EndSub
EndClass
TYPES OF TESTING
Testing is the process of trying to discover every conceivable fault or weakness in
a work product. The different type of testing are given below:
Unit testing involves the design of test cases that validate that the internal program
logic is functioning properly, and that program inputs produce valid outputs. All decision
42
branches and internal code flow should be validated. It is the testing of individual
software units of the application .it is done after the completion of an individual unit
before integration.
43
Business process flows; data fields, predefined processes, and successive processes must
be considered for testing. Before functional testing is complete, additional tests are
identified and the effective value of current tests is determined.
44
CHAPTER 6
SAMPLE RESULTS
45
46
47
48
49
50
CHAPTER 7
CONCLUSION
Here the need for tablet food ordering is analyzed and its advantages over the
traditional food ordering system in restaurants are studied. The proposed online
restaurant management system is time saving and error free as compared to the
traditional system. This system attracts customers and also adds the efficiency of
maintaining the restaurant’s ordering and billing. Hence it is the modern way to grow up
the business using E-commerce. Here implementation of an advanced e-restaurant menu
ordering system using smart android mobile phone. This system entirely reduces the
unnecessary time. Every order is associated with an individual seat at the table, and
orders are built one customer at a time, just like on paper, but with greater accuracy.
Items can also easily be shared by the whole table, moved or modified, and noted and the
cost can be calculated in real time. The idea of the advanced e-restaurant can also be
extended for future using GPRS module. GPRS module can be used to monitor and
request of the menu order from table will be directly sent to the predefined web link for
process of even billing the items purchased.
51
CHAPTER 8
FUTURE ENHANCEMENT
52
REFERENCES
Referred Books
[1] Mayur Jain,” Smart Home System Using Android Mobile Devices”, Journal of
Computing Technologies Vol 2, Issue 3 ISSN 2278 – 3814.
[2] IEEE std. 802.15.4 - 2003: “Wireless Medium Access Control (MAC) and Physical
Layer (PHY) specifications for Low Rate Wireless Personal Area Networks
(LRWPANs)”
Referred websites
[1] www.w3school.com
[2] www.webcheatsheet.com/home.aspx
53
54