Sunteți pe pagina 1din 10

A Project Report on EXIDE CARE

For AISSC Examination 2019-20


[As a part of the Informatics Practices Course (265)]

Submitted by :- Under the guidance of


KUSHAL LUNIA MR. D VIJAY KUMAR

Roll No :- PGT (I.P)


Acknowledgement
I would like to express my sincere gratitude to my
Informatics teacher for his vital support, guidance and
encouragement without which this project would have
not come further from my side in given time. I like to
express my heartily gratitude to our Principal MR.
Jashvir Chaudhary for his motivation and support
during the making of this project.

Special thanks to our management who helped me a lot


in completing the project by providing all possible
resources so that I complete this project easily and
accurate.

I thank my parents and classmates(Master Pratham


Talreja And Master Anshul singh) for their undivided
support and intrest who inspired and encouraged me to
in my own way without which I would not had
completed my project.

By – Kushal Lunia
C O N T E N T S

1. Introduction ............................................................. Error! Bookmark not defined.

2. Objective & Scope of the Project ................. Error! Bookmark not defined.

3. Theoretical Background ....................................... Error! Bookmark not defined.


3.1 What is Database?..................................................... Error! Bookmark not defined.
Introduction and Concepts: ........................................... Error! Bookmark not defined.
Role of RDBMS Application Program: ........................ Error! Bookmark not defined.

3.2 What is My SQL ? .............................. Error! Bookmark not defined.


The Main Features of MySQL ................................... Error! Bookmark not defined.
3.3 What is NetBeans IDE ? ........................................... Error! Bookmark not defined.
Features of NetBeans.......................................................... Error! Bookmark not defined.
4. Problem Definition & Analysis .......................... Error! Bookmark not defined.

5. System Implementation ....................................... Error! Bookmark not defined.


5.1 The Hardware used: .................................................. Error! Bookmark not defined.
5.2 The Softwares used: .................................................. Error! Bookmark not defined.
6. System Design & Dev elopment ......................................................................... 4
6.1 Database Design: ..................................................................................................... 4
6. System Design & Development

6.1 Database Design:


An important aspect of system design is the design of data storage structure. To begin
with a logical model of data structure is developed first. A database is a container
object which contains tables, queries, reports and data validation policies enforcement
rules or contraints etc. A logical data often represented as a records are kept in
different tables after reducing anomalies and redundancies. The goodness of data
base design lies in the table structure and its relationship.
This software project maintains a database named KUSH which contains the following
tables.
The database of Kush contains table Battery. The tables are normalized to minimize the
redundancies of data and enforcing the validation rules of the organization.
SO LETS BEGIN WITH ….
SPLASH SCREEN

CODING OF SPLASH SCREEN :-


splash splash=new splash();
splash.setVisible(true);

try{
for(int i=0;i<=100;i++){
Thread.sleep(30);

splash.pb.setValue(i);

if(i==100){
splash.dispose();
new login().setVisible(true);
}
}
}
catch (Exception e){
}
LOGIN FRAME :-

FOR LOGIN :-

String Uid=t1.getText();
String pwd=new String(t2.getPassword());

if(Uid.equals("abc")&& pwd.equals("123"))
{ new claim().setVisible(true);
dispose();
JOptionPane.showMessageDialog(null,"Sign in Successful");}

if(Uid.equals("kushal")&& pwd.equals("123"))
{ new control().setVisible(true);
dispose();}
if(Uid.equals("price")&& pwd.equals("p"))
{ new price().setVisible(true);
dispose();
Claim Frame:-

CODING FOR ADD BATTERY :-


int a=Integer.parseInt(t1.getText());
String b=(t2.getText());
String c=(t3.getText());
String d=(t4.getText());
String h=(t5.getText());
String f=(t6.getText());
String i=(t8.getText());
String st=(t7.getText());
try {

Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Check frame :-

FOR SHOW :-

DefaultTableModel tm=(DefaultTableModel) tb1.getModel();


int py=Integer.parseInt(t1.getText());
try {

Class.forName("java.sql.DriverManager");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Statement st=(Statement) con.createStatement();

if (py==0)
{
String qr= "select s_no,cust_name,mode_no,date,foc,cust_no,pdate,status
FROM battery order by s_no ";

ResultSet rs = st.executeQuery(qr);

String s,c,m,d,f,n,p,lk;
Update frame :-

FOR UPDATE :-
int a=Integer.parseInt(t1.getText());
String st=(t7.getText());
try {

Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root","123");
Statement stmt=con.createStatement();

String k= "update battery set status='"+st+"' where s_no="+a;


int l=stmt.executeUpdate(k);
JOptionPane.showMessageDialog(null,"Updated");
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage());
}
FOR CHECK :-
new sheet().setVisible(true);
ANALYSIS FRAME :-
IF uid and password is kushal and kushal123

FOR SHOW :-
try {
Class.forName("com.mysql.jdbc.Driver");
Connection con= (Connection)
DriverManager.getConnection("jdbc:mysql://localhost/kush","root",
"123");

Statement stmt=con.createStatement();
String qr= ("select count(status) from battery where status like
'%sent%' and date=(curdate());");

ResultSet rs = stmt.executeQuery(qr);
rs.next();
String f= rs.getString("count(status)");
t1.setText(""+f);

S-ar putea să vă placă și