You are on page 1of 31

Canteen Management

System Design Document

Prepared by
Abhishek Santosh Raut
Adarsh Devendra Khedekar
Akshay Kiran Godase
Darshan Satish Gawali

DEPARTMENT OF INFORMATION TECHNOLOGY


DR. BABASAHEB AMBEDKAR TECHNOLOGICAL
UNIVERSITY,
LONERE-402103
(2022-2023)

1
PREFACE

This document is Software Design Document for our project named as


Canteen Management. In this document, system module will be docu-
mented clearly.

2
Contents

1 INTRODUCTION 6
1.1 Purpose . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.2 Scope . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
1.3 Definitions, Acronyms & Abbreviations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7

2 System Overview 8

3 System Components 9
3.1 Module Decomposition . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.2 User Authetication Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.3 Sign in . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
3.4 Sign Up . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.5 Change Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.6 Forgotten Password . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 10
3.7 Searching Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.8 Search Employee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 11
3.9 Search Customer . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.10 Employee Management Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
3.11 Delete Employee . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.12 Modify Employee Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.13 List Employees . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
3.14 Contact to Supplier Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.15 Search Supplier . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
3.16 Send E-Mail . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.17 Announcements Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
3.18 Add Announcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.19 Delete Announcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.20 Modify Announcement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
3.21 Canteen Management Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
3.22 Add Food Information . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17

4 Module Detailed Design 18


4.1 Login Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.2 Register Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 18
4.3 Messaging Module . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.4 Data Detailed Design . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
4.5 ER-Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 21
4.6 Class Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.7 Interface Codes and Images . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.7.1 Main Page Interface Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
4.7.2 Interface Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
4.7.3 Login Page Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
4.7.4 Login Page Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
4.7.5 Content code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 27
4.7.6 Content Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28

3
4.7.7 Cart Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
4.7.8 Cart Image . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

4
List of Figures

4.1 User Registration Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19


4.2 User Registration Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.3 User Registration Info . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
4.4 ER-Diagram . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 22
4.5 Class-Diagram of Canteen Management . . . . . . . . . . . . . . . . . . . . . . . . . 23

5
Chapter 1

INTRODUCTION

1.1 Purpose
The purpose of Software Design Document is to identify what
need to design or coded this software which is specified in SRS. In this
document, brief information of Canteen Management will be given.

1.2 Scope
In this document, the detailed description of Canteen Manage-
ment will be given. Our Canteen Management system project will have a
web interface.

In the web interface, there are 3 types of user and which are:
• Administration
• Staff
• User
Each user type will have a different authorization to access to the sys-
tem.

6
1.3 Definitions, Acronyms & Abbreviations

DB Database
FP Function Points
HTML Hypertext Markup Language
HW Hardware
IDE Integrated Development Environment
I/O Input / Output
LOC Line Of Code
PS Problem Statement
RAM Random Access Memory
SDD Software Design Description
SPS Student Portal System
py Python
SRS Software Requirements Specification
SW Software

7
Chapter 2

System Overview

A canteen facility is a supplementary system that is provided by the uni-


versity for their employees. Many employees in an organization use canteen
services as they do not have the means to prepare their own food or are
unable to get it.

In a university with large numbers of students cannot handle a canteen


with manual processes. They need a centralized canteen management sys-
tem that promotes efficient operations to cover a large -organizational work-
force.

Canteen management system is a web-based project, which helps the cus-


tomers (students of university), Canteen staff, and Canteen owners. Now a
day’s lot of university students face many canteen-related problems.

Our website gives detailed information about which of the foods or prod-
ucts are available at that time, students also can able to order the products.

8
Chapter 3

System Components

3.1 Module Decomposition

The way followed while making module decomposition is to divide the sys-
tem into modules so that the operations are done under each module will
be higly related with each other, but they are not so much related with
other operations in other modules. Taking this into consideration, Canteen
management system project’s main services are as follows;

3.2 User Authetication Module

Identification: User Authentication Module


Type: Application
Purpose: This Module provide user to register and authenticate user.
Function: User enables to register to system and log in. Also this module
provide changing password and help user if they forgot their password.
Subordinates:
- Sing in
- Log in
- Changed Password
- Forgotten Password

3.3 Sign in

Identification: Sign in
Type: Process
Purpose: Provides user to get their authorization level which is recorded
in corresponding cell of the user table.

9
Function: A user enters their required information (e-mail, password) to
the web form. If those information match with a row of the user table, user
gets their authorization level.
Subordinates:
- None

3.4 Sign Up

Identification: Sign up
Type: Process
Purpose: Provides a registration process to user, if user information is not
recorded to the user table.
Funtion: A visitor fills the registration form and click on the Complete
Registration button. If every information given is correct, user’s informa-
tion is recorded to user table and user get the “customer”status by default.
For other employee is defined by the administrator in their panel manually.

3.5 Change Password

Identification: Change Password


Type: Process
Purpose: To make user able to change their passwords. Funtion: User
enters their old password and new password. New password replaces with
the old password if it is correct.
Subordinates:
-None

3.6 Forgotten Password

Identification: Forgotten Password


Type: Process
Purpose: By this module, user can get their fogotten password.
Funtion: User sends a request to the system that denotes they have forgot-
ten their password. System sends them an e-mail including their password.
Subordinates:

10
-None

3.7 Searching Module

Identification: Searching Module


Type: Application
Purpose: It allows user to searching infomration, data in the system.
Function:
Subordinates:
-Searching Module(Administrator)
-Search Room
-Search Employee
-Search Customer

3.8 Search Employee

Identification: Search Employee


Type: Process
Purpose: Provides administrator to search employee by type, name, etc.

11
Funtion: Administrator specifies how the search will be done, all suitable
employee information are listed.
Subordinates:
-None

3.9 Search Customer

Identification: Search Customer


Type: Process
Purpose: Provides administrator to search customer by name and SSN.
Funtion: Administrator specifies how the search data, all suitable customer
information are listed.
Subordinates:

-None

3.10 Employee Management Module

Identification: Employee Management Module


Type: Application
Purpose: Employee management module provides recording all user infor-
mation except from customer.
Function: Adding, deleting and modifying employee information.
Subordinates:
- Delete Employee
- Modify Employee Information
- List Employees

12
3.11 Delete Employee

Identification: Delete Employee


Type: Process
Purpose: Provides administrator to delete an employee.
Funtion: When an employee is fired or quit, administrator clicks on “Delete
employee” button and employee is deleted from user table.
Subordinates:
- None

3.12 Modify Employee Information

Identification: Modify Employee Information


Type: Process
Purpose: Provides administrator to modify an employee’s information.
Funtion: When it is required, administrator clicks on “Modify” button and
makes the necessary changes.
Subordinates:
- None

3.13 List Employees

Identification: List Employees


Type: Process
Purpose: Provides administrator to list all the employees according to
given interval.
Funtion: Administrator clicks on “List” button and specifies the listing
property. All the suitable employee information are listed.
Subordinates:

13
- None

3.14 Contact to Supplier Module

Identification: Contact to Supplier Module


Type : Application
Purpose: Administrator can control Supplier relation in side of order.
Function: This module provides contact to supplier, sending email and
order.
Subordinates:
- Search Supplier
- Send E-Mail

3.15 Search Supplier

Identification: Search Supplier


Type: Process
Purpose: Provides administrator to search suppliers.

14
Funtion: Administrator clicks on “Search” button and specifies the wanted
supplier properties. All the suitable suppliers are listed.
Subordinates:
- None

3.16 Send E-Mail

Identification: Send E-Mail


Type: Process
Purpose: Provides administrator to send an e-mail to supplier.
Funtion: Administrator clicks on e-mail link in the supplier information,
clicks on “Send” button.
Subordinates:- None

3.17 Announcements Module

Identification: Announcement Module


Type: Application
Purpose: This module provides giving information about events.
Function: Administator enable to add, delete or change announcement.
Subordinates:
- Add Announcement

15
- Delete Announcement
- Modify Announcement

3.18 Add Announcement

Identification: Add Announcement


Type: Process
Purpose: Provides administrator to add a new announcement.
Funtion: Administrator clicks on “Add new Announcement” button,enters
the announcement information and clicks on “Done” button.
Subordinates:
- None

3.19 Delete Announcement

Identification: Delete Announcement


Type: Process
Purpose: Provides administrator to delete an announcement.
Funtion: Administrator clicks on “Delete” button, and deletes the an-
nouncement.
Subordinates:
- None

3.20 Modify Announcement

Identification: Modify Announcement


Type: Process
Purpose: Provides administrator to modify an announcement.
Funtion: Administrator clicks on “Modify” button, makes the necessary
changes, clicks on “Done” button.
Subordinates:

16
- None

3.21 Canteen Management Module

Identification: Canteen Management Module


Type: Application
Purpose: This module provides information about food.
Function: Staff enables to add food information.
Subordinates: Add information food

3.22 Add Food Information

Identification: Add Food Information


Type: Process
Purpose: Provides the charged staff to add food menu information.
Funtion: Staff clicks on “Add” button, fills the fields and clicks on “Done”
button.
Subordinates:
- None

17
Chapter 4

Module Detailed Design

4.1 Login Module

• Method Name: Login


• Description: allows users to enter the system
• Share Type: public
• Return Type: Boolean
• Parameters: username, password, image verification

4.2 Register Module

• Method Name: Registration


• Description: registers a new user to the system
• Share Type: public
• Return Type: boolean
• Parameters: firstName, lastName, password, email, birthDate, gender,
country, city.

18
4.3 Messaging Module

• Method Name: adding an announcement


• Description: allows users to add announcements
• Share Type: public
• Return Type: Boolean
• Parameters: login information, payment Status

4.4 Data Detailed Design

• Table Name: user registration info


• This table holds the user’s registration information.

Figure 4.1: User Registration Info

19
• Table Name: User General Info
• This table holds the user’s general information.

Figure 4.2: User Registration Info

• This table holds information about announcements.

Figure 4.3: User Registration Info

20
4.5 ER-Diagram

• An ER Diagram of the canteen management system is shown below.


An entity Relationship Diagram (ER Diagram), often known as ERD,
is a diagram that depicts the relationship between entity sets contained
in a database. In other words, ER diagrams aid in the explanation of
database logical structure.

Entities, attributes, and relationships are the three main elements around
which ER diagrams are built. ER Diagrams employ a variety of symbols,
including rectangles to represent entities, ovals to describe characteris-
tics, and diamond shapes to show connections.

At first glance, an ER diagram appears to be a flowchart. However, the


ER Diagram incorporates numerous specific symbols, and the semantics
of these symbols distinguish this model. The ER Diagram’s goal is to
depict the entity framework infrastructure.

21
Figure 4.4: ER-Diagram

4.6 Class Diagram

22
Figure 4.5: Class-Diagram of Canteen Management

4.7 Interface Codes and Images


4.7.1 Main Page Interface Code

23
4.7.2 Interface Image

24
4.7.3 Login Page Code

25
4.7.4 Login Page Image

26
4.7.5 Content code

27
4.7.6 Content Image

28
4.7.7 Cart Code

29
4.7.8 Cart Image

30
31

You might also like