Fee managment system

1,762 views
1,660 views

Published on

Published in: Education
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,762
On SlideShare
0
From Embeds
0
Number of Embeds
3
Actions
Shares
0
Downloads
93
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Fee managment system

  1. 1. TERMPAPER Of MOdERnPROgRAMMing TOOls -1TOPic : fEE MAnAgEMEnT sysTEMsUBMiTTEd TO – sUBMiTTEdBy-MR.RAkEsh fAiRy sEc– k27B1 B.TEch [iT]- MBA
  2. 2. ROllnO - 09Table of contents:- 1. Fee management system 2. Scope 3. Features 4. Language used 5. Overview 6. Data flow diagram 7. CODING OF THE PROJECT
  3. 3. Fee management systemThe fee management system is to manage the data or information of the student those whohave 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 examinerTechnologies used:-JavaOverview :
  4. 4. 1. 12. 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. 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.2. Monthly fee items Monthly fee items are displayed based on the monthly fee setting. For each student fee pending amount is displayed.3. 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. 5. 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");
  6. 6. 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); }
  7. 7. 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); }}
  8. 8. Student.javaimport java.awt.*;import java.awt.event.*;import javax.swing.*;import java.sql.*;public class student extends JFrame implements ActionListener{ JTextField t1; JButton b1,b2; JLabell1,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
  9. 9. 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");
  10. 10. 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);
  11. 11. 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
  12. 12. ("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);
  13. 13. 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("");
  14. 14. 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);
  15. 15. l21.setText(regs no); l23.setText("Showingdetails"); st1.close(); } } if(e.getSource()==b2) { System.exit(0); } rs.close(); con.close(); } catch(Exception as) { System.out.print(as); } }
  16. 16. 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;
  17. 17. 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);
  18. 18. 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); }
  19. 19. 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); }}
  20. 20. 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");
  21. 21. 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");
  22. 22. 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");
  23. 23. Connection con =DriverManager.getConnection("Jdbc:Odbc:DSN1"); ResultSet rs = null; PreparedStatement st = con.prepareStatement("Select * fromemp1"); 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);
  24. 24. 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);
  25. 25. 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();
  26. 26. 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);
  27. 27. 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("Deletefrom emp1 where Emp_Id=?"); st2.setInt(1,tempid); int rec= st2.executeUpdate(); l13.setText(rec + "Record Removed"); st2.close();
  28. 28. } 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=?");
  29. 29. 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) {
  30. 30. 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();
  31. 31. 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); }}
  32. 32. 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");
  33. 33. 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");
  34. 34. 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);
  35. 35. 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 * fromStudent1"); rs= st.executeQuery(); while(rs.next())
  36. 36. { 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);
  37. 37. PreparedStatement st1 = con.prepareStatement("Insertinto 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);
  38. 38. 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.*;
  39. 39. 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);
  40. 40. 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);
  41. 41. 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 * fromStudent1"); rs= st.executeQuery(); while(rs.next()) { j1.addItem(rs.getString(2)); } add(l1); add(l12);
  42. 42. 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);
  43. 43. 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) {
  44. 44. 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);
  45. 45. 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();
  46. 46. 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);
  47. 47. obj.setVisible(true); }}

×