TERMPAPER
Of
Modern programming tools -1
Topic : fee management system
SUBMITTED TO – SUBMITTED BY-
Mr.rakesh Fairy
Sec – k27b1
B.tech [it]- mba
Roll no - 09
Table of contents:-
1. Fee management system
2. Scope
3. Features
4. Language used
5. Overview
6. Data flow diagram
7. CODING OF THE PROJECT
Fee management system
The fee management system is to manage the data or information of the student those who
have submitted their fees and those who have not submitted their fee .
Scope of this project:-
This can be used in the educational institutes like university , schools etc.
It can also be used in companies for paying salaries to their employees .
Features:-
Secure
Easy to use
Reliable and accurate
No need of examiner
Technologies used:-
Java
Overview :
1. Fee Setting
Administrator can set different fee names settings for different classes using
a simple interface. Also fee amount for different fee items for different
months can be set for common fee items.
2. Name/Class wise search
Fee amount to be paid by a student is done by searching the student. By
entering student Id or class or name, the amount to be paid for a particular
period is viewed.
3. Monthly fee items
Monthly fee items are displayed based on the monthly fee setting. For each
student fee pending amount is displayed.
4. Terminal fee items
Terminal fee items will be displayed based on the term selection. For each
student, a period of month can also be selected for collecting terminal fees
5. Annual fee items
Annual fee items also listed among the fee items based on the month for
which those items to be collected.
6. Fee receipt
Fee receipt can be printed based on the view of fee items and amount for each
student. Duplicate fee receipt is also can be printed by entering Bill number.
Fee items can be categorized to print different number of bills as per settings.
7. Daily collection report
Daily Collection report can be of different type based on the user
requirement. Class Wise collection and total collection of particular fee items
are also available.
8. Item wise collection report
Item wise collection for a period of days and monthly item wise collection are
available based on user’s settings
9. Dues list
Different types of dues list like student wise, class wise and item wise are
available.
Dues list reports can be customized.
10. Fine settings
Fine setting for a student for particular fee items can be done using fine
setting interface and monthly fine can be set for a payment later than a
particular set date
11. Deduction
Deduction for a particular student can be set for particular fee item .Based on
the deduction amount further dues list will be automatically modified.
Deduction related reports are available for each student.
12. Conveyance fee/Individual fee items
Bus/Van fee collection for each student based on board point can be collected
monthly or as per the administrator settings. Dues report and collection report
of other individual fee items are also available based on the individual fee
settings.
DATA FLOW DIAGRAM:-
CODING:
Main.java-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class mainw extends JFrame implements ActionListener
{
JButton b1,b2,b3;
String title= "MAIN";
mainw()
{
b1 = new JButton("Administrator");
b2 = new JButton("Student");
b3 = new JButton("Exit");
add(b1);
add(b2);
add(b3);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
setLayout(new FlowLayout());
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
passw obj2= new passw();
obj2.setSize(300,200);
obj2.setVisible(true);
}
if(e.getSource()==b2)
{
student obj3 = new student();
obj3.setSize(800,500);
obj3.setVisible(true);
}
if(e.getSource()==b3)
{
System.exit(0);
}
}
public static void main(String s[])
{
mainw obj = new mainw();
obj.setSize(400,400);
obj.setVisible(true);
}
}
Student.java
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class student extends JFrame implements ActionListener
{
JTextField t1;
JButton b1,b2;
JLabel
l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13,l14,l15,l16,l17,l18,l19,l20,l21,l22,
l23;
String id= null;
String phone,add,fee,course,age,sex,year,home,regs no;
String err="STUDENT NOT FOUND, PLEASE ENTER
CORRECT ID";
employee()
{
t1 = new JTextField(10);
l1 = new JLabel("Student_Id");
l2 = new JLabel("Student_Name");
l3 = new JLabel();
l4 = new JLabel("Student_Phone");
l5 = new JLabel();
l6 = new JLabel("Student_Address");
l7 = new JLabel();
l8 = new JLabel("Student_fee");
l9 = new JLabel();
l10 = new JLabel("Student_course");
l11 = new JLabel();
l12 = new JLabel("Student_Age");
l13 = new JLabel();
l14 = new JLabel("Student_Sex");
l15 = new JLabel();
l16 = new JLabel("Student_year");
l17 = new JLabel();
l18 = new JLabel("Student_Hometown");
l19 = new JLabel();
l20 = new JLabel("Student_regs no");
l21 = new JLabel();
l22 = new JLabel();
l23 = new JLabel();
b1 = new JButton("Show");
b2 = new JButton("Exit");
add(l1);
add(t1);
add(l2);
add(l3);
add(l4);
add(l5);
add(l6);
add(l7);
add(l8);
add(l9);
add(l10);
add(l11);
add(l12);
add(l13);
add(l14);
add(l15);
add(l16);
add(l17);
add(l18);
add(l19);
add(l20);
add(l21);
add(l22);
add(l23);
add(b1);
add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
setLayout(new GridLayout(13,1));
}
public void actionPerformed(ActionEvent e)
{
try
{
Class.forName
("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs=null;
id = t1.getText();
String name="none";
if(e.getSource()==b1)
{
PreparedStatement st1 =
con.prepareStatement("Select * from student where student_Id=?");
st1.setString(1,id);
rs = st1.executeQuery();
while(rs.next())
{
name=rs.getString
(2);
phone=rs.getString
(3);
add=rs.getString(4);
fee=rs.getString(5);
course=rs.getString
(6);
age=rs.getString(7);
sex=rs.getString(8);
year=rs.getString(9);
home=rs.getString
(10);
regs no=rs.getString
(11);
}
if(name.equals("none"))
{
t1.setText("");
l23.setText("");
t1.setText("");
l3.setText("");
l5.setText("");
l7.setText("");
l9.setText("");
l11.setText("");
l13.setText("");
l15.setText("");
l17.setText("");
l19.setText("");
l21.setText("");
st1.close();
}
else
{
t1.setText(id);
l3.setText(name);
l5.setText(phone);
l7.setText(add);
l9.setText(fee);
l11.setText(course);
l13.setText(age);
l15.setText(sex);
l17.setText(year);
l19.setText(home);
l21.setText(regs no);
l23.setText("Showing
details");
st1.close();
}
}
if(e.getSource()==b2)
{
System.exit(0);
}
rs.close();
con.close();
}
catch(Exception as)
{
System.out.print(as);
}
}
public static void main(String s[])
{
Student obj = new student();
obj.setSize(800,400);
obj.setVisible(true);
}
}
PASSW.JAVA-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
public class passw extends JFrame implements ActionListener
{
JButton b1,b2,b3;
JLabel l1,l2,l3,l4;
JTextField t1;
TextField t2;
String pasw,us;
String password="csb", usid ="uptu";
int count=3;
passw()
{
t1 = new JTextField(10);
t2 = new TextField(10);
l1 = new JLabel("User ID");
l2 = new JLabel("Password");
b1 = new JButton("Login");
b2 = new JButton("Change Password");
b3 = new JButton("Cancel");
t2.setEchoChar('*');
add(l1);
add(t1);
add(l2);
add(t2);;
add(b1);
add(b2);
add(b3);
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
setLayout(new GridLayout(7,1));
}
public void actionPerformed(ActionEvent e)
{
if(e.getSource()==b1)
{
us = t1.getText();
pasw = t2.getText();
if(count>0&& password.equals(pasw)&& usid.equals(us))
{
admini obj2= new admini();
obj2.setSize(800,500);
obj2.setVisible(true);
}
else
{
count= count-1;
if(count==0)
System.exit(0);
}
}
if(e.getSource()==b3)
{
System.exit(0);
}
}
public static void main(String s[])
{
passw obj = new passw();
obj.setSize(300,300);
obj.setVisible(true);
}
}
ADMINUP.JAVA-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class adminup extends JFrame implements ActionListener
{
JButton b1,b2,b3,b4,b5,b6,b7,b8;
JComboBox j1,J2;
JTextField t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13;
String id=null,name1="NO EMPLOYEE EXIST";
String name,phone,add,sal,pos,age,sex,nat,home,exp;
String err="EMPLOYEE NOT FOUND, PLEASE ENTER CORRECT ID";
adminup()
{
b1 = new JButton("Show Details");
b2 = new JButton("Remove");
b3 = new JButton("Update Phone");
b4 = new JButton("Update Address");
b5 = new JButton("Update Salary");
b6 = new JButton("update Position");
b7 = new JButton("Update Experience");
b8 = new JButton("Back");
j1 = new JComboBox();
t1 = new JTextField(10);
t2 = new JTextField(10);
t3 = new JTextField(10);
t4 = new JTextField(10);
t5 = new JTextField(10);
t6 = new JTextField(10);
t7 = new JTextField(10);
t8 = new JTextField(10);
t9 = new JTextField(10);
t10 = new JTextField(10);
t11 = new JTextField(10);
l12 = new JLabel();
l1 = new JLabel("Emp_Id");
l2 = new JLabel("EMP_Name");
l3 = new JLabel("Emp_Phone");
l4 = new JLabel("Emp_Address");
l5 = new JLabel("Emp_Salary");
l6 = new JLabel("Emp_Position");
l7 = new JLabel("Emp_Age");
l8 = new JLabel("Emp_Sex");
l9 = new JLabel("Emp_Nationality");
l10 = new JLabel("Emp_Hometown");
l11 = new JLabel("Emp_Exp");
l13 = new JLabel();
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
b5.addActionListener(this);
b6.addActionListener(this);
b7.addActionListener(this);
b8.addActionListener(this);
setLayout(new GridLayout(21,1));
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs = null;
PreparedStatement st = con.prepareStatement("Select * from
emp1");
rs= st.executeQuery();
while(rs.next())
{
j1.addItem(rs.getString(2));
}
add(l1);
add(t1);
add(l2);
add(j1);
add(l3);
add(t3);
add(l4);
add(t4);
add(l5);
add(t5);
add(l6);
add(t6);
add(l7);
add(t7);
add(l8);
add(t8);
add(l9);
add(t9);
add(l10);
add(t10);
add(l11);
add(t11);
add(l12);
add(l13);
add(b1);
add(b2);
add(b3);
add(b4);
add(b5);
add(b6);
add(b7);
add(b8);
st.close();
}
catch(Exception ae)
{
System.out.print(ae);
}
}
public void actionPerformed(ActionEvent e)
{
try
{
int tempid,tempsal,tempage;;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con1 =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs1= null;
if(e.getSource()==b1)
{
name= j1.getSelectedItem().toString();
PreparedStatement st1 = con1.prepareStatement("Select
* from emp1 where Emp_Name=?");
st1.setString(1,name);
rs1= st1.executeQuery();
while(rs1.next())
{
id=rs1.getString(1);
phone=rs1.getString(3);
add=rs1.getString(4);
sal=rs1.getString(5);
pos=rs1.getString(6);
age=rs1.getString(7);
sex=rs1.getString(8);
nat=rs1.getString(9);
home=rs1.getString(10);
exp=rs1.getString(11);
}
t1.setText(id);
t3.setText(phone);
t4.setText(add);
t5.setText(sal);
t6.setText(pos);
t7.setText(age);
t8.setText(sex);
t9.setText(nat);
t10.setText(home);
t11.setText(exp);
st1.close();
}
if(e.getSource()==b2)
{
id = t1.getText();
tempid= Integer.parseInt(id);
PreparedStatement st2 = con1.prepareStatement("Delete
from emp1 where Emp_Id=?");
st2.setInt(1,tempid);
int rec= st2.executeUpdate();
l13.setText(rec + "Record Removed");
st2.close();
}
if(e.getSource()==b3)
{
id = t1.getText();
tempid = Integer.parseInt(id);
phone = t3.getText();
PreparedStatement st3 =
con1.prepareStatement("Update emp1 set Emp_Phone=? where Emp_Id=?");
st3.setString(1,phone);
st3.setInt(2,tempid);
int rec1 = st3.executeUpdate();
l13.setText(rec1 + " Record Updated");
st3.close();
}
if(e.getSource()==b4)
{
id = t1.getText();
tempid = Integer.parseInt(id);
add = t4.getText();
PreparedStatement st4 =
con1.prepareStatement("Update emp1 set Emp_Add=? where Emp_Id=?");
st4.setString(1,add);
st4.setInt(2,tempid);
int rec1 = st4.executeUpdate();
l13.setText(rec1 + " Record Updated");
st4.close();
}
if(e.getSource()==b5)
{
id = t1.getText();
tempid = Integer.parseInt(id);
sal = t5.getText();
PreparedStatement st5 =
con1.prepareStatement("Update emp1 set Emp_Salary=? where Emp_Id=?");
st5.setString(1,sal);
st5.setInt(2,tempid);
int rec1 = st5.executeUpdate();
l13.setText(rec1 + " Record Updated");
st5.close();
}
if(e.getSource()==b6)
{
id = t1.getText();
tempid = Integer.parseInt(id);
pos = t6.getText();
PreparedStatement st6 =
con1.prepareStatement("Update emp1 set Emp_Position=? where Emp_Id=?");
st6.setString(1,pos);
st6.setInt(2,tempid);
int rec1 = st6.executeUpdate();
l13.setText(rec1 + " Record Updated");
st6.close();
}
if(e.getSource()==b7)
{
id = t1.getText();
tempid = Integer.parseInt(id);
exp = t11.getText();
PreparedStatement st7 =
con1.prepareStatement("Update emp1 set Emp_Exp=? where Emp_Id=?");
st7.setString(1,exp);
st7.setInt(2,tempid);
int rec1 = st7.executeUpdate();
l13.setText(rec1 + " Record Updated");
st7.close();
}
if(e.getSource()==b8)
{
admini obj1 = new admini();
obj1.setSize(800,500);
obj1.setVisible(true);
}
}
catch(Exception ae)
{
System.out.print(ae);
}
}
public static void main(String s[])
{
adminup obj = new adminup();
obj.setSize(800,400);
obj.setVisible(true);
}
}
ADMINNEW.JAVA-
import java.awt.*;
import java.awt.event.*;
import java.sql.*;
import javax.swing.*;
public class adminnew extends JFrame implements ActionListener
{
JButton b1,b2;
JTextField t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12,l13;
String id= null;
String name,phone,add,fee,course,age,sex,year,home,regs no;
adminnew()
{
b1 = new JButton("ADD");
b2 = new JButton("Cancel");
t1 = new JTextField(10);
t2 = new JTextField(10);
t3 = new JTextField(10);
t4 = new JTextField(10);
t5 = new JTextField(10);
t6 = new JTextField(10);
t7 = new JTextField(10);
t8 = new JTextField(10);
t9 = new JTextField(10);
t10 = new JTextField(10);
t11 = new JTextField(10);
l12 = new JLabel();
l13 = new JLabel();
l2 = new JLabel("Student_Name");
l3 = new JLabel("Student_Phone");
l4 = new JLabel("Student_Address");
l5 = new JLabel("Student_Fee");
l6 = new JLabel("Student_Course");
l7 = new JLabel("Student_Age");
l8 = new JLabel("Student_Sex");
l9 = new JLabel("Student_Year");
l10 = new JLabel("Student_Hometown");
l11 = new JLabel("Student_Regs no");
add(l2);
add(t2);
add(l3);
add(t3);
add(l4);
add(t4);
add(l5);
add(t5);
add(l6);
add(t6);
add(l7);
add(t7);
add(l8);
add(t8);
add(l9);
add(t9);
add(l10);
add(t10);
add(l11);
add(t11);
add(l12);
add(l13);
add(b1);
add(b2);
b1.addActionListener(this);
b2.addActionListener(this);
setLayout(new GridLayout(21,1));
}
public void actionPerformed(ActionEvent e)
{
try
{
int tempid,tempfee,tempage;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs = null;
PreparedStatement st = con.prepareStatement("Select * from
Student1");
rs= st.executeQuery();
while(rs.next())
{
id = rs.getString(1);
}
st.close();
tempid = Integer.parseInt(id);
tempid = tempid+1;
if(e.getSource()==b1)
{
name = t2.getText();
phone = t3.getText();
add = t4.getText();
fee = t5.getText();
course = t6.getText();
age = t7.getText();
sex = t8.getText();
year = t9.getText();
home = t10.getText();
regs no= t11.getText();
tempsal = Integer.parseInt(sal);
tempage = Integer.parseInt(age);
PreparedStatement st1 = con.prepareStatement("Insert
into Student1 values(?,?,?,?,?,?,?,?,?,?,?)");
st1.setInt(1,tempid);
st1.setString(2,name);
st1.setString(3,phone);
st1.setString(4,add);
st1.setInt(5,tempfee);
st1.setString(6,course);
st1.setInt(7,tempage);
st1.setString(8,sex);
st1.setString(9,year);
st1.setString(10,home);
st1.setString(11,regs no);
int rec = st1.executeUpdate();
l12.setText(rec+" Record Added");
add(l12);
st1.close();
}
if(e.getSource()==b2)
{
admini obj1= new admini();
obj1.setSize(800,500);
obj1.setVisible(true);
}
}
catch(Exception ce)
{
System.out.print(ce);
}
}
public static void main(String s[])
{
adminnew obj = new adminnew();
obj.setSize(800,500);
obj.setVisible(true);
}
}
ADMINI.JAVA-
import java.awt.*;
import java.awt.event.*;
import javax.swing.*;
import java.sql.*;
public class admini extends JFrame implements ActionListener
{
JButton b1,b2,b3,b4;
JComboBox j1,J2;
JTextField t1,t2,t3,t4,t5,t6,t7,t8,t9,t10,t11;
JLabel l1,l2,l3,l4,l5,l6,l7,l8,l9,l10,l11,l12;
String id=null,name1="NO STUDENT EXIST";
String name,phone,add,fee, course, age,sex,year,hometown,registration no.;
String err="STUDENT NOT FOUND, PLEASE ENTER CORRECT ID";
admini()
{
b1 = new JButton("Show");
b2 = new JButton("Update");
b3 = new JButton("New");
b4 = new JButton("Logout");
j1 = new JComboBox();
t1 = new JTextField(10);
t2 = new JTextField(10);
t3 = new JTextField(10);
t4 = new JTextField(10);
t5 = new JTextField(10);
t6 = new JTextField(10);
t7 = new JTextField(10);
t8 = new JTextField(10);
t9 = new JTextField(10);
t10 = new JTextField(10);
t11 = new JTextField(10);
l12 = new JLabel();
l1 = new JLabel("Student_Id");
l2 = new JLabel("Student_Name");
l3 = new JLabel("Student_Phone");
l4 = new JLabel("Student_Address");
l5 = new JLabel("Student_Fee");
l6 = new JLabel("Student_Course");
l7 = new JLabel("Student_Age");
l8 = new JLabel("Student_Sex");
l9 = new JLabel("Student_Year");
l10 = new JLabel("Student_Hometown");
l11 = new JLabel("Student_Regs no");
b1.addActionListener(this);
b2.addActionListener(this);
b3.addActionListener(this);
b4.addActionListener(this);
setLayout(new GridLayout(21,1));
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs = null;
PreparedStatement st = con.prepareStatement("Select * from
Student1");
rs= st.executeQuery();
while(rs.next())
{
j1.addItem(rs.getString(2));
}
add(l1);
add(l12);
add(l2);
add(j1);
add(l3);
add(t3);
add(l4);
add(t4);
add(l5);
add(t5);
add(l6);
add(t6);
add(l7);
add(t7);
add(l8);
add(t8);
add(l9);
add(t9);
add(l10);
add(t10);
add(l11);
add(t11);
add(b1);
add(b2);
add(b3);
add(b4);
st.close();
}
catch(Exception ae)
{
System.out.print(ae);
}
}
public void actionPerformed(ActionEvent e)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con1 =
DriverManager.getConnection("Jdbc:Odbc:DSN1");
ResultSet rs1= null;
if(e.getSource()==b1)
{
name= j1.getSelectedItem().toString();
PreparedStatement st1 = con1.prepareStatement("Select
* from Student1 where Student_Name=?");
st1.setString(1,name);
rs1= st1.executeQuery();
while(rs1.next())
{
id=rs1.getString(1);
phone=rs1.getString(3);
add=rs1.getString(4);
fee=rs1.getString(5);
course=rs1.getString(6);
age=rs1.getString(7);
sex=rs1.getString(8);
year=rs1.getString(9);
home=rs1.getString(10);
regs no=rs1.getString(11);
}
l12.setText(id);
t3.setText(phone);
t4.setText(add);
t5.setText(fee);
t6.setText(course);
t7.setText(age);
t8.setText(sex);
t9.setText(year);
t10.setText(home);
t11.setText(regs no);
st1.close();
}
if(e.getSource()==b2)
{
adminup obj2 = new adminup();
obj2.setSize(800,500);
obj2.setVisible(true);
}
if(e.getSource()==b3)
{
adminnew obj1 = new adminnew();
obj1.setSize(800,500);
obj1.setVisible(true);
}
if(e.getSource()==b4)
{
System.exit(0);
}
}
catch(Exception aee)
{
System.out.print(aee);
}
}
public static void main(String s[])
{
admini obj = new admini();
obj.setSize(400,400);
obj.setVisible(true);
}
}