You are on page 1of 21

A Project Report On

CATTERING system
Submitted in partial fulfilment of the requirements for the IT
PROJECT under CHSE, ODISHA

SHANTI INSTITUTE OF MANAGEMENT HIGHER


SECONDARY SCHOOL
CDA, CUTTACK – 14
Submitted By :

ABINASH ROUT
Roll No: 393CA084
Regd. No : CA93S22087
+2 2ND YEAR SCIENCE
Page3

Under The Guidance of

RAJESH KUMAR ACHARYA

Department Of Information Technology


DECLARATION

I ABINASH ROUT, a student of +2 2ndyear Science, hereby

declare that, I am submitting a project titled “CATTERING SYSTEM” under

the supervision of Mr. RAJESH KUMAR ACHARYA.

The above said project is to be a part towards the fulfilment of the

requirement of course study. This project is an original one and has not been

submitted to any organization for the fulfilment of any course.

Signature :

Roll No. :

Authorised Signatory
Page3
CERTIFICATE

This is to certify that the project entitled CATTERING SYSTEM being


submitted by ABINASH ROUT, having Registration No: CA93S22087 in
partial fulfilment of the requirements for CHSE EXAM-2024 is a record
benefited project done by his under my supervision and guidance.
This has not been submitted earlier by any college or institute for
award of CHSE certificate.

I wish all success in his life.

Place : CUTTACK

Date : ( MR RAJESH KUMAR ACHARYA)


Page3
ACKNOWLEDGEMENT

What I write or mention in this sheet will hardly be adequate in


return for the amount of help and co-operation. I have received from all of the
people who have contributed to make this project a reality. But I will still try my
level best to thank them.

First of all I wish to express my sincere thanks to Mr.


Rajesh Kumar Acharya, my project guide in this undertaking, who
has always there for me to offer help in all possible ways, ready to
solve any problem with a smiling face. I owe him a lot due to boost
that he has provided me for the successful completion of the project
within the stipulated time.

Also thanks to the Head of the organisation, SIMS for his


support to make the project success.

Finally I wish to express my heartiest thanks to my parents, all my


teachers and friends who played a very important part in making my
Page3

project complete and successful.


TABLE OF CONTENTS

Sl. No Contents Page No


1. Introduction 6
2. Objective 6
3. Hardware Specification 7
4. Software Specification 7
5. Database Design 8
6. User Interface 9
7. Report and Form Design 10
8. Code 11
9. Bibliography 21

Page3
INTRODUCTION

“CATTERING SYSTEM” is a project generally based on computerised

information.

“CATTERING SYSTEM” is a software where we have given all the required

data needed.

OBJECTIVES

The purpose of the project is to develop a software of particular Cattering

which is user friendly, simple, fast, and cost–effective. It deals with the

information of customers. It is accessible only by cattering. Traditionally, it

was done manually. The main function of the system is to register and store

the details of the customers and results and retrieve these details as and
Page3

when required, and also to manipulate these details meaningfully.

Efficiently it maintains the details about the above mentioned categories.

Simultaneously if there is any changes to any data & items in the entire data

base then it is updated.


Hardware Specifications :
The implementation of the proposed system requires the following
hardware specifications.

a. CPU Type : coreTMi3.


b. CPU Clock : 2.6 ghz or above
c. RAM : 4GB or above
d. CD Drive : Any make
e. U.P.S.[5 Kv ] : Any Make

Software Specifications :
The software is designed under the following environment:

Tools : JDK_1.7,NetBeanIDE

Databases :MySQL
Page3

Operating System : - Windows-7/8


DATABASE

TABLE : CATTERING
COLUMNNAME DATATYPE SIZE

CATTERINGNAME CHAR 30

ITEM CHAR 30

COST CHAR 30

ADDRESS CHAR 30

DATE CHAR 30

QUALITY CHAR 30

Page3
User Interface

Page3
Reports & Output Forms:

Page3
Codes :
import java.awt.BorderLayout;

import javax.swing.*;

import javax.swing.table.DefaultTableModel;

import java.sql.DriverManager;

import java.sql.*;

public class HOTEL extends java.awt.Frame {

public HOTEL() {

initComponents();

String a1,a2,a3,a4,a5,a6;

// <editor-fold defaultstate="collapsed" desc="Generated Code">

private void initComponents() {

jLayeredPane1 = new javax.swing.JLayeredPane();

jLayeredPane2 = new javax.swing.JLayeredPane();

jLayeredPane3 = new javax.swing.JLayeredPane();

jLabel1 = new javax.swing.JLabel();

jButton1 = new javax.swing.JButton();

jButton2 = new javax.swing.JButton();


Page3

jLabel2 = new javax.swing.JLabel();

jLabel3 = new javax.swing.JLabel();

jLabel4 = new javax.swing.JLabel();

jLabel5 = new javax.swing.JLabel();

jLabel6 = new javax.swing.JLabel();


jLabel7 = new javax.swing.JLabel();

jTextField1 = new javax.swing.JTextField();

jTextField2 = new javax.swing.JTextField();

jTextField3 = new javax.swing.JTextField();

jTextField4 = new javax.swing.JTextField();

jTextField5 = new javax.swing.JTextField();

jTextField6 = new javax.swing.JTextField();

addWindowListener(new java.awt.event.WindowAdapter() {

public void windowClosing(java.awt.event.WindowEvent evt) {

exitForm(evt);

});

jLayeredPane1.setForeground(new java.awt.Color(0, 204, 204));

add(jLayeredPane1, java.awt.BorderLayout.NORTH);

jLayeredPane2.setMaximumSize(new java.awt.Dimension(20000, 20000));

add(jLayeredPane2, java.awt.BorderLayout.WEST);

jLayeredPane3.setBackground(new java.awt.Color(0, 204, 204));

jLayeredPane3.setBorder(javax.swing.BorderFactory.createCompoundBorder(null,
javax.swing.BorderFactory.createCompoundBorder(null,
javax.swing.BorderFactory.createEtchedBorder(new java.awt.Color(204, 0, 153), null))));

jLayeredPane3.setMinimumSize(new java.awt.Dimension(2000, 2000));

jLayeredPane3.setPreferredSize(new java.awt.Dimension(5000, 5000));

jLabel1.setBackground(new java.awt.Color(0, 153, 204));


Page3

jLabel1.setFont(new java.awt.Font("Tunga", 0, 36)); // NOI18N

jLabel1.setForeground(new java.awt.Color(255, 0, 51));

jLabel1.setText("HOTEL MANAGEMENT SOFTWARE");

jLabel1.setBorder(new
javax.swing.border.SoftBevelBorder(javax.swing.border.BevelBorder.RAISED, new
java.awt.Color(204, 0, 204), new java.awt.Color(0, 153, 153), new java.awt.Color(51, 255,
51), new java.awt.Color(0, 51, 255)));
jLayeredPane3.add(jLabel1);

jLabel1.setBounds(50, 10, 490, 30);

jButton1.setBackground(new java.awt.Color(0, 204, 204));

jButton1.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

jButton1.setForeground(new java.awt.Color(255, 0, 51));

jButton1.setText("ADD");

jButton1.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton1ActionPerformed(evt);

});

jLayeredPane3.add(jButton1);

jButton1.setBounds(70, 290, 140, 40);

jButton2.setBackground(new java.awt.Color(0, 204, 153));

jButton2.setFont(new java.awt.Font("Tahoma", 0, 14)); // NOI18N

jButton2.setForeground(new java.awt.Color(255, 0, 51));

jButton2.setText("SHOW");

jButton2.addActionListener(new java.awt.event.ActionListener() {

public void actionPerformed(java.awt.event.ActionEvent evt) {

jButton2ActionPerformed(evt);

});
Page3

jLayeredPane3.add(jButton2);

jButton2.setBounds(380, 290, 110, 40);

jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N

jLabel2.setForeground(java.awt.Color.green);

jLabel2.setText("ROOMNO");

jLayeredPane3.add(jLabel2);
jLabel2.setBounds(40, 50, 100, 17);

jLabel3.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N

jLabel3.setForeground(java.awt.Color.green);

jLabel3.setText("NAME");

jLayeredPane3.add(jLabel3);

jLabel3.setBounds(40, 80, 100, 17);

jLabel4.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N

jLabel4.setForeground(java.awt.Color.green);

jLabel4.setText("PRICE");

jLayeredPane3.add(jLabel4);

jLabel4.setBounds(40, 110, 120, 17);

jLabel5.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N

jLabel5.setForeground(java.awt.Color.green);

jLabel5.setText("CONTACT NO");

jLayeredPane3.add(jLabel5);

jLabel5.setBounds(40, 140, 130, 17);

jLabel6.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N

jLabel6.setForeground(java.awt.Color.green);

jLabel6.setText("EMAIL");

jLayeredPane3.add(jLabel6);

jLabel6.setBounds(40, 170, 130, 17);

jLabel7.setFont(new java.awt.Font("Times New Roman", 1, 14)); // NOI18N


Page3

jLabel7.setForeground(java.awt.Color.green);

jLabel7.setText("DATE");

jLayeredPane3.add(jLabel7);

jLabel7.setBounds(40, 200, 120, 17);

jTextField1.setBackground(new java.awt.Color(0, 102, 204));

jTextField1.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N


jTextField1.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField1);

jTextField1.setBounds(240, 50, 200, 21);

jTextField2.setBackground(new java.awt.Color(0, 102, 204));

jTextField2.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

jTextField2.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField2);

jTextField2.setBounds(240, 80, 200, 21);

jTextField3.setBackground(new java.awt.Color(0, 102, 204));

jTextField3.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

jTextField3.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField3);

jTextField3.setBounds(240, 110, 200, 21);

jTextField4.setBackground(new java.awt.Color(0, 102, 204));

jTextField4.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

jTextField4.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField4);

jTextField4.setBounds(240, 140, 200, 21);

jTextField5.setBackground(new java.awt.Color(0, 102, 204));

jTextField5.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

jTextField5.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField5);
Page3

jTextField5.setBounds(240, 170, 200, 21);

jTextField6.setBackground(new java.awt.Color(0, 102, 204));

jTextField6.setFont(new java.awt.Font("Tahoma", 1, 12)); // NOI18N

jTextField6.setForeground(new java.awt.Color(255, 51, 255));

jLayeredPane3.add(jTextField6);

jTextField6.setBounds(240, 210, 200, 21);


add(jLayeredPane3, java.awt.BorderLayout.CENTER);

pack();

}// </editor-fold>

private void exitForm(java.awt.event.WindowEvent evt) {

System.exit(0);

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {

try

// create our mysql database connection

String myDriver = "org.gjt.mm.mysql.Driver";

String myUrl = "jdbc:mysql://localhost:3306/CATTERING";

Class.forName(myDriver);

Connection conn = DriverManager.getConnection(myUrl, "root", "root");

a1=jTextField1.getText();

a2=jTextField2.getText();

a3=jTextField3.getText();

a4=jTextField4.getText();

a5=jTextField5.getText();

a6=jTextField6.getText();

a7=jTextField7.getText();
Page3

// our SQL SELECT query.

// if you only need a few columns, specify them by name instead of using "*"

String query = "insert into CS


values('"+a1+"','"+a2+"','"+a3+"','"+a4+"','"+a5+"','"+a6+"','"+a7+"')";

// create the java statement

Statement st = conn.createStatement();
// execute the query, and get a java resultset

st.executeUpdate(query);

jTextField1.setText("");

jTextField2.setText("");

jTextField3.setText("");

jTextField4.setText("");

jTextField5.setText("");

jTextField6.setText("");

jTextField7.setText("");

st.close();

catch (Exception e)

System.err.println("Got an exception! ");

System.err.println(e.getMessage());

// TODO add your handling code here:

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {

JFrame frame1;

JTable table;

String[] columnNames = {"CATTERINGNAME",


"ITEM","COST","CONTACT","ADDR","DATE","QUALITY"};
Page3

//hsa

frame1 = new JFrame("Database Search Result");

frame1.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame1.setLayout(new BorderLayout());

DefaultTableModel model = new DefaultTableModel();


model.setColumnIdentifiers(columnNames);

table = new JTable();

table.setModel(model);

table.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);

table.setFillsViewportHeight(true);

JScrollPane scroll = new JScrollPane(table);

scroll.setHorizontalScrollBarPolicy(

JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);

scroll.setVerticalScrollBarPolicy(

JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);

try

String myDriver = "org.gjt.mm.mysql.Driver";

String myUrl = "jdbc:mysql://localhost:3306/CATTERING";

Class.forName(myDriver);

Connection conn = DriverManager.getConnection(myUrl, "root", "root");

String sql = "select * from CS";

PreparedStatement ps = conn.prepareStatement(sql);

ResultSet rs = ps.executeQuery();

while (rs.next())

String a = rs.getString("CATTERINGNAME");
Page3

String b=rs.getString("ITEM");

String c = rs.getString("COST");

String d=rs.getString("CONTACT");

String e = rs.getString("ADDR");

String f=rs.getString("DATE");

String g=rs.getString("QUALITY");
model.addRow(new Object[]{ a,b,c,d,e,f,g});

// st.close();

catch(Exception ex)

JOptionPane.showMessageDialog(null, ex.getMessage(),"Error",

JOptionPane.ERROR_MESSAGE);

frame1.add(scroll);

frame1.setVisible(true);

frame1.setSize(400,300);

// TODO add your handling code here:

public static void main(String args[]) {

java.awt.EventQueue.invokeLater(new Runnable() {

public void run() {

new HOTEL().setVisible(true);

});

// Variables declaration - do not modify


Page3

private javax.swing.JButton jButton1;

private javax.swing.JButton jButton2;

private javax.swing.JLabel jLabel1;

private javax.swing.JLabel jLabel2;

private javax.swing.JLabel jLabel3;

private javax.swing.JLabel jLabel4;


private javax.swing.JLabel jLabel5;

private javax.swing.JLabel jLabel6;

private javax.swing.JLabel jLabel7;

private javax.swing.JLayeredPane jLayeredPane1;

private javax.swing.JLayeredPane jLayeredPane2;

private javax.swing.JLayeredPane jLayeredPane3;

private javax.swing.JTextField jTextField1;

private javax.swing.JTextField jTextField2;

private javax.swing.JTextField jTextField3;

private javax.swing.JTextField jTextField4;

private javax.swing.JTextField jTextField5;

private javax.swing.JTextField jTextField6;

// End of variables declaration

Page3
BIBLIOGRAPHY

The following books have been referred during the preparation of this

project.

1. CHSE +IT BOOK

2. MYSQL KALYANI PUBLISHER

3. CHSE IT FROM MBD PUBLICATION

Page3

You might also like