Air Force Canteen Management System
Air Force Canteen Management System
Air Force Canteen Management System
Project Detail:-
CONTROL NO : 178
ENROLMENT NO : 158659654
PROGRAMME : BCA
NAME OF THE LEARNER : AMAN KUMAR
EVALUATOR CODE : R29-E13
DATE OF VIVA-VOCE : 17/05/19
TITLE OF THE PROJECT REPORT :
AIR FORC CANTEEN MANAGEMENT SYSTEM
1
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Synopsis
2
AIR FORCE CANTEEN MANAGEMENT SYSTEM
2. INTRODUCTION
Canteen Management System (CMS) also Known as Canteen Stores Department
(CSD) has been in the service of the Defence Services for more than five decades.
CMS provides its consumers, all over the country, quality products of daily use at
rates less than those prevailing in the market. These items are meant for sale to
troops, ex-servicemen and their families. So in present context it is necessary for the
management to have a computerized management & control system for manage
the resources as accurately as possible also to increase the facilities to the users. The
Management by itself does not come in direct or daily contact with its customers.
Only Managers/In-Charges (ICs) interact with the CMS Area Depots. It is,
therefore, necessary that these persons must really be aware of what their
customers' need. Needless to say, the Department continues to be scrutinized every
day by the customers for availability, rates and range of the products.
Provide consumer goods of high quality to the troops wherever they are at
prices cheaper than the prevailing market rates, as far as possible.
Ensure that the level of consumer/customer satisfaction is maintained at the
maximum.
Generate reasonable profitability to sustain the organization, permit growth
and provide additional facilities for troops and their families.
Formulate and execute development programmes to improve and maintain
organizational effectiveness.
Periodically analyze and assess the diverse long-term needs and aspirations
of Defence Services and undertake timely measures to meet them.
In this paper, we present the development of an application for CMS to benefit the
Canteen administration and staff for better decision making process, resulting in
providing better facilities and products to customers.
3
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The Software would benefit the CMS by reducing the Workforce & tasks of
maintaining the database & creation and generation of Bills, Report &
Summary & updating the information.
The project aims to reduce time spent in performing the various jobs in CMS,
as manual work will take a lot of time.
The onetime cost of the system will be high, but then the running cost of the
system would be much lower than the cost in Current System as it will
reduce manpower & thus reducing salary payments.
The System has to become Centralized so that Canteen Manager can control
& manage any of the System through its Centralized System. Air Force
Canteens are also Centralized state wise. As in Delhi the main depot of
Canteen is in Delhi Cantt. from where all other branches of Canteen in Delhi
are connected through this Centralized System.
4
AIR FORCE CANTEEN MANAGEMENT SYSTEM
4. PROJECT CATEGORY
This project aims to provide the improved functionality and better User Interactive
Environment. In this software information is handled by using MySQL for storing
records in a database, as backend and Java with NetBeans is used as front end.
5
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Software and hardware specification as the name suggests, tells us about the
various characteristics of the software and the hardware environment used i.e. the
development environment used. Here we specify various software languages,
supporting tools that have been used for the development of the system. These
tools and the languages have been used because of their relative ease of understand
and personal interest of the team developing the project.
TOOLS :
PLATFORM :
WINDOWS 98 / WINDOWS XP
RAM : 512 MB
STORAGE CAPACITY : 20 GB
DRIVES : 52X CD
SOFTWARE REQUIREMENT :
RDBMS : MySQL
6
AIR FORCE CANTEEN MANAGEMENT SYSTEM
1. JAVA NETBEANS
Here, I build Canteen Management System (CMS) using Java NetBeans because
Java is Platform Independent and a Open Product which is freely available to all.
NetBeans consist of RAD tools which enable the programmer to create applications
in shorter time as compared to conventional Language.
With NetBeans IDE, we can develop applications by just creating frames, dragging
and dropping controls on to frames, setting properties for various things, adding
some application-specific code to handle events. Java offers more security to make
its programs safe and secure.
2. MySQL
MySQL is the world's most popular open source database software, with over 100
million copies of its software downloaded or distributed throughout it's history.
With its superior speed, reliability, and ease of use, MySQL has become the
preferred choice for Web, Web 2.0, SaaS, ISV, Telecom companies and forward-
thinking corporate IT Managers because it eliminates the major problems
7
AIR FORCE CANTEEN MANAGEMENT SYSTEM
6. PROBLEM DEFINITION
The system is error prone due to high portability of mistakes in manual work.
Modify the details of the Customer, Items etc. is a large procedure & may
lead to chaos.
Analysis on data & access to databases is tedious task & large work force is
required.
8
AIR FORCE CANTEEN MANAGEMENT SYSTEM
7. REQUIREMENT SPECIFICATIONS
Before the FAST meeting, each FAST attendee is asked to make a List of Objects,
List of services, List of Constraints, Performance Criteria.
List of Services
Interact with Customer.
Issue Canteen Card to Customer.
Check the availability of items in the Database.
Sale the Items to different Customers and Update Database
Information.
Generate Bill for the Customer.
Generate Canteen Summary and Report for the Organization.
9
AIR FORCE CANTEEN MANAGEMENT SYSTEM
List of Constraints
List of Validations
The Customer Details in the form for issuing Canteen Card should be
valid.
The Customer Card number entered should be valid.
For Defence Civilians card is valid up to the Date of Retirement.
For Ex-Serviceman Card is valid for 1 year.
For Dependents card is valid for 1 year along with parent card.
Performance Criteria
As the request for purchasing the items is made by the Customer the
items are selected and sold to the Customer through his/her account
and Bill is generated and the amount of Cash is deducted from the
Customer account automatically.
System should update the database information frequently.
10
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Normal Requirements:- The objectives and goals that are stated for product or
system during meetings with the customer. If these requirements are presents, the
customer is satisfied.
If the Customer purchase any AFD Item then amount from his/her account
will not be deducted and if Customer purchase Non-AFD item then the
amount will be deducted from his/her account.
8. PROJECT PLANNING
12
AIR FORCE CANTEEN MANAGEMENT SYSTEM
i.e. Billing, maintain Data was done manually. Three copies of each Bill (Customer
Copy, Office Copy and Depot Copy) was maintained by the Organization. Cost
involved was very high because at that time more Stationary & manpower was
used. So, the total cost involves is very high. Now the cost of computerized
Canteen Management System includes cost of a few components plus the cost of
developing the software. So, it is high but not as much high as in the past. Since the
manpower is reduced & cost of stationary is less. So we can say that Economically
the feasibility of the Software is High.
13
AIR FORCE CANTEEN MANAGEMENT SYSTEM
To depict the functions ( and sub functions ) that transforms the data flow.
The DFD provides additional information that is used during the analysis of the
information domain and serves as a basis for the modeling of function.
14
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 0
DEMAND
SYSTEM
CARD CUSTOMER
CANTEEN
CARD
CUSTOMER
CANTEEN SALESMAN
MANAGER COUNTER
ITEMS GROCERY
BILL
CUSTOMER
CANTEEN REPORT
CANTEEN
CARD MANAGEMEN
T SYSTEM
CANTEEN
SUMMARY
SHOP
SYSTEM
ADMINISTRATOR
CANTEEN
MANAGEMENT
SYSTEM DATABASE
15
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 1
CUSTOMER
SYSTEM Taking Card
CANTEEN
CARD information for login
CARD
the S/W
Login CMS
Software Issuing Customer
Daily Canteen Card
CUSTOMER
1.
Taking Customer
Details CUSTOMER
System Start ACCOUNT
Creating
Customer A/c
Stock
CANTEEN Will DEMAND
Enquire & Checking, Creating
MANAGER
perform Take info. , Demands & send
these task Issue Card, to depot
SYSTEM Create A/C 2.
Give permission
ADMINISTRATOR
SALESMAN
Give permission Generate,
COUNTER
Control Generate Counters
Counters,
SALESMAN Taking Salesman
permit
details
Salesman 3. GROCERY
BILL
ITEMS Generating the Bill
Enter Pin
SHOP REPORT
Get Shop Details No., Sale Generate
Items , report
16
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 2
Generate
System Administrator various counters Control all
3 Counters for
sale
3.1
Canteen Manager Stock Checking,
Get Customer
Information etc. Issue a Card
Customer 2 for Customer Customer Canteen Card
2.1
Customer A/C
Create
Customer A/C
Permit the salesman
For purchasing
for
2.2
sale
Demand
3.2
Check
availability of
stock 2.3
Salesman Counter
Salesman
Enter pin no. of Customer &
open
Customer A/C
Customer Canteen Card 4
Grocery Bill
Generate Bill
& Report
Items 4.2
Select Shop Type,
Items for Sale
Shop
4.1
Customer A/C
Database
Update
Customer A/C
5
Bulk
Generate
Database Generate
Update Canteen Canteen Summary
Canteen
Databases Summary
Summary
5.1 6.1
& report
6
Gift
Database Damage Generate Report
Database Report
6.2
ERD Rank
Demand_desc Demand_id
Demand_date
17 Demand
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Create
Manager_id CName Gender Address
Scard_No Canteen_code
Put in
Canteen Manager System Card
Balance
Has Shop_Name
Customer Account
Shop Select
Shop_Type
Bill_No
Generates Generates
Report
Bills
S_No
Card_Serial_No Vat_perc
TBCS BCFY MBCR Index
TBCR
SName
BAFY Grocery Bill Rank
TBAS Canteen_Summary
Dat Rate
TBAR BATD
Counter_Name Item_desc
MBCS BCTD
MBAR
MBAS Shop_Name
Name
Bill_No Qty
18
AIR FORCE CANTEEN MANAGEMENT SYSTEM
1.Login_details (Table)
2.Customer_details (Table)
19
AIR FORCE CANTEEN MANAGEMENT SYSTEM
3.Canteen_Manager_details (Table)
4.Salesman_details (Table)
// This Table shows Salesman details
20
AIR FORCE CANTEEN MANAGEMENT SYSTEM
5.Customer_Account_details (Table)
// This Table shows Customer Account details
6. Customer_card_details (Table)
21
AIR FORCE CANTEEN MANAGEMENT SYSTEM
type
Card_SNo Int 10 Primary Key Not Null Card Serial No.
PIN_No Int 04 Unique Key Not Null Personal
Identification No.
of Customer
Card_Type Varchar 20 Not Null Type of Card
Card_Category Char 04 Not Null
Personal_No Int 04 Foreign Key of Customer
Customer_ details Identification No.
Table
FromDate Date Validity of Card
From Date
To Date Date Validity of Card
To Date
CustAcNo Int 04 Foreign Key of Customer Account
Customer_Account Number
_ details Table
7.Shop_Master_details (Table)
// This Table shows details of each Shop
8.Salesman_Counter_details (Table)
// This Table shows details of each Counter of a Salesman
22
AIR FORCE CANTEEN MANAGEMENT SYSTEM
9.Bill_details (Table)
23
AIR FORCE CANTEEN MANAGEMENT SYSTEM
10.Gift_details (Table)
// This Table shows Gift details
24
AIR FORCE CANTEEN MANAGEMENT SYSTEM
No.
Pluno_no Varchar 08 Unique Key Not Null Pluno no is
similar to Item
Index no.
Item_desc Varchar 50 Not Null Description of
Item
Group_Name Char 04 Not Null Item belong to
which
group,Eg: I,I
upto VII
Generic_Head Varchar 40 Not Null Generic Head
of Each Item,Eg:
priyagold is
come under
generic head
Biscuit.
Amt_Unit Int 10 Amount of Unit
of each Item
Max_Qty Int 10 Not Null Maximum
Quantity of
each Item
MPP Decimal (6,2) Maximum
Profit percent
Item_cat Char 08 Not Null Category of
Each Item
Case_pack Int 05 Case pack
shows No. of
Items in a
box(peti).
Tax_perc Decimal (4,2) Percentage of
Tax
Tax_amt Decimal (5,2) Amount of Tax
25
AIR FORCE CANTEEN MANAGEMENT SYSTEM
26
AIR FORCE CANTEEN MANAGEMENT SYSTEM
13.Canteen_summary_details (Table)
// This Table shows Summary of Canteen
27
AIR FORCE CANTEEN MANAGEMENT SYSTEM
28
AIR FORCE CANTEEN MANAGEMENT SYSTEM
15.Demand_details (Table)
16.Voucher_details (Table)
// This Table shows details of each Item which is transfered to MiniBulk
29
AIR FORCE CANTEEN MANAGEMENT SYSTEM
17.DamageItem_details (Table)
18.GroceryInCharge_details (Table)
// This Table shows Grocery Incharge details
30
AIR FORCE CANTEEN MANAGEMENT SYSTEM
19.GiftInCharge_details (Table)
// This Table shows Gift Incharge details
20.Report_details (Table)
// This Table shows Report details generated by CMS
21.Bill_Wise_Report (Table)
// This Table shows details of Bill Wise Report
type
S_No Int 04 Unique Key Not Null
Bill_No Int 10 Primary Key, Foreign Not Null Bill Number
Key of Bill_ details
Table
Card_Serial_No Int 10 Foreign key of Not Null
Customer_card_details
Table
Page_No Int 04 Not Null
Round_Off Decimal (4,2) Rounding off
the Price of
Total Items
Amtpaid Decimal (6,2) Not Null Amount paid
by the
Customer
Net_Profit Decimal (6,2) Not Null Net Profit
Earned
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_ details code of each
Table Shop
Counter_id Int 04 Foreign Key of Not Null
Salesman_Counter_
details Table
22.Item_Wise_Report (Table)
// This Table shows details of Item Wise Report
32
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Table No.
Bill_No Int 10 Foreign Key of Bill_ Not Null Bill Number
details Table
Card_Serial_No Int 10 Foreign key of Not Null
Customer_card_details
Table
Page_No Int 04 Not Null
R_Amt Decimal (6,2) Not Null Retail Amount
of Item
Vat_amt Decimal (4,2) Amount of
VAT
Round_Off Decimal (4,2) Rounding off
the Price of
Total Items
Amtpaid Decimal (6,2) Not Null Amount paid
by the
Customer
W_Amt Decimal (6,2) Not Null Whole Sale
Amount of the
Item
Net_Profit Decimal (6,2) Not Null Net Profit
Earned
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_details code of each
Table Shop
Counter_id Int 04 Foreign Key of Not Null
Salesman_Counter_
details Table
23.OCDayDetails (Table)
33
AIR FORCE CANTEEN MANAGEMENT SYSTEM
24.OCMonthDetails (Table)
// This Table showing Canteen Opening/Closing Month Details
25.MiniBulkDetails (Table)
// This Table showing Items in Mini Bulk
34
AIR FORCE CANTEEN MANAGEMENT SYSTEM
type
Index_No Varchar 08 Primary Key, Foreign Not Null Item
Key of Item_details Identification
Table No.
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_details code of each
Table Shop
No_of_Qty Int 10 No. of
Quantity of
Item
Voucher_id Int 10 Foreign Key of Voucher Not Null Voucher
_details Table Identification
no.
35
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Add Items
Update Card
Add Shop
Details
Delete Items
Delete Shop
Update Items Unblock Canteen Card
Pin Details
Update shop
Counter Barcode
Master Details Details
Display Card
Add Barcode Details
Add Counter
Delete Barcode
Delete Counter
Update Barcode
Update
Cost Details
Salesman Details
Add Salesman
Delete Salesman
Update Salesman
36
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Canteen Canteen Enquiry Bill Approval Card Issue Details View Manager
Opening/Closing Opening/Closing Details Details Details
Details for Day Details for Month
Refund Bill Add Customer
approval Details
Update Update
Details Details
Duplicate
Update Customer
Bill approval
Details
Create Customer
Account
B C
C D
37
AIR FORCE CANTEEN MANAGEMENT SYSTEM
D E
Update Items
38
AIR FORCE CANTEEN MANAGEMENT SYSTEM
E F
Update Update
Items Items
Add New Delete Update Display
Customer Customer Customer Customer
Display Display details Details Details
Items Items
G H
Add Delete Update Display View Gift Day Wise Month Annual
Items to Items Items Items I/C Details Wise Details
Gift Bulk Details Details
As all the programming is divided into different modules and they will interact
with each other to maintain the Data and Information. Modular structure is
designed with the consideration of case to maintain the Logic for modification and
maintenance. Since program has to interact with the database, it is basically based
on the User interface as Front-End Tool and Database as Back-End Tool. Each
module is interacting with Database gives the desired Output.
Customer Details
Reports Details
40
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The System Administrator Detail is the important module for this project. In this
module we are showing how many types of shops, counters and salesmans are
there in the Organization and how many items are there in the Bulk with their
Barcodes. We can add, delete & Update the Shop Details, Counter Details,
Salesman Details and Item Details etc in the Database. This module also performs
the Card Management process.
This module shows how much stock of items is there in the Bulk, Mini Bulk. What
are the Demands generated by the Manager if the items are not there in the Bulk
and Damage and Reduced Item Bulks are also shown in this module. Details of
how many items are transferred from Grocery Bulk to Damage Bulk is also shown
in this module.
Customer Details
In this module we are getting the Customer details for issuing Card to him/her
and store all the details in the database.
Reports Details
In this module we are generating the Bill wise and Item wise reports for the
Customer and the Organization.
42
AIR FORCE CANTEEN MANAGEMENT SYSTEM
43
AIR FORCE CANTEEN MANAGEMENT SYSTEM
15. BIBLIOGRAPHY
44
AIR FORCE CANTEEN MANAGEMENT SYSTEM
PROJECT REPORT
ON
GUIDE NAME :
SUBMITED BY :-
ENROLLMENT NO :-
STUDY CENTER CODE :-
45
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Table of Contents
Synopsis.................................................................................................................................................................................
Project Report……………………………………………………………………………………………………………………………………………………………………
Chapter 1 - Introductio
46
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Chapter 4 - Coding.................................................................................................................................................................
Chapter 5 - Testing.................................................................................................................................................................
5.2 Implementation........................................................................................................................................................
5.3 Evaluation.................................................................................................................................................................
5.4 Maintenance.............................................................................................................................................................
47
AIR FORCE CANTEEN MANAGEMENT SYSTEM
8.2 Conclusion.................................................................................................................................................................
Bibliography...........................................................................................................................................................................
Glossary.................................................................................................................................................................................
2. INTRODUCTION
Provide consumer goods of high quality to the troops wherever they are at
prices cheaper than the prevailing market rates, as far as possible.
Ensure that the level of consumer/customer satisfaction is maintained at the
maximum.
Generate reasonable profitability to sustain the organization, permit growth
and provide additional facilities for troops and their families.
Formulate and execute development programmes to improve and maintain
organizational effectiveness.
48
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Periodically analyze and assess the diverse long-term needs and aspirations
of Defence Services and undertake timely measures to meet them.
In this paper, we present the development of an application for CMS to benefit the
Canteen administration and staff for better decision making process, resulting in
providing better facilities and products to customers.
49
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The Software would benefit the CMS by reducing the Workforce & tasks of
maintaining the database & creation and generation of Bills, Report &
Summary & updating the information.
The project aims to reduce time spent in performing the various jobs in CMS,
as manual work will take a lot of time.
The onetime cost of the system will be high, but then the running cost of the
system would be much lower than the cost in Current System as it will
reduce manpower & thus reducing salary payments.
The System has to become Centralized so that Canteen Manager can control
& manage any of the System through its Centralized System. Air Force
Canteens are also Centralized state wise. As in Delhi the main depot of
Canteen is in Delhi Cantt. from where all other branches of Canteen in Delhi
are connected through this Centralized System.
50
AIR FORCE CANTEEN MANAGEMENT SYSTEM
8. PROJECT CATEGORY
This project aims to provide the improved functionality and better User Interactive
Environment. In this software information is handled by using MySQL for storing
records in a database, as backend and Java with NetBeans is used as front end.
51
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Software and hardware specification as the name suggests, tells us about the
various characteristics of the software and the hardware environment used i.e. the
development environment used. Here we specify various software languages,
supporting tools that have been used for the development of the system. These
tools and the languages have been used because of their relative ease of understand
and personal interest of the team developing the project.
TOOLS :
PLATFORM :
WINDOWS 98 / WINDOWS XP
RAM : 512 MB
STORAGE CAPACITY : 20 GB
DRIVES : 52X CD
SOFTWARE REQUIREMENT :
RDBMS : MySQL
52
AIR FORCE CANTEEN MANAGEMENT SYSTEM
3. JAVA NETBEANS
Here, I build Canteen Management System (CMS) using Java NetBeans because
Java is Platform Independent and a Open Product which is freely available to all.
NetBeans consist of RAD tools which enable the programmer to create applications
in shorter time as compared to conventional Language.
With NetBeans IDE, we can develop applications by just creating frames, dragging
and dropping controls on to frames, setting properties for various things, adding
some application-specific code to handle events. Java offers more security to make
its programs safe and secure.
4. MySQL
MySQL is the world's most popular open source database software, with over 100
million copies of its software downloaded or distributed throughout it's history.
With its superior speed, reliability, and ease of use, MySQL has become the
preferred choice for Web, Web 2.0, SaaS, ISV, Telecom companies and forward-
thinking corporate IT Managers because it eliminates the major problems
53
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The system is error prone due to high portability of mistakes in manual work.
Modify the details of the Customer, Items etc. is a large procedure & may
lead to chaos.
Analysis on data & access to databases is tedious task & large work force is
required.
54
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Before the FAST meeting, each FAST attendee is asked to make a List of Objects,
List of services, List of Constraints, Performance Criteria.
List of Services
Interact with Customer.
Issue Canteen Card to Customer.
Check the availability of items in the Database.
Sale the Items to different Customers and Update Database
Information.
Generate Bill for the Customer.
Generate Canteen Summary and Report for the Organization.
55
AIR FORCE CANTEEN MANAGEMENT SYSTEM
List of Constraints
List of Validations
The Customer Details in the form for issuing Canteen Card should be
valid.
The Customer Card number entered should be valid.
For Defence Civilians card is valid up to the Date of Retirement.
For Ex-Serviceman Card is valid for 1 year.
For Dependents card is valid for 1 year along with parent card.
Performance Criteria
As the request for purchasing the items is made by the Customer the
items are selected and sold to the Customer through his/her account
and Bill is generated and the amount of Cash is deducted from the
Customer account automatically.
System should update the database information frequently.
56
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Normal Requirements:- The objectives and goals that are stated for product or
system during meetings with the customer. If these requirements are presents, the
customer is satisfied.
If the Customer purchase any AFD Item then amount from his/her account
will not be deducted and if Customer purchase Non-AFD item then the
amount will be deducted from his/her account.
8. PROJECT PLANNING
58
AIR FORCE CANTEEN MANAGEMENT SYSTEM
i.e. Billing, maintain Data was done manually. Three copies of each Bill (Customer
Copy, Office Copy and Depot Copy) was maintained by the Organization. Cost
involved was very high because at that time more Stationary & manpower was
used. So, the total cost involves is very high. Now the cost of computerized
Canteen Management System includes cost of a few components plus the cost of
developing the software. So, it is high but not as much high as in the past. Since the
manpower is reduced & cost of stationary is less. So we can say that Economically
the feasibility of the Software is High.
59
AIR FORCE CANTEEN MANAGEMENT SYSTEM
To depict the functions ( and sub functions ) that transforms the data flow.
The DFD provides additional information that is used during the analysis of the
information domain and serves as a basis for the modeling of function.
60
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 0
DEMAND
SYSTEM
CARD CUSTOMER
CANTEEN
CARD
CUSTOMER
CANTEEN SALESMAN
MANAGER COUNTER
ITEMS GROCERY
BILL
CUSTOMER
CANTEEN REPORT
CANTEEN
CARD MANAGEMEN
T SYSTEM
CANTEEN
SUMMARY
SHOP
SYSTEM
ADMINISTRATOR
CANTEEN
MANAGEMENT
SYSTEM DATABASE
61
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 1
CUSTOMER
SYSTEM Taking Card
CANTEEN
CARD information for login
CARD
the S/W
Login CMS
Software Issuing Customer
Daily Canteen Card
CUSTOMER
1.
Taking Customer
Details CUSTOMER
System Start ACCOUNT
Creating
Customer A/c
Stock
CANTEEN Will DEMAND
Enquire & Checking, Creating
MANAGER
perform Take info. , Demands & send
these task Issue Card, to depot
SYSTEM Create A/C 2.
Give permission
ADMINISTRATOR
SALESMAN
Give permission Generate,
COUNTER
Control Generate Counters
Counters,
SALESMAN Taking Salesman
permit
details
Salesman 3. GROCERY
BILL
ITEMS Generating the Bill
Enter Pin
SHOP REPORT
Get Shop Details No., Sale Generate
Items , report
62
AIR FORCE CANTEEN MANAGEMENT SYSTEM
DFD LEVEL 2
Generate
System Administrator various counters Control all
3 Counters for
sale
3.1
Canteen Manager Stock Checking,
Get Customer
Information etc. Issue a Card
Customer 2 for Customer Customer Canteen Card
2.1
Customer A/C
Create
Customer A/C
Permit the salesman
For purchasing
for
2.2
sale
Demand
3.2
Check
availability of
stock 2.3
Salesman Counter
Salesman
Enter pin no. of Customer &
open
Customer A/C
Customer Canteen Card 4
Grocery Bill
Generate Bill
& Report
Items 4.2
Select Shop Type,
Items for Sale
Shop
4.1
Customer A/C
Database
Update
Customer A/C
5
Bulk
Generate
Database Generate
Update Canteen Canteen Summary
Canteen
Databases Summary
Summary
5.1 6.1
& report
6
Gift
Database Damage Generate Report
Database Report
6.2
ERD Rank
Demand_desc Demand_id
Demand_date
63 Demand
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Create
Manager_id CName Gender Address
Scard_No Canteen_code
Put in
Canteen Manager System Card
Balance
Has Shop_Name
Customer Account
Shop Select
Shop_Type
Bill_No
Generates Generates
Report
Bills
S_No
Card_Serial_No Vat_perc
TBCS BCFY MBCR Index
TBCR
SName
BAFY Grocery Bill Rank
TBAS Canteen_Summary
Dat Rate
TBAR BATD
Counter_Name Item_desc
MBCS BCTD
MBAR
MBAS Shop_Name
Name
Bill_No Qty
64
AIR FORCE CANTEEN MANAGEMENT SYSTEM
1.Login_details (Table)
2.Customer_details (Table)
65
AIR FORCE CANTEEN MANAGEMENT SYSTEM
3.Canteen_Manager_details (Table)
4.Salesman_details (Table)
// This Table shows Salesman details
66
AIR FORCE CANTEEN MANAGEMENT SYSTEM
5.Customer_Account_details (Table)
// This Table shows Customer Account details
6. Customer_card_details (Table)
67
AIR FORCE CANTEEN MANAGEMENT SYSTEM
type
Card_SNo Int 10 Primary Key Not Null Card Serial No.
PIN_No Int 04 Unique Key Not Null Personal
Identification No.
of Customer
Card_Type Varchar 20 Not Null Type of Card
Card_Category Char 04 Not Null
Personal_No Int 04 Foreign Key of Customer
Customer_ details Identification No.
Table
FromDate Date Validity of Card
From Date
To Date Date Validity of Card
To Date
CustAcNo Int 04 Foreign Key of Customer Account
Customer_Account Number
_ details Table
7.Shop_Master_details (Table)
// This Table shows details of each Shop
8.Salesman_Counter_details (Table)
// This Table shows details of each Counter of a Salesman
68
AIR FORCE CANTEEN MANAGEMENT SYSTEM
9.Bill_details (Table)
69
AIR FORCE CANTEEN MANAGEMENT SYSTEM
10.Gift_details (Table)
// This Table shows Gift details
70
AIR FORCE CANTEEN MANAGEMENT SYSTEM
No.
Pluno_no Varchar 08 Unique Key Not Null Pluno no is
similar to Item
Index no.
Item_desc Varchar 50 Not Null Description of
Item
Group_Name Char 04 Not Null Item belong to
which
group,Eg: I,I
upto VII
Generic_Head Varchar 40 Not Null Generic Head
of Each Item,Eg:
priyagold is
come under
generic head
Biscuit.
Amt_Unit Int 10 Amount of Unit
of each Item
Max_Qty Int 10 Not Null Maximum
Quantity of
each Item
MPP Decimal (6,2) Maximum
Profit percent
Item_cat Char 08 Not Null Category of
Each Item
Case_pack Int 05 Case pack
shows No. of
Items in a
box(peti).
Tax_perc Decimal (4,2) Percentage of
Tax
Tax_amt Decimal (5,2) Amount of Tax
71
AIR FORCE CANTEEN MANAGEMENT SYSTEM
72
AIR FORCE CANTEEN MANAGEMENT SYSTEM
13.Canteen_summary_details (Table)
// This Table shows Summary of Canteen
73
AIR FORCE CANTEEN MANAGEMENT SYSTEM
74
AIR FORCE CANTEEN MANAGEMENT SYSTEM
15.Demand_details (Table)
16.Voucher_details (Table)
// This Table shows details of each Item which is transfered to MiniBulk
75
AIR FORCE CANTEEN MANAGEMENT SYSTEM
17.DamageItem_details (Table)
18.GroceryInCharge_details (Table)
// This Table shows Grocery Incharge details
76
AIR FORCE CANTEEN MANAGEMENT SYSTEM
19.GiftInCharge_details (Table)
// This Table shows Gift Incharge details
20.Report_details (Table)
// This Table shows Report details generated by CMS
21.Bill_Wise_Report (Table)
// This Table shows details of Bill Wise Report
type
S_No Int 04 Unique Key Not Null
Bill_No Int 10 Primary Key, Foreign Not Null Bill Number
Key of Bill_ details
Table
Card_Serial_No Int 10 Foreign key of Not Null
Customer_card_details
Table
Page_No Int 04 Not Null
Round_Off Decimal (4,2) Rounding off
the Price of
Total Items
Amtpaid Decimal (6,2) Not Null Amount paid
by the
Customer
Net_Profit Decimal (6,2) Not Null Net Profit
Earned
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_ details code of each
Table Shop
Counter_id Int 04 Foreign Key of Not Null
Salesman_Counter_
details Table
22.Item_Wise_Report (Table)
// This Table shows details of Item Wise Report
78
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Table No.
Bill_No Int 10 Foreign Key of Bill_ Not Null Bill Number
details Table
Card_Serial_No Int 10 Foreign key of Not Null
Customer_card_details
Table
Page_No Int 04 Not Null
R_Amt Decimal (6,2) Not Null Retail Amount
of Item
Vat_amt Decimal (4,2) Amount of
VAT
Round_Off Decimal (4,2) Rounding off
the Price of
Total Items
Amtpaid Decimal (6,2) Not Null Amount paid
by the
Customer
W_Amt Decimal (6,2) Not Null Whole Sale
Amount of the
Item
Net_Profit Decimal (6,2) Not Null Net Profit
Earned
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_details code of each
Table Shop
Counter_id Int 04 Foreign Key of Not Null
Salesman_Counter_
details Table
23.OCDayDetails (Table)
79
AIR FORCE CANTEEN MANAGEMENT SYSTEM
24.OCMonthDetails (Table)
// This Table showing Canteen Opening/Closing Month Details
25.MiniBulkDetails (Table)
// This Table showing Items in Mini Bulk
80
AIR FORCE CANTEEN MANAGEMENT SYSTEM
type
Index_No Varchar 08 Primary Key, Foreign Not Null Item
Key of Item_details Identification
Table No.
Shop_Code Int 04 Foreign Key of Not Null Identification
Shop_Master_details code of each
Table Shop
No_of_Qty Int 10 No. of
Quantity of
Item
Voucher_id Int 10 Foreign Key of Voucher Not Null Voucher
_details Table Identification
no.
81
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Add Items
Update Card
Add Shop
Details
Delete Items
Delete Shop
Update Items Unblock Canteen Card
Pin Details
Update shop
Counter Barcode
Master Details Details
Display Card
Add Barcode Details
Add Counter
Delete Barcode
Delete Counter
Update Barcode
Update
Cost Details
Salesman Details
Add Salesman
Delete Salesman
Update Salesman
82
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Canteen Canteen Enquiry Bill Approval Card Issue Details View Manager
Opening/Closing Opening/Closing Details Details Details
Details for Day Details for Month
Refund Bill Add Customer
approval Details
Update Update
Details Details
Duplicate
Update Customer
Bill approval
Details
Create Customer
Account
B C
C D
83
AIR FORCE CANTEEN MANAGEMENT SYSTEM
D E
Update Items
84
AIR FORCE CANTEEN MANAGEMENT SYSTEM
E F
Update Update
Items Items
Add New Delete Update Display
Customer Customer Customer Customer
Display Display details Details Details
Items Items
G H
Add Delete Update Display View Gift Day Wise Month Annual
Items to Items Items Items I/C Details Wise Details
Gift Bulk Details Details
As all the programming is divided into different modules and they will interact
with each other to maintain the Data and Information. Modular structure is
designed with the consideration of case to maintain the Logic for modification and
maintenance. Since program has to interact with the database, it is basically based
on the User interface as Front-End Tool and Database as Back-End Tool. Each
module is interacting with Database gives the desired Output.
Customer Details
Reports Details
86
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The System Administrator Detail is the important module for this project. In this
module we are showing how many types of shops, counters and salesmans are
there in the Organization and how many items are there in the Bulk with their
Barcodes. We can add, delete & Update the Shop Details, Counter Details,
Salesman Details and Item Details etc in the Database. This module also performs
the Card Management process.
This module shows how much stock of items is there in the Bulk, Mini Bulk. What
are the Demands generated by the Manager if the items are not there in the Bulk
and Damage and Reduced Item Bulks are also shown in this module. Details of
how many items are transferred from Grocery Bulk to Damage Bulk is also shown
in this module.
Customer Details
In this module we are getting the Customer details for issuing Card to him/her
and store all the details in the database.
Reports Details
In this module we are generating the Bill wise and Item wise reports for the
Customer and the Organization.
88
AIR FORCE CANTEEN MANAGEMENT SYSTEM
89
AIR FORCE CANTEEN MANAGEMENT SYSTEM
15. BIBLIOGRAPHY
90
AIR FORCE CANTEEN MANAGEMENT SYSTEM
91
AIR FORCE CANTEEN MANAGEMENT SYSTEM
92
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Customer Details
New Card Registration Details
Grocery Bulk Details
Bulk Details
Demand Details
STB Details
Reduced Bulk Details
Damage Item Details
Grocery InCharge Details
Grocery Shop InCharge Details
Voucher Details
Mini Bulk Details
Gift InCharge Work Details
Gift Details
Gift InCharge Details
PIN Information Details
Generate Bill Details
Grocery Bill Details
Refund Bill Approval Details
Report Details
Bill Wise Report Details
Item Wise Report Details
Canteen Summary Details
Canteen Summary Day Wise
Canteen Summary Month Wise
Canteen Summary Yearly
94
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Startpage Form
95
AIR FORCE CANTEEN MANAGEMENT SYSTEM
96
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Welcome Form
97
AIR FORCE CANTEEN MANAGEMENT SYSTEM
98
AIR FORCE CANTEEN MANAGEMENT SYSTEM
99
AIR FORCE CANTEEN MANAGEMENT SYSTEM
100
AIR FORCE CANTEEN MANAGEMENT SYSTEM
101
AIR FORCE CANTEEN MANAGEMENT SYSTEM
102
AIR FORCE CANTEEN MANAGEMENT SYSTEM
103
AIR FORCE CANTEEN MANAGEMENT SYSTEM
104
AIR FORCE CANTEEN MANAGEMENT SYSTEM
105
AIR FORCE CANTEEN MANAGEMENT SYSTEM
106
AIR FORCE CANTEEN MANAGEMENT SYSTEM
107
AIR FORCE CANTEEN MANAGEMENT SYSTEM
108
AIR FORCE CANTEEN MANAGEMENT SYSTEM
109
AIR FORCE CANTEEN MANAGEMENT SYSTEM
110
AIR FORCE CANTEEN MANAGEMENT SYSTEM
112
AIR FORCE CANTEEN MANAGEMENT SYSTEM
113
AIR FORCE CANTEEN MANAGEMENT SYSTEM
114
AIR FORCE CANTEEN MANAGEMENT SYSTEM
115
AIR FORCE CANTEEN MANAGEMENT SYSTEM
116
AIR FORCE CANTEEN MANAGEMENT SYSTEM
117
AIR FORCE CANTEEN MANAGEMENT SYSTEM
118
AIR FORCE CANTEEN MANAGEMENT SYSTEM
119
AIR FORCE CANTEEN MANAGEMENT SYSTEM
120
AIR FORCE CANTEEN MANAGEMENT SYSTEM
121
AIR FORCE CANTEEN MANAGEMENT SYSTEM
122
AIR FORCE CANTEEN MANAGEMENT SYSTEM
123
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Chapter 4
coding
124
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
public class Startpage extends javax.swing.JFrame {
125
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
public class LoginDetails extends javax.swing.JFrame {
126
AIR FORCE CANTEEN MANAGEMENT SYSTEM
{
this.setVisible(false);
new Welcome().setVisible(true);
}
else
{
JOptionPane.showMessageDialog(null,"Canteen code is Incorrect, Please
Check It");
}
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new LoginDetails().setVisible(true);
}
});
}
127
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
public class Welcome extends javax.swing.JFrame {
128
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
public class MainMenu extends javax.swing.JFrame {
129
AIR FORCE CANTEEN MANAGEMENT SYSTEM
130
AIR FORCE CANTEEN MANAGEMENT SYSTEM
this.setVisible(false);
new ItemDetails().setVisible(true);
}
131
AIR FORCE CANTEEN MANAGEMENT SYSTEM
132
AIR FORCE CANTEEN MANAGEMENT SYSTEM
new CardRenew().setVisible(true);
}
133
AIR FORCE CANTEEN MANAGEMENT SYSTEM
134
AIR FORCE CANTEEN MANAGEMENT SYSTEM
135
AIR FORCE CANTEEN MANAGEMENT SYSTEM
this.setVisible(false);
new GiftDetails().setVisible(true);
}
136
AIR FORCE CANTEEN MANAGEMENT SYSTEM
137
AIR FORCE CANTEEN MANAGEMENT SYSTEM
138
AIR FORCE CANTEEN MANAGEMENT SYSTEM
139
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
public class SystemAdmin extends javax.swing.JFrame {
140
AIR FORCE CANTEEN MANAGEMENT SYSTEM
new MainMenu().setVisible(true);
}
package CMS;
public class CanteenMasterDetails extends javax.swing.JFrame {
141
AIR FORCE CANTEEN MANAGEMENT SYSTEM
this.setVisible(false);
new SalesmanCounterDetails().setVisible(true);
}
142
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
int sc=Integer.parseInt(sctf.getText());
try {
Class.forName("java.sql.Driver");
String database="jdbc:mysql://localhost/cms";
Connection conn=DriverManager.getConnection(database,"root","tiger");
Statement stmt = conn.createStatement();
String sql="SELECT * FROM Shop_Master_details WHERE Shop_Code = " +
sc;
ResultSet rs = stmt.executeQuery(sql);
rs.next();
String str1=rs.getString("S_No");
sntf.setText(str1);
String str2=rs.getString("Shop_Name");
snamtf.setText(str2);
String str3=rs.getString("Shop_Type");
sttf.setText(str3);
rs.close();
stmt.close();
conn.close();
143
AIR FORCE CANTEEN MANAGEMENT SYSTEM
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Enter Correct Shop Code, Error
Occur...");
}
}
144
AIR FORCE CANTEEN MANAGEMENT SYSTEM
int sc=Integer.parseInt(sctf.getText());
try {
Class.forName("java.sql.Driver");
String database="jdbc:mysql://localhost/cms";
Connection conn=DriverManager.getConnection(database,"root","tiger");
Statement stmt1 = conn.createStatement();
Statement stmt2 = conn.createStatement();
String sql1="UPDATE Shop_Master_details SET Shop_Name =
'"+snamtf.getText()+ "' WHERE Shop_Code = " + sc ;
String sql2="UPDATE Shop_Master_details SET Shop_Type = '"+sttf.getText()
+ "' WHERE Shop_Code = " + sc ;
stmt1.executeUpdate(sql1);
145
AIR FORCE CANTEEN MANAGEMENT SYSTEM
stmt2.executeUpdate(sql2);
stmt1.close();
stmt2.close();
conn.close();
JOptionPane.showMessageDialog(null,"Information Updated Sucessfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Enter Correct Shop Code, Error
Occur...");
}
}
146
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
147
AIR FORCE CANTEEN MANAGEMENT SYSTEM
snamtf.setText(" ");
chktf.setText(" ");
JOptionPane.showMessageDialog(null,"Counter detail is added, Now You can
View it by Clicking on View Button or Add more...");
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"There is an Error, Please Check It");
}
{
JOptionPane.showMessageDialog(null,"Error Occur..,Enter Correct Counter ID
...");
}
}
149
AIR FORCE CANTEEN MANAGEMENT SYSTEM
150
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
151
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Class.forName("java.sql.Driver");
String database="jdbc:mysql://localhost/cms";
Connection conn=DriverManager.getConnection(database,"root","tiger");
Statement stmt = conn.createStatement();
String sql="Insert into Salesman_details VALUES ( " + si +",'"+ sn +"','"+
gntf.getText()+"','"+ adr +"',"+ cid +")";
stmt.executeUpdate(sql);
sitf.setText(" ");
sntf.setText(" ");
adrta.append(" ");
cidtf.setText(" ");
cntf.setText(" ");
152
AIR FORCE CANTEEN MANAGEMENT SYSTEM
gntf.setText(str2);
String str3=rs.getString("Address");
adrta.append(str3);
String str4=rs.getString("Counter_id");
cidtf.setText(str4);
String str5=rs.getString("Counter_Name");
cntf.setText(str5);
rs.close();
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur..,Enter Correct Salaesman
ID ...");
}
}
153
AIR FORCE CANTEEN MANAGEMENT SYSTEM
154
AIR FORCE CANTEEN MANAGEMENT SYSTEM
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur..,Enter Correct Salesman
ID ...");
}
}
155
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
156
AIR FORCE CANTEEN MANAGEMENT SYSTEM
}
});
}
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
import javax.swing.table.*;
157
AIR FORCE CANTEEN MANAGEMENT SYSTEM
double mpp=Double.parseDouble(mpptf.getText());
String ic=ictf.getText();
int cp=Integer.parseInt(cptf.getText());
double tp=Double.parseDouble(tptf.getText());
double ta=Double.parseDouble(tatf.getText());
String md=mdtf.getText();
int sc=Integer.parseInt(sctf.getText());
double pr=Double.parseDouble(prtf.getText());
double vp=Double.parseDouble(vptf.getText());
double va=Double.parseDouble(vatf.getText());
String gs=gstf.getText();
double tpt=pr+ta;
double tpv=pr+va;
tpttf.setText(" "+tpt);
tpvtf.setText(" "+tpv);
DefaultTableModel dm = (DefaultTableModel)ItemTbl.getModel();
try {
Class.forName("java.sql.Driver");
String database="jdbc:mysql://localhost/cms";
Connection conn=DriverManager.getConnection(database,"root","tiger");
Statement stmt = conn.createStatement();
String sql="Insert into Item_details VALUES ( '" + in +"','"+ pn +"','"+ id +"','"+
gr +"','"+ gh +"',"+ au +","+ mq +","+ mpp +",'"+ ic +"',"+ cp +","+ tp +","+ ta +",'"+
md +"',"+ sc +",'"+ gs +"',"+ pr +","+ vp +","+ va +","+ tpt +","+ tpv +")";
stmt.executeUpdate(sql);
Object[] newRow= {
intf.getText(),pntf.getText(),idtf.getText(),grtf.getText(),ghtf.getText(),autf.getText(),
mqtf.getText(),mpptf.getText(),ictf.getText(),cptf.getText(),tptf.getText(),tatf.getText
(),mdtf.getText(),sctf.getText(),gstf.getText(),prtf.getText(),vptf.getText(),vatf.getTex
t(),tpttf.getText(),tpvtf.getText() };
dm.addRow(newRow);
intf.setText(" ");
pntf.setText(" ");
idtf.setText(" ");
grtf.setText(" ");
ghtf.setText(" ");
autf.setText(" ");
mqtf.setText(" ");
158
AIR FORCE CANTEEN MANAGEMENT SYSTEM
mpptf.setText(" ");
ictf.setText(" ");
cptf.setText(" ");
tptf.setText(" ");
tatf.setText(" ");
mdtf.setText(" ");
sctf.setText(" ");
gstf.setText(" ");
prtf.setText(" ");
vptf.setText(" ");
vatf.setText(" ");
tpttf.setText(" ");
tpvtf.setText(" ");
JOptionPane.showMessageDialog(null,"Item detail is added, Now You can
View it by Clicking on View Button or Add more...");
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"There is an Error, Please Check It");
}
}
159
AIR FORCE CANTEEN MANAGEMENT SYSTEM
String str2=rs.getString("Item_desc");
idtf.setText(str2);
String str3=rs.getString("Group_Name");
grtf.setText(str3);
String str4=rs.getString("Generic_Head");
ghtf.setText(str4);
String str5=rs.getString("Amt_Unit");
autf.setText(str5);
String str6=rs.getString("Max_Qty");
mqtf.setText(str6);
String str7=rs.getString("MPP");
mpptf.setText(str7);
String str8=rs.getString("Item_cat");
ictf.setText(str8);
String str9=rs.getString("Case_pack");
cptf.setText(str9);
String str10=rs.getString("Tax_perc");
tptf.setText(str10);
String str11=rs.getString("Tax_amt");
tatf.setText(str11);
String str12=rs.getString("Medium");
mdtf.setText(str12);
String str13=rs.getString("Shop_Code");
sctf.setText(str13);
String str14=rs.getString("Shop_Type");
sttf.setText(str14);
String str15=rs.getString("Price");
prtf.setText(str15);
String str16=rs.getString("Vat_perc");
vptf.setText(str16);
String str17=rs.getString("Vat_amt");
vatf.setText(str17);
String str18=rs.getString("GiftScheme");
gstf.setText(str18);
String str19=rs.getString("TotPrice_Tax");
tpttf.setText(str19);
String str20=rs.getString("TotPrice_VAT");
tpvtf.setText(str20);
160
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Object[] newRow= {
intf.getText(),pntf.getText(),idtf.getText(),grtf.getText(),ghtf.getText(),autf.getText(),
mqtf.getText(),mpptf.getText(),ictf.getText(),cptf.getText(),tptf.getText(),tatf.getText
(),mdtf.getText(),sctf.getText(),sttf.getText(),prtf.getText(),vptf.getText(),vatf.getTex
t(),gstf.getText(),tpttf.getText(),tpvtf.getText()
};
dm.addRow(newRow);
rs.close();
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur..,Enter Correct Index
No ...");
}
}
162
AIR FORCE CANTEEN MANAGEMENT SYSTEM
163
AIR FORCE CANTEEN MANAGEMENT SYSTEM
stmt17.close();
stmt18.close();
conn.close();
JOptionPane.showMessageDialog(null,"Information Updated Sucessfully");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur in Updating
Information..");
}
}
164
AIR FORCE CANTEEN MANAGEMENT SYSTEM
vptf.setText(" ");
vatf.setText(" ");
tpttf.setText(" ");
tpvtf.setText(" ");
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur in Deleting
Information..");
}
}
165
AIR FORCE CANTEEN MANAGEMENT SYSTEM
166
AIR FORCE CANTEEN MANAGEMENT SYSTEM
package CMS;
import java.sql.*;
import javax.swing.JOptionPane;
import javax.swing.table.*;
167
AIR FORCE CANTEEN MANAGEMENT SYSTEM
sntf.setText(" ");
intf.setText(" ");
pntf.setText(" ");
itemtf.setText(" ");
bntf.setText(" ");
JOptionPane.showMessageDialog(null,"Barcode detail is added, Now You can
View it by Clicking on View Button or Add more...");
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"There is an Error, Please Check It");
}
}
168
AIR FORCE CANTEEN MANAGEMENT SYSTEM
};
dm.addRow(newRow);
rs.close();
stmt.close();
conn.close();
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,"Error Occur..,Enter Correct Serial
No ...");
}
}
169
AIR FORCE CANTEEN MANAGEMENT SYSTEM
{
JOptionPane.showMessageDialog(null,"Error Occur in Updating
Information..");
}
}
170
AIR FORCE CANTEEN MANAGEMENT SYSTEM
171
AIR FORCE CANTEEN MANAGEMENT SYSTEM
from large scales to small scales. This allows a rapid convergence if the face is
dominant in the image. Furthermore, the algorithm does not always flow through
the complete loop. It stops as soon as one of the modules reports a failure and
loops back to an earlier stage. For example, we do not sale items to the Customer
until the correct PIN No is entered. In this case, no time is wasted, if PIN No
entered is not correct then Error Message will appear .
172
AIR FORCE CANTEEN MANAGEMENT SYSTEM
optimization of this application is that it would prove to be most favorable and best
possible for the progress in the working of the company.
This system is optimized because all the modules are more cohesive that the
connectivity among the modules is less. So that it will take less time to complete
any process. As the modules are less dependent on each other so in future if we
want to make any changes in our system then it will be very easy to change system
and we have to make changes only on those modules that we have to change. If our
system will not be cohesive then in this case it will take more time to complete any
process and the efficiency of the system to do work will be poor.
The other criteria that ensure the optimization of this software application are
enlisted as under:-
Use of modular design structure of application development.
Use of Normalized Database Structures-Database Optimization.
Use of code modules extensively-Code Optimization.
Use of minimum number of code lines for maximum processing of input
data.
Re-use of similar code wherever necessary to reduce the overall size of the
application.
We find optimal solution of a project that is cost effective as well as time effective.
Both are equally important for a project we divide the project into modules so that
we can easily understand the project. And also it will take less time to solve the
problems. Modularity is the single attribute of software that allows a program to be
intellectually manageable.
173
AIR FORCE CANTEEN MANAGEMENT SYSTEM
174
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Chapter 5
Testing
Psychology of Testing:
175
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The aim of testing is often to demonstrate that a program works by showing that it
has no errors. The basic purpose of testing phase is to detect the errors that may be
present in the program. Hence one should not start testing with the intent of
showing that a program works, but the intent should be to show that a program
doesn’t work.
Testing is the process of executing a program with the intent of finding errors.
Testing Objectives:
The main objective of testing is to uncover a host of errors, systematically and with
minimum effort and time. Stating formally, we can say,
Testing is a process of executing a program with the intent of finding an
error.
A successful test is one that uncovers an as yet undiscovered error.
A good test case is one that has a high probability of finding error, if it exists.
The tests are inadequate to detect possibly present errors.
The software more or less confirms to the quality and reliable standards.
Levels of Testing :
In order to uncover the errors present in different phases we have the concept of
levels of testing. The basic levels of testing are
Client Needs
Acceptance Testing
Requirements System Testing
176
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Unit testing:
Unit testing focuses verification effort on the smallest unit of software i.e. the
module. Using the detailed design and the process specifications testing is done to
uncover errors within the boundary of the module. All modules must be
successful in the unit test before the start of the integration testing begins.
In this project each service can be thought of a module. There are so many
modules like Login, Register New Card, Card Issuance, Search Items, View
Customer details, Generate Bill etc.. Each module has been tested by giving
different sets of inputs. When developing the module as well as finishing the
development so that each module works without any error. The inputs are
validated when accepting from the user.
Integration Testing:
After the unit testing we have to perform integration testing. The goal here is to see
if modules can be integrated properly. The emphasis being on testing interfaces
between modules. This testing activity can be considered as testing the design and
hence the emphasis on testing module interactions.
In this project the main system is formed by integrating all the modules. When
integrating all the modules I have checked whether the integration effects working
of any of the services by giving different combinations of inputs with which the
two services run perfectly before Integration.
System Testing:
Here the entire software system is tested. The reference document for this process
is the requirements document, and the goal as to see if software meets its
requirements.
Here entire ‘CANTEEN MANAGEMENT SYSTEM’ has been tested against
requirements of project and it is checked whether all requirements of project have
been satisfied or not.
177
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Acceptance Testing:
Acceptance Test is performed with realistic data of the client to demonstrate that
the software is working satisfactorily. Testing here is focused on external behavior
of the system. The internal logic of program is not emphasized.
Test cases should be selected so that the largest number of attributes of an
equivalence class is exercised at once. The testing phase is an important part of
software development. It is the process of finding errors and missing operations
and also a complete verification to determine whether the objectives are met and
the user requirements are satisfied.
178
AIR FORCE CANTEEN MANAGEMENT SYSTEM
5.2 implementation
One of the crucial phases in the Software Development Life Cycle is the successful
implementation of the software. Implementation includes all those activities that
take place to convert from the old system to the new one.
The new system may be completely new, replacing an existing manual or
automated system or it may be major modification to an existing system. In either
case, proper implementation becomes necessary so that a reliable system based on
the requirements of the organization can be provided.
Successful implementation may not guarantee improvement in the organization
using the new system, but improper installation will prevent it. It has been
observed that even the best system cannot show good result if the analysts
managing the implementation do not attend to every important detail. This is an
area where the systems analysts need to work with utmost care.
179
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Training personnel
Conversion procedures
Post- implementation review
5.3 evaluation
In this Project much of the management is decision making, according to one of
many approaches to management. While there are several views of what
constitutes management, according to the decision oriented view, management
mainly comprises the following in view of this project:
Planning
Organizing
Directing and
Control
Each one of these functions may be at the strategic, tactical or operational level. To
illustrate this point we will use a series of examples of strategic, tactical and
operational decisions and the information needs, in each of these functional areas.
5.4 Maintenance
The last part of the system development life cycle is system Maintenance which is
actually the implementation of the post – implementation review plan. When
180
AIR FORCE CANTEEN MANAGEMENT SYSTEM
systems are installed they are generally used for long periods. The average life of a
system is 4 to 6 years with oldest application often in use for over 10 years.
However, this period of use brings with it the need to continually maintain the
system.
Programmers/analyst sends sufficient time for maintaining programs. The study
on the maintenance requirement for the information system of this Project AIR
FORCE CANTEEN MANAGEMENT SYSTEM revealed that:
(a) Sixty to Ninety percent of the overall cost of the software during life of a
system is spent on maintenance.
(b) In documented cases, cost of maintenance, when measured on the basis of
writing each instruction in coding form, is more than the 50 times the cost of
developing a system.
(c) The software demand is increasing at a faster rate than supply many
programmers are devoting more time on system maintenance than on a new
software development. There is backlog of new development work.
181
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The keys to reduce the need for maintenance while making it possible to carry on
with essential tasks more efficiently as follows.
182
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Chapter 6
Security
measures
&
183
AIR FORCE CANTEEN MANAGEMENT SYSTEM
cost
estimation
6.1 system Security measures
The Security Measures is the most important task, which should be done with
much care no need to say why this is so crucial. The security measures starts right
from the selection of operating system in that case for server MySQL is best choice
because it provides best security in its peer OS as we know this project is very
versatile and there are variety of users who uses systems according to their needs
so authentication is an major task which has to perform by the system
administrator as I have already mentioned that there are different type of access
permission like viewing the records modifying etc.
Here, I am using Java NetBeans IDE, which offers more security to make its
programs safe and secure.
Another security measure I took in this project is System Card No. and Canteen
Code, provide to selected staff so that no unidentified person can not access the
system.Then I switch the concept of file sharing which is an essential service in
these types of companies. Particular type of file can be shared by the person
holding the same position.
184
AIR FORCE CANTEEN MANAGEMENT SYSTEM
185
AIR FORCE CANTEEN MANAGEMENT SYSTEM
The software project management process begins with a set of activities that are
collectively called project planning. The first of these activities is ESTIMATION.
Whenever estimates are made. We look into the future and accept some degree of
uncertainty as a matter of course. Estimation of resources, cost and schedule for a
software development effort requires experiences, access to good historical
information and the courage to commit to quantitative measures when qualitative
data are all the exist. Estimation carries inherent risk that leads to uncertainly.
Project size is another important factor can affect the accuracy of estimates. As size
increases, the interdependency among various elements of the software grows
rapidly time also affect cost of the project. If time increases then cost is also
increased, this project takes six months for completion.
186
AIR FORCE CANTEEN MANAGEMENT SYSTEM
: 27000 + 3000
: 30000 INR
187
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Chapter 7
Reports
188
AIR FORCE CANTEEN MANAGEMENT SYSTEM
It has been designed to fulfill basic requirements of Canteen Management and can
be modified as per the future requirements; it is really flexible for further projection
as here it designed to reduce the work load of maintaining the files of information
about Customers,Items etc. manually.
Reducing the man power it helps the management system to employee the human
resources to some other requirements. Anybody dealing in this field can opt for
this, being flexible designing will require only slight changes.
This project can be used in Air Force Canteen after adding some more useful
modules in the project.
8.2 CONCLUSION
189
AIR FORCE CANTEEN MANAGEMENT SYSTEM
Using the Computerized software for Canteen Management System, the sale
of Items is done very easily & very fastly.
This computerized System will save time as it Sale the Items & generate the
Bill for different people very quickly & maximize the profit for the
Organisation.
bibliography
190
AIR FORCE CANTEEN MANAGEMENT SYSTEM
191