Ip Project Lelo Free Hai
Ip Project Lelo Free Hai
Ip Project Lelo Free Hai
on
For
CBSE 2019 Examination
[As a part of the Informatics Practices Course (065)]
SUBMITTED BY :
NAME : UMANG KADEL
ROLL NO.:
CERTIFICATE
similar report on the topic has not been submitted for any other
examination and does not form a part of any other course undergone
by the candidate.
………………………… ……………………………..
Signature of Students Signature of Teacher/Guide
ACKNOWLEDGEMENT
I
undertook this Project work, as the part of my XII-Informatics
Practices course.I 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 ------------------------------------------------------------5
(MIS) to automate the record keeping of customer entry,order entry and item entry
for a particular subject or purpose, capable to produce different reports relevant to the
user. An application program is tied with the database for easy access and interface to
the database. Using Application program or front-end, we can store, retrieve and
This software, being simple in design and working, does not require much of training to
users, and can be used as a powerful tool for automating a sports shop System.
During coding and design of the software Project, Java NetBeans IDE, a powerful
front-end tool is used for getting Graphical User Interface (GUI) based integrated
SQL is used as per requirement of the CBSE curriculum of Informatics Practices Course.
2. Objective & Scope of the Project
In its current scope, the software enables user to retrieve and update the
information from centralized database designed with MySQL . This software
does not require much training time of the users due to limited functionality
and simplicity.
To find and retrieve just the data that meets conditions you specify, including
data from multiple tables, create a query. A query can also update or delete
multiple records at the same time, and perform built-in or custom calculations
on your data.
Role of RDBMS Application Program:
A computer database works as a electronic filing system, which has a large
number of ways of cross-referencing, and this allows the user many different
ways in which to re-organize and retrieve data. A database can handle
business inventory, accounting and filing and use the information in its files
to prepare summaries, estimates and other reports. The management of data in
a database system is done by means of a general-purpose software package
called a Database Management System (DBMS). Some commercially available
DBMS are MS SQL Server, MS ACCESS, INGRES, ORACLE, and Sybase.
A database management system, therefore, is a combination of hardware and
software that can be used to set up and monitor a database, and can manage
the updating and retrieval of database that has been stored in it. Most of the
database management systems have the following capabilities:
Creating of a table, addition, deletion, modification of records.
Retrieving data collectively or selectively.
The data stored can be sorted or indexed at the user's discretion and
direction.
Various reports can be produced from the system. These may be either
standardized report or that may be specifically generated according to
specific user definition.
Mathematical functions can be performed and the data stored in the
database can be manipulated with these functions to perform the desired
calculations.
To maintain data integrity and database use.
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)
private void jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String a,b;
a=tf1.getText();
b=new String(tf2.getPassword());
if (a.equals("umk") && b.equals("jmk"))
{
MainUI ob=MainUI();
ob.setVisible(true);
}
else
{
JOptionPane.showMessageDialog(null,"Either usename or
password is incorrect");
}
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.
Sr. Menu Bar Pull Down Menu Purpose Forms Attached
Insertion of Custmor PubUI.java
Custmor entry records.
Sports Item entry Insertion of item records. PubEditUI.java
1.
club PubDelUI.java
Order entry Insertion of Order records.
Coding of ShopINUI
import java.sql.*;
import javax.swing.JOptionPane;
public class ShopINUI extends javax.swing.JFrame {
DriverManager.getConnection("jdbc:mysql://localhost:3306/shopkeeper","root","iis");
Statement stmt = null;
ResultSet rs = null; // ResultSet for SHOPKEEPER table.
String SQL = "SELECT * FROM shopkeeper";
stmt = con.createStatement(); // Connection string for ResultSet - rs.
rs = stmt.executeQuery(SQL);
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","iis");
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","iis");
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","iis");
Statement stmt = null;
ResultSet rs = null;
while (rs.next()) {
double iprice = rs.getDouble("Price");
txtItemPrice.setText(Double.toString(iprice));
}
con.close();
} catch (Exception e) {
JOptionPane.showMessageDialog(this,e.getMessage());
e.printStackTrace();
}
/**
* @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
*
* Created on Mar 18, 2010, 1:50:20 PM
*/
/**
*
* @author gagan
*/
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
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
The software project is distributed with a backup copy of a Database named Shopkeeper
with required tables. Some dummy records are present in the tables for testing purposes,
which can be deleted before inserting real data. The project is shipped with Shop.SQL
file which installs a database and tables in the computer system.
Note: The PC must have MySQL server with user (root) and password (iis) . If root
password is any other password, it can be changed by running MySQL Server Instance
Configure Wizard.
Provide current password of root and new password as “iis” , this will change the root
password.
To install a MySQL database from a dump file ( shop.sql) , simply follow the following
steps.
Step 1: Copy the Lib.sql file in C:\Program files\Mysql\MySql server 5.1\Bin folder.
Step 2: Open MySQL and type the following command to create the dabase named
Shopkeeper.
mysql> create database shopkeeper;
Step 3: Open Command Window (Start Run cmd)
Step 4: Go to the following folder using CD command of DOS.
C:\Program files\Mysql\MySql server 5.1\Bin>
Step 5: type the following command on above prompt -
C:….\bin> mysql -u root -piis Library < shop.sql
This will create a shopkeeper databse with required tables.
7.2 Working with SoftwareProject:
The Library Management Program consists of the following logically organised Menu-
structure for the easy functionality. User may choose the menu options for
corresponding works.
8. References
In order to work on this project titled –sports shop –Sports shop
Management System, the following order of spots material are refered by me
during the various phases of development of the project.
(4) http://www.netbeans.org/