Академический Документы
Профессиональный Документы
Культура Документы
MANAGEMENT
Submitted By :
Name : Bableen Kaur
INTRODUCTION: -
The project named Fast Food Automation has been prepared by the
programmer, keeping in view the objective to make sure that all the needs of a Fast
Food Center should be taken care of. The Objective of creating the project is to
make whole of the manual work of the restaurant such as Adding of a new product
to the existing menu of products of the restaurant, Selling of a product to the
customer of the shop, maintaining a list of products available at the library,
preparing a bill for the products purchased by the customer etc. fully
computerized. The Scope of the project named Fast Food restaurant is very
wide. The programmer has prepared the project in such a manner that it can fulfill
the needs of any Fast Food restaurant be it be very small or very big. The project
can handle large number of customers at the same time. The user can add any
number of products to the existing list of products, and can maintain a long list of
products available with the restaurant without any difficulty. Products can be sold
to the customers and the bill can be generated for the products sold to the
customer. The software provides the scope for editing the details of products
available at the restaurant. The software also provides the scope for adding a new
product, and also modifying and deleting the existing products. It is very important
for creating a successful and robust project that the problem or need of the client
for which the project has to be developed should be clearly defined to the
programmer. Unless, the programmer does not clearly understand the problem for
the solution of which the project is to develop, he/she cannot develop successful
and bugs free software. Hence, relating to our project named Fast Food
Automation, the problem for the solution of which the project has been
developed is that of turning a big Fast Food Restaurant into a fully computerized
one.
PROBLEM DEFINITION
The Project named Fast Food automation has been developed using
the VB6.0 programming language. VB is still the language of choice for writing
large systems and is still the basis for most advanced programming projects.
Programmer has used VB language in a very efficient and effective way to
develop the interface of the project. All the coding of the project has been done in
Front-End VB language and Backend Access. The software has been prepared
with a theory of turning a manual Fast Food Restaurant into a fully
computerized one. The theory behind preparing the project is to make the user
easy to handle a large number of items in more efficient and effective way by
making it fully computerized. Keeping in view the needs and requirements of a
very large restaurant has developed the software. This statement can be proved by
the fact, that the programmer has given scope for adding a large number of items
to the project. Other needs of a large Fast Food Restaurant such as adding a new
item to the existing list of items, keeping record of products sold to the customers,
maintaining a list of large number of available items with the restaurant etc. have
also been take care off by the programmer while creating the project.
SCOPE :-
This project on fast food automation system tries to provide some amount of
automation in fast food restaurant system. The Scope of the project is to help
restaurant in making their business more efficient.
In the Fast-Food MANAGEMENT SYSTEM project, there are five
options such as: - PURCHASE, SEE MENU, EDIT, TOTAL BILL, EXIT. In this
project All Billing system is computerized. These module work properly. Like In
purchase item user purchase any item after showing food list. Second module
display the food list item , another module is Edit menu, In edit menu main user or
admin can update the food id , Item name, Rate , Description, Quantity .Third
module is Total bill, In this after purchased total bill automatically generate. Last
is EXIT module. In exit module come out in main window.
MODULES :-
Purchase Item
In purchase item user purchase any item after showing list of food. On Go,
validation for each text box is carried out and attention is focused on to respective
text box that does not meet validation requirement, thus chances of error are
eliminated.
See Menu
In this module, the system display the List of food with its description of rate.
Edit In Edit Module, Main Admin update the menu item like add the new item or edit,
delete the items like pizza, modify the rate etc. If Main user save the list without filling
the record then this page will display error.
Total Bill
After purchasing, Total bill will be automatically generated. In total bill, the Food name,
Quatity, Rate, and total amount would be mentioned.
EXIT
This module will be work of EXIT. If users processing work have finish .
SCREEN SHOTS
Home Page
CODING OF THE PROJECT
//**********************************************************
// PROJECT FAST-FOOD AUTOMATION
//**********************************************************
//**********************************************************
// INCLUDED HEADER FILES
//**********************************************************
Loginpage.java
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
String username = txtusername.getText();
String password = txtpassword.getText();
if(username.equals("")){
JOptionPane.showMessageDialog(null, "Please enter your user name!");
txtusername.requestFocusInWindow();
return;
}
if(password.equals("")){
JOptionPane.showMessageDialog(null, "Please enter your password!");
txtpassword.requestFocusInWindow();
return;
}
if(username.equals("admin") && password.equals("admin"))
{
home obj = new home();
obj.setVisible(true);
this.dispose();
}// TODO add your handling code here:
else
{
JOptionPane.showMessageDialog(null, "Your user id or password is wrong");
txtusername.requestFocusInWindow();
}
}
Home page
/**
* @param args the command line arguments
*/
public Vector getEmployee()throws Exception
{
Vector<Vector<String>> employeeVector = new Vector<Vector<String>>();
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/fastfood", "root", "root");
PreparedStatement pre = con.prepareStatement("select * from purchase ");
ResultSet rs = pre.executeQuery();
while(rs.next())
{
Vector<String> employee = new Vector<String>();
employee.add(rs.getString(1)); //Empid
employee.add(rs.getString(2)); //name
employee.add(rs.getString(3)); //position
employee.add(rs.getString(4));
employee.add(rs.getString(5));
employee.add(rs.getString(6));
//employee.add(rs.getString(4)); //department
employeeVector.add(employee);
}
return employeeVector;
}
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
try
{
new AllPurchaseBill().setVisible(true);
}
catch(Exception e)
{
e.printStackTrace();
}
}
});
}
EDIT
Edit
if(name.equals("")){
JOptionPane.showMessageDialog(null, "Please enter product name!");
txtname.requestFocusInWindow();
return;
}
if(price.equals("")){
JOptionPane.showMessageDialog(null, "Please enter product price!");
txtprice.requestFocusInWindow();
return;
}
try {
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/fastfood", "root", "root");
PreparedStatement ps = con.prepareStatement("update item set ItemName =
'"+name+"', ItemPrice = '"+price+"' where ItemID = '"+itemid+"'");
int i = ps.executeUpdate();
if(i>0) {
JOptionPane.showMessageDialog(null, "ITEM UPDATED
SUCCESSFULLY!");
txtname.setText("");
txtprice.setText("");
comitemid.requestFocusInWindow();
} else{
JOptionPane.showMessageDialog(null, "ITEM NOT UPDATED
SUCCESSFULLY!");
}
} catch(Exception ex) {
JOptionPane.showMessageDialog(null, ex);
}
}
txtname.setText("");
txtprice.setText("");
comitemid.requestFocusInWindow();
} else{
JOptionPane.showMessageDialog(null, "ITEM NOT DELETED
SUCCESSFULLY!");
}
}
catch(Exception ex)
{
JOptionPane.showMessageDialog(null, ex);
}
}
Purch
Class.forName("java.sql.Driver");
Connection con = DriverManager.getConnection("jdbc:mysql://localhost:3306/fastfood",
"root", "root");
PreparedStatement ps = con.prepareStatement("insert into purchase values(?,?,?,?,?,?)");
ps.setString(1, id);
ps.setString(2, itemname);
ps.setFloat(3, price);
ps.setString(4, custname);
ps.setFloat(5, quantity);
ps.setFloat(6, amount);
int i = ps.executeUpdate();
if(i>0)
{
JOptionPane.showMessageDialog(null, "Your purchase order submited
successfully!");
comitemid.setSelectedItem("select Item ID ..");
txtname.setText("");
txtprice.setText("");
txtcustname.setText("");
txtquantity.setText("");
txttottalamount.setText("");
//txtitemprice.setText("");
comitemid.requestFocusInWindow();
}
else{
JOptionPane.showMessageDialog(null, "Item not inserted successfuly!");
}
}
catch(Exception ex)
{
JOptionPane.showMessageDialog(null, ex);
} }
Connectivity
public Vector getEmployee()throws Exception
{
Vector<Vector<String>> employeeVector = new Vector<Vector<String>>();
Class.forName("java.sql.Driver");
Connection con =
DriverManager.getConnection("jdbc:mysql://localhost:3306/fastfood", "root", "root");
PreparedStatement pre = con.prepareStatement("select * from item ");
ResultSet rs = pre.executeQuery();
while(rs.next())
{
Vector<String> employee = new Vector<String>();
employee.add(rs.getString(1)); //Empid
employee.add(rs.getString(2)); //name
employee.add(rs.getString(3)); //position
//employee.add(rs.getString(4)); //department
employeeVector.add(employee);
}
return employeeVector;
}
}