SlideShare ist ein Scribd-Unternehmen logo
1 von 70
“The usage of computers in this century had improved till
online banking in computers”
PROJECT REPORT
IN
“STATE BANK OF INDIA”
Submitted in partial fulfillment for the requirement of
CBSE, New Delhi
K.KEERTHANA ( )
S.A.KEERTHY ( )
R.SOUNDRICA ( )
UNDER THE GUIDANCE
OF
An.DHIVYA
(PGT CS)
KENDRIYA VIDYALAYA
THIRUPPARANKUNDRAM
MADURAI-625005
KendriyaVidyalaya (no.2)
Thiruparankundram, Madurai-625005
2016-2017
INFORMATICS
PRACTICES
BONAFIDE CERTIFICATE
This is to certify that project entitled
”STATE BANK OF INDIA”
is a record of Bonafide work carried out by K.KEERTHANA
, S.A.KEERTHY, R.SOUNDRICAinpartial fulfillment of the
requirements in Computer Science prescribed by CBSE
for AISSCE 2016-2017 in the school KendriyaVidyalaya,
Thiruparankundram,
Madurai-625005.
Date: Principal
Internal Examiner: External Examiner:
Index
1. Introduction
2.System Analysis
3. Proposed System
4. Feasibility Analysis
5. Minimum Hardware Requirements
6. Minimum Software Requirements
7. System Design
8. Database Design
9. Table Used
10. Front End Design
11.Source Code
12.Conclusion
INTRODUCTION:
The project titled “Payroll Management System” is
software for monitoring and controlling the transaction
for an Employee. This project is designed & coded in Net
Beans 7 & database management is handled by MYSQL.
This software mainly focuses on basic operations in a
Bank like updating new information and Pin, searching
balance and getting transactions,
Net Banking is a java written on 32 bits, windows 7,
designed to help users maintain and organize Bank. My
software is easy to use for both beginners and advanced
users. It features a familiar and well thought-out,
attractive user interface, combined with strong searching
insertion and reporting capabilities. The report
generation facility of helps to get a good idea of which .
The software has four main modules:
1.Insertion of database module- user friendly input
screen
2.Extracting from database module- attractive output
screen
3.Report generation module-
4.Search facility system-
SYSTEM ANALYSIS
EXISTING SYSTEM:
System Analysis is a detailed study of the various
operations performed by a system and their relationships
within and outside of the system. Here the Key question
is what all the problems exist in the present system?
What must be done to solve the program using existing
system.
During analysis, data collected on the various files,
decison points and transactions handled by the present
system.Training, experience and common sense are
required for collection of relevant information needed to
develop the system. The success of the system depends
largely on how clearly the problem is defined, thoroughly
investigated and properly carried out through the choice
of solution.
A good analysis model should provide not only the
mechanisms of problem understanding but also the
frame work of the solution. Thus, it should be studied
throughly by collecting data about the system.Then the
proposed system should be analyzed thoroughly in
accordance with the needs.
System analysis can be categorizedinto four parts:
o System planning and initial investigation
o Information gathering
o Applying analysis tools for structured analysis
o Feasibility study
o Cost/benefit analysis.
In our existing system,all the transaction of books are
done manually,so taking more time for a transaction like
borrowing a book and also for searching of members and
books.Another major disadvantage is that preparing the
list of books borrowed and the available books in the
library
will take more time,currently a one day process for
verifying all records.So after conducting the feasibility
study we decided to make a computerized payroll.
PROPOSED SYSTEM:
Proposed system is an automated payroll system.
Through our software user can add members, search
members, know details, update delete information, edit
information in quick time. Our proposed system has the
following advantages.
o user friendly interface
o fast access to database
o less error
o more storage capacity
o search facility
o look and feel environment
o quick transaction
All the manual difficulties in managing payroll have been
rectified by implementing computerization.
FEASIBILITY ANALYSIS
Whatever we thiink need not be feasible . It is wise to
think about feasibility of any problem we undertake.
Feasibility is the study of impact, which happens in the
organizations by the development of a system.The
impact can be either positive or negative. When the
positive nominate the negatives, then the system is
considered feasible .Here the feasibility study can be
performed in two ways such as technical and economical
feasibility.
Technical Feasibility:
We can strongly says that it is technically feasible, since
there will not be much difficulty in getting required
resources for the development and maintaining the
system as well. All the resources needed for the
development of the software as well as the maintenance
of the same is available in the organization here we are
utilizing the resources which are available already.
Economial Feasibility:
Development of this application is highly economically
feasible. theorganisation needed not spend much money
for the development of the system already available. The
only thing is to be done is making an environment for the
development with an effective supervision. If we are
doing so, we can attain the maximum usability of the
corresponding resources. Even after the
development,the Organization will not be in a condition
to invest more in the organization. Therefore, the System
is economically feasible.
MINIMUM HARDWARE REQUIREMENTS
o PROCESSOR:Pentium IV or better
o RAM:512 MB or more
o HARD DISK:100 GB
o MONITOR:Any
o KEY BOARD:122keys
MINIMUM SOFTWARE REQUIREMENTS
o OPERATING SYSTEM:WindowsXP,Windows 7
and above
o LANGUAGE:Java7 Runtime Environment or
better
o FRONT END:Netbeans 7.3.1 or above
o BACK END:MySQL server 5.0 or above
SYSTEM DESIGN
Input Design:
Input design is the process of converting user oriented
input to a computer based format. Input design is a part
of overall system design, which requires very careful
attention. Often the collection of input data is the most
expensive part of the system.
THE MAIN OBJECTIVES OF THE INPUT DESIGN ARE:
o Produce cost effective method of input
o Achieve highest possible level of accuracy
o Ensure that the input is acceptable to and
understood by the staff.
Input Data:The goal of designing input data is to make
enter eacy,logical and free from errors as possible. The
entering data entry operators need to know the
allocated space for each field;Field sequences and which
must watch wih that in the source document. The format
in which the data fields are entered should be given in
the input form. Here data entry is online;It makes use of
processor that accepts commands and data from the
operator through a key board. The input required is
analyzed by the processor . It is then accepted or
rejected. Input stages include the following processes:
o Data Recording
o Data Transcription
o Data Conversion
o Data Verification
o Data Control
o Data Transmission
o Data Correction
DATABASE DESIGN
The general theme behind a database is to handle
information as an integrated whole. A database is a
collection of interrelated data stored with minimum
redundancy to serve many users quickly and effectively.
After designing input and output, the analyst must
concentrate on databse design or how data should be
organized around user requirements. The general
objective is to make information access, easy quick,
inexpensive and flexible for other users. During database
design the following objectives are concerned:-
a. Controlled Redundancy
b.Data independence
c. Accurate and Integrating
d.More information at low cost
e. Recovery from failure
f. Privacy and security
g. Performance
h.Ease of learning and use
Table Used
Front end Design
LOGIN
STUDENTS LOGIN
NEW STUDENT SIGNUP
FEE CONFIRM
FEE PAID
STUDENT TABLE DETAILS
TEACHER LOGIN
TEACHER NEW SIGNUP
TERM SELECTION
PAID
SOURCE CODE
MENU
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
this.setVisible(false);
new Studentlogin().setVisible(true);
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
this.setVisible(false);
new Teacherlogin().setVisible(true);
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
// TODO add your handling code here:
System.exit(0);
}
STUDENT LOGIN
package ip.project;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
public class Studentlogin extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Studentlogin() {
initComponents();
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String us=sname.getText();
String ps=sid.getText();
if(us.isEmpty()){
JOptionPane.showMessageDialog(this,"PleaseEnter
UserName");
}
if(ps.isEmpty()){
JOptionPane.showMessageDialog(this,"PleaseEnter
Password");
}
else
{
try
{
Class.forName("java.sql.DriverManager");
Connection con = (Connection)
DriverManager.getConnection(str,"root","rsrs");
Statement stmt = (Statement)
con.createStatement();
String query="Select name, id from sdetails where
name='"+us+"'and id='"+ps+"';";
rs=stmt.executeQuery(query);
if(rs.next())
{
int username=rs.getInt("id");
String Ps=rs.getString("name");
this.setVisible(false);
new Feeconfirm().setVisible(true);
}
else
{
JOptionPane.showMessageDialog(this,"Wrong
UserName And DOB");
sname.setText("");
sid.setText("");
}
}
catch(Exception e){
JOptionPane.showMessageDialog(this,e.getMessage());
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(false);
new Menu().setVisible(true);
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Studentsignup().setVisible(true);
}
STUDENT SIGN UP
package ip.project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.Statement;
import javax.swing.JOptionPane;
public class Studentsignup extends javax.swing.JFrame{
public Studentsignup() {
initComponents();
s1amt.setText("10000");
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
int a = JOptionPane.showConfirmDialog(null, "Want to
Save Student Details For Sure ?");
if (a == JOptionPane.YES_OPTION){
try {
String c,n,p,d,g,t;
int ad,b,i,bc;
c = s1cls.getText();
n= s1name.getText();
p=s1sec.getText();
d=s1sta.getText();
t=s1term.getText();
b =Integer.parseInt(s1amt.getText());
i=Integer.parseInt(s1id.getText());
ad=Integer.parseInt(s1admno.getText());
bc=Integer.parseInt(s1bc.getText());
String uid = "root";
String pwd = "rsrs";
String url = "jdbc:mysql://localhost:3306/sbi";
Connection con =
DriverManager.getConnection(url, uid, pwd);
Statement stmt = con.createStatement();
String qry = "INSERT INTO sDETAILSVALUES('"
+n +"','" +i +"','" +c +"','" +p +"','" +b +"','" +ad +"','" +t
+"','" +d +"','" +bc +"')";
stmt.executeUpdate(qry);
JOptionPane.showMessageDialog(null, "student new id
Saved Sucessfully.");
stmt.close();
con.close();
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(false);
new Studentlogin().setVisible(true);
}
FEE CONFIRM
package ip.project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
import static ip.project.Studentlogin.sid;
import static ip.project.Studentlogin.sname;
public class Feeconfirm extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs=null;
ResultSet rs1=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Feeconfirm() {
initComponents();
try{
s2name.setText(sname.getText());
s2sid.setText(sid.getText());
String Pin=s2sid.getText();
Class.forName("java.sql.DriverManager");
Connection con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
Statement stmt=(Statement)
con.createStatement();
String query="Select Name,cls,sec,amt,admno
from sdetails where id='"+Pin+"';";
rs=stmt.executeQuery(query);
if(rs.next()){
String name=rs.getString("Name");
s2name.setText(name);
String Classes=rs.getString("cls");
s2cls.setText(Classes);
String sec=rs.getString("sec");
s2sec.setText(sec);
int amt=rs.getInt("amt");
s2amt.setText(""+amt);
String ad=rs.getString("admno");
s2admno.setText(ad);
}
String e=s2name.getText();
String r=s2cls.getText();
String s=s2sec.getText();
String Query="Select * from sdetails where
Name='"+e+"' and cls='"+r+"' and sec='"+s+"';";
rs1=stmt.executeQuery(Query);
if(rs1.last()){
String Names=rs1.getString("cls");
String paid=rs1.getString("Term");
s2termpaid.setText(paid);
}
rs.close();
stmt.close();
con.close();
String a="Apr-Sep";
String b="Oct-Mar";
if(a.equals(s2termpaid.getText())){
jRadioButton1.setEnabled(false);
JOptionPane.showMessageDialog(null,"YouPaid fees for
April-Sep Month...");
}
else if(b.equals(s2termpaid.getText())){
jRadioButton1.setEnabled(true);
jRadioButton2.setEnabled(false);
JOptionPane.showMessageDialog(null,"YouPaid fees for
this year...");
}
else if(s2termpaid.getText().isEmpty()){
jRadioButton1.setEnabled(true);
jRadioButton2.setEnabled(true);
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e.getMessage());
}
s2termpaid.setEditable(false);
s2name.setEditable(false);
s2cls.setEditable(false);
s2amt.setEditable(false);
s2sec.setEditable(false);
s2admno.setEditable(false);
s2sid.setEditable(false);
s2term.setEditable(false);
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
if(s2term.getText().isEmpty()){
JOptionPane.showMessageDialog(this,"please Select
Term...");
}
else{
this.setVisible(false);
new Feepaid().setVisible(true);
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Studentlogin().setVisible(true);
}
private void
jRadioButton1ActionPerformed(java.awt.event.ActionEv
ent evt) {
s2term.setText("apr-sep");
}
private void
jRadioButton2ActionPerformed(java.awt.event.ActionEv
ent evt) {
s2term.setText("oct-mar");
}
FEE PAID
package ip.project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
import static ip.project.Feeconfirm.s2sid;
import static ip.project.Feeconfirm.s2name;
import static ip.project.Feeconfirm.s2term;
import static ip.project.Feeconfirm.s2amt;
import static ip.project.Feeconfirm.s2admno;
import static ip.project.Feeconfirm.s2cls;
import static ip.project.Feeconfirm.s2sec;
public class Feepaid extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs=null;
ResultSet rs1=null;
ResultSet rs2=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Feepaid() {
initComponents();
try{
s3name.setText(s2name.getText());
s3cls.setText(s2cls.getText());
s3sec.setText(s2sec.getText());
s3admno.setText(s2admno.getText());
s3amt.setText(s2amt.getText());
s3term.setText(s2term.getText());
}
catch(Exception e){
JOptionPane.showMessageDialog(null,e.getMessage());
}
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
if(s3bc.getText().isEmpty()){
JOptionPane.showMessageDialog(this,"PleaseEnter Bank
Code");
return;
}
int Admno=Integer.parseInt(s3admno.getText());
String Name=s3name.getText();
String Classss=s3cls.getText();
String sec=s3sec.getText();
String Term=s3term.getText();
int amt=Integer.parseInt(s3amt.getText());
int bank=Integer.parseInt(s3bc.getText());try
{
String p="paid";
Class.forName("java.sql.DriverManager");
con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
stmt=(Statement) con.createStatement();
String Query="Select bankcode from sdetails;";
rs=stmt.executeQuery(Query);
if(rs.next()){
int bankc=rs.getInt("bankcode");
String Up="Update sdetails set term='"+Term+"'where
name='"+Name+"';";
stmt.executeUpdate(Up);
String Up1="Update sdetails set status='"+p+"'where
name='"+Name+"';";
stmt.executeUpdate(Up1);
JOptionPane.showMessageDialog(this,"YourFees is Paid
Succesfully...");
jButton1.setEnabled(false);
}
else{
JOptionPane.showMessageDialog(this,"Nosuch
BankCode is Available....");
}
}
catch(Exception e){
JOptionPane.showMessageDialog(this,e.getMessage());
}
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Feeconfirm().setVisible(true);
}
private void
jButton4ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Menu().setVisible(true);
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Studenttable().setVisible(true);
}
STUDENT TABLE DETAILS
packageip.project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import static ip.project.Feeconfirm.s2sid;
import static ip.project.Feeconfirm.s2name;
public class Studenttable extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs1=null;
ResultSet rs=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Studenttable() {
initComponents();
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String id=s2sid.getText();
DefaultTableModel tm=(DefaultTableModel)
jTable1.getModel();
try{
Class.forName("java.sql.DriverManager");
Connection con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
Statement stmt=(Statement)
con.createStatement();
String Query="Select
name,CLS,SEC,amt,admno,TERM,status,BANKCODEfrom
sdetails where id='"+id+"';";
ResultSet rs=stmt.executeQuery(Query);
while (rs.next()){
String NAME=rs.getString("NAME");
String CLASS=rs.getString("cls");
String STATUS=rs.getString("status");
String SECTION=rs.getString("sec");
String TERM=rs.getString("term");
double AMOUNT=rs.getDouble("AMT");
int BANKCODE=rs.getInt("bankcode");
int ADMISSIONNO=rs.getInt("admno");
tm.addRow(new
Object[]{NAME,CLASS,SECTION,AMOUNT,ADMISSIONNO,
TERM,STATUS,BANKCODE});
}
jButton1.setEnabled(false);
JOptionPane.showMessageDialog(this,"Thankyou");
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
String n=s2name.getText();
JOptionPane.showMessageDialog(this,"ThankYou
"+n.toUpperCase()+" For Visiting Online Banking");
System.exit(0);
}
TEACHER LOGIN
package ip.project;
import java.sql.Statement;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import javax.swing.JOptionPane;
import javax.swing.JOptionPane;
public class Teacherlogin extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Teacherlogin() {
initComponents();
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String us = tname.getText();
String ps = tid.getText();
if (us.isEmpty()) {
JOptionPane.showMessageDialog(this,"please enter
username");
}
if (ps.isEmpty()) {
JOptionPane.showMessageDialog(this,"please enter
password");
} else {
try {
Class.forName("java.sql.DriverManager");
con = (Connection) DriverManager.getConnection(str,
"root", "rsrs");
stmt = (Statement) con.createStatement();
String query = "select name,usernamefrom
tdetails where name='" + us + "'and username='" + ps +
"'";
rs = stmt.executeQuery(query);
if (rs.next()) {
String username = rs.getString("name");
String pass = rs.getString("username");
us =tname.getText();
new Termselection().setVisible(true);
}
else {
JOptionPane.showMessageDialog(this,"incorrect
username or password");
tname.setText("");
tid.setText("");
}
} catch (Exception e) {
JOptionPane.showMessageDialog(this,e.getMessage());
}
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Menu().setVisible(true);
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Teachersignup().setVisible(true);
}
TEACHER SIGN UP
package ip.project;
import javax.swing.JOptionPane;
import java.sql.*;
public class Teachersignup extends javax.swing.JFrame{
public Teachersignup() {
initComponents();
t1amt.setText("10000");
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
int a = JOptionPane.showConfirmDialog(null, "Want to
Save Teacher Details For Sure ?");
if (a == JOptionPane.YES_OPTION){
try {
String c,n,p,d,g;
int b,i;
c = t1cls.getText();
n= t1name.getText();
p=t1sec.getText();
d=t1sta.getText();
b =Integer.parseInt(t1amt.getText());
i=Integer.parseInt(t1id.getText());
String uid = "root";
String pwd = "rsrs";
String url = "jdbc:mysql://localhost:3306/sbi";
Connection con =
DriverManager.getConnection(url, uid, pwd);
Statement stmt = con.createStatement();
String qry = "INSERT INTO tDETAILS VALUES('"
+n +"','" +i +"','" +c +"','" +p +"','" +b +"','" +d +"')";
stmt.executeUpdate(qry);
JOptionPane.showMessageDialog(null, "teacher new id
Saved Sucessfully.");
int q= JOptionPane.showConfirmDialog(null, "Want to
continue?");
if (q == JOptionPane.YES_OPTION)
{t1name.setText("");
t1id.setText("");
t1cls.setText("");
t1sec.setText("");
t1amt.setText("");
t1sta.setText("");
}
else
{
this.setVisible(true);
new Teacherlogin().setVisible(true);
}
stmt.close();
con.close();
} catch (Exception e) {
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(false);
new Teacherlogin().setVisible(true);
}
TERMSELECTION
package ip.project;
import javax.swing.JOptionPane;
import static ip.project.Paid.t3term;
public class Termselection extends javax.swing.JFrame{
public Termselection() {
initComponents();
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String Term="";
if(jComboBox1.getSelectedIndex()==0){
JOptionPane.showMessageDialog(this,"PleaseSelect any
Term");
this.setVisible(true);
new Paid().setVisible(false);
}
else if(jComboBox1.getSelectedIndex()==1){
Term="April-Sep";
this.setVisible(false);
new Paid().setVisible(true);
}
else{
Term="Oct-March";
this.setVisible(false);
new Paid().setVisible(true);
}
t3term.setText(Term);
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Teacherlogin().setVisible(true);
}
PAID
package ip.project;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.ResultSet;
import java.sql.Statement;
import javax.swing.JOptionPane;
import javax.swing.table.DefaultTableModel;
import static ip.project.Teacherlogin.tname;
import static ip.project.Teacherlogin.tid;
public class Paid extends javax.swing.JFrame{
Connection con=null;
Statement stmt=null;
ResultSet rs1=null;
ResultSet rs=null;
String str="jdbc:mysql://localhost:3306/sbi";
public Paid() {
initComponents();
try{
t3name.setText(tname.getText());
String us=tid.getText();
Class.forName("java.sql.DriverManager");
con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
stmt=(Statement) con.createStatement();
String query="Select username,cls,sec from tdetails
where username='"+us+"';";
rs1=stmt.executeQuery(query);
if(rs1.next()){
int pass=rs1.getInt("username");
t3id.setText(""+pass);
String Classs=rs1.getString("Cls");
t3cls.setText(""+Classs);
String Sec=rs1.getString("Sec");
t3sec.setText(Sec);
}
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e.getMessage());
}
t3name.setEditable(false);
t3cls.setEditable(false);
t3sec.setEditable(false);
t3term.setEditable(false);
}
private void
jButton1ActionPerformed(java.awt.event.ActionEvent
evt) {
String name=t3name.getText();
String cls=t3cls.getText();
String sec=t3sec.getText();
String id=t3id.getText();
String Term=t3term.getText();
DefaultTableModel tm=(DefaultTableModel)
jTable1.getModel();
try{
Class.forName("java.sql.DriverManager");
con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
stmt=(Statement) con.createStatement();
String Query="Select name,amt,status from
tdetails where username='"+id+"'and
name='"+name+"'and cls='"+cls+"';";
rs=stmt.executeQuery(Query);
while (rs.next()){
String Name=rs.getString("Name");
double Amount=rs.getDouble("amt");
String status=rs.getString("status");
tm.addRow(new Object[]{Name,Amount,status});
}
jButton1.setEnabled(false);
jButton2.setEnabled(false);
String n=tname.getText();
jLabel1.setText("Thank You "+n.toUpperCase()+" For
Visiting Online Banking");
}
catch(Exception e){
JOptionPane.showMessageDialog(null, e.getMessage());
}
}
private void
jButton2ActionPerformed(java.awt.event.ActionEvent
evt) {
String p="paid";
String Name=tname.getText();
try
{
Class.forName("java.sql.DriverManager");
con=(Connection)
DriverManager.getConnection(str,"root","rsrs");
stmt=(Statement) con.createStatement();
String Query="Select bankcode from sdetails;";
rs=stmt.executeQuery(Query);
if(rs.next()){
int bankc=rs.getInt("bankcode");
String Up1="Update tdetails set status='"+p+"'where
name='"+Name+"';";
stmt.executeUpdate(Up1);
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(this,e.getMessage());
}
JOptionPane.showMessageDialog(this,"Yourpayment is
successful");
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
this.setVisible(true);
new Menu().setVisible(true);
}
private void
jButton3ActionPerformed(java.awt.event.ActionEvent
evt) {
System.exit(0);
Conclusion
This project help me to understand the payment
methods used to transfer amount to the student and
teacher account in eacy way.This is a simple application
of transferring the student and teachers amount to
them.There are lots of complicated methods.I hope this
simple program will fulfill your basic requirements.I hope
you like this.
THANK YOU ! ! !

Weitere ähnliche Inhalte

Was ist angesagt?

Library Management System
Library Management SystemLibrary Management System
Library Management System
Ranjan Ranjan
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
Aditya Shah
 
Software requirements specification
Software  requirements specificationSoftware  requirements specification
Software requirements specification
Krishnasai Gudavalli
 
Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & software
UMaine
 

Was ist angesagt? (20)

Library Management System Project in PHP with BlackBook & Source Code
Library Management System Project in PHP with BlackBook & Source CodeLibrary Management System Project in PHP with BlackBook & Source Code
Library Management System Project in PHP with BlackBook & Source Code
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Project proposal of Library Management System.
Project proposal of Library Management System. Project proposal of Library Management System.
Project proposal of Library Management System.
 
library management system
library management systemlibrary management system
library management system
 
Feasibility report for library management system
Feasibility report for library management systemFeasibility report for library management system
Feasibility report for library management system
 
Synopsis of Library Management System
Synopsis of Library Management SystemSynopsis of Library Management System
Synopsis of Library Management System
 
E messanger
E messangerE messanger
E messanger
 
Thesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project ReportThesis on Library Management System | LMS | Project Report
Thesis on Library Management System | LMS | Project Report
 
Student report
Student reportStudent report
Student report
 
Library Management System
Library Management SystemLibrary Management System
Library Management System
 
Library Managemnet System
Library Managemnet SystemLibrary Managemnet System
Library Managemnet System
 
Introduction to Database Management Systems
Introduction to Database Management SystemsIntroduction to Database Management Systems
Introduction to Database Management Systems
 
Library Management System
Library  Management  SystemLibrary  Management  System
Library Management System
 
System requirement specification report(srs) T/TN/Gomarankadawala Maha vidyal...
System requirement specification report(srs) T/TN/Gomarankadawala Maha vidyal...System requirement specification report(srs) T/TN/Gomarankadawala Maha vidyal...
System requirement specification report(srs) T/TN/Gomarankadawala Maha vidyal...
 
Introduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal GulatiIntroduction to Databases by Dr. Kamal Gulati
Introduction to Databases by Dr. Kamal Gulati
 
LBA SYNOPSIS.pdf
LBA SYNOPSIS.pdfLBA SYNOPSIS.pdf
LBA SYNOPSIS.pdf
 
Project Managing An Implementation Of A Library Management System
Project Managing An Implementation Of A Library Management SystemProject Managing An Implementation Of A Library Management System
Project Managing An Implementation Of A Library Management System
 
Software requirements specification
Software  requirements specificationSoftware  requirements specification
Software requirements specification
 
Library management system
Library management systemLibrary management system
Library management system
 
Chap 4 hardware & software
Chap 4 hardware & softwareChap 4 hardware & software
Chap 4 hardware & software
 

Ähnlich wie IP final project

Library mangement system project srs documentation.doc
Library mangement system project srs documentation.docLibrary mangement system project srs documentation.doc
Library mangement system project srs documentation.doc
jimmykhan
 
Library mangement system project srs documentation
Library mangement system project srs documentationLibrary mangement system project srs documentation
Library mangement system project srs documentation
Suchit Moon
 
Project on multiplex ticket bookingn system globsyn2014
Project on multiplex ticket bookingn system globsyn2014Project on multiplex ticket bookingn system globsyn2014
Project on multiplex ticket bookingn system globsyn2014
Md Imran
 
Fee collection system
Fee collection systemFee collection system
Fee collection system
harryz18
 
Online-Voting-System.doc
Online-Voting-System.docOnline-Voting-System.doc
Online-Voting-System.doc
ShangaviS2
 
46393833 e banking
46393833 e banking46393833 e banking
46393833 e banking
dipali2009
 

Ähnlich wie IP final project (20)

Library mangement system project srs documentation.doc
Library mangement system project srs documentation.docLibrary mangement system project srs documentation.doc
Library mangement system project srs documentation.doc
 
Library Management System using oracle database
Library Management System using oracle databaseLibrary Management System using oracle database
Library Management System using oracle database
 
Library mangement system project srs documentation
Library mangement system project srs documentationLibrary mangement system project srs documentation
Library mangement system project srs documentation
 
Online Crime Management System.ppt.pptx
Online Crime Management System.ppt.pptxOnline Crime Management System.ppt.pptx
Online Crime Management System.ppt.pptx
 
Online examination management system..pdf
Online examination management system..pdfOnline examination management system..pdf
Online examination management system..pdf
 
Project Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptxProject Documentation Student Management System format.pptx
Project Documentation Student Management System format.pptx
 
Project black book TYIT
Project black book TYITProject black book TYIT
Project black book TYIT
 
Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010Projectblackbook tyit-170121122010
Projectblackbook tyit-170121122010
 
Project on multiplex ticket bookingn system globsyn2014
Project on multiplex ticket bookingn system globsyn2014Project on multiplex ticket bookingn system globsyn2014
Project on multiplex ticket bookingn system globsyn2014
 
College management
College managementCollege management
College management
 
Bank doc (autosaved)
Bank doc (autosaved)Bank doc (autosaved)
Bank doc (autosaved)
 
Fee collection system
Fee collection systemFee collection system
Fee collection system
 
Hospital E-Token Management(outdoor)
Hospital E-Token Management(outdoor)Hospital E-Token Management(outdoor)
Hospital E-Token Management(outdoor)
 
Online-Voting-System.doc
Online-Voting-System.docOnline-Voting-System.doc
Online-Voting-System.doc
 
Bank Management System.docx
Bank Management System.docxBank Management System.docx
Bank Management System.docx
 
Mis
MisMis
Mis
 
Documentation project of college management [1]
Documentation project of college management [1]Documentation project of college management [1]
Documentation project of college management [1]
 
Parents connect final
Parents connect finalParents connect final
Parents connect final
 
student-data-management-1-2.doc
student-data-management-1-2.docstudent-data-management-1-2.doc
student-data-management-1-2.doc
 
46393833 e banking
46393833 e banking46393833 e banking
46393833 e banking
 

Kürzlich hochgeladen

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 

Kürzlich hochgeladen (20)

How to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POSHow to Manage Global Discount in Odoo 17 POS
How to Manage Global Discount in Odoo 17 POS
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Third Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptxThird Battle of Panipat detailed notes.pptx
Third Battle of Panipat detailed notes.pptx
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 

IP final project

  • 1. “The usage of computers in this century had improved till online banking in computers” PROJECT REPORT IN “STATE BANK OF INDIA” Submitted in partial fulfillment for the requirement of CBSE, New Delhi K.KEERTHANA ( ) S.A.KEERTHY ( ) R.SOUNDRICA ( ) UNDER THE GUIDANCE OF An.DHIVYA (PGT CS) KENDRIYA VIDYALAYA THIRUPPARANKUNDRAM MADURAI-625005
  • 3. BONAFIDE CERTIFICATE This is to certify that project entitled ”STATE BANK OF INDIA” is a record of Bonafide work carried out by K.KEERTHANA , S.A.KEERTHY, R.SOUNDRICAinpartial fulfillment of the requirements in Computer Science prescribed by CBSE for AISSCE 2016-2017 in the school KendriyaVidyalaya, Thiruparankundram, Madurai-625005. Date: Principal Internal Examiner: External Examiner:
  • 4. Index 1. Introduction 2.System Analysis 3. Proposed System 4. Feasibility Analysis 5. Minimum Hardware Requirements 6. Minimum Software Requirements 7. System Design 8. Database Design 9. Table Used 10. Front End Design 11.Source Code 12.Conclusion
  • 5. INTRODUCTION: The project titled “Payroll Management System” is software for monitoring and controlling the transaction for an Employee. This project is designed & coded in Net Beans 7 & database management is handled by MYSQL. This software mainly focuses on basic operations in a Bank like updating new information and Pin, searching balance and getting transactions, Net Banking is a java written on 32 bits, windows 7, designed to help users maintain and organize Bank. My software is easy to use for both beginners and advanced users. It features a familiar and well thought-out, attractive user interface, combined with strong searching insertion and reporting capabilities. The report generation facility of helps to get a good idea of which .
  • 6. The software has four main modules: 1.Insertion of database module- user friendly input screen 2.Extracting from database module- attractive output screen 3.Report generation module- 4.Search facility system-
  • 7. SYSTEM ANALYSIS EXISTING SYSTEM: System Analysis is a detailed study of the various operations performed by a system and their relationships within and outside of the system. Here the Key question is what all the problems exist in the present system? What must be done to solve the program using existing system. During analysis, data collected on the various files, decison points and transactions handled by the present system.Training, experience and common sense are required for collection of relevant information needed to develop the system. The success of the system depends largely on how clearly the problem is defined, thoroughly investigated and properly carried out through the choice of solution.
  • 8. A good analysis model should provide not only the mechanisms of problem understanding but also the frame work of the solution. Thus, it should be studied throughly by collecting data about the system.Then the proposed system should be analyzed thoroughly in accordance with the needs. System analysis can be categorizedinto four parts: o System planning and initial investigation o Information gathering o Applying analysis tools for structured analysis o Feasibility study o Cost/benefit analysis. In our existing system,all the transaction of books are done manually,so taking more time for a transaction like borrowing a book and also for searching of members and books.Another major disadvantage is that preparing the list of books borrowed and the available books in the library will take more time,currently a one day process for verifying all records.So after conducting the feasibility study we decided to make a computerized payroll.
  • 9. PROPOSED SYSTEM: Proposed system is an automated payroll system. Through our software user can add members, search members, know details, update delete information, edit information in quick time. Our proposed system has the following advantages. o user friendly interface o fast access to database o less error o more storage capacity o search facility o look and feel environment o quick transaction All the manual difficulties in managing payroll have been rectified by implementing computerization.
  • 10. FEASIBILITY ANALYSIS Whatever we thiink need not be feasible . It is wise to think about feasibility of any problem we undertake. Feasibility is the study of impact, which happens in the organizations by the development of a system.The impact can be either positive or negative. When the positive nominate the negatives, then the system is considered feasible .Here the feasibility study can be performed in two ways such as technical and economical feasibility. Technical Feasibility: We can strongly says that it is technically feasible, since there will not be much difficulty in getting required resources for the development and maintaining the system as well. All the resources needed for the development of the software as well as the maintenance of the same is available in the organization here we are utilizing the resources which are available already.
  • 11. Economial Feasibility: Development of this application is highly economically feasible. theorganisation needed not spend much money for the development of the system already available. The only thing is to be done is making an environment for the development with an effective supervision. If we are doing so, we can attain the maximum usability of the corresponding resources. Even after the development,the Organization will not be in a condition to invest more in the organization. Therefore, the System is economically feasible.
  • 12. MINIMUM HARDWARE REQUIREMENTS o PROCESSOR:Pentium IV or better o RAM:512 MB or more o HARD DISK:100 GB o MONITOR:Any o KEY BOARD:122keys MINIMUM SOFTWARE REQUIREMENTS o OPERATING SYSTEM:WindowsXP,Windows 7 and above o LANGUAGE:Java7 Runtime Environment or better o FRONT END:Netbeans 7.3.1 or above o BACK END:MySQL server 5.0 or above
  • 13. SYSTEM DESIGN Input Design: Input design is the process of converting user oriented input to a computer based format. Input design is a part of overall system design, which requires very careful attention. Often the collection of input data is the most expensive part of the system. THE MAIN OBJECTIVES OF THE INPUT DESIGN ARE: o Produce cost effective method of input o Achieve highest possible level of accuracy o Ensure that the input is acceptable to and understood by the staff.
  • 14. Input Data:The goal of designing input data is to make enter eacy,logical and free from errors as possible. The entering data entry operators need to know the allocated space for each field;Field sequences and which must watch wih that in the source document. The format in which the data fields are entered should be given in the input form. Here data entry is online;It makes use of processor that accepts commands and data from the operator through a key board. The input required is analyzed by the processor . It is then accepted or rejected. Input stages include the following processes: o Data Recording o Data Transcription o Data Conversion o Data Verification o Data Control o Data Transmission o Data Correction
  • 15. DATABASE DESIGN The general theme behind a database is to handle information as an integrated whole. A database is a collection of interrelated data stored with minimum redundancy to serve many users quickly and effectively. After designing input and output, the analyst must concentrate on databse design or how data should be organized around user requirements. The general objective is to make information access, easy quick, inexpensive and flexible for other users. During database design the following objectives are concerned:- a. Controlled Redundancy b.Data independence c. Accurate and Integrating d.More information at low cost e. Recovery from failure f. Privacy and security g. Performance h.Ease of learning and use
  • 20.
  • 26. PAID
  • 27. SOURCE CODE MENU private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: this.setVisible(false); new Studentlogin().setVisible(true); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: this.setVisible(false); new Teacherlogin().setVisible(true);
  • 28. } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: System.exit(0); } STUDENT LOGIN package ip.project; import java.sql.Statement; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import javax.swing.JOptionPane;
  • 29. public class Studentlogin extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs=null; String str="jdbc:mysql://localhost:3306/sbi"; public Studentlogin() { initComponents(); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String us=sname.getText(); String ps=sid.getText(); if(us.isEmpty()){ JOptionPane.showMessageDialog(this,"PleaseEnter UserName"); } if(ps.isEmpty()){
  • 30. JOptionPane.showMessageDialog(this,"PleaseEnter Password"); } else { try { Class.forName("java.sql.DriverManager"); Connection con = (Connection) DriverManager.getConnection(str,"root","rsrs"); Statement stmt = (Statement) con.createStatement(); String query="Select name, id from sdetails where name='"+us+"'and id='"+ps+"';"; rs=stmt.executeQuery(query);
  • 31. if(rs.next()) { int username=rs.getInt("id"); String Ps=rs.getString("name"); this.setVisible(false); new Feeconfirm().setVisible(true); } else { JOptionPane.showMessageDialog(this,"Wrong UserName And DOB"); sname.setText(""); sid.setText(""); }
  • 32. } catch(Exception e){ JOptionPane.showMessageDialog(this,e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(false); new Menu().setVisible(true); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true);
  • 33. new Studentsignup().setVisible(true); } STUDENT SIGN UP package ip.project; import java.sql.Connection; import java.sql.DriverManager; import java.sql.Statement; import javax.swing.JOptionPane; public class Studentsignup extends javax.swing.JFrame{ public Studentsignup() { initComponents(); s1amt.setText("10000"); }
  • 34. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int a = JOptionPane.showConfirmDialog(null, "Want to Save Student Details For Sure ?"); if (a == JOptionPane.YES_OPTION){ try { String c,n,p,d,g,t; int ad,b,i,bc; c = s1cls.getText(); n= s1name.getText(); p=s1sec.getText(); d=s1sta.getText(); t=s1term.getText(); b =Integer.parseInt(s1amt.getText()); i=Integer.parseInt(s1id.getText());
  • 35. ad=Integer.parseInt(s1admno.getText()); bc=Integer.parseInt(s1bc.getText()); String uid = "root"; String pwd = "rsrs"; String url = "jdbc:mysql://localhost:3306/sbi"; Connection con = DriverManager.getConnection(url, uid, pwd); Statement stmt = con.createStatement(); String qry = "INSERT INTO sDETAILSVALUES('" +n +"','" +i +"','" +c +"','" +p +"','" +b +"','" +ad +"','" +t +"','" +d +"','" +bc +"')"; stmt.executeUpdate(qry); JOptionPane.showMessageDialog(null, "student new id Saved Sucessfully.");
  • 36. stmt.close(); con.close(); } catch (Exception e) { JOptionPane.showMessageDialog(null, e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(false); new Studentlogin().setVisible(true); } FEE CONFIRM package ip.project; import java.sql.Connection; import java.sql.DriverManager;
  • 37. import java.sql.ResultSet; import java.sql.Statement; import javax.swing.JOptionPane; import static ip.project.Studentlogin.sid; import static ip.project.Studentlogin.sname; public class Feeconfirm extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs=null; ResultSet rs1=null; String str="jdbc:mysql://localhost:3306/sbi"; public Feeconfirm() { initComponents(); try{ s2name.setText(sname.getText()); s2sid.setText(sid.getText()); String Pin=s2sid.getText();
  • 38. Class.forName("java.sql.DriverManager"); Connection con=(Connection) DriverManager.getConnection(str,"root","rsrs"); Statement stmt=(Statement) con.createStatement(); String query="Select Name,cls,sec,amt,admno from sdetails where id='"+Pin+"';"; rs=stmt.executeQuery(query); if(rs.next()){ String name=rs.getString("Name"); s2name.setText(name); String Classes=rs.getString("cls"); s2cls.setText(Classes); String sec=rs.getString("sec"); s2sec.setText(sec); int amt=rs.getInt("amt"); s2amt.setText(""+amt); String ad=rs.getString("admno");
  • 39. s2admno.setText(ad); } String e=s2name.getText(); String r=s2cls.getText(); String s=s2sec.getText(); String Query="Select * from sdetails where Name='"+e+"' and cls='"+r+"' and sec='"+s+"';"; rs1=stmt.executeQuery(Query); if(rs1.last()){ String Names=rs1.getString("cls"); String paid=rs1.getString("Term"); s2termpaid.setText(paid); } rs.close(); stmt.close(); con.close(); String a="Apr-Sep";
  • 40. String b="Oct-Mar"; if(a.equals(s2termpaid.getText())){ jRadioButton1.setEnabled(false); JOptionPane.showMessageDialog(null,"YouPaid fees for April-Sep Month..."); } else if(b.equals(s2termpaid.getText())){ jRadioButton1.setEnabled(true); jRadioButton2.setEnabled(false); JOptionPane.showMessageDialog(null,"YouPaid fees for this year..."); } else if(s2termpaid.getText().isEmpty()){ jRadioButton1.setEnabled(true); jRadioButton2.setEnabled(true); } }
  • 42. } else{ this.setVisible(false); new Feepaid().setVisible(true); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Studentlogin().setVisible(true); } private void jRadioButton1ActionPerformed(java.awt.event.ActionEv ent evt) { s2term.setText("apr-sep"); }
  • 43. private void jRadioButton2ActionPerformed(java.awt.event.ActionEv ent evt) { s2term.setText("oct-mar"); } FEE PAID package ip.project; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.JOptionPane; import static ip.project.Feeconfirm.s2sid; import static ip.project.Feeconfirm.s2name; import static ip.project.Feeconfirm.s2term;
  • 44. import static ip.project.Feeconfirm.s2amt; import static ip.project.Feeconfirm.s2admno; import static ip.project.Feeconfirm.s2cls; import static ip.project.Feeconfirm.s2sec; public class Feepaid extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs=null; ResultSet rs1=null; ResultSet rs2=null; String str="jdbc:mysql://localhost:3306/sbi"; public Feepaid() { initComponents(); try{ s3name.setText(s2name.getText()); s3cls.setText(s2cls.getText()); s3sec.setText(s2sec.getText());
  • 45. s3admno.setText(s2admno.getText()); s3amt.setText(s2amt.getText()); s3term.setText(s2term.getText()); } catch(Exception e){ JOptionPane.showMessageDialog(null,e.getMessage()); } } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { if(s3bc.getText().isEmpty()){ JOptionPane.showMessageDialog(this,"PleaseEnter Bank Code"); return; } int Admno=Integer.parseInt(s3admno.getText()); String Name=s3name.getText();
  • 46. String Classss=s3cls.getText(); String sec=s3sec.getText(); String Term=s3term.getText(); int amt=Integer.parseInt(s3amt.getText()); int bank=Integer.parseInt(s3bc.getText());try { String p="paid"; Class.forName("java.sql.DriverManager"); con=(Connection) DriverManager.getConnection(str,"root","rsrs"); stmt=(Statement) con.createStatement(); String Query="Select bankcode from sdetails;"; rs=stmt.executeQuery(Query); if(rs.next()){ int bankc=rs.getInt("bankcode"); String Up="Update sdetails set term='"+Term+"'where name='"+Name+"';";
  • 47. stmt.executeUpdate(Up); String Up1="Update sdetails set status='"+p+"'where name='"+Name+"';"; stmt.executeUpdate(Up1); JOptionPane.showMessageDialog(this,"YourFees is Paid Succesfully..."); jButton1.setEnabled(false); } else{ JOptionPane.showMessageDialog(this,"Nosuch BankCode is Available...."); } } catch(Exception e){ JOptionPane.showMessageDialog(this,e.getMessage()); } }
  • 48. private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Feeconfirm().setVisible(true); } private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Menu().setVisible(true); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Studenttable().setVisible(true); }
  • 49. STUDENT TABLE DETAILS packageip.project; import java.sql.Connection; import java.sql.DriverManager; import java.sql.ResultSet; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import static ip.project.Feeconfirm.s2sid; import static ip.project.Feeconfirm.s2name; public class Studenttable extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs1=null; ResultSet rs=null;
  • 50. String str="jdbc:mysql://localhost:3306/sbi"; public Studenttable() { initComponents(); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String id=s2sid.getText(); DefaultTableModel tm=(DefaultTableModel) jTable1.getModel(); try{ Class.forName("java.sql.DriverManager"); Connection con=(Connection) DriverManager.getConnection(str,"root","rsrs"); Statement stmt=(Statement) con.createStatement(); String Query="Select name,CLS,SEC,amt,admno,TERM,status,BANKCODEfrom sdetails where id='"+id+"';";
  • 51. ResultSet rs=stmt.executeQuery(Query); while (rs.next()){ String NAME=rs.getString("NAME"); String CLASS=rs.getString("cls"); String STATUS=rs.getString("status"); String SECTION=rs.getString("sec"); String TERM=rs.getString("term"); double AMOUNT=rs.getDouble("AMT"); int BANKCODE=rs.getInt("bankcode"); int ADMISSIONNO=rs.getInt("admno"); tm.addRow(new Object[]{NAME,CLASS,SECTION,AMOUNT,ADMISSIONNO, TERM,STATUS,BANKCODE}); } jButton1.setEnabled(false); JOptionPane.showMessageDialog(this,"Thankyou"); }
  • 52. catch(Exception e){ JOptionPane.showMessageDialog(null, e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { String n=s2name.getText(); JOptionPane.showMessageDialog(this,"ThankYou "+n.toUpperCase()+" For Visiting Online Banking"); System.exit(0); } TEACHER LOGIN package ip.project; import java.sql.Statement; import java.sql.Connection;
  • 53. import java.sql.DriverManager; import java.sql.ResultSet; import javax.swing.JOptionPane; import javax.swing.JOptionPane; public class Teacherlogin extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs=null; String str="jdbc:mysql://localhost:3306/sbi"; public Teacherlogin() { initComponents(); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String us = tname.getText(); String ps = tid.getText();
  • 54. if (us.isEmpty()) { JOptionPane.showMessageDialog(this,"please enter username"); } if (ps.isEmpty()) { JOptionPane.showMessageDialog(this,"please enter password"); } else { try { Class.forName("java.sql.DriverManager"); con = (Connection) DriverManager.getConnection(str, "root", "rsrs"); stmt = (Statement) con.createStatement(); String query = "select name,usernamefrom tdetails where name='" + us + "'and username='" + ps + "'"; rs = stmt.executeQuery(query); if (rs.next()) {
  • 55. String username = rs.getString("name"); String pass = rs.getString("username"); us =tname.getText(); new Termselection().setVisible(true); } else { JOptionPane.showMessageDialog(this,"incorrect username or password"); tname.setText(""); tid.setText(""); } } catch (Exception e) { JOptionPane.showMessageDialog(this,e.getMessage()); } } }
  • 56. private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Menu().setVisible(true); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Teachersignup().setVisible(true); } TEACHER SIGN UP package ip.project; import javax.swing.JOptionPane; import java.sql.*; public class Teachersignup extends javax.swing.JFrame{
  • 57. public Teachersignup() { initComponents(); t1amt.setText("10000"); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { int a = JOptionPane.showConfirmDialog(null, "Want to Save Teacher Details For Sure ?"); if (a == JOptionPane.YES_OPTION){ try { String c,n,p,d,g; int b,i; c = t1cls.getText(); n= t1name.getText(); p=t1sec.getText(); d=t1sta.getText(); b =Integer.parseInt(t1amt.getText());
  • 58. i=Integer.parseInt(t1id.getText()); String uid = "root"; String pwd = "rsrs"; String url = "jdbc:mysql://localhost:3306/sbi"; Connection con = DriverManager.getConnection(url, uid, pwd); Statement stmt = con.createStatement(); String qry = "INSERT INTO tDETAILS VALUES('" +n +"','" +i +"','" +c +"','" +p +"','" +b +"','" +d +"')"; stmt.executeUpdate(qry); JOptionPane.showMessageDialog(null, "teacher new id Saved Sucessfully."); int q= JOptionPane.showConfirmDialog(null, "Want to continue?"); if (q == JOptionPane.YES_OPTION) {t1name.setText(""); t1id.setText(""); t1cls.setText("");
  • 60. private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(false); new Teacherlogin().setVisible(true); } TERMSELECTION package ip.project; import javax.swing.JOptionPane; import static ip.project.Paid.t3term; public class Termselection extends javax.swing.JFrame{ public Termselection() { initComponents(); }
  • 61. private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String Term=""; if(jComboBox1.getSelectedIndex()==0){ JOptionPane.showMessageDialog(this,"PleaseSelect any Term"); this.setVisible(true); new Paid().setVisible(false); } else if(jComboBox1.getSelectedIndex()==1){ Term="April-Sep"; this.setVisible(false); new Paid().setVisible(true); } else{ Term="Oct-March"; this.setVisible(false);
  • 62. new Paid().setVisible(true); } t3term.setText(Term); } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Teacherlogin().setVisible(true); } PAID package ip.project; import java.sql.Connection; import java.sql.DriverManager;
  • 63. import java.sql.ResultSet; import java.sql.Statement; import javax.swing.JOptionPane; import javax.swing.table.DefaultTableModel; import static ip.project.Teacherlogin.tname; import static ip.project.Teacherlogin.tid; public class Paid extends javax.swing.JFrame{ Connection con=null; Statement stmt=null; ResultSet rs1=null; ResultSet rs=null; String str="jdbc:mysql://localhost:3306/sbi"; public Paid() { initComponents(); try{ t3name.setText(tname.getText()); String us=tid.getText();
  • 64. Class.forName("java.sql.DriverManager"); con=(Connection) DriverManager.getConnection(str,"root","rsrs"); stmt=(Statement) con.createStatement(); String query="Select username,cls,sec from tdetails where username='"+us+"';"; rs1=stmt.executeQuery(query); if(rs1.next()){ int pass=rs1.getInt("username"); t3id.setText(""+pass); String Classs=rs1.getString("Cls"); t3cls.setText(""+Classs); String Sec=rs1.getString("Sec"); t3sec.setText(Sec); } } catch(Exception e){
  • 65. JOptionPane.showMessageDialog(null, e.getMessage()); } t3name.setEditable(false); t3cls.setEditable(false); t3sec.setEditable(false); t3term.setEditable(false); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { String name=t3name.getText(); String cls=t3cls.getText(); String sec=t3sec.getText(); String id=t3id.getText(); String Term=t3term.getText(); DefaultTableModel tm=(DefaultTableModel) jTable1.getModel();
  • 66. try{ Class.forName("java.sql.DriverManager"); con=(Connection) DriverManager.getConnection(str,"root","rsrs"); stmt=(Statement) con.createStatement(); String Query="Select name,amt,status from tdetails where username='"+id+"'and name='"+name+"'and cls='"+cls+"';"; rs=stmt.executeQuery(Query); while (rs.next()){ String Name=rs.getString("Name"); double Amount=rs.getDouble("amt"); String status=rs.getString("status"); tm.addRow(new Object[]{Name,Amount,status}); } jButton1.setEnabled(false); jButton2.setEnabled(false); String n=tname.getText();
  • 67. jLabel1.setText("Thank You "+n.toUpperCase()+" For Visiting Online Banking"); } catch(Exception e){ JOptionPane.showMessageDialog(null, e.getMessage()); } } private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) { String p="paid"; String Name=tname.getText(); try { Class.forName("java.sql.DriverManager"); con=(Connection) DriverManager.getConnection(str,"root","rsrs"); stmt=(Statement) con.createStatement();
  • 68. String Query="Select bankcode from sdetails;"; rs=stmt.executeQuery(Query); if(rs.next()){ int bankc=rs.getInt("bankcode"); String Up1="Update tdetails set status='"+p+"'where name='"+Name+"';"; stmt.executeUpdate(Up1); } } catch(Exception e) { JOptionPane.showMessageDialog(this,e.getMessage()); } JOptionPane.showMessageDialog(this,"Yourpayment is successful"); }
  • 69. private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { this.setVisible(true); new Menu().setVisible(true); } private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) { System.exit(0);
  • 70. Conclusion This project help me to understand the payment methods used to transfer amount to the student and teacher account in eacy way.This is a simple application of transferring the student and teachers amount to them.There are lots of complicated methods.I hope this simple program will fulfill your basic requirements.I hope you like this. THANK YOU ! ! !