Académique Documents
Professionnel Documents
Culture Documents
INTRODUCTION
1.INTRODUCTION
The “Restaurant management system” includes the record of all the details in computerized
form. Our software has a facility to store all the details of every item which is present in a
restaurant and store the data in a database. It is very easy to use and it have a facility of encryption
and decryption. A people who are authorized for this they can only read and write in it otherwise
unauthorized person cannot access it. So this software provides user more flexible and give more
efficiency to the user. This software can easily support in all the environment platform such as
windows (XP,7,8,8.1,10). It helps to store all the data and information on a database so that it ca
easily retrieved at the time of requirement and work as an evidence when the quarrel occurred on
a restaurant. Authorize person have only right to access this software. If unauthorized person wants
to access this software, then they must have to know the password of the login. It provides up-to-
date facility. Similarly, backup facility is also available.
1.1 OBJECTIVES
The main objectives of developing such a computerization system is to reduce the paper work and
save time in restaurant. This software also provides us the information about staff, admin and client
details of restaurant. The system must provide the flexibility of generating the required document
on screen as well as printer as when required.
1.2 SCOPE
Storing the client and employee record in restaurant.
Pick up the man for job opportunity.
Visiting place for the client.
Restaurant management security guard.
1.3 TECHNOLOGY
It is fully desktop software and the technology used in this software are given below: -
Database design(sqlserver)
Coding(VB.net)
Form design (Microsoft visual studio)
1.4 Features
This software helps to reduce effort in restaurant.
It also helps to save time.
It is very easy to use.
It increases the throughput of the restaurant.
It gives fast response to the user.
It also provides the information of the employee.
The person who have a basic concept in English and computer can easily
access this software.
It is very accurate and reliable.
SYSTEM ANALYSIS
2.SYSTEM ANALYSIS
2.1 Goal: -
The main goal of this software is to save time and increases the efficiency of the work which helps
in decision making of the restaurant. Similarly, the data which is provided by the user in this
software is stored in data stores and the retrieval is much easier for the user. So, it is more easiest
and corrective.
Database(sqlserver)
Programming language(VB.net)
Operating system (Any windows OS)
SYSTEM DESIGN
3.SYSTEM DIAGRAM
Start
Check
User No Display error
Name
message
&
Password
Yes
Stop
Start
check all
No
the data is Display Error
filled
yes
Stop
Start
check the No
master code
is valid Display Error
yes
Stop
Start
Display error
check all the No
message
data is right
yes
Stop
Start
check all
No
the box if Display Error
full
yes
Stop
Start
check the No
user name & Display Error
password
yes
Change password
Stop
Start
yes
Stop
Start
yes
Stop
Start
check order No
status is Display Error
occupied
yes
Stop
Start
yes
Prepare a bill
Stop
Order_Items
Table_Master
Order_Details
Employee_Details
Change_Password
Order_Items Remaining_items
Create_Account
Login_History
3.4 ER DIAGRAM
Admin
Employee_details
Feedback
Item_details
Cancellation
Feedback
Feedback
Restaurant
Managemen
t System Feedback
Report
Order_items
Feedback
Feedback
Feedback
Table_details
Billing
Feedback
Employee
2.Add new
1.Login
menu
System
Feedback
Username
password
New price
User details 3.Change
5.Create
new account
Feedback
Admin Feedback
menu
price
New information
Feedback
4.Change
information
Authentication Login
1.Login Restaurant
system management
System
Logout
Check Username
Feedback
and password
Username and
password
Login
Admin
Item_details
Master_detail Feedback
Admin
Fig 17. DFD Level 1.2: Function Process: Add new menu
Feedback
New price
Menu_details
Admin
Fig 18. DFD Level 1.3: Function Process: Change menu price
Feedback
New Information
Employee_detail
Admin
Users_information
Feedback
New account
Admin
Fig 20. DFD Level 1.5: Function Process: Create new account
Feedback
Current password
New password
Username
Change password
Admin
1.Order
Item name
Quantity
Feedback
Table id
Menu items
3.Report
Employee
Feedback
Billing information
Feedback
2.Order
details
Accept order
1.Order
Feedback
Feedback
Item name
quantity
Table id
Order_item
Admin
Create bill
2.Order details
Feedback
Feedback
Billing Information
Order_details
Admin
Prepare report
3.Report
Report information
Feedback
Feedback
Report
Admin
3.7 Form
Welcome Form
Login Form
Menuitem Form
Table_ Master
Master_ Details
Employee_ Details
Change_ Password
Remaining_ Items
Login History
Order_ Items
Order_ Details
CODING
4. Coding
1.Login Code
Imports System.Data.SqlClient
Public Class LoginForm
Private Sub OK_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles
Login.Click
Dim Con As New SqlConnection
Dim Cmd As New SqlCommand
Dim Username As String
Dim password As String
Dim userType As String
Try
Con.ConnectionString = "Data Source=localhost; Initial Catalog=RMS; Integrated
Security=True"
Con.Open()
Cmd.Connection = Con
Cmd.CommandText = "Select UserName, Password, Type From Login where(UserName='" &
UsernameTextBox.Text & "')And(Password='" & PasswordTextBox.Text & "')And(Type='" &
ComboBox1.Text & "')"
Dim lrd As SqlDataReader = Cmd.ExecuteReader()
If ComboBox1.Text = "Admin" Then
If lrd.HasRows Then
While lrd.Read()
Username = lrd("UserName").ToString
password = lrd("Password").ToString
userType = lrd("Type").ToString
If Username = UsernameTextBox.Text And password = PasswordTextBox.Text And userType =
ComboBox1.Text Then
MessageBox.Show("Login Suf....." & Username, "", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Adminmenu.Show()
Me.Hide()
PasswordTextBox.Text = " "
UsernameTextBox.Text = " "
ComboBox1.Text = " "
End If
End While
Else
MessageBox.Show("Username and password do not match ......", "AuthenticationFailure",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PasswordTextBox.Text = " "
UsernameTextBox.Text = " "
ComboBox1.Text = " "
End If
Else
If lrd.HasRows Then
While lrd.Read()
Username = lrd("UserName").ToString
password = lrd("Password").ToString
userType = lrd("Type").ToString
If Username = UsernameTextBox.Text And password = PasswordTextBox.Text And userType =
ComboBox1.Text Then
MessageBox.Show("Login Suf....." & Username, "", MessageBoxButtons.OK,
MessageBoxIcon.Information)
Employeemenu.Show()
Me.Hide()
PasswordTextBox.Text = " "
UsernameTextBox.Text = " "
ComboBox1.Text = " "
End If
End While
Else
MessageBox.Show("Username and password do not match ......", "AuthenticationFailure",
MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
PasswordTextBox.Text = " "
UsernameTextBox.Text = " "
ComboBox1.Text = " "
End If
End If
Catch ex As Exception
MessageBox.Show("Error while connecting to SQL Server." & ex.Message)
Finally
Con.Close()
End Try
End Sub
2. Insert
Private Sub btnSave_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnSave.Click
Dim Con As New SqlConnection
Dim Cmd As New SqlCommand
Try
Con.ConnectionString = "Data Source=localhost; Initial Catalog=RMS; Integrated
Security=True"
Con.Open()
Cmd.Connection = Con
Cmd.CommandText="insert into
Employee_Details(EmpId,EmpName,WorkType,Address,MobileNo,Salary,EmailId) values ('" &
txtempId.Text & "','" & txtempName.Text & "','" & CmbworkType.Text & "','" & TxtAddress.Text & "','"
& txtmobileNo.Text & "','" & txtSalary.Text & "','" & txtemailId.Text & "')"
msg = Cmd.ExecuteNonQuery()
If msg = 1 Then
MessageBox.Show("Record inserted successfully", "Process Complete",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("Failed to insert record")
End If
Catch ex As Exception
MessageBox.Show("Error while connecting to SQL Server." & ex.Message)
End Try
Con.Close()
End Sub
3.Update
Private Sub btnUpdate_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnUpdate.Click
Dim Con As New SqlConnection
Dim Cmd As New SqlCommand
Try
Con.ConnectionString = "Data Source=localhost; Initial Catalog=RMS; Integrated
Security=True"
Con.Open()
Cmd.Connection = Con
Cmd.CommandText = "update Employee_Details set EmpId='" & txtempId.Text & "',
EmpName='" & txtempName.Text & "', WorkType='" & CmbworkType.Text & "', Address='" &
TxtAddress.Text & "', MobileNo='" & txtmobileNo.Text & "',Salary='" & txtSalary.Text & "',
EmailId='" & txtemailId.Text & "' where EmpId='" & txtSearchempid.Text & "'"
msg = Cmd.ExecuteNonQuery()
If msg = 1 Then
MessageBox.Show("Record UPDATED successfully", "Process Complete",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("Failed to UPDATE record")
End If
Catch ex As Exception
MessageBox.Show("Error while connecting to SQL Server." & ex.Message)
End Try
Con.Close()
End Sub
4.Delete
Private Sub btnDelete_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnDelete.Click
Dim Con As New SqlConnection
Dim Cmd As New SqlCommand
Try
Con.ConnectionString = "Data Source=localhost; Initial Catalog=RMS; Integrated
Security=True"
Con.Open()
Cmd.Connection = Con
Cmd.CommandText = "Delete from Employee_Details where EmpId='" & txtempId.Text
& "' "
msg = Cmd.ExecuteNonQuery()
If msg = 1 Then
MessageBox.Show("Record Deleted successfully", "Process Complete",
MessageBoxButtons.OK, MessageBoxIcon.Information)
Else
MessageBox.Show("Failed to Deleted record")
End If
Catch ex As Exception
MessageBox.Show("Error while connecting to SQL Server." & ex.Message)
End Try
Con.Close()
End sub
5.Search/Display
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles Button1.Click
Dim Con As New SqlConnection
Dim Cmd As New SqlCommand
Dim Empid As String
Dim Empname As String
Dim Worktype As String
Dim Address As String
Dim mobileno As String
Dim Salary As String
Dim Emailid As String
Try
Con.ConnectionString = "Data Source=localhost; Initial Catalog=RMS; Integrated
Security=True"
Con.Open()
Cmd.Connection = Con
Cmd.CommandText = "Select
EmpId,EmpName,WorkType,Address,MobileNo,Salary,EmailID From Employee_Details where
EmpId='" & txtSearchempid.Text & "' "
Dim lrd As SqlDataReader = Cmd.ExecuteReader()
If lrd.HasRows Then
While lrd.Read()
Empid = lrd("EmpId").ToString
Empname = lrd("EmpName").ToString
Worktype = lrd("WorkType").ToString
Address = lrd("Address").ToString
mobileno = lrd("MobileNo").ToString
Salary = lrd("Salary").ToString
Emailid = lrd("EmailId").ToString
End While
End If
txtempId.Text = empId.ToString()
txtempName.Text = Empname.ToString()
CmbworkType.Text() = Worktype.ToString()
TxtAddress.Text() = Address.ToString()
txtmobileNo.Text() = mobileno.ToString()
txtSalary().Text() = Salary.ToString()
txtemailId.Text() = Emailid.ToString()
Catch ex As Exception
End Try
Con.Close()
End Sub
6.Add
Private Sub btnAdd_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnAdd.Click
txtempId.Text() = ""
txtempName.Text = ""
CmbworkType.Text() = ""
TxtAddress.Text() = ""
txtmobileNo.Text() = ""
txtSalary.Text() = ""
txtemailId.Text() = ""
End Sub
7.Cancel
Private Sub btnCancel_Click(ByVal sender As System.Object, ByVal e As System.EventArgs)
Handles btnCancel.Click
Me.Close()
End Sub
8.Progressbar
Private Sub Adminmenu_Load(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles MyBase.Load
ProgressBar1.Maximum = 100
ProgressBar1.Value = 100
Timer1.Interval = 1000 ' = 1 second
Timer1.Enabled = True
End Sub
CONCLUSION &
REFERENCE