Surekha 9343801689
Surekha 9343801689
Surekha 9343801689
A PROJECT REPORT
ON
“CAFETERIA MANAGEMENT SYSTEM”
-
RNS FIRST GRADE COLLEGE
Channasandra, Bengaluru -560098
CERTIFICATE
1)...........................
2)...........................
ACKNOWLEDGEMENT
We express my gratitude to our Vice Principal Prof. Shilpa Sarnad for her continuous
support and assistance during the course of my project.
We wish to reciprocate in full measure the kindness shown by Prof. Ravi K, Head of the
Department who inspired us with his valuable suggestions in successfully completing the
project work.
Finally, We would like to express my sincere thanks to my parents and my friends for the
useful tips and moral support.
CAFETERIA MANAGEMENT SYSTEM
Table of Contents
Chapter 1 Introduction
1.1 Existing System...................................................................................................................2
1.2 Proposed System................................................................................................................2
Chapter 5 ER Diagram
5.1 ER Diagram...........................................................................................................................10
Chapter 7 Database
7.1 LoginTable..................................................................................................................................15
7.2 EmployeeTable...........................................................................................................................15
7.3 CustomerTable...........................................................................................................................15
7.4 ManageitemTable......................................................................................................................16
7.5 OrderTable................................................................................................................................16
Chapter 9 Testing
9.1 Unit Testing................................................................................................................23
Chapter 10 Validation
10.1 Software Verification...............................................................................................27
Chapter 12 Conclusion..................................................................................................45
Bibliography............................................................................................................46
PROJECT CATEGORY:
SCOPE:
As this is generic software it can be used by a wide variety of outlets (managers and
customers) to automate the process of manually maintain the record related to the subject of
maintain the transaction flows
GOAL:
The main goal of the application is to maintain the records of stock, billing. details of
purchases and sales and their current financial positions with the company
PROJECT CATEGORY:
SCOPE:
As this is generic software it can be used by a wide variety of outlets (managers and
customers) to automate the process of manually maintain the record related to the subject of
maintain the transaction flows
GOAL:
The main goal of the application is to maintain the records of stock, billing. details of
purchases and sales and their current financial positions with the company
USER FRIENDLY:
The proposed system is user friendly because the retrieval and storing of data is fast and
data is maintained efficiently. Moreover, the graphical user interface is provided in the
proposed system, which provides user to deal with the system very easily
CHAPTER 2
SYSTEM REQUIREMENTS:
CHAPTER 3
SOFTWARE COMPONENTS:
3.1 INTRODUCTION TO VISUAL BASIC NET (VB.NET) :
Visual Basic Net is an object-oriented computer programming language
implemented on the Net framework. Although it is an evolution of classic Visual Basic
language, it is not back words-compatible with VB6, and any code written in the old version
does not compile under VB.Net.
Like all other Net languages, VB.Net has complete support for object-oriented concepts
Everything in VB .Net is an object and all objects inherits from the base class object
VB Net is implemented by Microsoft's NET framework. Therefore, it has full access to all
the libraries in the Net framework. It's also possible to run VB Net programs on mono, the
open-source alternative to NET, not only under windows, but even Linux or Mac OSX The
following reasons make VB.Net a widely used professional language
▪ Modern, general purpose.
▪ object oriented.
▪ Component oriented.
▪ Easy to learn.
▪ Structured language.
▪ It produces efficient programs.
▪ It can be compiled on a variety of computer platforms.
▪ Part of NET Framework.
NET FRAMEWORK:
The .Net Framework is a revolutionary platform that helps you to write the following types of
applications:
▪ Windows application.
▪ Web applications.
▪ Web services.
The Net Framework applications are multi-platform applications. The framework has been
designed in such a way that it can be used from any of the following languages Visual Basic,
cl, C++, Jscript, and COBAL etc. All these languages can access the framework as well as
communicate with each other. The .NET Framework consists of an enormous library of codes
used by the client language like VB.Net. These languages use object-oriented methodology.
Following are some of the components of the Net Framework:
▪ Common Language Runtime (CLR)
▪ The Net Framework class library
▪ Common language specification
▪ Common Type System
▪ Metadata and assemblies
▪ Windows Forms
▪ ASP Net and ASP Net AJAX
▪ ADO Net
▪ Windows workflow Foundation (WF) • Windows Presentation Foundation
▪ Windows Communication Foundation (WCF)
▪ LINO
INTEGRATED DEVELOPMENT ENVIRONMENT (IDE) FOR VB.NET
Microsoft provides the following development tools for VB.Net programming
▪ Visual Studio 2010(VB)
▪ Visual Basic 2010 Express (VBE)
▪ Visual Web Developer
The last two are free using these tools, you can write all kinds of VB Net programs from
simple command-line applications to more complex applications Visual Basis express and
Visual Web Developer Express edition are trimmed down versions of Visual Studio and has
the same look and feel they retain most features of Visual Studio.
In addition, IDE is also responsible for coordinating and enabling communication between
services All editors, designers project types and other tools are implemented as packages .
retrieving data. Requested by other applications, which may run either on the same computer
or on other computer across a network (Including the internet).
FEATURES OF MS SQL SERVER:
▪ Transparent data Encryption. The ability to encrypt an entire database
▪ Backup encryption Executed at backup time to prevent tampering
▪ External key management Storing keys separate from the data
▪ Auditing Monitoring of data access
▪ Data compression fact table size reduction and improved performance
▪ Resource governor Restrict users or groups from consuming high levels or
resource
▪ Hot plug CPU. Add CPUs on the fly
▪ Performance studio Collection of performance monitoring tools
▪ Installation improvements. Disk images and service pack uninstall packs.
Dynamic development new ADO and Visual studio options as well as dot net
▪ Entity data services. Lines of services (LOB) framework and entity query
language (eSQL).
▪ Data synchronizing. Development of frequently disconnected applications
▪ Large UDT. No size restriction on UDT.
▪ Dates and times. New data types, date, time, date and time off set.
▪ File stream. New data type varbinary (Max) file stream for managing the
binary data
▪ Table value parameters. The ability to pass an entire table to a stored
procedure.
▪ Spatial data. Data type for storing latitude, longitude and GPS entities
▪ SQL Server Integration service. Improved multiprocessor support and faster.
lookups
▪ SQL Server analysis server. Stack improvements, faster, faster block
computations.
▪ SQL Server Reporting server. Improved memory management and better
rendering
CHAPTER 4
FEASIBILITY STUDY
4.1 ECONOMICALLY FEASIBILITY:
The system being developed is economic with respect to School or Collage's point of
view. It is cost effective in the sense that has eliminated the paper work completely.
The system is also time effective because the calculations are automated which are made at
the end of the month or as per the user requirement. The result obtained contains minimum
errors and are highly accurate as the data is required.
CHAPTER 5
5.1 ER DIAGRAM:
Employee Employee
Gender Name
Employee Employee
Phone No DOB
Employee Employee
Address ID
Employee Details
Employee Entry
Employee
Employee
Education
Position
Contact Number
Item Price
Address Customer Name Item Num
Customer
LOGIN
Manages
Order Num Total
Cust Name
Price
Figure 5.1
DEPT OF COMPUTER APPLICATIONS-RNSFGC PAGE 20
CAFETERIA MANAGEMENT SYSTEM
5.2 DATAFLOW:
A graphical tool used to describe and analysis the movement of data through a system
is called data flow diagram. Data flow diagram is the central basis, from which other
components are developed, the transformation of data from input to output, through process,
may be described logically and independent of the physical components associated with the
system.
The DFD is also known as a Data flow, Graph or a bubble chart.
Types of Data Flow Diagram:
1. Physical DFD
2. Logical DFD
1. Physical DFD:
Structure analysis states that current system should first understand correctly. The
physical DFD is the model of current system and is used to ensure that system has been
clearly understood. Physical DFD's shows actual devices, departments and people etc.
2. Logical DFD:
Logical DFD are the model of proposed system. They clearly should show the
requirement non which the new system should be built. Later during the design activity this
taken has basis for drawing the system structure charts.
DATAFLOW DIAGRAM:
INVALID
Employee
LIST
Details
Manage
ITEM
Items
CUSTOMER Customer
Place the
PLACE THE
Order
ORDER
ORDER View
TABLE Order
Figure 5.2
CHAPTER 6
6.1 SDLC DIAGRAM
Software Development Life Cycle
Figure 6.1
PHASES:
1.Planning:
In this phase, we assist whether or not a project should be undertaken. This stage involves
defining the problem and fixing up its boundaries. At the end of this stage, the design and
development team become clear with the project objectives and their work preview.
2.Analysis:
In this stage, the requirements are studied and analysed. The technical development team
works with customers and system end users to identify the application domain, functions,
services performance capabilities, hardware constraints related to the system to be developed.
3.Design:
In this phase, a new system is designed according to the needs of the user. It is the phase
which find a solution for the given problem. This is the phase where the specification of each
and every component of the project are considered.
4.Implementation:
this is the phase where the system is actually developed. The whole of design phase is built
and implemented in this phase.
5.Testing and Integration:
this is most important phase where the system is judged for all its worth. the system is tested
under all kinds of adverse situations and environment to test its performance, reliability and
robustness. During this phase entire project functionality is tested with all of its units
integrated as a whole and then the system is tested with test data. During this phase the
developed system is reviewed against each and every customer requirement specification.
The developed system should be able to address all of user's needs and its functionality .
6.Maintenance:
This is the phase wherein the development team maintains. the system for the client. It
includes adding enhancements, improvements, updates to the newer versions and not just
correction of errors and emergency fixes of a systems break down.
CHAPTER 7
DATABASE:
7.1 LoginTable:-
Column Name Data Types
username varchar(50)
password varchar(50)
7.2 EmployeeTable:-
Column Name Data Types
empid varchar(50)
empname varchar(50)
empgd varchar(50)
empph varchar(50)
empadd varchar(50)
emppos varchar(50)
empedu varchar(50)
empdob datetime
7.3 CustomerTable:-
Column Name Data Types
CustomerID int
CustomerName nvarchar(50)
ContactNumber nvarchar(50)
Address nvarchar(50)
EmailID nvarchar(50)
7.4 ManageitemTable:-
Column Name Data Types
itemnum varchar(50)
itemname varchar(50)
itemtype varchar(50)
itemprice varchar(50)
7.5 OrderTable:-
8.1 Splashcreen
Figure8.1
Figure8.2
Figure8.3
Figure 8.4
Figure8.5
8.6 Employee Entry Form
Figure 8.6
Figure 8.7
8.8 Manage Items Form
Figure 8.8
Figure8.9
Figure8.10
Figure8.11
CHAPTER 9
TESTING:
Unit testing, a testing technique using which individual modules are tested to
determine if there are any issues by the developer himself. It is concerned with
functional correctness of the standalone modules. The main aim is to isolate
each unit of the system to identify, analyze and fix the defects.
▪ Black Box Testing - Using which the user interface, input and output are
tested.
▪ White Box Testing - used to test each one of those functions’ behavior is
tested
This method of test can be applied to each and every level of software testing
such as unit integration, system and acceptance testing.
Advantages:
CHAPTER 10
VALIDATION:
Validation is process of examining whether or not the software satisfies the user
requirements. It is carried out at the end of the SDLC. If the software matches
requirements for which it was made, it is validated.
▪ Validation ensures the product under development is as per the user
requirements.
▪ Validation answers the question - "Are we developing the product which
attempts that entire user needs from this software?"
▪ Validation emphasizes on user requirements.
SOFTWARE VERIFICATION:
Verification is the process of confirming if the software is meeting the business
requirements, and is developed adhering to the proper specifications and
methodologies.
▪ Verification ensures the product being developed is according to design
specifications.
▪ Verification answers the question- "Are we developing this product by
firmly following all design specifications?"
▪ Verifications concentrate on the design and system specifications.
Targets of the test are:
▪ Errors-These are actual coding mistakes made by developers. In addition,
there is a difference in output of software and desired output, is
considered as an error.
▪ Fault-When error exists fault occurs. A fault, also known as a bug, is a
result of an error which can cause system to fail.
▪ Failure-Failure is said to be the inability of the system to perform the
desired task. Failure occurs when fault exists in the system.
VALIDATION TESTING:
The process of evaluating software during the development process or at the end
of the development process to determine whether it satisfies specified business
requirements. Validation Testing ensures that the product actually meets the
client's needs. It can also be defined as to demonstrate that the product fulfills
its intended use when deployed on appropriate.
CHAPTER 11
End Sub
End Class
11.2 LOGIN CODE
Imports System.Data
Imports System.Data.SqlClient
Public Class login
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
Dim con As SqlConnection = New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=loginform;Integrated
Security=True")
Dim cmd As SqlCommand = New SqlCommand("select * from login
where username='" + txtuser.Text + "' and password ='" +
txtpass.Text + "'", con)
Dim sda As SqlDataAdapter = New SqlDataAdapter(cmd)
Dim dt As DataTable = New DataTable()
sda.Fill(dt)
If (dt.Rows.Count > 0) Then
con.Open()
cmd.ExecuteNonQuery()
MessageBox.Show("login successful")
con.Close()
mdi.Show()
Me.Close()
Else
MessageBox.Show("error", "information ",
MessageBoxButtons.OK, MessageBoxIcon.Error)
End If
End Sub
Imports System.Net
Imports System.Net.Mail
Public Class sendcode
Dim randomCode As String
Public Shared toUser As String
Catch ex As Exception
MessageBox.Show(ex.Message)
End Try
End Sub
End Class
Imports System.Data
Imports System.Data.SqlClient
Public Class reset
Dim username As String = sendcode.toUser
End Sub
Imports System.Data.SqlClient
Imports System.Data
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles empdelete.Click
If empid.Text = "" Then
MsgBox("select the employee to delete")
Else
Try
con.Open()
End Try
End If
End Sub
Imports System.Data.SqlClient
Imports System.Data
Public Class details
Dim con As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=employee;Integrated
Security=True")
Private Sub FetchEmployeeData()
If empid.Text = "" Then
MsgBox("enter the employee id")
Else
con.Open()
Dim Query = "select * from list where empid=" &
empid.Text & ""
Dim cmd As SqlCommand
cmd = New SqlCommand(Query, con)
Dim dt As DataTable
dt = New DataTable
Dim sda As SqlDataAdapter
sda = New SqlDataAdapter(cmd)
sda.Fill(dt)
For Each dr As DataRow In dt.Rows
empnamelbl.Text = dr(1).ToString()
empgdlbl.Text = dr(2).ToString()
empphlbl.Text = dr(3).ToString()
empaddlbl.Text = dr(4).ToString()
empposlbl.Text = dr(5).ToString()
empedlbl.Text = dr(6).ToString()
empdoblbl.Text = dr(7).ToString()
empnamelbl.Visible = True
empgdlbl.Visible = True
empphlbl.Visible = True
empaddlbl.Visible = True
empposlbl.Visible = True
empedlbl.Visible = True
empdoblbl.Visible = True
Next
con.Close()
End If
End Sub
End Sub
empid.Text = ""
empnamelbl.Text = ""
empgdlbl.Text = ""
empphlbl.Text = ""
empaddlbl.Text = ""
empposlbl.Text = ""
empedlbl.Text = ""
empdoblbl.Text = ""
End Sub
Imports System.Data
Imports System.Data.SqlClient
Public Class customer
Dim con As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial
Catalog=custdetails;Integrated Security=True")
Private Sub populate()
con.Open()
Dim sql = "select * from customer "
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(sql, con)
Dim builder As SqlCommandBuilder = New
SqlCommandBuilder(adapter)
Dim ds As DataSet = New DataSet
adapter.Fill(ds)
custdv.DataSource = ds.Tables(0)
con.Close()
End Sub
Private Sub customer_Load(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles MyBase.Load
populate()
End Sub
End Sub
Try
con.Open()
Dim query As String
query = "delete from customer where CustomerID=" &
CustomerID.Text & ""
Dim cmd As SqlCommand = New SqlCommand(query, con)
cmd.ExecuteNonQuery()
MsgBox("customer deleted successfully")
con.Close()
populate()
clear()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
End Sub
clear()
End Sub
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Public Class manageitems
Dim con As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=manageitem;Integrated
Security=True")
Private Sub populate()
con.Open()
Dim sql = "select * from item "
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(sql, con)
Dim builder As SqlCommandBuilder = New
SqlCommandBuilder(adapter)
Dim ds As DataSet = New DataSet
adapter.Fill(ds)
itemgv.DataSource = ds.Tables(0)
con.Close()
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles Button1.Click
con.Open()
Dim Query As String
Query = "insert into item values('" & itemnum.Text & "','" &
itemname.Text & "','" & itemtype.SelectedItem.ToString & "','" &
itemprice.Text & "')"
Dim cmd As SqlCommand = New SqlCommand(Query, con)
cmd.ExecuteNonQuery()
MsgBox("item added")
con.Close()
populate()
clear()
End Sub
Try
con.Open()
Dim query As String
query = "delete from item where itemnum =" &
itemnum.Text & ""
Dim cmd As SqlCommand = New SqlCommand(query, con)
cmd.ExecuteNonQuery()
MsgBox("item deleted successfully")
con.Close()
populate()
clear()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
End Sub
End Class
Imports System.Data.SqlClient
Imports System.Data
Public Class placetheorder
Dim con As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=manageitem;Integrated
Security=True")
Dim conn As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=order;Integrated
Security=True")
Dim con1 As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial
Catalog=custdetails;Integrated Security=True")
Private Sub populate()
con.Open()
Dim sql = "select * from item "
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(sql, con)
Dim builder As SqlCommandBuilder = New
SqlCommandBuilder(adapter)
Dim ds As DataSet = New DataSet
adapter.Fill(ds)
itemgv.DataSource = ds.Tables(0)
con.Close()
End Sub
Private Sub filterbycategory()
con.Open()
End Sub
End Sub
End Sub
End Sub
e.Graphics.DrawString(ordersgv.Rows(row).Cells(2).Value.ToString +
vbTab + ordersgv.Rows(row).Cells(4).Value.ToString + vbTab +
ordersgv.Rows(row).Cells(5).Value.ToString, f10, Brushes.Black, 140,
440 + height)
Next
e.Graphics.DrawString("-------------------------------------
--------------------------------", New Font("arial", 20),
Brushes.Black, 140, 550)
e.Graphics.DrawString("Total :" + orderamt.Text, New
Font("century gothic", 22), Brushes.Black, 600, 600)
e.Graphics.DrawString("THANK YOU FOR VISITING ", New
Font("century gothic", 22), Brushes.Black, 200, 650)
End Sub
Imports System.Data
Imports System.Data.SqlClient
Public Class vieworder
Dim conn As New SqlConnection("Data
Source=SUREKHAYADAV\SQLEXPRESS;Initial Catalog=order;Integrated
Security=True")
Private Sub populate()
conn.Open()
Dim sql = "select * from ordertable "
Dim adapter As SqlDataAdapter
adapter = New SqlDataAdapter(sql, conn)
Dim builder As SqlCommandBuilder = New
SqlCommandBuilder(adapter)
Dim ds As DataSet = New DataSet
adapter.Fill(ds)
ordersgv.DataSource = ds.Tables(0)
conn.Close()
End Sub
Try
conn.Open()
Dim query As String
query = "delete from ordertable where ordernum=" &
ordernum.Text & ""
Dim cmd As SqlCommand = New SqlCommand(query, conn)
cmd.ExecuteNonQuery()
MsgBox("order deleted successfully")
conn.Close()
populate()
Catch ex As Exception
MsgBox(ex.Message)
End Try
End If
End Sub
End Sub
CHAPTER 12
CONCLUSION
With the customer’s ever increasing busy schedules, many times he may even
forget to place an order on time. Our system would allow the customer to place
order automatically with Cash on delivery, allowing him to not worry about it.
In a work environment with always a time crunch, people don’t even think
about eating food, let alone consider their nutrition requirements. Our system
tries to make the task from placing an order to receiving it comparatively easier,
and eating the same healthier.
FUTURE ENHANCEMENTS
With the customer’s ever increasing busy schedules, many times he may even
forget to place an order on time. Our system would allow the customer to place
order automatically with Cash on delivery, allowing him to not worry about it.
In a work environment with always a time crunch, people don’t even think
about eating food, let alone consider their nutrition requirements. Our system
tries to make the task from placing an order to receiving it comparatively easier,
and eating the same healthier.
CHAPTER 13
BIBILOGRAPHY
1. The complete Reference Visual Basic.NET
WEBSITES
1. www.microsoft.com
2. www.w3schools.com
3. www.dotnetspider.com