Sei sulla pagina 1di 54

CHAPTER 1

INTRODUCTION

1.1 ABOUT THE ORGANIZATION

Sana Software Services Private Limited is a global information technology


company that provides one stops IT solution for Software Development, Testing and
Training services. We bring value innovation and growth to our client business. Our
Prime focus is on embedded system development and application testing. Sana Software
possesses deep business and technical expertise on a variety of custom packed and fully
managed solutions. The premier level signifies a long term and strategic relationship for
IBM business partners who have invested high levels of resources in IBM Technologies.
Sana Software provides certified software experts to deliver consulting services and
training on all software technologies. We are expertise engineers especially in various
IBM Rational software products. We are established to focus on software services,
trainings, resource deployment, and consultancy.
VISION
Our single-minded passion is to dedicate our global technology and innovation
know-how, our industry expertise and worldwide resources to working together with
clients to make their businesses stronger and our team focuses mainly on enhancing the
productivity as well as maximizing utilization of our client's resources and to bring about
a quantum change in the client's business.
Sana Software Services Private Limited provides software products with latest
technologies to meet the current market needs.
MISSION
Sana Software Services Private Limited work in hand-in-hand with IBM to stay on
top of new technologies that benefit our prospects. This partnership unite IBM's break
through products with the decades of experience. Sana software can help you get a clear
view of your IBM estate by simplifying your historic IBM purchases and providing
visibility of what you now own and use. Our full range of IBM products and services
build on this intelligence to provide you and your teams with expert advice on your road
map decisions, renewal policies, contract build, negotiations and ongoing management.

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

SYSTEM STUDY AND ANALYSIS

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.

2.2 PROBLEM DEFINITION

In traditional booking system, a customer has to go to restaurant or make a phone


call in order to get his meal reserved. Today, restaurant waiter takes the customer
ordering by manual system. With this system online, ordering and reservation
management will become easier and systematic to replace traditional system where are
still using, this system is applicable any time and where also customer. Many people
have experienced going to a restaurant where the service is poor and there is a lack of
attention from the wait staff. To leverage the growing mobile industry, the online
restaurant proffers solution.

2.3 EXISTING SYSTEM


Nowadays, many restaurants manage their business by manual especially take
customer ordering. Today, restaurant waiter takes the customer ordering by manual
system with using paper. This is problem for restaurant waiter the probability lost and
duplicates customer information. Additionally, it would affect to reputation restaurant in
operate management of ordering. Besides, the restaurant waiter information also by

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

2.4 PROPOSED SYSTEM


We propose to build a software project that can efficiently handle and manage
various activities of a restaurant and all these activities will be happening under the
supervision of the administrator. The businesses in restaurants are now growing
constantly. At the same time, the need for managing its operations and tasks arises. The
best way to optimize these activities is growing the business online as well. Today's
generation encourages high-tech services especially over the Internet.
2.4.1 Merits of Proposed System

 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.

2.5 MODULE DESCRIPTION

2.5.1 Admin Module


The project has admin login that controls all the online activities in the system.
Admin can check and verify various member details. He can even approve or disapprove
table booking requests.

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.

2.5.5 Check Status

The user can check status of his order i.e. whether the order is being approved
by the admin.

2.6 SYSTEM REQUIREMENT SPECIFICATION


2.6.1 Software Requirements Specification

Front-End : Visual Studio


Back end : PHP, SQL server
Operating System : Windows 7
IDE : Visual Studio
2.6.2 Hardware Requirements Specifications

Processor : Intel® Pentium® CPU A1018 @2.10GHz 2.10 GHz

RAM : 4GB

Hard Disk : 160 GB

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.

Three key considerations involved in the feasibility analysis are

 Economical feasibility
 Technical feasibility
 Social feasibility

2.7.1 Economical 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.

2.7.2 Technical Feasibility

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.

2.7.3 Social Feasibility

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

SYSTEM ARCHITECTURE AND DESIGNS

3.1 INTRODUCTION

System design is the process of defining the architecture, components, modules,


interfaces, and data for a system to satisfy requirements. Systems design could be seen as
the application of system theory to product development. There is some overlap with the
disciplines of system analysis and system architecture.

3.2 SYSTEM ARCHITECTURE

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

A data-flow diagram (DFD) is a way of representing a flow of a data of a process or a


system (usually an information system) The DFD also provides information about the
outputs and inputs of each entity and the process itself. A data-flow diagram has no
control flow, there are no decision rules and no loops. Specific operations based on the
data can be represented by a flowchart.

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

Food Item Group Details Order


Restaurant
Food Item &Menu Rate Management Customer Details
System
Sales Bill Details

Sales Details Payment Details Employee Details

Payment Collection Order Details


Admin Employee
Food Payment

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.

3.4.1 Use case diagram

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

Activity diagrams are graphical representations of workflows of stepwise


activities and actions with support for choice, iteration and concurrency. In the Unified
Modeling Language, activity diagrams are intended to model both computational and
organizational processes (i.e., workflows), as well as the data flows intersecting with the
related activities.

Login

Check user level


and permissions

check
permissions

Manager Customer Order Payment


Food Items
Details

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.

Manager Customer Chef Food Items Table Bill


1:Request Table
2: check for table

4: return status
3: return status

5: book table
6: return
7: orders()
8: Makes()

9: return
10: delivery()
11: generate bill[]

13: paybill() 12: return bill

14: return summary 16: Return


15: Table Feedback()

17: Report

Figure 3.4.4

15
3.4.5 Collaboration diagram

Collaboration diagrams convey the same information as sequence diagrams, but


focus on object roles instead of the times that messages are sent. In a sequence diagram,
object roles are the vertices and messages are the connecting links.

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

In Unified Modeling Language (UML), a component diagram depicts


how components are wired together to form larger components or software systems.
They are used to illustrate the structure of arbitrarily complex systems.

manager customer order food items

payment employee
details

FIGURE 3.4.6

17
3.5 TABLE DESIGN

3.5.1 Admin Table

Field Name Data Type Constraints Description


User Name Varchar(10) Primary key User Name
Password Varchar(10) Not Null Password
Active Boolean Default 1 True(1) or False(0)

3.5.2 User Account Table

Field Name Data Type Constraints Description


User Name Varchar(10) Primary key User Name
Password Varchar(10) Not Null Password
Account No Int(10) Primary Key Account No

Address Varchar(100) Not Null Address


Contact No Int(10) Not Null Contact No
Active Boolean Default 1 True(1) or False(0)

3.5.3 Customer Table

Field Name Data Type Constraints Description


Customer Id Numeric(5,0) Primary Key Id of the customer
Name Varchar(10) Not null Customer Name
Address Varchar(20) Not null Address

Area Varchar(30) Not null Customer Area


City Varchar(10) Not null Customer City
Contact No Varchar(30) Contact No of the
Customer
Pincode Varchar(10) Not null Customer City
Pincode
Email Id Varchar(20) Customer Email Id

18
3.5.4 Food Item Table

Field Name Data Type Constraints Description


FoodItem_Id Numeric(5,0) Primary Key Food Item Id

FoodItem_Name Varchar(20) Not null Food Item Name

Category_Id Numeric(5,0) Not null Category_Id


Spicy Varchar(30) Not null High/Medium/Small
Offers Varchar(10) Not null Offers

Rate Numeric(2) Not null Rate

3.5.5 Restaurant Booking Table

Field Name Data Type Constraints Description


Booking _Id Numeric(5,0) Primary Key Booking Id
Customer_Id Numeric(5,0) Primary Key Customer Id
Booking_Date Date Not null Date of the Booking
Booking_Time Time Not null Time

Price Not null

3.5.6 Employee Table

Field Name Data Type Constraints Description


Emp_Id Numeric(2,0) Primary Key Id of the Employee
Name Varchar(10) Not null Name of the Emp
Designation Varchar(20) Not null Emp Designation
Work_Type Varchar(30) Not null Emp Work
Address Varchar(10) Emp Address
Area Varchar(30) Not null Emp Area
State Varchar(10) Not null Emp State
Contact No Varchar(20) Emp Contact no
Salary Numeric(3,0) Not null Emp Salary

19
3.5.7 Sales Billing Table

Field Name Data Type Constraints Description


Sales Bill No Numeric(5,0) Primary Key Sales bill Id
Sales Bill Date Varchar(15) Not null Date
Order_Id DateTime Foreign Key Id of the order
Customer_Id Numeric(6,0) Foreign Key Id of the customer
Amount Numeric(4,0) Not null Total amt
Tax Numeric(3,0) Not null Tax
Discount Numeric(5,0) Not null Discount
Net _Amount Numeric(2,0) Not null Net amt

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

SYSTEM IMPLEMENTATION AND TESTING

5.1 SAMPLE CODING

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()

com.CommandText = "insert into ATT (ID,NAME,DEPT,DATE,ATTENDENCE)


values ('"& a &"','"& f &"','"& a1
&"','"&CDate(DataGridView1.CurrentRow.Cells(3).Value.ToString()) &"','"& a3 &"')"
com.ExecuteNonQuery()
MsgBox("success")
EndSub
PrivateSub Button1_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button1.Click
Me.Hide()
Form11.Show()
EndSub
PrivateSub Button3_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button3.Click
com.CommandText = "delete from ATT where ID='"& TextBox1.Text &"'"
com.ExecuteNonQuery()
MsgBox("deleted")
EndSub
PrivateSub Button2_Click(sender AsSystem.Object, e AsSystem.EventArgs) Handles
Button2.Click

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

5.2 SOFTWARE TESTING

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to
check the functionality of components, sub assemblies, assemblies and/or a finished
product It is the process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific
testing requirement.

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:

5.2.1 Unit Testing

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.

This is a structural testing, that relies on knowledge of its construction and is


invasive. Unit tests perform basic tests at component level and test a specific business
process, application, and/or system configuration. Unit tests ensure that each unique path
of a business process performs accurately to the documented specifications and contains
clearly defined inputs and expected results.

5.2.2 Integration Testing

Integration tests are designed to test integrated software components to


determine if they actually run as one program. Testing is event driven and is more
concerned with the basic outcome of screens or fields. Integration tests demonstrate that
although the components were individually satisfaction, as shown by successfully unit
testing, the combination of components is correct and consistent. Integration testing is
specifically aimed at exposing the problems that arise from the combination of
components.

5.2.3 Functional Testing


Functional tests provide systematic demonstrations that functions tested are
available as specified by the business and technical requirements, system documentation,
and user manuals.
Functional testing is centered on the following items:

Valid Input : identified classes of valid input must be accepted.


Invalid Input : identified classes of invalid input must be rejected.
Functions : identified functions must be exercised.
Output : identified classes of application outputs must be
exercised.
Systems/ Procedures: interfacing systems or procedures must be invoked.

Organization and preparation of functional tests is focused on requirements, key


functions, or special test cases. In addition, systematic coverage pertaining to identify

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.

5.2.4 System Testing


System testing ensures that the entire integrated software system meets requirements.
It tests a configuration to ensure known and predictable results. An example of system
testing is the configuration oriented system integration test. System testing is based on
process descriptions and flows, emphasizing pre-driven process links and integration
points.

5.2.5 White Box Testing


White Box Testing is a testing in which in which the software tester has knowledge
of the inner workings, structure and language of the software, or at least its purpose. It is
purpose. It is used to test areas that cannot be reached from a black box level.

5.2.6 Black Box Testing


Black Box Testing is testing the software without any knowledge of the inner workings,
structure or language of the module being tested. Black box tests, as most other kinds of
tests, must be written from a definitive source document, such as specification or
requirements document, such as specification or requirements document. It is a testing in
which the software under test is treated, as a black box .you cannot “see” into it. The test
provides inputs and responds to outputs without considering how the software works.

5.3 SYSTEM MAINTENANCE

The purpose of testing is to discover errors. Testing is the process of trying to


discover every conceivable fault or weakness in a work product. It provides a way to
check the functionality of components, sub-assemblies, assemblies and/or a finished
product it is the process of exercising software with the intent of ensuring that the
Software system meets its requirements and user expectations and does not fail in an
unacceptable manner. There are various types of test. Each test type addresses a specific
testing requirement.

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

In future Automated Restaurant Management System will work as a link


between man machine to provide optimum quick and effective and almost effortless
services to the hotel and hospitality industry. It is a low power system which will not
only reduce man power required but also reduce the possibility of human errors. It is cost
effective as it involves one time investment. The maintenance cost will be considerably
low as compared to the salary of the waiters. Automated Restaurant Management System
will revolutionize the hotel industry.

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)”

[3] KiumiAkingbehin,Akinsola Akingbehin.,“Alternativ es for Short Range Low


PowerWireless Communications,” IEEE.2005: 94 - 95.

[4] QIN Tinghao, DOU Xiaoqian, “Application of ZigBee Technology in Wireless


Sensor Network,” Instrumentation Technology, 2007, pp.57-59.

[5] A.R.Al-Ali and M. AL-Rousan. “Java-Based Home Automation System”. IEEE


Transaction on Consumer Electronics, Vol.50, No. 2, May 2004.

Referred websites

[1] www.w3school.com

[2] www.webcheatsheet.com/home.aspx

[3] www.pragimtech.com/php/connect mysql database

53
54

Potrebbero piacerti anche