Project Report
Project Report
Project Report
EDUCATION CENTRE
Kalyanpur Kanpur
A Project Report On
For
AISSCE 2017-18 Examination
[As a part of the Informatics Practices Course
(065)]
SUBMITTED BY:
Aditya Singh
RAJESH SHARMA
(Subject Tearcher)
CERTIFICATE
-----------------------------------
------------------------------------
SUBJECT TEACHER EXAMINER
---------------------------------
PRINCIPAL / SCHOOL STAMP
ACKNOWLEDGEMENT
We undertook this Project work, as the part of
my XII-Informatics Practices course.We had tried
to apply my best of knowledge and experience,
gained during the study and class work
experience. However, developing software
system is generally a quite complex and time-
consuming process. It requires a systematic
study, insight vision and professional approach
during the design and development. Moreover,
the developer always feels the need, the help
and good wishes of the people near you, who
have considerable experience and idea.
1. Introduction
3. Theoretical Background
5. System Implementation
7. User Manual
8. References
1. Introduction
functionaries.
System.
During coding and design of the software Project, Java
T
he objective of the software project is to develop
a computerized MIS to automate the functions of
a Big Bazaar. This software project is also aimed to
enhance the current record keeping system, which
will help managers to retrieve the up-to-date
information at right time in right shape.
The proposed software system is expected to do the
following functionality-
To provide a user friendly, Graphical User
Interface (GUI) based integrated and centralized
environment for MIS activities.
The proposed system should maintain all the
records and transactions, and should generate the
required reports and information when required.
To provide graphical and user-friendly interface to
interact with a centralized database based on
client-server architecture.
To identify the critical operation procedure and
possibilities of simplification using modern IT tools
and practices.
Table: item
Column Name Type Size
Item_id Integer 100
Item_name varchar 100
description Varchar 1000
price float (11,2)
Table: orderitem
Column Name Type Size
orderno varchar 100
item_id int 100
shopper_id Varchar 100
quantity int 100
Order_date Date
price float (11,2)
discount Float (11,2)
amount float (11,2)
6.2 Menu Design:
JSS Infoware gateway comprises the following options,
organized in a user friendly way. The menu system
divided in Menu Bars, each having a pull down menus
containing options for a specific task.
Frame: MainUI.java
Coding of ShopINUI
import java.sql.*;
import javax.swing.JOptionPane;
public class ShopINUI extends javax.swing.JFrame {
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ShopINUI().setVisible(true);
}
});
}
Frame: ItemINUI.java
import javax.swing.DefaultListModel;
import java.sql.*;
import javax.swing.JOptionPane;
public class OrderINUI extends javax.swing.JFrame {
DriverManager.getConnection("jdbc:mysql://localhost:3306/shopkeeper","root","kvuc");
Statement stmt = null;
ResultSet rs = null; // ResultSet for SHOPKEEPER table.
String SQL = "SELECT * FROM orderitem";
stmt = con.createStatement(); // Connection string for ResultSet - rs.
rs = stmt.executeQuery(SQL);
if (rdYes.isSelected()) {
discP = Float.parseFloat(txtDisc.getText());
}
else {
discP=0;
}
} catch (Exception e) {
JOptionPane.showMessageDialog(this,e.getMessage());
e.printStackTrace();
}
}
sModel.clear();
iModel.clear();
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con = (Connection)
DriverManager.getConnection("jdbc:mysql://localhost:3306/shopkeeper","root","kvuc");
Statement stmt = null;
ResultSet rs = null;
ResultSet rs1 = null;
} catch (Exception e) {
JOptionPane.showMessageDialog(this,e.getMessage());
e.printStackTrace();
}
DriverManager.getConnection("jdbc:mysql://localhost:3306/shopkeeper","root","kvuc");
Statement stmt = null;
ResultSet rs = null;
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new OrderINUI().setVisible(true);
}
});
}
Frame: CustListUI.java
Coding of CustListUI.java
import javax.swing.table.*;
import java.sql.*;
import javax.swing.JOptionPane;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* CustListUI.java
*
* Created on Mar 18, 2010, 1:24:42 PM
*/
/**
*
* @author gagan
*/
public class CustListUI extends javax.swing.JFrame {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Customers list");
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null},
{null, null, null, null, null}
},
new String [] {
"Customer ID", "Name", "Address", "City", "Phone"
}
));
jScrollPane1.setViewportView(jTable1);
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 587,
Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(171, 171, 171)
.addComponent(jButton1)
.addGap(38, 38, 38)
.addComponent(jButton2)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 172,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(35, 35, 35)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(19, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new CustListUI().setVisible(true);
}
});
}
Frame: ItemListUI.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* ItemListUI.java
*
* Created on Mar 18, 2010, 1:45:12 PM
*/
/**
*
* @author gagan
*/
public class ItemListUI extends javax.swing.JFrame {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("List of items in shop");
jButton2.setText("Back to Menu");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null},
{null, null, null, null},
{null, null, null, null},
{null, null, null, null}
},
new String [] {
"Item ID", "Name", "Description", "Price"
}
));
jScrollPane1.setViewportView(jTable1);
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 564,
Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(171, 171, 171)
.addComponent(jButton1)
.addGap(38, 38, 38)
.addComponent(jButton2)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 172,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(35, 35, 35)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new ItemListUI().setVisible(true);
}
});}
Frame: OrdListUI.java
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* OrdListUI.java
*
*
*/
/**
*
* @author Aditya_Singh_HP
*/
public class OrdListUI extends javax.swing.JFrame {
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("List of orders");
jButton2.setText("Back to Menu");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jTable1.setModel(new javax.swing.table.DefaultTableModel(
new Object [][] {
{null, null, null, null, null, null, null, null},
{null, null, null, null, null, null, null, null},
{null, null, null, null, null, null, null, null},
{null, null, null, null, null, null, null, null}
},
new String [] {
"Order No.", "Order Date", "Item Id", "Customer Id", "Quantity", "Price",
"Discount(%)", "Amount"
}
));
jScrollPane1.setViewportView(jTable1);
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jScrollPane1, javax.swing.GroupLayout.DEFAULT_SIZE, 588,
Short.MAX_VALUE))
.addGroup(layout.createSequentialGroup()
.addGap(171, 171, 171)
.addComponent(jButton1)
.addGap(38, 38, 38)
.addComponent(jButton2)))
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 172,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(35, 35, 35)
.addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton1)
.addComponent(jButton2))
.addContainerGap(20, Short.MAX_VALUE))
);
pack();
}// </editor-fold>
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new OrdListUI().setVisible(true);
}
});
}
QUIT
Coding of QUIT
private void jMenuItem1ActionPerformed(java.awt.event.ActionEvent evt) {
System.exit(0); // TODO add your handling code here:
}
7. User Manual
7.1 How to installSoftware:
Hardware Requirement-
Intel Pentium/Celeron or similar processor based PC at
Client/Server end.
128 MB RAM and 4GB HDD space (for Database) is
desirable.
Standard I/O devices like Keyboard and Mouse etc.
Printer is needed for hard-copy reports.
Local Area Network(LAN) is required for Client-Server
Installation
Software Requirement-
Windows 2000/XP OS is desirable.
NetBeans Ver 5.1 or higher should be installed with JDK
and JVM.
MySQL Ver 6.1 with Library Database must be present at
machine.
Database Installation
Note: The PC must have MySQL server with user (root) and
password (kvuc) . If root password is any other password, it
can be changed by running MySQL Server Instance Configure
Wizard.
Start Program MySQL MySQL Server MySQL Server
Instance Config Wizard
(4) http://www.netbeans.org/