├── Online Exam ├── A.BAT ├── ONLINE.MDB ├── TABLES.TXT ├── _hash833823 ├── answerlist.class ├── answerlist.java ├── examination.class ├── examination.java ├── examrules.class ├── examrules.java ├── mycan.class ├── mythread.class ├── results.class ├── results.java ├── studentreport.class ├── studentreport.java ├── subjectslist.class ├── subjectslist.html ├── subjectslist.java ├── welcome.class ├── welcome.html └── welcome.java ├── PayRoll ├── Addwindow$1.class ├── Addwindow$2.class ├── Addwindow.class ├── Addwindow.java ├── Authorwindow.class ├── Deletewindow$1.class ├── Deletewindow$2.class ├── Deletewindow.class ├── Deletewindow.java ├── Editwindow$1.class ├── Editwindow$2.class ├── Editwindow.class ├── Editwindow.java ├── Emprptwindow$PrintCommand.class ├── Emprptwindow.class ├── Emprptwindow.java ├── Helpwindow.class ├── LoginFrame$1.class ├── LoginFrame.class ├── LoginFrame.java ├── MainMenu$1.class ├── MainMenu$2.class ├── MainMenu.class ├── MainMenu.java ├── MakeDB.ini ├── PayRoll.ldb ├── PayRoll.mdb ├── Payrptwindow.class ├── Screen_Shot.JPG ├── Settingswindow$1.class ├── Settingswindow.class ├── Settingswindow.java ├── clsConnection.class ├── clsConnection.java ├── clsSettings$1.class ├── clsSettings.class ├── clsSettings.java ├── images │ ├── 1leftarrow.png │ ├── 1leftarrow_hover.png │ ├── 1rightarrow.png │ ├── 1rightarrow_hover.png │ ├── 2leftarrow.png │ ├── 2leftarrow_hover.png │ ├── 2rightarrow.png │ ├── 2rightarrow_hover.png │ ├── Advances.png │ ├── Attendance.png │ ├── Brach.png │ ├── Branches.png │ ├── Business.png │ ├── DB Location.png │ ├── Exit.gif │ ├── Expenses.png │ ├── Help.gif │ ├── Home.gif │ ├── Info.png │ ├── Key.gif │ ├── Keys.gif │ ├── Log Details.png │ ├── NEW.GIF │ ├── NotePad.gif │ ├── OPEN.GIF │ ├── PASTE.GIF │ ├── PaySlip.png │ ├── ProdStocks.png │ ├── Quarterly Sales.png │ ├── SAVE.GIF │ ├── Thumbs.db │ ├── Tool_Backup.jpg │ ├── add.gif │ ├── admin.gif │ ├── author.png │ ├── backup.GIF │ ├── backup.png │ ├── branch.png │ ├── calc.png │ ├── calendar_year.png │ ├── company reference.png │ ├── delete.png │ ├── delete_Hover.png │ ├── edit.png │ ├── emp.png │ ├── emp_rpt.png │ ├── employee.png │ ├── employees.png │ ├── exit.png │ ├── exits.png │ ├── explorer.png │ ├── find.gif │ ├── help.png │ ├── inventory.png │ ├── invoice.png │ ├── kpress.png │ ├── maximized.png │ ├── minized.png │ ├── modify.png │ ├── modify_Hover.png │ ├── mspaint.png │ ├── normal.png │ ├── notepad.png │ ├── officer.png │ ├── ok.png │ ├── ok_Hover.png │ ├── order details.png │ ├── orders.png │ ├── payments.png │ ├── preview.png │ ├── preview_Hover.png │ ├── print.gif │ ├── print.png │ ├── prints.png │ ├── products.png │ ├── purchase.png │ ├── reload_Hover.png │ ├── reset.png │ ├── restore.gif │ ├── restore.png │ ├── save_all.png │ ├── save_all_hover.png │ ├── search.png │ ├── search_hover.png │ ├── select_Hover.png │ ├── setting.png │ ├── time-login.png │ ├── tran.png │ ├── users.png │ ├── wordpad.png │ └── xp.png ├── printwindow$1.class ├── printwindow.class └── printwindow.java ├── README.md └── hosp ├── CHA_Hospital.jpg ├── WebContent ├── 1.jpg ├── 2057&v=fit512.jpg ├── 210_medical_doctor_decal__59388.png ├── ArtGalleries.jpg ├── DEPT.jsp ├── Hospital main entrance-blue sky.jpg ├── META-INF │ ├── MANIFEST.MF │ └── bill.html ├── University_College_Hospital.jpg ├── WEB-INF │ ├── addpat.jsp │ ├── adpat.jsp │ ├── attnd.jsp │ ├── bill.jsp │ ├── dropdown.js │ ├── empattnd.jsp │ └── web.xml ├── addmed.jsp ├── addoc.jsp ├── addpt.jsp ├── adnurse.jsp ├── apponit.jsp ├── bill.jsp ├── blue_background.jpg ├── cfiles23725.jpg ├── compaqblue7vy.jpg ├── dischrg.jsp ├── docrep.jsp ├── dropdown.css ├── dropdown.js ├── editdoc.jsp ├── empattn.jsp ├── foliage-swirls-000145-light-sky-blue.jpg ├── home.jsp ├── home_6.swf ├── light-blue-wallpaper.jpg ├── medical_doctor.jpg ├── medrep.jsp ├── nurse.jpg ├── oestfold_hospital_arkitema260109_1.jpg ├── patrep.jsp ├── sd.jsp └── transactn.jsp ├── build └── classes │ ├── as.class │ └── srv1.class ├── home_6.swf └── src ├── as.java └── srv1.java /Online Exam/A.BAT: -------------------------------------------------------------------------------- 1 | copy *.java c:\javaserver1.0\servlets 2 | copy *.html c:\javaserver1.0\public_html 3 | -------------------------------------------------------------------------------- /Online Exam/ONLINE.MDB: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/Online Exam/ONLINE.MDB -------------------------------------------------------------------------------- /Online Exam/TABLES.TXT: -------------------------------------------------------------------------------- 1 | insert into question values(3,'which packageis to import to use servlets','Servlets','java.servlet','java.servlet.http','java.util','none','java.servlet'); 2 | drop table question 3 | create table question(qno int,qname varchar(50),topic varchar(50),op1 varchar(50),op2 varchar(50),op3 varchar(50),op4 varchar(50),ans varchar(50)) 4 | insert into question values(1,'what is a servlet','Servlets','it is a server side applet','it is a server program','it is an applet','none','it is a server program') 5 | -------------------------------------------------------------------------------- /Online Exam/_hash833823: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/Online Exam/_hash833823 -------------------------------------------------------------------------------- /Online Exam/answerlist.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/Online Exam/answerlist.class -------------------------------------------------------------------------------- /Online Exam/answerlist.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | 3 | public class answerlist extends Frame 4 | { 5 | String[] uans,umark; 6 | int count,i; 7 | public List anslist; 8 | String topic; 9 | int snum; 10 | Panel p,p1,p2; 11 | Label l1; 12 | Button b1,b2; 13 | examination ex; 14 | int mark; 15 | CheckboxGroup cbg; 16 | Checkbox cba[]; 17 | int amark[]; 18 | int umarkcount; 19 | //int qcount,String[] uanswer,int mark,int stdno,String top 20 | public answerlist(examination d) 21 | { 22 | //count,uans,qmark,stdno,topi 23 | ex=d; 24 | count=ex.count; 25 | topic=ex.topi; 26 | snum=ex.stdno; 27 | uans=new String[count]; 28 | umark=new String[count]; 29 | umarkcount=0; 30 | for(i=0;i=(count)) 140 | { 141 | qcounter=qcounter-1; 142 | } 143 | add124(qcounter); 144 | } 145 | else if(e.target.equals(m)) 146 | 147 | { 148 | umark[qcounter]="M"; 149 | } 150 | 151 | else if(e.target.equals(c)) 152 | { 153 | //count,uans,qmark,stdno,topi 154 | disp124(); 155 | } 156 | if(radioop1.getState()) 157 | { 158 | uans[qcounter]= op1[qcounter]; 159 | } 160 | else if(radioop2.getState()) 161 | { 162 | uans[qcounter]= op2[qcounter]; 163 | } 164 | else if(radioop3.getState()) 165 | { 166 | uans[qcounter]= op3[qcounter]; 167 | } 168 | else if(radioop4.getState()) 169 | { 170 | uans[qcounter]= op4[qcounter]; 171 | } 172 | 173 | 174 | return super.action(e,o); 175 | } 176 | public void disp124() 177 | { 178 | answerlist al=new answerlist(this); 179 | hide(); 180 | al.resize(300,300); 181 | al.show(); 182 | 183 | } 184 | 185 | public void dispresults() 186 | { 187 | if(a2==null) 188 | { 189 | System.out.println("Method dispresults called"); 190 | a2=new results(this); 191 | hide(); 192 | a2.resize(300,300); 193 | a2.show(); 194 | } 195 | 196 | } 197 | 198 | public void add124(int c) 199 | { 200 | qcounter=c; 201 | //p.removeAll(); 202 | umark[c]="N"; 203 | //l1=new Label(ques[c]); 204 | l1.setText(ques[c]); 205 | //p.add(l1); 206 | //radio=new CheckboxGroup(); 207 | //radioop1=new Checkbox(op1[c],radio,false); 208 | //radioop2=new Checkbox(op2[c],radio,false); 209 | //radioop3=new Checkbox(op3[c],radio,false); 210 | //radioop4=new Checkbox(op4[c],radio,false); 211 | radioop1.setLabel(op1[c]); 212 | radioop2.setLabel(op2[c]); 213 | radioop3.setLabel(op3[c]); 214 | radioop4.setLabel(op4[c]); 215 | 216 | //p.add(radioop1); 217 | //p.add(radioop2); 218 | //p.add(radioop3); 219 | //p.add(radioop4); 220 | 221 | //add("Center",p); 222 | l2.setText("Q.NO"+(c+1)+"of"+count); 223 | System.out.println("change="+(c+1)+" "+count); 224 | validate(); 225 | 226 | return; 227 | } 228 | 229 | } 230 | 231 | 232 | class mythread extends Thread 233 | { 234 | examination ex; 235 | mythread(examination f) 236 | { 237 | ex=f; 238 | 239 | } 240 | public void run() 241 | { 242 | long time=ex.count*100000; 243 | System.out.println("time:"+time); 244 | for(long i=0;i=pmark) 32 | { 33 | result="pass"; 34 | 35 | } 36 | Panel p=new Panel(); 37 | l1=new Label("SNO :"+sno); 38 | l2=new Label("TOPIC :"+ topic); 39 | l3=new Label("TOTAL MARKS :"+total); 40 | l4=new Label("MARKS SECURED :"+tmarks); 41 | l5=new Label("RESULT :"+result); 42 | p.add(l1); 43 | p.add(l2); 44 | p.add(l3); 45 | p.add(l4); 46 | p.add(l5); 47 | add("North",p); 48 | mn=new mycan(tmarks,total,pmark); 49 | add("Center",mn); 50 | 51 | 52 | try 53 | { 54 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 55 | Connection c=DriverManager.getConnection("jdbc:odbc:sirisha"); 56 | Statement st=c.createStatement(); 57 | ResultSet rs=st.executeQuery("select * from student where sno="+sno+" and topic='"+topic+"'"); 58 | int found=100; 59 | if(rs.next()) 60 | { 61 | found=200; 62 | } 63 | if(found==200) 64 | { 65 | st.executeUpdate("update student set totalmarks="+total+",markssecured="+tmarks+",result='"+result+"' where sno="+sno+" and topic='"+topic+"'"); 66 | } 67 | else 68 | { 69 | st.executeUpdate("insert into student values("+sno+",'"+topic+"',"+total+","+tmarks+",'"+result+"')"); 70 | } 71 | } 72 | catch(Exception e) 73 | { 74 | e.printStackTrace(); 75 | } 76 | 77 | } 78 | /* public static void main(String args[]) 79 | { 80 | Frame f=new Frame(); 81 | f.setSize(500,500); 82 | f.setTitle("dhjhjfdj"); 83 | f.repaint(); 84 | f.show(); 85 | 86 | } */ 87 | } 88 | class mycan extends Canvas 89 | { 90 | int total,tmark,pmark; 91 | mycan(int tmark,int total,int pmark) 92 | { 93 | this.total=total; 94 | this.tmark=tmark; 95 | this.pmark=pmark; 96 | 97 | 98 | } 99 | public void paint(Graphics g) 100 | { 101 | g.setColor(Color.blue); 102 | g.drawString("TOTAL MARKS",10,20); 103 | 104 | g.fillRect(50,0,total*10,20); 105 | g.drawString("MARKS GOT",10,80); 106 | g.fillRect(50,60,tmark*10,20); 107 | resize(300,300); 108 | 109 | } 110 | 111 | } 112 | -------------------------------------------------------------------------------- /Online Exam/studentreport.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/Online Exam/studentreport.class -------------------------------------------------------------------------------- /Online Exam/studentreport.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.sql.*; 3 | 4 | public class studentreport extends Frame 5 | { 6 | int stdno,scount=0; 7 | String[] topic; 8 | int[] totalmarks; 9 | int[] markssecured; 10 | String[] result; 11 | Panel p,p1; 12 | String[] str; 13 | int i; 14 | Button b; 15 | 16 | public studentreport(int snum) 17 | { 18 | System.out.println("sirishasrinivas"); 19 | p=new Panel(); 20 | p1=new Panel(); 21 | b=new Button("Back"); 22 | stdno=snum; 23 | try 24 | { 25 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 26 | Connection c=DriverManager.getConnection("jdbc:odbc:sirisha"); 27 | Statement st=c.createStatement(); 28 | ResultSet rs=st.executeQuery("Select * from student where sno="+stdno);//+"' order by qno"); 29 | 30 | while(rs.next()) 31 | { 32 | scount++; 33 | } 34 | str=new String[scount]; 35 | topic=new String[scount]; 36 | totalmarks=new int[scount]; 37 | markssecured=new int[scount]; 38 | result=new String[scount]; 39 | 40 | rs=st.executeQuery("Select * from student where sno="+stdno);//+"' order by qno"); 41 | i=0; 42 | // stdno=rs.getInt(1); 43 | while(rs.next()) 44 | { 45 | topic[i]=rs.getString(2); 46 | totalmarks[i]=rs.getInt(3); 47 | markssecured[i]=rs.getInt(4); 48 | result[i]=rs.getString(5); 49 | str[i]=stdno+topic[i]+totalmarks[i]+markssecured[i]+result[i]; 50 | i++; 51 | } 52 | 53 | 54 | Label ls[]=new Label[scount]; 55 | 56 | for(i=0;i 2 | 3 |

4 |
5 | WELCOME TO EVALUATOR
6 |

7 |
8 | 9 |

10 |

C.S.Software Enterprise Ltd.,


11 | 12 |
13 |

Student No:

14 | 15 |

16 | 17 | 18 | 19 | // 20 | // 21 | 22 | 23 | -------------------------------------------------------------------------------- /Online Exam/subjectslist.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | 3 | public class subjectslist extends Frame 4 | { 5 | public List sublist; 6 | int snum; 7 | Button r,bb,ex; 8 | public subjectslist(int ss) 9 | { 10 | snum=ss; 11 | System.out.println("sno="+snum); 12 | setTitle("SUBJECTS LIST"); 13 | setLayout(new FlowLayout()); 14 | sublist=new List(6,false); 15 | sublist.addItem("Internet Basics"); 16 | sublist.addItem("Java"); 17 | sublist.addItem("Jdbc"); 18 | sublist.addItem("Servlets"); 19 | sublist.addItem("Java Beans"); 20 | sublist.addItem("Rmi"); 21 | sublist.addItem("Corba"); 22 | add(sublist); 23 | r=new Button("Report"); 24 | bb=new Button("Select"); 25 | ex=new Button("Exit"); 26 | add(r); 27 | add(bb); 28 | add(ex); 29 | } 30 | public boolean action(Event e,Object arg) 31 | { 32 | if(e.target.equals(bb)) 33 | { 34 | String str=sublist.getItem(sublist.getSelectedIndex()); 35 | examrules e1=new examrules(snum,str); 36 | hide(); 37 | e1.resize(300,300); 38 | e1.show(); 39 | } 40 | else if(e.target.equals(ex)) 41 | { 42 | System.out.println("sirisha"); 43 | welcome wel=new welcome(); 44 | hide(); 45 | wel.resize(400,400); 46 | wel.show(); 47 | } 48 | else if(e.target.equals(r)) 49 | { 50 | studentreport stdrep=new studentreport(snum); 51 | hide(); 52 | stdrep.resize(400,400); 53 | stdrep.show(); 54 | } 55 | return true; 56 | } 57 | public boolean handleEvent(Event e) 58 | { 59 | if(e.id==Event.WINDOW_DESTROY) 60 | System.exit(0); 61 | return super.handleEvent(e); 62 | } 63 | } 64 | 65 | 66 | -------------------------------------------------------------------------------- /Online Exam/welcome.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/Online Exam/welcome.class -------------------------------------------------------------------------------- /Online Exam/welcome.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |

4 |
5 | WELCOME TO EVALUATOR
6 |

7 |
8 | 9 |

10 |

C.S.Software Enterprise Ltd.,


11 |
12 |

Student No:

13 | 14 |

15 | 16 | 17 | -------------------------------------------------------------------------------- /Online Exam/welcome.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | 3 | public class welcome extends Frame 4 | { 5 | int stdno; 6 | TextField tf1; 7 | Button b; 8 | public welcome() 9 | { 10 | b=new Button("GO ON"); 11 | tf1=new TextField(10); 12 | setTitle("WELCOME"); 13 | Panel p=new Panel(); 14 | p.setLayout(new FlowLayout()); 15 | p.add(new Label("C.S.Software Enterprise Ltd.,")); 16 | p.add(new Label("STUDENT NO:")); 17 | p.add(tf1); 18 | p.add(b); 19 | add("Center",p); 20 | 21 | } 22 | public boolean action(Event e,Object arg) 23 | { 24 | if(e.target.equals(b)) 25 | { 26 | stdno=Integer.parseInt(tf1.getText()); 27 | System.out.println(stdno); 28 | subjectslist ss=new subjectslist(stdno); 29 | hide(); 30 | ss.resize(300,300); 31 | ss.show(); 32 | } 33 | 34 | return super.action(e,arg); 35 | } 36 | public boolean handleEvent(Event e) 37 | { 38 | if(e.id==Event.WINDOW_DESTROY) 39 | System.exit(0); 40 | return super.handleEvent(e); 41 | } 42 | public static void main(String args[]) 43 | { 44 | Frame f=new welcome(); 45 | f.resize(400,500); 46 | f.show(); 47 | 48 | } 49 | 50 | } 51 | 52 | 53 | -------------------------------------------------------------------------------- /PayRoll/Addwindow$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Addwindow$1.class -------------------------------------------------------------------------------- /PayRoll/Addwindow$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Addwindow$2.class -------------------------------------------------------------------------------- /PayRoll/Addwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Addwindow.class -------------------------------------------------------------------------------- /PayRoll/Addwindow.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import java.io.*; 4 | import java.sql.*; 5 | import javax.swing.*; 6 | import java.util.*; 7 | import java.net.*; 8 | 9 | public class Addwindow extends JInternalFrame implements ActionListener { 10 | 11 | // Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); 12 | JFrame JFParentFrame; 13 | JDesktopPane desktop; 14 | private JPanel panel1; 15 | private JPanel panel2; 16 | private JButton AddBtn; 17 | private JButton ResetBtn; 18 | private JButton ExitBtn; 19 | private JLabel LblEmp_Code,LblEmp_Name1, LblEmp_Name2, LblEmp_Desi,LblEmp_Add,LblEmp_No; 20 | private JTextField TxtEmp_Code, TxtEmp_Name1, TxtEmp_Name2,TxtEmp_Add, TxtEmp_No; 21 | private JComboBox Emp_Type; 22 | String dialogmessage; 23 | String dialogs; 24 | int dialogtype = JOptionPane.PLAIN_MESSAGE; 25 | 26 | public static int record; 27 | String Emp_Code = ""; 28 | String Emp_Name1 = ""; 29 | String Emp_Name2 = ""; 30 | String Emp_Desi = ""; 31 | String Emp_Add = ""; 32 | String Emp_No = ""; 33 | 34 | // Class Variables 35 | 36 | clsSettings settings = new clsSettings(); 37 | clsConnection connect = new clsConnection(); 38 | 39 | Connection conn; 40 | 41 | public Addwindow(JFrame getParentFrame) 42 | { 43 | 44 | super("Add - Employee ",true,true,true,true); 45 | setSize(400,800); 46 | JFParentFrame = getParentFrame; 47 | panel1 = new JPanel(); 48 | panel1.setLayout(new GridLayout(7,7)); 49 | 50 | LblEmp_Code = new JLabel (" Employee Code :"); 51 | LblEmp_Name1 = new JLabel (" First Name :"); 52 | LblEmp_Name2 = new JLabel (" Last Name :"); 53 | LblEmp_Desi = new JLabel (" Designation :"); 54 | LblEmp_Add = new JLabel (" Address :"); 55 | LblEmp_No = new JLabel (" Contact No :"); 56 | 57 | TxtEmp_Code = new JTextField(20); 58 | Emp_Type = new JComboBox(); 59 | Emp_Type.addActionListener(this); 60 | Emp_Type.setEditable(false); 61 | add_Cat_combo(Emp_Type); 62 | TxtEmp_Name1 = new JTextField(20); 63 | TxtEmp_Name2 = new JTextField(20); 64 | 65 | TxtEmp_Add = new JTextField(20); 66 | TxtEmp_No = new JTextField(20); 67 | 68 | panel1.add(LblEmp_Code); 69 | panel1.add(TxtEmp_Code); 70 | 71 | panel1.add(LblEmp_Desi); 72 | panel1.add(Emp_Type); 73 | 74 | panel1.add(LblEmp_Name1); 75 | panel1.add(TxtEmp_Name1); 76 | 77 | panel1.add(LblEmp_Name2); 78 | panel1.add(TxtEmp_Name2); 79 | 80 | panel1.add(LblEmp_Add); 81 | panel1.add(TxtEmp_Add); 82 | 83 | panel1.add(LblEmp_No); 84 | panel1.add(TxtEmp_No); 85 | panel1.setOpaque(true); 86 | 87 | panel2 = new JPanel(); 88 | panel2.setLayout(new FlowLayout()); 89 | AddBtn = new JButton("Add"); 90 | ResetBtn = new JButton("Reset"); 91 | ExitBtn = new JButton("Exit"); 92 | 93 | 94 | panel2.add(AddBtn); 95 | AddBtn.addActionListener(this); 96 | panel2.add(ResetBtn); 97 | ResetBtn.addActionListener(this); 98 | panel2.add(ExitBtn); 99 | ExitBtn.addActionListener(this); 100 | panel2.setOpaque(true); 101 | 102 | 103 | getContentPane().setLayout(new GridLayout(2,1)); 104 | getContentPane().add(panel1,"CENTER"); 105 | getContentPane().add(panel2,"CENTER"); 106 | setFrameIcon(new ImageIcon( "images/backup.gif")); 107 | setDefaultCloseOperation(DISPOSE_ON_CLOSE); 108 | pack(); 109 | 110 | settings.Numvalidator(TxtEmp_No); 111 | 112 | } 113 | 114 | public void actionPerformed(ActionEvent event) 115 | { 116 | 117 | Object source = event.getSource(); 118 | 119 | if ( source.equals(Emp_Type)) 120 | { 121 | 122 | Emp_Desi = (String)Emp_Type.getSelectedItem(); 123 | 124 | 125 | 126 | } 127 | 128 | 129 | if(source.equals(AddBtn)) 130 | { 131 | 132 | Emp_Code = ""; 133 | Emp_Name1 = ""; 134 | Emp_Name2 = ""; 135 | Emp_Desi = ""; 136 | Emp_Add = ""; 137 | Emp_No = ""; 138 | 139 | 140 | Emp_Code = TxtEmp_Code.getText().trim(); 141 | Emp_Name1 = TxtEmp_Name1.getText().trim(); 142 | Emp_Name2 = TxtEmp_Name2.getText().trim(); 143 | Emp_Desi = (String)Emp_Type.getSelectedItem(); 144 | Emp_Add = TxtEmp_Add.getText().trim(); 145 | Emp_No = TxtEmp_No.getText().trim(); 146 | 147 | try { 148 | conn = connect.setConnection(conn,"",""); 149 | } 150 | catch(Exception e) 151 | { 152 | } 153 | try { 154 | 155 | Statement stmt = conn.createStatement(); 156 | if (!Emp_Code.equals("") && 157 | !Emp_Name1.equals("")&& 158 | !Emp_Name2.equals("")&& 159 | !Emp_Desi.equals("") && 160 | !Emp_Add.equals("") && 161 | !Emp_No.equals("") ) 162 | 163 | { 164 | 165 | 166 | String query = "SELECT * FROM EMPLOYEE WHERE Emp_Code='" + Emp_Code+"'"; 167 | ResultSet rs = stmt.executeQuery(query); 168 | int foundrec = 0; 169 | while (rs.next()) 170 | { 171 | dialogmessage = "Record Already Exists in DataBase!!!"; 172 | dialogtype = JOptionPane.WARNING_MESSAGE; 173 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 174 | 175 | foundrec = 1; 176 | 177 | } 178 | if (foundrec == 0) 179 | { 180 | 181 | String temp = "INSERT INTO EMPLOYEE VALUES ('"+Emp_Code +"','" 182 | +Emp_Name1 +"','" 183 | +Emp_Name2 +"','" 184 | +Emp_Desi +"','" 185 | +Emp_Add + "','" 186 | +Emp_No + "')" ; 187 | 188 | int result = stmt.executeUpdate( temp ); 189 | if ( result == 1 ) 190 | { 191 | System.out.println("Recorded Added"); 192 | ResetRecord(); 193 | 194 | 195 | } 196 | else { 197 | dialogmessage = "Failed To Insert"; 198 | JOptionPane.showMessageDialog(null, "Failed To Insert in DataBase", 199 | "WARNING!!",JOptionPane.WARNING_MESSAGE); 200 | 201 | 202 | } 203 | } 204 | 205 | 206 | 207 | } 208 | 209 | else 210 | { 211 | dialogmessage = "Empty Record !!!"; 212 | dialogtype = JOptionPane.WARNING_MESSAGE; 213 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 214 | 215 | } 216 | 217 | conn.close(); 218 | 219 | } 220 | 221 | catch(Exception ex) 222 | { 223 | JOptionPane.showMessageDialog(null,"GENERAL EXCEPTION", "WARNING!!!",JOptionPane.INFORMATION_MESSAGE); 224 | } 225 | 226 | 227 | 228 | } 229 | 230 | else if(source == ResetBtn) 231 | { 232 | ResetRecord(); 233 | } 234 | else if(source == ExitBtn) 235 | { 236 | setVisible (false); 237 | dispose(); 238 | } 239 | 240 | } 241 | 242 | 243 | private void ResetRecord() 244 | { 245 | TxtEmp_Code.setText(""); 246 | TxtEmp_Name1.setText(""); 247 | TxtEmp_Name2.setText(""); 248 | TxtEmp_Add.setText(""); 249 | TxtEmp_No.setText(""); 250 | } 251 | 252 | 253 | public void add_Cat_combo(JComboBox cmb) 254 | { 255 | 256 | 257 | try { 258 | conn = connect.setConnection(conn,"",""); 259 | } 260 | catch(Exception e) 261 | { 262 | } 263 | try{ 264 | 265 | 266 | Statement stmt = conn.createStatement(); 267 | 268 | String query = "SELECT * FROM Settings"; 269 | ResultSet rs = stmt.executeQuery(query); 270 | 271 | while (rs.next()) 272 | { 273 | 274 | 275 | String Txtcmb = rs.getString(2).trim(); 276 | record = rs.getInt("Category_Type"); 277 | 278 | cmb.addItem(Txtcmb); 279 | 280 | } 281 | conn.close(); 282 | } 283 | 284 | 285 | catch(Exception ex) 286 | { 287 | 288 | } 289 | 290 | } 291 | 292 | 293 | 294 | 295 | 296 | } 297 | -------------------------------------------------------------------------------- /PayRoll/Authorwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Authorwindow.class -------------------------------------------------------------------------------- /PayRoll/Deletewindow$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Deletewindow$1.class -------------------------------------------------------------------------------- /PayRoll/Deletewindow$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Deletewindow$2.class -------------------------------------------------------------------------------- /PayRoll/Deletewindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Deletewindow.class -------------------------------------------------------------------------------- /PayRoll/Deletewindow.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import java.io.*; 4 | import java.sql.*; 5 | import javax.swing.*; 6 | import java.util.*; 7 | import java.net.*; 8 | 9 | public class Deletewindow extends JInternalFrame implements ActionListener { 10 | 11 | // Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); 12 | JFrame JFParentFrame; 13 | JDesktopPane desktop; 14 | private JPanel panel1; 15 | private JPanel panel2; 16 | private JButton FindBtn; 17 | private JButton DeleteBtn; 18 | private JButton ExitBtn; 19 | private JLabel LblEmp_Code,LblEmp_Name1, LblEmp_Name2, LblEmp_Desi,LblEmp_Add,LblEmp_No; 20 | private JTextField TxtEmp_Code, TxtEmp_Name1, TxtEmp_Name2, TxtEmp_Desi,TxtEmp_Add, TxtEmp_No; 21 | String dialogmessage; 22 | String dialogs; 23 | int dialogtype = JOptionPane.PLAIN_MESSAGE; 24 | // Class Variables 25 | 26 | clsSettings settings = new clsSettings(); 27 | 28 | // Connection Class Variables 29 | clsConnection connect = new clsConnection(); 30 | Connection conn; 31 | 32 | 33 | 34 | public Deletewindow(JFrame getParentFrame) 35 | { 36 | 37 | super("Delete - Employee ",true,true,true,true); 38 | setSize(400,800); 39 | JFParentFrame = getParentFrame; 40 | panel1 = new JPanel(); 41 | panel1.setLayout(new GridLayout(7,7)); 42 | 43 | LblEmp_Code = new JLabel (" Employee Code :"); 44 | LblEmp_Name1 = new JLabel (" First Name :"); 45 | LblEmp_Name2 = new JLabel (" Last Name :"); 46 | LblEmp_Desi = new JLabel (" Designation :"); 47 | LblEmp_Add = new JLabel (" Address :"); 48 | LblEmp_No = new JLabel (" Contact No :"); 49 | 50 | TxtEmp_Code = new JTextField(20); 51 | TxtEmp_Name1 = new JTextField(20); 52 | TxtEmp_Name2 = new JTextField(20); 53 | TxtEmp_Desi = new JTextField(20); 54 | TxtEmp_Add = new JTextField(20); 55 | TxtEmp_No = new JTextField(20); 56 | 57 | 58 | TxtEmp_Name1.setEditable(false); 59 | TxtEmp_Name2.setEditable(false); 60 | TxtEmp_Desi.setEditable(false); 61 | TxtEmp_Add.setEditable(false); 62 | TxtEmp_No.setEditable(false); 63 | 64 | panel1.add(LblEmp_Code); 65 | panel1.add(TxtEmp_Code); 66 | 67 | panel1.add(LblEmp_Name1); 68 | panel1.add(TxtEmp_Name1); 69 | 70 | panel1.add(LblEmp_Name2); 71 | panel1.add(TxtEmp_Name2); 72 | 73 | panel1.add(LblEmp_Desi); 74 | panel1.add(TxtEmp_Desi); 75 | 76 | panel1.add(LblEmp_Add); 77 | panel1.add(TxtEmp_Add); 78 | 79 | panel1.add(LblEmp_No); 80 | panel1.add(TxtEmp_No); 81 | 82 | 83 | panel2 = new JPanel(); 84 | panel2.setLayout(new FlowLayout()); 85 | FindBtn = new JButton("Find"); 86 | DeleteBtn = new JButton("Delete"); 87 | ExitBtn = new JButton("Exit"); 88 | 89 | panel2.add(FindBtn); 90 | FindBtn.addActionListener(this); 91 | panel2.add(DeleteBtn); 92 | DeleteBtn.addActionListener(this); 93 | panel2.add(ExitBtn); 94 | ExitBtn.addActionListener(this); 95 | panel2.setOpaque(true); 96 | 97 | 98 | getContentPane().setLayout(new GridLayout(2,1)); 99 | getContentPane().add(panel1,"CENTER"); 100 | getContentPane().add(panel2,"CENTER"); 101 | setFrameIcon(new ImageIcon( "images/backup.gif")); 102 | setDefaultCloseOperation(DISPOSE_ON_CLOSE); 103 | pack(); 104 | settings.Numvalidator(TxtEmp_No); 105 | 106 | } 107 | 108 | public void actionPerformed(ActionEvent event) 109 | { 110 | 111 | Object source = event.getSource(); 112 | 113 | String sEmp_Code = ""; 114 | String sEmp_Name1 = ""; 115 | String sEmp_Name2 = ""; 116 | String sEmp_Desi = ""; 117 | String sEmp_Add = ""; 118 | String sEmp_No = ""; 119 | if(source.equals(FindBtn)) 120 | { 121 | 122 | sEmp_Code = TxtEmp_Code.getText().trim(); 123 | try { 124 | conn = connect.setConnection(conn,"",""); 125 | } 126 | catch(Exception e) 127 | { 128 | } 129 | try { 130 | 131 | 132 | Statement stmt = conn.createStatement(); 133 | 134 | if (!sEmp_Code.equals("")); 135 | 136 | 137 | String query = "SELECT * FROM EMPLOYEE WHERE Emp_Code='" + sEmp_Code +"'"; 138 | ResultSet rs = stmt.executeQuery(query); 139 | int foundrec = 0; 140 | while (rs.next()) 141 | { 142 | ResultSetMetaData rsmd = rs.getMetaData(); 143 | int columnCount = rsmd.getColumnCount(); 144 | 145 | 146 | sEmp_Name1 = rs.getString(2).trim(); 147 | sEmp_Name2 = rs.getString(3).trim(); 148 | sEmp_Desi = rs.getString(4).trim(); 149 | sEmp_Add = rs.getString(5).trim(); 150 | sEmp_No = rs.getString(6).trim(); 151 | 152 | TxtEmp_Name1.setText(sEmp_Name1); 153 | TxtEmp_Name2.setText(sEmp_Name2); 154 | TxtEmp_Desi.setText(sEmp_Desi); 155 | TxtEmp_Add.setText(sEmp_Add); 156 | TxtEmp_No.setText(sEmp_No); 157 | foundrec = 1; 158 | 159 | } 160 | 161 | if (foundrec == 0) 162 | { 163 | dialogmessage = "No Such Employuee"; 164 | 165 | dialogtype = JOptionPane.WARNING_MESSAGE; 166 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 167 | ResetRecord(); 168 | 169 | } 170 | conn.close(); 171 | 172 | 173 | } 174 | catch(Exception e) 175 | { 176 | System.out.println("\nUnknown Error"); 177 | } 178 | 179 | 180 | 181 | } 182 | 183 | else if(source.equals(DeleteBtn)) 184 | { 185 | 186 | int DResult = JOptionPane.showConfirmDialog((Component) null,"Are you sure you want to delete Record?"); 187 | 188 | if (DResult == JOptionPane.NO_OPTION) { 189 | ResetRecord(); 190 | 191 | } 192 | 193 | if (DResult == JOptionPane.YES_OPTION) 194 | { 195 | 196 | try { 197 | conn = connect.setConnection(conn,"",""); 198 | } 199 | catch(Exception e) 200 | { 201 | } 202 | 203 | try 204 | { 205 | Statement stmt = conn.createStatement(); 206 | sEmp_Code = TxtEmp_Code.getText().trim(); 207 | 208 | if ( !sEmp_Code.equals("")) 209 | { 210 | String temp = "DELETE from EMPLOYEE " + 211 | " WHERE Emp_Code= '" + sEmp_Code + "'"; 212 | int result = stmt.executeUpdate( temp ); 213 | 214 | if ( result == 1 ) 215 | { 216 | dialogmessage = "Employee Record Deleted!!!"; 217 | dialogtype = JOptionPane.WARNING_MESSAGE; 218 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 219 | ResetRecord(); 220 | } 221 | 222 | else 223 | 224 | { 225 | dialogmessage = "No Such Employuee"; 226 | 227 | dialogtype = JOptionPane.WARNING_MESSAGE; 228 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 229 | ResetRecord(); 230 | 231 | } 232 | 233 | } 234 | 235 | 236 | conn.close(); 237 | 238 | } 239 | 240 | catch(Exception e) 241 | { 242 | System.out.println("\nUnknown Error" + e); 243 | } 244 | } 245 | 246 | } 247 | else if(source == ExitBtn) 248 | { 249 | setVisible (false); 250 | dispose(); 251 | } 252 | 253 | } 254 | 255 | private void ResetRecord() 256 | { 257 | TxtEmp_Code.setText(""); 258 | TxtEmp_Name1.setText(""); 259 | TxtEmp_Name2.setText(""); 260 | TxtEmp_Desi.setText(""); 261 | TxtEmp_Add.setText(""); 262 | TxtEmp_No.setText(""); 263 | } 264 | 265 | 266 | 267 | 268 | 269 | } 270 | -------------------------------------------------------------------------------- /PayRoll/Editwindow$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Editwindow$1.class -------------------------------------------------------------------------------- /PayRoll/Editwindow$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Editwindow$2.class -------------------------------------------------------------------------------- /PayRoll/Editwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Editwindow.class -------------------------------------------------------------------------------- /PayRoll/Editwindow.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import java.io.*; 4 | import java.sql.*; 5 | import javax.swing.*; 6 | import java.util.*; 7 | import java.net.*; 8 | 9 | public class Editwindow extends JInternalFrame implements ActionListener { 10 | 11 | JFrame JFParentFrame; 12 | JDesktopPane desktop; 13 | private JPanel panel1; 14 | private JPanel panel2; 15 | private JButton FindBtn; 16 | private JButton EditBtn; 17 | private JButton ExitBtn; 18 | private JLabel LblEmp_Code,LblEmp_Name1, LblEmp_Name2, LblEmp_Desi,LblEmp_Add,LblEmp_No; 19 | private JTextField TxtEmp_Code, TxtEmp_Name1, TxtEmp_Name2, TxtEmp_Desi,TxtEmp_Add, TxtEmp_No; 20 | int dialogtype = JOptionPane.PLAIN_MESSAGE; 21 | String dialogmessage; 22 | String dialogs; 23 | 24 | private JComboBox Emp_Type; 25 | 26 | //Class Variables 27 | clsSettings settings = new clsSettings(); 28 | clsConnection connect = new clsConnection(); 29 | Connection conn; 30 | 31 | 32 | 33 | public Editwindow(JFrame getParentFrame) 34 | { 35 | 36 | super("Edit - Employee ",true,true,true,true); 37 | setSize(400,800); 38 | JFParentFrame = getParentFrame; 39 | panel1 = new JPanel(); 40 | panel1.setLayout(new GridLayout(7,7)); 41 | 42 | LblEmp_Code = new JLabel (" Employee Code :"); 43 | LblEmp_Desi = new JLabel (" Designation :"); 44 | LblEmp_Name1 = new JLabel (" First Name :"); 45 | LblEmp_Name2 = new JLabel (" Last Name :"); 46 | LblEmp_Add = new JLabel (" Address :"); 47 | LblEmp_No = new JLabel (" Contact No :"); 48 | 49 | TxtEmp_Code = new JTextField(20); 50 | Emp_Type = new JComboBox(); 51 | Emp_Type.addActionListener(this); 52 | Emp_Type.setEditable(false); 53 | add_Cat_combo(Emp_Type); 54 | TxtEmp_Name1 = new JTextField(20); 55 | TxtEmp_Name2 = new JTextField(20); 56 | TxtEmp_Add = new JTextField(20); 57 | TxtEmp_No = new JTextField(20); 58 | 59 | 60 | TxtEmp_Name1.setEditable(false); 61 | TxtEmp_Name2.setEditable(false); 62 | TxtEmp_Add.setEditable(false); 63 | TxtEmp_No.setEditable(false); 64 | 65 | panel1.add(LblEmp_Code); 66 | panel1.add(TxtEmp_Code); 67 | 68 | panel1.add(LblEmp_Desi); 69 | panel1.add(Emp_Type); 70 | 71 | panel1.add(LblEmp_Name1); 72 | panel1.add(TxtEmp_Name1); 73 | 74 | panel1.add(LblEmp_Name2); 75 | panel1.add(TxtEmp_Name2); 76 | 77 | panel1.add(LblEmp_Add); 78 | panel1.add(TxtEmp_Add); 79 | 80 | panel1.add(LblEmp_No); 81 | panel1.add(TxtEmp_No); 82 | 83 | 84 | panel2 = new JPanel(); 85 | panel2.setLayout(new FlowLayout()); 86 | FindBtn = new JButton("Find"); 87 | EditBtn = new JButton("Edit"); 88 | ExitBtn = new JButton("Exit"); 89 | 90 | panel2.add(FindBtn); 91 | FindBtn.addActionListener(this); 92 | panel2.add(EditBtn); 93 | EditBtn.addActionListener(this); 94 | panel2.add(ExitBtn); 95 | ExitBtn.addActionListener(this); 96 | panel2.setOpaque(true); 97 | 98 | 99 | getContentPane().setLayout(new GridLayout(2,1)); 100 | getContentPane().add(panel1,"CENTER"); 101 | getContentPane().add(panel2,"CENTER"); 102 | setFrameIcon(new ImageIcon( "images/backup.gif")); 103 | setDefaultCloseOperation(DISPOSE_ON_CLOSE); 104 | pack(); 105 | 106 | settings.Numvalidator(TxtEmp_No); 107 | 108 | } 109 | 110 | public void actionPerformed(ActionEvent event) 111 | { 112 | 113 | Object source = event.getSource(); 114 | 115 | String sEmp_Code = ""; 116 | String sEmp_Name1 = ""; 117 | String sEmp_Name2 = ""; 118 | String sEmp_Desi = ""; 119 | String sEmp_Add = ""; 120 | String sEmp_No = ""; 121 | if(source.equals(FindBtn)) 122 | { 123 | 124 | 125 | 126 | sEmp_Code = TxtEmp_Code.getText().trim(); 127 | 128 | try { 129 | conn = connect.setConnection(conn,"",""); 130 | } 131 | catch(Exception e) 132 | { 133 | } 134 | try { 135 | 136 | Statement stmt = conn.createStatement(); 137 | 138 | if (!sEmp_Code.equals("")) 139 | { 140 | String query = "SELECT * FROM EMPLOYEE WHERE Emp_Code='" + sEmp_Code +"'"; 141 | ResultSet rs = stmt.executeQuery(query); 142 | int foundrec = 0; 143 | while (rs.next()) 144 | { 145 | sEmp_Name1 = rs.getString(2).trim(); 146 | sEmp_Name2 = rs.getString(3).trim(); 147 | sEmp_Desi = rs.getString(4).trim(); 148 | sEmp_Add = rs.getString(5).trim(); 149 | sEmp_No = rs.getString(6).trim(); 150 | 151 | TxtEmp_Name1.setText(sEmp_Name1); 152 | TxtEmp_Name1.setEditable(true); 153 | 154 | TxtEmp_Name2.setText(sEmp_Name2); 155 | TxtEmp_Name2.setEditable(true); 156 | 157 | Emp_Type.setSelectedItem(sEmp_Desi); 158 | 159 | TxtEmp_Add.setText(sEmp_Add); 160 | TxtEmp_Add.setEditable(true); 161 | 162 | TxtEmp_No.setText(sEmp_No); 163 | TxtEmp_No.setEditable(true); 164 | 165 | foundrec = 1; 166 | 167 | } 168 | 169 | if (foundrec == 0) 170 | { 171 | dialogmessage = "No Such Employuee"; 172 | 173 | dialogtype = JOptionPane.WARNING_MESSAGE; 174 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 175 | ResetRecord(); 176 | 177 | } 178 | 179 | } 180 | else 181 | { 182 | dialogmessage = "No Blank Field Allowed"; 183 | 184 | dialogtype = JOptionPane.WARNING_MESSAGE; 185 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 186 | ResetRecord(); 187 | 188 | } 189 | conn.close(); 190 | 191 | 192 | } 193 | catch(Exception e) 194 | { 195 | System.out.println("\nUnknown Error"); 196 | } 197 | 198 | 199 | 200 | } 201 | 202 | else if(source == EditBtn) 203 | { 204 | 205 | sEmp_Code = TxtEmp_Code.getText().trim(); 206 | sEmp_Name1 = TxtEmp_Name1.getText().trim(); 207 | sEmp_Name2 = TxtEmp_Name2.getText().trim(); 208 | sEmp_Desi = (String)Emp_Type.getSelectedItem(); 209 | sEmp_Add = TxtEmp_Add.getText().trim(); 210 | sEmp_No = TxtEmp_No.getText().trim(); 211 | 212 | 213 | try { 214 | conn = connect.setConnection(conn,"",""); 215 | } 216 | catch(Exception e) 217 | { 218 | } 219 | try { 220 | 221 | 222 | 223 | Statement stmt = conn.createStatement(); 224 | 225 | if (!sEmp_Code.equals("") && 226 | !sEmp_Name1.equals("")&& 227 | !sEmp_Name2.equals("")&& 228 | !sEmp_Desi.equals("") && 229 | !sEmp_Add.equals("") && 230 | !sEmp_No.equals("") ) 231 | 232 | 233 | { 234 | String temp ="UPDATE EMPLOYEE SET "+ 235 | "Emp_Code = '"+sEmp_Code+ 236 | "',Emp_Name1 = '"+sEmp_Name1+ 237 | "',Emp_Name2 = '"+sEmp_Name2+ 238 | "',Emp_Desi = '"+sEmp_Desi+ 239 | "',Emp_Add = '"+sEmp_Add+ 240 | "',Emp_No = '"+sEmp_No+"'"+ 241 | "WHERE Emp_Code = '" +sEmp_Code+"'"; 242 | int result = stmt.executeUpdate( temp ); 243 | if (result == 1) 244 | { 245 | 246 | dialogmessage = "Record Updated!!!"; 247 | dialogtype = JOptionPane.INFORMATION_MESSAGE; 248 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 249 | ResetRecord(); 250 | 251 | 252 | } 253 | else 254 | { 255 | dialogmessage = "NO SUCH EMPLOYEE!!!"; 256 | dialogtype = JOptionPane.WARNING_MESSAGE; 257 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 258 | 259 | } 260 | 261 | } 262 | 263 | else 264 | { 265 | dialogmessage = "NULL VALUES OCCURED IN TEXTFIELD!!!"; 266 | dialogtype = JOptionPane.WARNING_MESSAGE; 267 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 268 | ResetRecord(); 269 | } 270 | 271 | conn.close(); 272 | 273 | 274 | } 275 | catch(Exception ex) 276 | { 277 | JOptionPane.showMessageDialog(null,"GENERAL EXCEPTION", "WARNING!!!",JOptionPane.INFORMATION_MESSAGE); 278 | System.out.println("Error in Edi Btn" + ex); 279 | } 280 | 281 | 282 | 283 | } 284 | 285 | 286 | else if(source == ExitBtn) 287 | { 288 | 289 | setVisible (false); 290 | dispose(); 291 | } 292 | 293 | } 294 | 295 | 296 | private void ResetRecord() 297 | { 298 | TxtEmp_Code.setText(""); 299 | TxtEmp_Name1.setText(""); 300 | TxtEmp_Name2.setText(""); 301 | TxtEmp_Add.setText(""); 302 | TxtEmp_No.setText(""); 303 | 304 | 305 | } 306 | 307 | 308 | public void add_Cat_combo(JComboBox cmb) 309 | { 310 | 311 | 312 | try { 313 | conn = connect.setConnection(conn,"",""); 314 | } 315 | catch(Exception e) 316 | { 317 | } 318 | try{ 319 | 320 | 321 | Statement stmt = conn.createStatement(); 322 | 323 | String query = "SELECT * FROM Settings"; 324 | ResultSet rs = stmt.executeQuery(query); 325 | 326 | while (rs.next()) 327 | { 328 | 329 | 330 | String Txtcmb = rs.getString(2).trim(); 331 | 332 | 333 | cmb.addItem(Txtcmb); 334 | 335 | } 336 | conn.close(); 337 | } 338 | 339 | 340 | catch(Exception ex) 341 | { 342 | 343 | } 344 | 345 | } 346 | 347 | 348 | 349 | 350 | 351 | 352 | } 353 | -------------------------------------------------------------------------------- /PayRoll/Emprptwindow$PrintCommand.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Emprptwindow$PrintCommand.class -------------------------------------------------------------------------------- /PayRoll/Emprptwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Emprptwindow.class -------------------------------------------------------------------------------- /PayRoll/Helpwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Helpwindow.class -------------------------------------------------------------------------------- /PayRoll/LoginFrame$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/LoginFrame$1.class -------------------------------------------------------------------------------- /PayRoll/LoginFrame.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/LoginFrame.class -------------------------------------------------------------------------------- /PayRoll/LoginFrame.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import java.sql.*; 4 | import java.io.*; 5 | import java.util.*; 6 | import java.net.*; 7 | import javax.swing.*; 8 | import java.util.Date; 9 | 10 | public class LoginFrame extends JFrame implements ActionListener { 11 | 12 | static JFrame frame; 13 | private String username; 14 | private String password; 15 | private static JFrame loginFrame; 16 | private static JPanel panel1; 17 | private static JPanel panel2; 18 | private static JPanel panel3; 19 | private JButton loginBtn; 20 | private JButton exitBtn; 21 | int dialogtype = JOptionPane.PLAIN_MESSAGE; 22 | String dialogmessage; 23 | String dialogs; 24 | private JLabel nameLbl; 25 | private JLabel userLbl; 26 | private JLabel passwordLbl; 27 | private static JTextField userTxt; 28 | private static JPasswordField passwordTxt; 29 | 30 | public String loginname; 31 | public String loginpass; 32 | 33 | // class Veriables 34 | clsConnection connect = new clsConnection(); 35 | //Connection variable 36 | 37 | Connection conn; 38 | Dimension screen = Toolkit.getDefaultToolkit().getScreenSize(); 39 | 40 | static Date td = new Date(); 41 | 42 | public LoginFrame() 43 | { 44 | 45 | 46 | panel1 = new JPanel(); 47 | panel1.setLayout(new FlowLayout()); 48 | nameLbl = new JLabel("WELCOME TO GEC'S PAYROLL SYSTEM"); 49 | 50 | panel2 = new JPanel(); 51 | panel2.setLayout(new GridLayout(2,2)); 52 | userLbl = new JLabel("Username :"); 53 | userTxt = new JTextField(20); 54 | 55 | passwordLbl = new JLabel("Password :"); 56 | 57 | passwordTxt = new JPasswordField(20); 58 | 59 | panel3 = new JPanel(); 60 | panel3.setLayout(new FlowLayout()); 61 | 62 | loginBtn = new JButton("Login", new ImageIcon("images/key.gif")); 63 | 64 | loginBtn.addActionListener(this); 65 | exitBtn = new JButton("Exit", new ImageIcon("images/Keys.gif")); 66 | 67 | exitBtn.addActionListener(this); 68 | panel1.add(nameLbl); 69 | panel1.setOpaque(true); 70 | panel2.add(userLbl); 71 | panel2.add(userTxt); 72 | panel2.add(passwordLbl); 73 | panel2.add(passwordTxt); 74 | panel2.setOpaque(true); 75 | panel3.add(loginBtn); 76 | panel3.add(exitBtn); 77 | panel3.setOpaque(true); 78 | frame = new JFrame("PayRoll User Login..."); 79 | frame.setSize(300,200); 80 | 81 | Container pane = frame.getContentPane(); 82 | pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS)); 83 | //pane.setLayout(new GridLayout(3,1)); 84 | pane.add(panel1); 85 | pane.add(panel2); 86 | pane.add(panel3); 87 | frame.setLocation((screen.width - 500)/2,((screen.height-350)/2)); 88 | frame.setVisible(true); 89 | frame.addWindowListener(new WindowAdapter() 90 | { 91 | public void windowClosing(WindowEvent e) 92 | { 93 | System.exit(0); 94 | } 95 | }); 96 | 97 | 98 | 99 | } 100 | 101 | public void actionPerformed(ActionEvent event) 102 | { 103 | Object source = event.getSource(); 104 | if(source.equals(loginBtn)) 105 | { 106 | login(); 107 | 108 | } 109 | else if(source.equals(exitBtn)) 110 | { 111 | System.exit(0); 112 | } 113 | } 114 | 115 | public void login() 116 | { 117 | loginname = userTxt.getText().trim(); 118 | loginpass = passwordTxt.getText().trim(); 119 | 120 | 121 | try { 122 | conn = connect.setConnection(conn,"",""); 123 | } 124 | catch(Exception e) 125 | { 126 | } 127 | try{ 128 | 129 | 130 | Statement stmt = conn.createStatement(); 131 | 132 | String query = "SELECT * FROM Login WHERE USERNAME='" + loginname + 133 | "'AND PASSWORD='"+loginpass+"'"; 134 | ResultSet rs = stmt.executeQuery(query); 135 | boolean recordfound = rs.next(); 136 | if (recordfound) 137 | { 138 | 139 | dialogmessage = "Welcome - " +loginname; 140 | dialogtype = JOptionPane.INFORMATION_MESSAGE; 141 | JOptionPane.showMessageDialog((Component)null, dialogmessage, dialogs, dialogtype); 142 | userTxt.setText(""); 143 | passwordTxt.setText(""); 144 | frame.setVisible(false); 145 | frame.dispose(); 146 | MainMenu menu = new MainMenu(loginname,td); 147 | 148 | 149 | } 150 | else 151 | { 152 | dialogmessage = "Login Failed!"; 153 | JOptionPane.showMessageDialog(null, "INVALID ID OR PASSWORD!", 154 | "WARNING!!",JOptionPane.WARNING_MESSAGE); 155 | 156 | userTxt.setText(""); 157 | passwordTxt.setText(""); 158 | } 159 | conn.close(); 160 | } 161 | catch(Exception ex) 162 | { 163 | JOptionPane.showMessageDialog(null,"GENERAL EXCEPTION", "WARNING!!!",JOptionPane.INFORMATION_MESSAGE); 164 | } 165 | } 166 | 167 | 168 | public static void main(String[] args) 169 | { 170 | 171 | LoginFrame frame1 = new LoginFrame(); 172 | frame1.addNotify(); 173 | frame1.pack(); 174 | 175 | 176 | } 177 | 178 | 179 | 180 | } 181 | 182 | -------------------------------------------------------------------------------- /PayRoll/MainMenu$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/MainMenu$1.class -------------------------------------------------------------------------------- /PayRoll/MainMenu$2.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/MainMenu$2.class -------------------------------------------------------------------------------- /PayRoll/MainMenu.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/MainMenu.class -------------------------------------------------------------------------------- /PayRoll/MainMenu.java: -------------------------------------------------------------------------------- 1 | import javax.swing.*; 2 | import java.awt.*; 3 | import java.awt.event.*; 4 | import java.awt.Toolkit; 5 | import java.io.*; 6 | import java.sql.*; 7 | import java.util.*; 8 | import java.text.DateFormat; 9 | import java.util.Date; 10 | import java.text.*; 11 | import java.lang.*; 12 | import java.beans.PropertyVetoException; 13 | 14 | 15 | public class MainMenu extends JFrame implements ActionListener{ 16 | JDesktopPane desktop = new JDesktopPane(); 17 | String sMSGBOX_TITLE = "Payroll System V. 1.0"; 18 | 19 | 20 | // Menu Bar Variables 21 | 22 | JMenuBar menubar = new JMenuBar(); 23 | 24 | JMenu menuFile = new JMenu("File"); 25 | JMenu menuEmployee = new JMenu("Employee"); 26 | JMenu menuTools = new JMenu("Tools"); 27 | JMenu menuReports = new JMenu("Reports"); 28 | JMenu menuHelp = new JMenu("Help"); 29 | 30 | // Menu Item 31 | 32 | JMenuItem itemExit = new JMenuItem(); 33 | 34 | JMenuItem itemAdd = new JMenuItem(); 35 | JMenuItem itemEdit = new JMenuItem(); 36 | JMenuItem itemDelete = new JMenuItem(); 37 | 38 | JMenuItem itemSettings = new JMenuItem(); 39 | JMenuItem itemCalculator = new JMenuItem(); 40 | JMenuItem itemNotePad = new JMenuItem(); 41 | 42 | JMenuItem itemEmprpt = new JMenuItem(); 43 | 44 | JMenuItem itemAuthor = new JMenuItem(); 45 | JMenuItem itemHelp = new JMenuItem(); 46 | 47 | 48 | 49 | // JPanel 50 | 51 | JPanel panel_Bottom = new JPanel(); 52 | JPanel panel_Top = new JPanel(); 53 | 54 | // Label 55 | 56 | JLabel lblUsername = new JLabel("User Name:"); 57 | JLabel lblLogDetails = new JLabel("Time Login :"); 58 | JLabel lblTimeNow = new JLabel(); 59 | 60 | // TextField 61 | JTextField username = new JTextField(); 62 | JTextField logtime = new JTextField(); 63 | 64 | // JInternalFrame variables 65 | 66 | Addwindow FormAddwindow; 67 | Editwindow FormEditwindow; 68 | Deletewindow FormDeletewindow; 69 | //Settingswindow FormSettingswindow; 70 | 71 | 72 | 73 | Emprptwindow FormEmprptwindow; 74 | 75 | Settingswindow FormSettingswindow; 76 | 77 | Authorwindow FormAuthorwindow; 78 | Helpwindow FormHelpwindow; 79 | 80 | // Connection Variables 81 | 82 | Connection conn; 83 | 84 | // Date variables 85 | 86 | static Date td = new Date(); 87 | 88 | // String Variables 89 | 90 | static Statement stmtLogin; 91 | 92 | 93 | //Class Variables 94 | clsSettings settings = new clsSettings(); 95 | 96 | //// User Details 97 | static String sUser = ""; 98 | static String sLogin = DateFormat.getDateTimeInstance().format(td); 99 | 100 | 101 | public MainMenu(String user, Date date) { 102 | super("PayRoll Accounting System [Version 1.0]"); 103 | sUser = user; 104 | td = date; 105 | 106 | JTextField username = new JTextField(); 107 | username.setEditable(false); 108 | JTextField logtime = new JTextField(); 109 | logtime.setEditable(false); 110 | username.setText(sUser); 111 | logtime.setText(sLogin); 112 | 113 | panel_Bottom.setLayout(new FlowLayout()); 114 | panel_Bottom.setPreferredSize(new Dimension(10,25)); 115 | // panel_Bottom.add(lblUserIcon); 116 | panel_Bottom.add(lblUsername); 117 | panel_Bottom.add(username); 118 | panel_Bottom.add(lblLogDetails); 119 | panel_Bottom.add(logtime); 120 | 121 | 122 | panel_Top.setLayout(new BorderLayout()); 123 | panel_Top.setPreferredSize(new Dimension(10,65)); 124 | panel_Top.add(createJToolBar(),BorderLayout.PAGE_START); 125 | 126 | desktop.setBackground(Color.WHITE); 127 | desktop.setAutoscrolls(true); 128 | desktop.setBorder(BorderFactory.createLoweredBevelBorder()); 129 | desktop.setDragMode(JDesktopPane.OUTLINE_DRAG_MODE); 130 | 131 | getContentPane().add(panel_Top,BorderLayout.PAGE_START); 132 | getContentPane().add(desktop,BorderLayout.CENTER); 133 | getContentPane().add(panel_Bottom,BorderLayout.PAGE_END); 134 | 135 | 136 | 137 | addWindowListener(new WindowAdapter(){ 138 | 139 | public void windowClosing(WindowEvent e) 140 | { 141 | UnloadWindow(); 142 | } 143 | }); 144 | 145 | setJMenuBar(CreateJMenuBar()); 146 | setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE); 147 | setIconImage(new ImageIcon("images/Business.png").getImage()); 148 | setSize(700,700); 149 | setLocation(2,2); 150 | show(); 151 | 152 | } 153 | 154 | protected JMenuBar CreateJMenuBar() 155 | { 156 | 157 | 158 | // creating Submenu 159 | // Menu File 160 | menuFile.add(settings.setJMenuItem(itemExit,"Quit","images/exit.png")); 161 | 162 | itemExit.addActionListener(this); 163 | 164 | // MEnu Employee 165 | menuEmployee.add(settings.setJMenuItem(itemAdd,"Add Employee","images/employee.png")); 166 | menuEmployee.add(settings.setJMenuItem(itemEdit,"Edit Employee","images/edit.png")); 167 | menuEmployee.addSeparator(); 168 | menuEmployee.add(settings.setJMenuItem(itemDelete,"Delete Employee","images/delete.png")); 169 | 170 | 171 | itemAdd.addActionListener(this); 172 | itemEdit.addActionListener(this); 173 | itemDelete.addActionListener(this); 174 | 175 | // setting tool bar 176 | menuTools.add(settings.setJMenuItem(itemSettings,"Settings","images/setting.png")); 177 | menuTools.add(settings.setJMenuItem(itemCalculator,"Calculator","images/calc.png")); 178 | menuTools.addSeparator(); 179 | menuTools.add(settings.setJMenuItem(itemNotePad,"NotePad","images/notepad.png")); 180 | 181 | 182 | itemSettings.addActionListener(this); 183 | itemCalculator.addActionListener(this); 184 | itemNotePad.addActionListener(this); 185 | 186 | // setting Reports bar 187 | 188 | menuReports.add(settings.setJMenuItem(itemEmprpt,"Employee Report","images/emp_rpt.png")); 189 | menuTools.addSeparator(); 190 | menuTools.addSeparator(); 191 | itemEmprpt.addActionListener(this); 192 | 193 | // setting Help 194 | 195 | menuHelp.add(settings.setJMenuItem(itemAuthor,"About Author","images/xp.png")); 196 | menuHelp.add(settings.setJMenuItem(itemHelp,"Help","images/help.png")); 197 | 198 | itemAuthor.addActionListener(this); 199 | itemHelp.addActionListener(this); 200 | 201 | // adding menuitem to menubar 202 | 203 | menubar.add(settings.setJMenu(menuFile)); 204 | menubar.add(settings.setJMenu(menuEmployee)); 205 | menubar.add(settings.setJMenu(menuTools)); 206 | menubar.add(settings.setJMenu(menuReports)); 207 | menubar.add(settings.setJMenu(menuHelp)); 208 | return menubar; 209 | 210 | } 211 | 212 | protected JToolBar createJToolBar() 213 | { 214 | JToolBar toolbar = new JToolBar("Toolbar"); 215 | 216 | toolbar.add(settings.CreateJToolbarButton("Exit", "images/exit.png", "File_Exit", 217 | JToolBarActionListener)); 218 | toolbar.addSeparator(); 219 | toolbar.addSeparator(); 220 | 221 | toolbar.add(settings.CreateJToolbarButton("Add - Employee", "images/employee.png", "Emp_Add", 222 | JToolBarActionListener)); 223 | 224 | toolbar.add(settings.CreateJToolbarButton("Edit - Employee", "images/edit.png", "Emp_Edit", 225 | JToolBarActionListener)); 226 | toolbar.addSeparator(); 227 | 228 | toolbar.add(settings.CreateJToolbarButton("Delete - Employee", "images/delete.png","Emp_Delete", 229 | JToolBarActionListener)); 230 | toolbar.addSeparator(); 231 | toolbar.addSeparator(); 232 | 233 | 234 | 235 | toolbar.add(settings.CreateJToolbarButton("Employee Position Settings", "images/setting.png","Settings", 236 | JToolBarActionListener)); 237 | toolbar.add(settings.CreateJToolbarButton("Calculator", "images/calc.png","Tools_Calculator", 238 | JToolBarActionListener)); 239 | toolbar.add(settings.CreateJToolbarButton("NotePad", "images/notepad.png","Tools_NotePad", 240 | JToolBarActionListener)); 241 | toolbar.addSeparator(); 242 | toolbar.addSeparator(); 243 | 244 | 245 | toolbar.add(settings.CreateJToolbarButton("Employee - Report", "images/emp_rpt.png","Reports_Employee", 246 | JToolBarActionListener)); 247 | 248 | 249 | 250 | toolbar.add(settings.CreateJToolbarButton("Help - Author", "images/xp.png","Help_Author", 251 | JToolBarActionListener)); 252 | 253 | toolbar.add(settings.CreateJToolbarButton("Help - Help", "images/help.png","Help_Help", 254 | JToolBarActionListener)); 255 | return toolbar; 256 | 257 | } 258 | 259 | ActionListener JToolBarActionListener = new ActionListener() 260 | { 261 | public void actionPerformed(ActionEvent e) 262 | { 263 | String source = e.getActionCommand(); 264 | 265 | if (source == "File_Exit") 266 | { 267 | loadJInternalFrame(2); 268 | } 269 | else if (source == "Emp_Add") 270 | { 271 | loadJInternalFrame(3); 272 | } 273 | else if (source == "Emp_Edit") 274 | { 275 | loadJInternalFrame(4); 276 | } 277 | else if (source == "Emp_Delete") 278 | { 279 | loadJInternalFrame(5); 280 | } 281 | else if (source == "Settings") 282 | { 283 | loadJInternalFrame(6); 284 | } 285 | else if (source == "Tools_Calculator") 286 | { 287 | loadJInternalFrame(7); 288 | } 289 | else if (source == "Tools_NotePad") 290 | { 291 | loadJInternalFrame(8); 292 | } 293 | else if (source == "Reports_Employee") 294 | { 295 | loadJInternalFrame(9); 296 | } 297 | 298 | else if (source == "Help_Author") 299 | { 300 | loadJInternalFrame(11); 301 | } 302 | else if (source == "Help_Help") 303 | { 304 | loadJInternalFrame(12); 305 | } 306 | } 307 | 308 | }; 309 | 310 | 311 | public void actionPerformed(ActionEvent event) 312 | { 313 | Object object = event.getSource(); 314 | 315 | if (object == itemExit) 316 | { 317 | loadJInternalFrame(2); 318 | } 319 | else if (object == itemAdd) 320 | { 321 | loadJInternalFrame(3); 322 | } 323 | else if ( object == itemEdit) 324 | { 325 | loadJInternalFrame(4); 326 | } 327 | else if (object == itemDelete) 328 | { 329 | loadJInternalFrame(5); 330 | } 331 | else if (object == itemSettings) 332 | { 333 | loadJInternalFrame(6); 334 | } 335 | else if (object == itemCalculator) 336 | { 337 | loadJInternalFrame(7); 338 | 339 | } 340 | else if (object == itemNotePad) 341 | { 342 | loadJInternalFrame(8); 343 | } 344 | else if (object == itemEmprpt) 345 | { 346 | loadJInternalFrame(9); 347 | } 348 | 349 | else if (object == itemAuthor) 350 | { 351 | loadJInternalFrame(12); 352 | } 353 | else if (object == itemHelp) 354 | { 355 | loadJInternalFrame(13); 356 | } 357 | } 358 | private void loadJInternalFrame(int intWhich) 359 | { 360 | switch(intWhich) 361 | { 362 | 363 | case 2: 364 | System.exit(0); 365 | break; 366 | 367 | case 3: 368 | try { 369 | FormAddwindow = new Addwindow(this); 370 | loadForm("Add Employee", FormAddwindow); 371 | } 372 | catch(Exception e) 373 | { 374 | System.out.println("\nError"); 375 | } 376 | break; 377 | 378 | case 4: 379 | try { 380 | FormEditwindow = new Editwindow(this); 381 | loadForm("Edit Employee", FormEditwindow); 382 | } 383 | catch(Exception e) 384 | { 385 | System.out.println("\nError"); 386 | } 387 | break; 388 | 389 | case 5: 390 | try { 391 | FormDeletewindow = new Deletewindow(this); 392 | loadForm("Delete Employee", FormDeletewindow); 393 | } 394 | catch(Exception e) 395 | { 396 | System.out.println("\nError"); 397 | } 398 | break; 399 | 400 | case 6: 401 | try { 402 | FormSettingswindow = new Settingswindow(this); 403 | loadForm("Settings of Employee", FormSettingswindow); 404 | } 405 | catch(Exception e) 406 | { 407 | System.out.println("\nError"); 408 | } 409 | break; 410 | 411 | case 7: 412 | runComponents("Calc.exe"); 413 | break; 414 | 415 | case 8: 416 | runComponents("Notepad.exe"); 417 | break; 418 | 419 | case 9: 420 | try{ 421 | FormEmprptwindow = new Emprptwindow(this); 422 | loadForm("Employee PaySlip", FormEmprptwindow); 423 | 424 | } 425 | catch(Exception e) 426 | { 427 | System.out.println("\nError" + e ); 428 | } 429 | break; 430 | 431 | 432 | case 12: 433 | //FormAuthorwindow = new Authorwindow(this); 434 | break; 435 | 436 | case 13: 437 | //FormHelpwindow = new Helpwindow(this); 438 | break; 439 | 440 | 441 | } 442 | 443 | } 444 | protected void runComponents(String sComponents) 445 | { 446 | Runtime rt = Runtime.getRuntime(); 447 | try{rt.exec(sComponents);} 448 | catch(IOException evt){JOptionPane.showMessageDialog(null,evt.getMessage(),"Error Found",JOptionPane.ERROR_MESSAGE);} 449 | } 450 | 451 | protected void loadForm(String Title, JInternalFrame clsForm) 452 | { 453 | 454 | boolean xForm = isLoaded(Title); 455 | if (xForm == false) 456 | { 457 | desktop.add(clsForm); 458 | clsForm.setVisible(true); 459 | clsForm.show(); 460 | } 461 | else 462 | { 463 | try { 464 | clsForm.setIcon(false); 465 | clsForm.setSelected(true); 466 | 467 | } 468 | catch(PropertyVetoException e) 469 | {} 470 | } 471 | } // Complete Load Form methode 472 | 473 | 474 | protected boolean isLoaded(String FormTitle) 475 | { 476 | JInternalFrame Form[] = desktop.getAllFrames(); 477 | for ( int i = 0; i < Form.length; i++) 478 | { 479 | if (Form[i].getTitle().equalsIgnoreCase(FormTitle)) 480 | { 481 | Form[i].show(); 482 | try 483 | { 484 | Form[i].setIcon(false); 485 | Form[i].setSelected(true); 486 | 487 | } 488 | catch(PropertyVetoException e) 489 | { 490 | 491 | } 492 | return true; 493 | } 494 | } 495 | return false; 496 | } // Complete to Verify Form loaded or not 497 | 498 | protected void UnloadWindow() 499 | { 500 | try 501 | { 502 | int reply = JOptionPane.showConfirmDialog(this,"Are you sure to exit?",sMSGBOX_TITLE,JOptionPane.YES_NO_OPTION, 503 | JOptionPane.WARNING_MESSAGE); 504 | if (reply == JOptionPane.YES_OPTION) 505 | { 506 | 507 | setVisible(false); 508 | System.exit(0); 509 | } 510 | } 511 | catch(Exception e) 512 | {} 513 | 514 | }// Close the Windows 515 | 516 | 517 | public static void setlogin(String sUsername, Date sDate) 518 | { 519 | sUser = sUsername; 520 | td = sDate; 521 | 522 | 523 | }//Set Login 524 | 525 | 526 | 527 | 528 | 529 | } 530 | 531 | 532 | 533 | 534 | 535 | 536 | -------------------------------------------------------------------------------- /PayRoll/MakeDB.ini: -------------------------------------------------------------------------------- 1 | jdbc.drivers=sun.jdbc.odbc.JdbcOdbcDriver 2 | jdbc.url=jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=PayRoll.mdb;DriverID=22;READONLY=true) 3 | jdbc.username="" 4 | jdbc.password="" -------------------------------------------------------------------------------- /PayRoll/PayRoll.ldb: -------------------------------------------------------------------------------- 1 | SERVER admin SERVER admin SERVER admin SERVER admin SERVER admin -------------------------------------------------------------------------------- /PayRoll/PayRoll.mdb: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/PayRoll.mdb -------------------------------------------------------------------------------- /PayRoll/Payrptwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Payrptwindow.class -------------------------------------------------------------------------------- /PayRoll/Screen_Shot.JPG: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Screen_Shot.JPG -------------------------------------------------------------------------------- /PayRoll/Settingswindow$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Settingswindow$1.class -------------------------------------------------------------------------------- /PayRoll/Settingswindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/Settingswindow.class -------------------------------------------------------------------------------- /PayRoll/clsConnection.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/clsConnection.class -------------------------------------------------------------------------------- /PayRoll/clsConnection.java: -------------------------------------------------------------------------------- 1 | import java.io.IOException; 2 | import java.io.DataInputStream; 3 | import java.io.FileInputStream; 4 | import java.sql.Connection; 5 | import java.sql.DriverManager; 6 | import java.sql.SQLException; 7 | import javax.swing.JDialog; 8 | import java.io.*; 9 | import java.util.*; 10 | import java.net.*; 11 | 12 | 13 | public class clsConnection { 14 | String url = ""; 15 | String username = ""; 16 | String password = ""; 17 | 18 | 19 | public Connection setConnection(Connection conn, String username, String password ) 20 | 21 | { 22 | try 23 | { 24 | 25 | Properties props = new Properties(); 26 | String fileName = "MakeDB.ini"; 27 | FileInputStream in = new FileInputStream(fileName); 28 | props.load(in); 29 | String drivers = props.getProperty("jdbc.drivers"); 30 | if(drivers != null) 31 | System.setProperty("jdbc.drivers", drivers); 32 | url = props.getProperty("jdbc.url"); 33 | username = props.getProperty("jdbc.username"); 34 | password = props.getProperty("jdbc.password"); 35 | conn = DriverManager.getConnection(url,username,password); 36 | 37 | }catch(SQLException e) 38 | { 39 | System.err.println("SQl Exception"); 40 | e.printStackTrace(); 41 | 42 | } 43 | 44 | catch(IOException e) 45 | { 46 | System.out.println("\nIO Exception"); 47 | } 48 | catch (Exception e) 49 | { 50 | System.out.println("\nAnother Error"); 51 | } 52 | return conn; 53 | 54 | } 55 | 56 | 57 | 58 | 59 | } -------------------------------------------------------------------------------- /PayRoll/clsSettings$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/clsSettings$1.class -------------------------------------------------------------------------------- /PayRoll/clsSettings.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/clsSettings.class -------------------------------------------------------------------------------- /PayRoll/clsSettings.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import javax.swing.*; 4 | import java.util.*; 5 | 6 | public class clsSettings 7 | { 8 | 9 | public JLabel setJLabel(JLabel lbl, int sLeft, int sTop, int sWidth, int sHeight, boolean setBool) 10 | { 11 | lbl.setBounds(sLeft,sTop,sWidth, sHeight); 12 | lbl.setFont(new Font("Dialog",Font.PLAIN,12)); 13 | if(setBool == true){lbl.setForeground(new Color(166,0,0));} 14 | else{lbl.setForeground(java.awt.Color.BLACK);} 15 | return lbl; 16 | }//Set-up in JLabel 17 | public JTextField setJTextField(JTextField txtfield, int sLeft, int sTop, int sWidth, int sHeight) 18 | { 19 | txtfield.setBounds(sLeft,sTop,sWidth, sHeight); 20 | txtfield.setFont(new Font("Dialog",Font.PLAIN,12)); 21 | txtfield.setSelectionColor(new Color(200,150,150)); 22 | txtfield.setSelectedTextColor(new Color(0,0,0)); 23 | return txtfield; 24 | }//Set-up in JTextField 25 | 26 | 27 | public JMenu setJMenu(JMenu menu) 28 | { 29 | menu.setFont(new Font("Dialog", Font.BOLD, 12)); 30 | menu.setCursor(new Cursor(Cursor.HAND_CURSOR)); 31 | menu.setForeground(new Color(0,0,0)); 32 | return menu; 33 | }//Create a Menu 34 | public JMenuItem setJMenuItem(JMenuItem mnuitem, String sCaption, String imgLocation) 35 | { 36 | mnuitem.setText(sCaption); 37 | mnuitem.setIcon(new ImageIcon(imgLocation)); 38 | mnuitem.setCursor(new Cursor(Cursor.HAND_CURSOR)); 39 | mnuitem.setFont(new Font("Dialog", Font.PLAIN, 12)); 40 | mnuitem.setForeground(new Color(0,0,0)); 41 | return mnuitem; 42 | }//Create a MenuItem 43 | public JTabbedPane setJTabbedPane( JTabbedPane setTabbed, String setTitle, String setIcon, JPanel setPanel, int sLeft, int sTop, int sWidth, int sHeight) 44 | { 45 | setTabbed.setBounds(sLeft,sTop,sWidth, sHeight); 46 | setTabbed.setCursor(new Cursor(Cursor.HAND_CURSOR)); 47 | setTabbed.setFont(new Font("Dialog", Font.CENTER_BASELINE, 12)); 48 | setTabbed.setForeground(new Color(166,0,0)); 49 | setTabbed.addTab(setTitle, new ImageIcon(setIcon), setPanel); 50 | return setTabbed; 51 | }//Create a JTabbedPane 52 | public JButton CreateJToolbarButton(String srcToolTipText,String srcImageLocation,String srcActionCommand, ActionListener JToolBarActionListener) 53 | { 54 | JButton bttnToolbar = new JButton(new ImageIcon(srcImageLocation)); 55 | 56 | bttnToolbar.setActionCommand(srcActionCommand); 57 | bttnToolbar.setToolTipText(srcToolTipText); 58 | bttnToolbar.setCursor(new Cursor(Cursor.HAND_CURSOR)); 59 | bttnToolbar.setFont(new Font("Dialog", Font.PLAIN, 12)); 60 | bttnToolbar.addActionListener(JToolBarActionListener); 61 | return bttnToolbar; 62 | }//Create JToolbarButton 63 | 64 | 65 | public void Numvalidator(JTextField txtField) 66 | { 67 | 68 | txtField.addKeyListener(new KeyAdapter() { 69 | public void keyTyped(KeyEvent e) { 70 | char c = e.getKeyChar(); 71 | if (!(Character.isDigit(c) || 72 | (c == KeyEvent.VK_BACK_SPACE) || 73 | (c == KeyEvent.VK_DELETE))) { 74 | // getToolkit().beep(); 75 | e.consume(); 76 | } 77 | } 78 | }); 79 | } 80 | 81 | 82 | 83 | 84 | 85 | } -------------------------------------------------------------------------------- /PayRoll/images/1leftarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/1leftarrow.png -------------------------------------------------------------------------------- /PayRoll/images/1leftarrow_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/1leftarrow_hover.png -------------------------------------------------------------------------------- /PayRoll/images/1rightarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/1rightarrow.png -------------------------------------------------------------------------------- /PayRoll/images/1rightarrow_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/1rightarrow_hover.png -------------------------------------------------------------------------------- /PayRoll/images/2leftarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/2leftarrow.png -------------------------------------------------------------------------------- /PayRoll/images/2leftarrow_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/2leftarrow_hover.png -------------------------------------------------------------------------------- /PayRoll/images/2rightarrow.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/2rightarrow.png -------------------------------------------------------------------------------- /PayRoll/images/2rightarrow_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/2rightarrow_hover.png -------------------------------------------------------------------------------- /PayRoll/images/Advances.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Advances.png -------------------------------------------------------------------------------- /PayRoll/images/Attendance.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Attendance.png -------------------------------------------------------------------------------- /PayRoll/images/Brach.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Brach.png -------------------------------------------------------------------------------- /PayRoll/images/Branches.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Branches.png -------------------------------------------------------------------------------- /PayRoll/images/Business.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Business.png -------------------------------------------------------------------------------- /PayRoll/images/DB Location.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/DB Location.png -------------------------------------------------------------------------------- /PayRoll/images/Exit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Exit.gif -------------------------------------------------------------------------------- /PayRoll/images/Expenses.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Expenses.png -------------------------------------------------------------------------------- /PayRoll/images/Help.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Help.gif -------------------------------------------------------------------------------- /PayRoll/images/Home.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Home.gif -------------------------------------------------------------------------------- /PayRoll/images/Info.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Info.png -------------------------------------------------------------------------------- /PayRoll/images/Key.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Key.gif -------------------------------------------------------------------------------- /PayRoll/images/Keys.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Keys.gif -------------------------------------------------------------------------------- /PayRoll/images/Log Details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Log Details.png -------------------------------------------------------------------------------- /PayRoll/images/NEW.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/NEW.GIF -------------------------------------------------------------------------------- /PayRoll/images/NotePad.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/NotePad.gif -------------------------------------------------------------------------------- /PayRoll/images/OPEN.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/OPEN.GIF -------------------------------------------------------------------------------- /PayRoll/images/PASTE.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/PASTE.GIF -------------------------------------------------------------------------------- /PayRoll/images/PaySlip.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/PaySlip.png -------------------------------------------------------------------------------- /PayRoll/images/ProdStocks.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/ProdStocks.png -------------------------------------------------------------------------------- /PayRoll/images/Quarterly Sales.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Quarterly Sales.png -------------------------------------------------------------------------------- /PayRoll/images/SAVE.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/SAVE.GIF -------------------------------------------------------------------------------- /PayRoll/images/Thumbs.db: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Thumbs.db -------------------------------------------------------------------------------- /PayRoll/images/Tool_Backup.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/Tool_Backup.jpg -------------------------------------------------------------------------------- /PayRoll/images/add.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/add.gif -------------------------------------------------------------------------------- /PayRoll/images/admin.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/admin.gif -------------------------------------------------------------------------------- /PayRoll/images/author.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/author.png -------------------------------------------------------------------------------- /PayRoll/images/backup.GIF: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/backup.GIF -------------------------------------------------------------------------------- /PayRoll/images/backup.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/backup.png -------------------------------------------------------------------------------- /PayRoll/images/branch.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/branch.png -------------------------------------------------------------------------------- /PayRoll/images/calc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/calc.png -------------------------------------------------------------------------------- /PayRoll/images/calendar_year.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/calendar_year.png -------------------------------------------------------------------------------- /PayRoll/images/company reference.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/company reference.png -------------------------------------------------------------------------------- /PayRoll/images/delete.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/delete.png -------------------------------------------------------------------------------- /PayRoll/images/delete_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/delete_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/edit.png -------------------------------------------------------------------------------- /PayRoll/images/emp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/emp.png -------------------------------------------------------------------------------- /PayRoll/images/emp_rpt.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/emp_rpt.png -------------------------------------------------------------------------------- /PayRoll/images/employee.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/employee.png -------------------------------------------------------------------------------- /PayRoll/images/employees.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/employees.png -------------------------------------------------------------------------------- /PayRoll/images/exit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/exit.png -------------------------------------------------------------------------------- /PayRoll/images/exits.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/exits.png -------------------------------------------------------------------------------- /PayRoll/images/explorer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/explorer.png -------------------------------------------------------------------------------- /PayRoll/images/find.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/find.gif -------------------------------------------------------------------------------- /PayRoll/images/help.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/help.png -------------------------------------------------------------------------------- /PayRoll/images/inventory.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/inventory.png -------------------------------------------------------------------------------- /PayRoll/images/invoice.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/invoice.png -------------------------------------------------------------------------------- /PayRoll/images/kpress.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/kpress.png -------------------------------------------------------------------------------- /PayRoll/images/maximized.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/maximized.png -------------------------------------------------------------------------------- /PayRoll/images/minized.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/minized.png -------------------------------------------------------------------------------- /PayRoll/images/modify.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/modify.png -------------------------------------------------------------------------------- /PayRoll/images/modify_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/modify_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/mspaint.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/mspaint.png -------------------------------------------------------------------------------- /PayRoll/images/normal.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/normal.png -------------------------------------------------------------------------------- /PayRoll/images/notepad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/notepad.png -------------------------------------------------------------------------------- /PayRoll/images/officer.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/officer.png -------------------------------------------------------------------------------- /PayRoll/images/ok.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/ok.png -------------------------------------------------------------------------------- /PayRoll/images/ok_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/ok_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/order details.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/order details.png -------------------------------------------------------------------------------- /PayRoll/images/orders.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/orders.png -------------------------------------------------------------------------------- /PayRoll/images/payments.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/payments.png -------------------------------------------------------------------------------- /PayRoll/images/preview.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/preview.png -------------------------------------------------------------------------------- /PayRoll/images/preview_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/preview_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/print.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/print.gif -------------------------------------------------------------------------------- /PayRoll/images/print.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/print.png -------------------------------------------------------------------------------- /PayRoll/images/prints.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/prints.png -------------------------------------------------------------------------------- /PayRoll/images/products.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/products.png -------------------------------------------------------------------------------- /PayRoll/images/purchase.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/purchase.png -------------------------------------------------------------------------------- /PayRoll/images/reload_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/reload_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/reset.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/reset.png -------------------------------------------------------------------------------- /PayRoll/images/restore.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/restore.gif -------------------------------------------------------------------------------- /PayRoll/images/restore.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/restore.png -------------------------------------------------------------------------------- /PayRoll/images/save_all.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/save_all.png -------------------------------------------------------------------------------- /PayRoll/images/save_all_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/save_all_hover.png -------------------------------------------------------------------------------- /PayRoll/images/search.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/search.png -------------------------------------------------------------------------------- /PayRoll/images/search_hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/search_hover.png -------------------------------------------------------------------------------- /PayRoll/images/select_Hover.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/select_Hover.png -------------------------------------------------------------------------------- /PayRoll/images/setting.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/setting.png -------------------------------------------------------------------------------- /PayRoll/images/time-login.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/time-login.png -------------------------------------------------------------------------------- /PayRoll/images/tran.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/tran.png -------------------------------------------------------------------------------- /PayRoll/images/users.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/users.png -------------------------------------------------------------------------------- /PayRoll/images/wordpad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/wordpad.png -------------------------------------------------------------------------------- /PayRoll/images/xp.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/images/xp.png -------------------------------------------------------------------------------- /PayRoll/printwindow$1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/printwindow$1.class -------------------------------------------------------------------------------- /PayRoll/printwindow.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/PayRoll/printwindow.class -------------------------------------------------------------------------------- /PayRoll/printwindow.java: -------------------------------------------------------------------------------- 1 | import java.awt.*; 2 | import java.awt.event.*; 3 | import javax.swing.*; 4 | import java.sql.*; 5 | import java.io.*; 6 | import java.util.*; 7 | import java.net.*; 8 | import java.lang.String; 9 | import java.awt.print.*; 10 | 11 | 12 | public class printwindow extends JFrame implements ActionListener , Printable { 13 | 14 | private JPanel panel1; 15 | private JPanel panel2; 16 | private JPanel panel3; 17 | private JPanel panel4; 18 | private JPanel panel5; 19 | private JPanel panel5_1; 20 | private JPanel panel5_2; 21 | private JPanel panel6; 22 | private JPanel panel6_1; 23 | private JPanel panel6_2; 24 | private JPanel panel7; 25 | private JPanel panel8_1; 26 | private JPanel panel9; 27 | private JPanel panel10; 28 | private JPanel panel11; 29 | private JPanel panel12; 30 | private JPanel panel13; 31 | private JPanel panel14; 32 | 33 | 34 | 35 | private JTextField TxtYear; 36 | private JLabel LblMonth; 37 | 38 | 39 | // Class Variables 40 | 41 | // clsSettings settings = new clsSettings(); 42 | //clsConnection connect = new clsConnection(); 43 | 44 | // Connection 45 | //Connection conn; 46 | 47 | ////// Report Variables 48 | 49 | private JLabel Lblcollege2, Lbldate, LblSalary_Slip; 50 | private JLabel LblEmp_Name, LblEmp_Code, LblEmp_Desi, LblBasic_Pay, LblAllowance, LblDeduction; 51 | private JLabel LblDA, LblHRA, LblWA, LblGPF, LblIT, LblGIS, LblPF, LblLIC; 52 | private JLabel LblTot_Allowance, LblTot_Deduction, LblNet_Salary; 53 | 54 | private JTextField TxtDate, TxtEmp_Name1, TxtEmp_Name2 , TxtEmp_Code,TxtSalary_Month, TxtEmp_Desi, TxtBasic_Pay; 55 | private JTextField TxtDA, TxtHRA, TxtWA, TxtGPF, TxtIT, TxtGIS, TxtPF, TxtLIC; 56 | private JTextField TxtTot_Allowance, TxtTot_Deduction, TxtNet_Salary; 57 | 58 | private JButton PrintBtn, ExitBtn; 59 | 60 | public printwindow() 61 | 62 | { 63 | 64 | setSize(600,700); 65 | setVisible(true); 66 | panel1 = new JPanel(); 67 | panel1.setLayout(new FlowLayout()); 68 | LblEmp_Code = new JLabel("Employee Code: "); 69 | TxtEmp_Code = new JTextField(10); 70 | LblMonth = new JLabel("For the Month :"); 71 | 72 | 73 | TxtYear = new JTextField(5); 74 | 75 | panel1.add(LblEmp_Code); 76 | panel1.add(TxtEmp_Code); 77 | TxtEmp_Code.setEditable(false); 78 | 79 | 80 | panel2 = new JPanel(); 81 | panel2.setLayout(new FlowLayout()); 82 | 83 | LblEmp_Name = new JLabel("Employee Name :"); 84 | TxtEmp_Name1 = new JTextField(10); 85 | TxtEmp_Name2 = new JTextField(10); 86 | 87 | TxtEmp_Name1.setEditable(false); 88 | TxtEmp_Name2.setEditable(false); 89 | 90 | panel2.add(LblEmp_Name); 91 | panel2.add(TxtEmp_Name1); 92 | panel2.add(TxtEmp_Name2); 93 | 94 | 95 | panel3 = new JPanel(); 96 | panel3.setLayout(new FlowLayout()); 97 | 98 | LblEmp_Desi = new JLabel("Designation :"); 99 | TxtEmp_Desi = new JTextField(20); 100 | TxtEmp_Desi.setEditable(false); 101 | 102 | 103 | panel3.add(LblEmp_Desi); 104 | panel3.add(TxtEmp_Desi); 105 | 106 | 107 | 108 | panel4 = new JPanel(); 109 | panel4.setLayout(new FlowLayout()); 110 | 111 | ////// Report Variables 112 | 113 | Lblcollege2 = new JLabel("GOVT ENGINEERING COLLEGE AURANGABAD"); 114 | Lbldate = new JLabel (" Date :"); 115 | LblSalary_Slip = new JLabel (" Salary Slip :"); 116 | LblBasic_Pay = new JLabel (" Basic Pay :"); 117 | LblAllowance = new JLabel ("********** A L L O W A N C E ********"); 118 | LblDeduction = new JLabel ("********** D E D U C T I O N ********"); 119 | LblDA = new JLabel (" DA :"); 120 | LblHRA = new JLabel (" HRA :"); 121 | LblWA = new JLabel (" WA :"); 122 | LblGPF = new JLabel (" GPF :"); 123 | LblIT = new JLabel (" IT :"); 124 | LblGIS = new JLabel (" GIS :"); 125 | LblPF = new JLabel (" PF :"); 126 | LblLIC = new JLabel (" LIC :"); 127 | LblTot_Allowance = new JLabel(" Total Allowances :"); 128 | LblTot_Deduction = new JLabel(" Total Deduction :"); 129 | LblNet_Salary = new JLabel (" Net Salary :"); 130 | 131 | 132 | TxtDate = new JTextField(10); 133 | 134 | TxtSalary_Month = new JTextField(20); 135 | TxtBasic_Pay = new JTextField(10); 136 | TxtDA = new JTextField(5); 137 | TxtHRA = new JTextField(5); 138 | TxtWA = new JTextField(5); 139 | TxtGPF = new JTextField(5); 140 | TxtIT = new JTextField(5); 141 | TxtGIS = new JTextField(5); 142 | TxtPF = new JTextField(5); 143 | TxtLIC = new JTextField(5); 144 | TxtTot_Allowance = new JTextField(6); 145 | TxtTot_Deduction = new JTextField(6); 146 | TxtNet_Salary = new JTextField(6); 147 | 148 | TxtDate.setEditable(false); 149 | TxtSalary_Month.setEditable(false); 150 | TxtBasic_Pay.setEditable(false); 151 | TxtDA.setEditable(false); 152 | TxtHRA.setEditable(false); 153 | TxtWA.setEditable(false); 154 | TxtGPF.setEditable(false); 155 | TxtIT.setEditable(false); 156 | TxtGIS.setEditable(false); 157 | TxtPF.setEditable(false); 158 | TxtLIC.setEditable(false); 159 | 160 | TxtTot_Allowance.setEditable(false); 161 | TxtTot_Deduction.setEditable(false); 162 | TxtNet_Salary.setEditable(false); 163 | 164 | PrintBtn = new JButton("Print", new ImageIcon("images/printss.gif")); 165 | ExitBtn = new JButton ("Exit", new ImageIcon("images/exits.gif")); 166 | 167 | 168 | PrintBtn.addActionListener(this); 169 | ExitBtn.addActionListener(this); 170 | 171 | panel5 = new JPanel(); 172 | panel5.setLayout(new FlowLayout()); 173 | panel5.add(Lblcollege2, BorderLayout.CENTER); 174 | 175 | 176 | panel5_1 = new JPanel(); 177 | panel5_1.setLayout(new GridLayout(3,3)); 178 | panel5_1.add(Lbldate); 179 | panel5_1.add(TxtDate); 180 | 181 | 182 | panel5_1.add(LblSalary_Slip, "CENTER"); 183 | panel5_1.add(TxtSalary_Month,"RIGHT"); 184 | 185 | 186 | 187 | panel5_1.add(LblBasic_Pay,"LEFT"); 188 | panel5_1.add(TxtBasic_Pay,"CENTER"); 189 | 190 | panel7 = new JPanel(); 191 | panel7.setLayout(new FlowLayout()); 192 | 193 | panel7.add(LblAllowance, "CENTER"); 194 | 195 | 196 | panel8_1 = new JPanel(); 197 | panel8_1.setLayout(new GridLayout(3,2)); 198 | panel8_1.add(LblDA); 199 | panel8_1.add(TxtDA); 200 | panel8_1.add(LblHRA); 201 | panel8_1.add(TxtHRA); 202 | panel8_1.add(LblWA); 203 | panel8_1.add(TxtWA); 204 | 205 | panel9 = new JPanel(); 206 | panel9.setLayout(new GridLayout(1,3)); 207 | 208 | panel9.add(LblTot_Allowance, "EAST"); 209 | panel9.add(TxtTot_Allowance, "EAST"); 210 | 211 | panel10 = new JPanel(); 212 | panel10.setLayout(new FlowLayout()); 213 | panel10.add(LblDeduction, "CENTER"); 214 | 215 | panel11 = new JPanel(); 216 | panel11.setLayout(new GridLayout(5,5)); 217 | panel11.add(LblGPF); 218 | panel11.add(TxtGPF); 219 | panel11.add(LblIT); 220 | panel11.add(TxtIT); 221 | panel11.add(LblGIS); 222 | panel11.add(TxtGIS); 223 | panel11.add(LblPF); 224 | panel11.add(TxtPF); 225 | panel11.add(LblLIC); 226 | panel11.add(TxtLIC); 227 | 228 | panel12 = new JPanel(); 229 | panel12.setLayout(new GridLayout(1,3)); 230 | 231 | panel12.add(LblTot_Deduction); 232 | panel12.add(TxtTot_Deduction); 233 | 234 | panel13 = new JPanel(); 235 | panel13.setLayout(new FlowLayout()); 236 | panel13.add(LblNet_Salary); 237 | panel13.add(TxtNet_Salary); 238 | 239 | panel14 = new JPanel(); 240 | panel14.setLayout(new FlowLayout()); 241 | panel14.add(PrintBtn); 242 | panel14.add(ExitBtn); 243 | 244 | Container pane = getContentPane(); 245 | pane.setLayout(new BoxLayout(pane, BoxLayout.Y_AXIS)); 246 | pane.add(panel1); 247 | pane.add(panel2); 248 | pane.add(panel3); 249 | pane.add(panel4); 250 | pane.add(panel5); 251 | pane.add(panel5_1); 252 | pane.add(panel7); 253 | pane.add(panel8_1); 254 | 255 | pane.add(panel9); 256 | pane.add(panel10); 257 | pane.add(panel11); 258 | pane.add(panel12); 259 | pane.add(panel13); 260 | pane.add(panel14); 261 | 262 | 263 | pack(); 264 | 265 | addWindowListener(new WindowAdapter() 266 | { 267 | public void windowClosing(WindowEvent e) 268 | { 269 | System.exit(0); 270 | } 271 | }); 272 | } 273 | 274 | 275 | public void actionPerformed(ActionEvent event) 276 | { 277 | Object source = event.getSource(); 278 | 279 | 280 | 281 | if (source == PrintBtn) 282 | { 283 | PrintBtn.setVisible(false); 284 | ExitBtn.setVisible(false); 285 | 286 | PrinterJob printJob = PrinterJob.getPrinterJob(); 287 | 288 | // Get and change default page format settings if necessary. 289 | 290 | printJob.setPrintable(this); 291 | if (printJob.printDialog()) { 292 | try { 293 | printJob.print(); 294 | 295 | } catch (Exception PrintException) { 296 | PrintException.printStackTrace(); 297 | } 298 | 299 | 300 | 301 | printJob.cancel(); 302 | 303 | 304 | } 305 | 306 | printJob.cancel(); 307 | PrintBtn.setVisible(true); 308 | ExitBtn.setVisible(true); 309 | 310 | 311 | } 312 | 313 | 314 | if (source == ExitBtn) 315 | { 316 | setVisible (false); 317 | dispose(); 318 | 319 | } 320 | 321 | } 322 | 323 | 324 | public void fill_data(String name1, String name2, String month, String year, String code, 325 | String date, String desi, String basic_pay, String da,String hra, String wa, 326 | String gpf, String it,String gis, String pf, String lic, String allow, 327 | String dedu, String net_salary ) 328 | { 329 | 330 | TxtEmp_Name1.setText(name1); 331 | TxtEmp_Name2.setText(name2); 332 | TxtSalary_Month.setText("For the Month of " + month + " , " + year); 333 | TxtEmp_Code.setText(code); 334 | TxtDate.setText(date); 335 | TxtEmp_Desi.setText(desi); 336 | 337 | TxtBasic_Pay.setText(basic_pay); 338 | 339 | TxtDA.setText(da); 340 | TxtHRA.setText(hra); 341 | TxtWA.setText(wa); 342 | TxtTot_Allowance.setText(allow); 343 | 344 | TxtGPF.setText(gpf); 345 | TxtIT.setText(it); 346 | TxtGIS.setText(gis); 347 | TxtPF.setText(pf); 348 | TxtLIC.setText(lic); 349 | TxtTot_Deduction.setText(dedu); 350 | TxtNet_Salary.setText(net_salary); 351 | 352 | } 353 | 354 | 355 | public int print(Graphics g, PageFormat pf, int pi) throws PrinterException { 356 | 357 | Graphics2D g2 = (Graphics2D) g; 358 | g2.translate(pf.getImageableX()+5, pf.getImageableY()+5); 359 | 360 | Font f = new Font("Monospaced",Font.PLAIN,12); 361 | g2.setFont (f); 362 | paint (g2); 363 | 364 | return Printable.PAGE_EXISTS; 365 | } 366 | 367 | 368 | 369 | 370 | 371 | } 372 | 373 | 374 | 375 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Java-Fullstack-Projects 2 | A collection of few fullstack java projects 3 | -------------------------------------------------------------------------------- /hosp/CHA_Hospital.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/CHA_Hospital.jpg -------------------------------------------------------------------------------- /hosp/WebContent/1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/1.jpg -------------------------------------------------------------------------------- /hosp/WebContent/2057&v=fit512.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/2057&v=fit512.jpg -------------------------------------------------------------------------------- /hosp/WebContent/210_medical_doctor_decal__59388.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/210_medical_doctor_decal__59388.png -------------------------------------------------------------------------------- /hosp/WebContent/ArtGalleries.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/ArtGalleries.jpg -------------------------------------------------------------------------------- /hosp/WebContent/DEPT.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | DEPARTMENT INFORMATION WINDOW 8 | 9 | 10 | 11 |

DEPARTMENT INFORMATION

12 |
13 | <%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> 14 |


15 | 17 | 19 | 20 | 21 | 68 | 74 | <% 75 | try{ 76 | 77 | a=request.getParameter("Button1"); 78 | String str1= request.getParameter("t1"); 79 | String str2= request.getParameter("t2"); 80 | String str3= request.getParameter("t3"); 81 | String str4= request.getParameter("t4"); 82 | String str5= request.getParameter("t5"); 83 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 84 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 85 | Statement s= c.createStatement(); 86 | if(a.equals("ADD DEPARTMENT PROFILE")) 87 | { 88 | 89 | if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!="") 90 | { 91 | String sql="insert into department values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+")"; 92 | out.println(sql); 93 | s.execute(sql); 94 | %> 97 | <% 98 | } 99 | else 100 | { 101 | %> 104 | <% 105 | } 106 | } 107 | else if(a.equals("DELETE DEPARTMENT PROFILE")) 108 | { 109 | if(str1!="") 110 | { 111 | String sq="select * from department where dept_id="+str1+""; 112 | ResultSet rs1=s.executeQuery(sq); 113 | if(rs1.next()) 114 | { 115 | 116 | String sql="delete from department where dept_id="+str1+""; 117 | s.execute(sql); 118 | %> 121 | <% 122 | } 123 | else 124 | { 125 | %> 128 | <% 129 | } 130 | } 131 | else 132 | { 133 | %> 136 | <% 137 | } 138 | } 139 | else if(a.equals("EDIT DEPARTMENT PROFILE")) 140 | { 141 | if(str1!="") 142 | { 143 | String sq="select * from department where dept_id="+str1+""; 144 | ResultSet rs1=s.executeQuery(sq); 145 | if(rs1.next()) 146 | { 147 | String sql="delete from department where dept_id="+str1+""; 148 | s.execute(sql); 149 | String sql1="insert into department values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+")"; 150 | s.execute(sql1); 151 | %> 154 | <% 155 | } 156 | else 157 | { 158 | %> 161 | <% 162 | } 163 | } 164 | else 165 | { 166 | %> 169 | <% 170 | } 171 | } 172 | }catch(Exception e) {} 173 | 174 | %> 175 |
DEPARTMENT ID
16 |

DEPARTMENT DETAILS

18 |
22 |

23 |

24 |

25 |

26 | <% 27 | try 28 | { a=request.getParameter("Button1"); 29 | if(a.equals("SEARCH DEPARTMENT PROFILE")) 30 | { 31 | String str1= request.getParameter("t1"); 32 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 33 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 34 | Statement s= c.createStatement(); 35 | if(str1!="") 36 | { 37 | String sql2="select * from department where dept_id='"+str1+"'"; 38 | ResultSet r=s.executeQuery(sql2); 39 | if(r.next()) 40 | { 41 | j=r.getString(1); 42 | b=r.getString(2); 43 | d=r.getString(3); 44 | e=r.getString(4); 45 | f=r.getString(5); 46 | } 47 | else 48 | { 49 | %> 52 | <% 53 | } 54 | 55 | } 56 | else 57 | { 58 | %> 61 | <% 62 | } 63 | } 64 | }catch(Exception e) {} 65 | %> 66 | 67 |
69 | DEPARTMENT NAME>
70 | DEPARTMENT DOCTOR>
71 | DEPARTMENT HEAD>
72 | PHONE NO>
73 |
176 |

DEPARTMENT PROFILE TABLE

177 | 178 | 179 | 180 | 181 | 182 | 183 | 184 | <% 185 | try 186 | { 187 | String str1= request.getParameter("t1"); 188 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 189 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 190 | Statement s= c.createStatement(); 191 | String q="select * from department"; 192 | ResultSet rs9=s.executeQuery(q); 193 | while(rs9.next()) 194 | {%> 195 | 196 | <% 197 | for (int i=1; i<=5; i++) 198 | { 199 | out.println( "<% 203 | }catch(Exception e) {} 204 | %> 205 |
DEPT IDDEPT NAMEDEPT DOCTORDEPT HEADDEPT PHONE
" + rs9.getString (i) ); 200 | 201 | } 202 | }%>
206 | 207 | 208 |
209 | 210 |
211 | 212 | -------------------------------------------------------------------------------- /hosp/WebContent/Hospital main entrance-blue sky.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/Hospital main entrance-blue sky.jpg -------------------------------------------------------------------------------- /hosp/WebContent/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 1.0 2 | Class-Path: 3 | 4 | -------------------------------------------------------------------------------- /hosp/WebContent/META-INF/bill.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | Insert title here 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /hosp/WebContent/University_College_Hospital.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/University_College_Hospital.jpg -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/addpat.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/adpat.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

ADD PATIENT

11 | PATIENT ID
12 | PATIENT NAME
13 | PATIENT DEPARTMENT
14 | CONTACT NO
15 | GENDER
16 | DATE OF BIRTH
17 | DOCTOR FEE
18 | FATHERS NAME
19 | BLOOD GROUP
20 | 21 | 22 | -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/attnd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | PATIENT ID
11 | PATIENT NAME
12 | PATIENT DEPARTMENT
13 | CONTACT NO
14 | GENDER
18 | 19 | -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/bill.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/dropdown.js: -------------------------------------------------------------------------------- 1 | var DDSPEED = 10; 2 | var DDTIMER = 15; 3 | 4 | // main function to handle the mouse events // 5 | function ddMenu(id,d){ 6 | var h = document.getElementById(id + '-ddheader'); 7 | var c = document.getElementById(id + '-ddcontent'); 8 | clearInterval(c.timer); 9 | if(d == 1){ 10 | clearTimeout(h.timer); 11 | if(c.maxh && c.maxh <= c.offsetHeight){return} 12 | else if(!c.maxh){ 13 | c.style.display = 'block'; 14 | c.style.height = 'auto'; 15 | c.maxh = c.offsetHeight; 16 | c.style.height = '0px'; 17 | } 18 | c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); 19 | }else{ 20 | h.timer = setTimeout(function(){ddCollapse(c)},50); 21 | } 22 | } 23 | 24 | // collapse the menu // 25 | function ddCollapse(c){ 26 | c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); 27 | } 28 | 29 | // cancel the collapse if a user rolls over the dropdown // 30 | function cancelHide(id){ 31 | var h = document.getElementById(id + '-ddheader'); 32 | var c = document.getElementById(id + '-ddcontent'); 33 | clearTimeout(h.timer); 34 | clearInterval(c.timer); 35 | if(c.offsetHeight < c.maxh){ 36 | c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); 37 | } 38 | } 39 | 40 | // incrementally expand/contract the dropdown and change the opacity // 41 | function ddSlide(c,d){ 42 | var currh = c.offsetHeight; 43 | var dist; 44 | if(d == 1){ 45 | dist = (Math.round((c.maxh - currh) / DDSPEED)); 46 | }else{ 47 | dist = (Math.round(currh / DDSPEED)); 48 | } 49 | if(dist <= 1 && d == 1){ 50 | dist = 1; 51 | } 52 | c.style.height = currh + (dist * d) + 'px'; 53 | c.style.opacity = currh / c.maxh; 54 | c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; 55 | if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ 56 | clearInterval(c.timer); 57 | } 58 | } -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/empattnd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | PATIENT ID
11 | PATIENT NAME
12 | PATIENT DEPARTMENT
13 | CONTACT NO
14 | GENDER
18 | 19 | -------------------------------------------------------------------------------- /hosp/WebContent/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | hosp 5 | 6 | 7 | 8 | 9 | as 10 | as 11 | 12 | as 13 | 14 | 15 | 16 | 17 | 18 | srv1 19 | srv1 20 | 21 | srv1 22 | 23 | 24 | as 25 | /as 26 | 27 | 28 | srv1 29 | /srv1 30 | 31 | 32 | index.html 33 | index.htm 34 | index.jsp 35 | default.html 36 | default.htm 37 | default.jsp 38 | 39 | 40 | -------------------------------------------------------------------------------- /hosp/WebContent/addmed.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | MEDICINE WINDOW 8 | 9 | 10 |
11 |
12 | 13 | 16 |
14 |

MEDICINE DATABASE

15 |
17 |


18 | 19 | 20 | 199 | 200 |
21 | <%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> 22 | 23 |


24 | 26 | 28 | 29 | 30 | 79 | 89 | 90 | 91 | 92 | <% 93 | try{ 94 | 95 | a=request.getParameter("Button1"); 96 | String str1= request.getParameter("t1"); 97 | String str2= request.getParameter("t2"); 98 | String str3= request.getParameter("t3"); 99 | String str4= request.getParameter("t4"); 100 | String str5= request.getParameter("t5"); 101 | String str6= request.getParameter("t6"); 102 | String str7= request.getParameter("t7"); 103 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 104 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 105 | Statement s= c.createStatement(); 106 | if(a.equals("ADD MEDICINE PROFILE")) 107 | { 108 | 109 | if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!="") 110 | { 111 | String sql="insert into medicine values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str6+"',"+str7+")"; 112 | out.println(sql); 113 | s.execute(sql); 114 | %> 117 | <% 118 | } 119 | else 120 | { 121 | %> 124 | <% 125 | } 126 | } 127 | else if(a.equals("DELETE MEDICINE PROFILE")) 128 | { 129 | if(str1!="") 130 | { 131 | String sq="select * from medicine where med_code="+str1+""; 132 | ResultSet rs1=s.executeQuery(sq); 133 | if(rs1.next()) 134 | { 135 | 136 | String sql="delete from medicine where med_code="+str1+""; 137 | s.execute(sql); 138 | %> 141 | <% 142 | } 143 | else 144 | { 145 | %> 148 | <% 149 | } 150 | } 151 | else 152 | { 153 | %> 156 | <% 157 | } 158 | } 159 | else if(a.equals("EDIT MEDICINE PROFILE")) 160 | { 161 | if(str1!="") 162 | { 163 | String sq="select * from medicine where med_code="+str1+""; 164 | ResultSet rs1=s.executeQuery(sq); 165 | if(rs1.next()) 166 | { 167 | String sql="delete from medicine where med_code="+str1+""; 168 | s.execute(sql); 169 | String sql1="insert into medicine values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str6+"',"+str7+")"; 170 | s.execute(sql1); 171 | %> 174 | <% 175 | } 176 | else 177 | { 178 | %> 181 | <% 182 | } 183 | } 184 | else 185 | { 186 | %> 189 | <% 190 | } 191 | } 192 | }catch(Exception e) {} 193 | 194 | %> 195 | 196 |
MEDICINE ID>
25 |

MEDICINE DETAILS

27 |
31 |

32 |

33 |

34 |

35 | <% 36 | try 37 | { a=request.getParameter("Button1"); 38 | if(a.equals("SEARCH MEDICINE PROFILE")) 39 | { 40 | String str1= request.getParameter("t1"); 41 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 42 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 43 | Statement s= c.createStatement(); 44 | if(str1!="") 45 | { 46 | String sql2="select * from medicine where med_code='"+str1+"'"; 47 | ResultSet r=s.executeQuery(sql2); 48 | if(r.next()) 49 | { 50 | j=r.getString(1); 51 | b=r.getString(2); 52 | d=r.getString(3); 53 | e=r.getString(4); 54 | f=r.getString(5); 55 | g=r.getString(6); 56 | h=r.getString(7); 57 | } 58 | else 59 | { 60 | %> 63 | <% 64 | } 65 | 66 | } 67 | else 68 | { 69 | %> 72 | <% 73 | } 74 | } 75 | }catch(Exception e) {} 76 | %> 77 | 78 |
80 |
81 |
82 | MEDICINE NAME>
83 | MANUFACTURER>
84 | DATE OF MANUFACTURE>
85 | MEDICINE TYPE>
86 | EXPIRY DATE>
87 | BATCH NO>
88 |
197 | 198 |
201 |

DEPARTMENT PROFILE TABLE

202 | 203 | 204 | 205 | 206 | 207 | 208 | 209 | 210 | 211 | <% 212 | try 213 | { 214 | String str1= request.getParameter("t1"); 215 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 216 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 217 | Statement s= c.createStatement(); 218 | String q="select * from medicine"; 219 | ResultSet rs9=s.executeQuery(q); 220 | while(rs9.next()) 221 | {%> 222 | 223 | <% 224 | for (int i=1; i<=7; i++) 225 | { 226 | out.println( "<% 230 | }catch(Exception e) {} 231 | %> 232 | 233 | 234 |
MEDICINE IDMEDICINE NAMEMANUFACTURERDATE OF MANUFACTUREMEDICINE TYPEEXPIRY DATEBATCH NO
" + rs9.getString (i) ); 227 | 228 | } 229 | }%>
235 | 236 |
237 |
238 | 239 | -------------------------------------------------------------------------------- /hosp/WebContent/addoc.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | DOCTORS INFORMATION WINDOW 8 | 9 | 10 |
11 | 12 | 15 |
13 |

DOCTOR PROFILE WINDOW

14 |
16 |


17 | 18 | 19 | 203 | 204 |
20 |
21 | <%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> 22 | 23 |


24 | 26 | 28 | 29 | 30 | 80 | 91 | 92 | 93 | 94 | <% 95 | try{ 96 | 97 | a=request.getParameter("Button1"); 98 | String str1= request.getParameter("t1"); 99 | String str2= request.getParameter("t2"); 100 | String str3= request.getParameter("t3"); 101 | String str4= request.getParameter("t4"); 102 | String str5= request.getParameter("t5"); 103 | String str6= request.getParameter("t6"); 104 | String str7= request.getParameter("t7"); 105 | String str8= request.getParameter("t8"); 106 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 107 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 108 | Statement s= c.createStatement(); 109 | if(a.equals("ADD DOCTOR PROFILE")) 110 | { 111 | 112 | if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!=""&&str8!="") 113 | { 114 | String sql="insert into doctor values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"','"+str7+"',"+str8+")"; 115 | out.println(sql); 116 | s.execute(sql); 117 | %> 120 | <% 121 | } 122 | else 123 | { 124 | %> 127 | <% 128 | } 129 | } 130 | else if(a.equals("DELETE DOCTOR PROFILE")) 131 | { 132 | if(str1!="") 133 | { 134 | String sq="select * from doctor where doc_id="+str1+""; 135 | ResultSet rs1=s.executeQuery(sq); 136 | if(rs1.next()) 137 | { 138 | 139 | String sql="delete from doctor where doc_id="+str1+""; 140 | s.execute(sql); 141 | %> 144 | <% 145 | } 146 | else 147 | { 148 | %> 151 | <% 152 | } 153 | } 154 | else 155 | { 156 | %> 159 | <% 160 | } 161 | } 162 | else if(a.equals("EDIT DOCTOR PROFILE")) 163 | { 164 | if(str1!="") 165 | { 166 | String sq="select * from doctor where doc_id="+str1+""; 167 | ResultSet rs1=s.executeQuery(sq); 168 | if(rs1.next()) 169 | { 170 | String sql="delete from doctor where doc_id="+str1+""; 171 | s.execute(sql); 172 | String sql1="insert into doctor values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"','"+str7+"',"+str8+")"; 173 | s.execute(sql1); 174 | %> 177 | <% 178 | } 179 | else 180 | { 181 | %> 184 | <% 185 | } 186 | } 187 | else 188 | { 189 | %> 192 | <% 193 | } 194 | } 195 | }catch(Exception e) {} 196 | 197 | %> 198 | 199 |
DOCTOR ID
25 |

DOCTOR DETAILS

27 |
31 |

32 |

33 |

34 |

35 | <% 36 | try 37 | { a=request.getParameter("Button1"); 38 | if(a.equals("SEARCH DOCTOR PROFILE")) 39 | { 40 | String str1= request.getParameter("t1"); 41 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 42 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 43 | Statement s= c.createStatement(); 44 | if(str1!="") 45 | { 46 | String sql2="select * from doctor where doc_id='"+str1+"'"; 47 | ResultSet r=s.executeQuery(sql2); 48 | if(r.next()) 49 | { 50 | j=r.getString(1); 51 | b=r.getString(2); 52 | d=r.getString(3); 53 | e=r.getString(4); 54 | f=r.getString(5); 55 | g=r.getString(6); 56 | h=r.getString(7); 57 | i=r.getString(8); 58 | } 59 | else 60 | { 61 | %> 64 | <% 65 | } 66 | 67 | } 68 | else 69 | { 70 | %> 73 | <% 74 | } 75 | } 76 | }catch(Exception e) {} 77 | %> 78 | 79 |
81 |
82 |
83 | DOCTOR NAME>
84 | DOCTOR EDUQUALIFICATION>
85 | DATE OF BIRTH>
86 | SALARY>
87 | FATHER'S NAME>
88 | EMAIL ID>
89 | DEPARTMENT ID>
90 |
200 |
201 | 202 |
205 |
206 | 207 | 208 | 209 | 210 | -------------------------------------------------------------------------------- /hosp/WebContent/addpt.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | ADMIT NEW PATIENT 8 | 9 | 10 | 11 |
12 | <%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> 13 |
14 | 15 | 16 | 19 | 20 |
17 |

ADMIT NEW PATIENT

18 |
21 |

22 | 23 | 24 |
25 |

ADD NEW PATIENT

26 | 27 | 28 | 93 | <% 94 | try 95 | { a=request.getParameter("button1"); 96 | if(a.equals("EDIT PATIENT DETAILS")) 97 | { 98 | String str1= request.getParameter("t1"); 99 | String str2= request.getParameter("t2"); 100 | String str3= request.getParameter("t3"); 101 | String str4= request.getParameter("t4"); 102 | String str5= request.getParameter("t5"); 103 | String str6= request.getParameter("t6"); 104 | String str7= request.getParameter("t7"); 105 | String str8= request.getParameter("t8"); 106 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 107 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 108 | Statement s= c.createStatement(); 109 | if(str1!="") 110 | { 111 | String sql2="select * from patient where patient_id='"+str1+"'"; 112 | ResultSet rs1=s.executeQuery(sql2); 113 | if(rs1.next()) 114 | { 115 | 116 | String sql1="select * from department where dept_id='"+str6+"'"; 117 | ResultSet rs=s.executeQuery(sql1); 118 | if(rs.next()) 119 | { 120 | String sq="delete from patient where patient_id='"+str1+"'"; 121 | s.execute(sq); 122 | String sql="insert into patient values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str7+"','"+str6+"','"+str8+"')"; 123 | s.execute(sql); 124 | %> 127 | <% 128 | 129 | } 130 | else 131 | { 132 | %> 135 | <% 136 | } 137 | } 138 | else 139 | { 140 | %> 143 | <% 144 | } 145 | } 146 | else 147 | { 148 | %> 151 | <% 152 | } 153 | } 154 | }catch(Exception e) {} 155 | 156 | %> 157 | 165 | 166 | 167 | 168 | 169 |
29 |


30 |

PATIENT DETAILS

31 | 32 |
33 | <% 34 | try 35 | { a=request.getParameter("button1"); 36 | if(a.equals("SEARCH PATIENT")) 37 | { 38 | String str1= request.getParameter("t1"); 39 | 40 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 41 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 42 | Statement s= c.createStatement(); 43 | if(str1!="") 44 | { 45 | String sql2="select * from patient where patient_id='"+str1+"'"; 46 | ResultSet r=s.executeQuery(sql2); 47 | if(r.next()) 48 | { 49 | j=r.getString(1); 50 | b=r.getString(2); 51 | d=r.getString(3); 52 | e=r.getString(4); 53 | f=r.getString(5); 54 | g=r.getString(6); 55 | h=r.getString(7); 56 | i=r.getString(8); 57 | } 58 | else 59 | { 60 | %> 63 | <% 64 | } 65 | 66 | } 67 | else 68 | { 69 | %> 72 | <% 73 | } 74 | } 75 | }catch(Exception e) {} 76 | %> 77 | PATIENT ID >
78 | PATIENT NAME >
79 | DATE OF BIRTH >
80 | DOCTOR FEE >
81 | FATHER'S NAME >
82 | DEPARTMENT ID >
83 | BLOOD GROUP >
84 | GENDER

88 | 89 |
90 |
91 |
92 |
158 |

BED ALLOCATION DETAILS

159 | PATIENT ID
160 | BED NO
161 | DATE OF ALLOCTN
162 | CHARGES
163 | ROOM TYPE
164 |
170 | <% 171 | try 172 | { 173 | a=request.getParameter("button1"); 174 | 175 | if(a.equals("ADMIT PATIENT AND ALLOT BED")) 176 | { 177 | String str1= request.getParameter("t1"); 178 | String str2= request.getParameter("t2"); 179 | String str3= request.getParameter("t3"); 180 | String str4= request.getParameter("t4"); 181 | String str5= request.getParameter("t5"); 182 | String str6= request.getParameter("t6"); 183 | String str7= request.getParameter("t7"); 184 | String str8= request.getParameter("t8"); 185 | String str11= request.getParameter("t9"); 186 | String str12= request.getParameter("t10"); 187 | String str13= request.getParameter("t11"); 188 | String str14= request.getParameter("t12"); 189 | String str15= request.getParameter("t13"); 190 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 191 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 192 | Statement s= c.createStatement(); 193 | if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!=""&&str8!=""&&str11!=""&&str12!=""&&str13!=""&&str14!=""&&str15!="") 194 | { 195 | String sq1="select * from department where dept_id="+str6+""; 196 | ResultSet r4=s.executeQuery(sq1); 197 | if(r4.next()) 198 | { 199 | String sq2="select * from rooms where bed_no ="+str12+""; 200 | ResultSet r5=s.executeQuery(sq2); 201 | if(r5.next()) 202 | { 203 | %> 206 | <% 207 | } 208 | else 209 | { 210 | String sq4="insert into patient values("+str1+",'"+str2+"','"+str3+"','"+str4+"','"+str5+"','"+str7+"','"+str6+"','"+str8+"','A')"; 211 | out.println(sq4); 212 | s.execute(sq4); 213 | String sq3="insert into rooms values("+str11+","+str12+",'"+str15+"',"+str14+",'"+str13+"')"; 214 | out.println(sq3); 215 | s.execute(sq3); 216 | %> 219 | <% 220 | } 221 | } 222 | else 223 | { 224 | %> 227 | <% 228 | } 229 | } 230 | else 231 | { 232 | %> 235 | <% 236 | } 237 | } 238 | 239 | }catch(Exception e) {} 240 | %> 241 |

PATIENTS ADMITTED IN HOSPITAL

242 | 243 | 244 | 245 | 246 | 247 | 248 | 249 | 250 | 251 | 252 | <% 253 | try 254 | { 255 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 256 | Connection c= DriverManager.getConnection("jdbc:odbc:abc", "root", "data"); 257 | Statement s=c.createStatement(); 258 | String sql1="select * from patient"; 259 | ResultSet rs=s.executeQuery(sql1); 260 | while(rs.next()) 261 | {%> 262 | 263 | <% 264 | for (int i=1; i<=8; i++) 265 | { 266 | out.println( "<% 270 | 271 | }catch(Exception e) { } 272 | %> 273 | 274 | 275 |
PATIENT IDPATIENT NAMEDATE OF BIRTHDOCTOR'S FEEFATHER'S NAMEBLOOD GROUPDEPARTMENT IDSEX
" + rs.getString (i) ); 267 | 268 | } 269 | }%>
276 |


277 |

BEDS OCCUPIED IN HOSPITAL ACCOMODATION

278 | 279 | 280 | 281 | 282 | 283 | 284 | <% 285 | try 286 | { 287 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 288 | Connection c= DriverManager.getConnection("jdbc:odbc:abc", "root", "data"); 289 | Statement s=c.createStatement(); 290 | String sql1="select * from rooms"; 291 | ResultSet rs=s.executeQuery(sql1); 292 | while(rs.next()) 293 | {%> 294 | 295 | <% 296 | for (int i=1; i<=5; i++) 297 | { 298 | out.println( "<% 302 | 303 | }catch(Exception e) { } 304 | %> 305 |
PATIENT IDBED NOROOM TYPECHARGESALLOCATION DATE
" + rs.getString (i) ); 299 | 300 | } 301 | }%>
306 | 307 | 308 |
309 |
310 |
311 | 312 | 313 | -------------------------------------------------------------------------------- /hosp/WebContent/adnurse.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | NURSE PROFILE WINDOW 8 | 9 | 10 |
11 | 12 | 15 |
13 |

NURSE PROFILE WINDOW

14 |
16 |


1 17 | 18 | 19 | 200 | 201 |
20 |
21 | <%!String a="",b="",d="",e="",f="",g="",h="",i="",j=""; %> 22 | 23 |


24 | 26 | 28 | 29 | 30 | 79 | 89 | 90 | 91 | 92 | <% 93 | try{ 94 | 95 | a=request.getParameter("Button1"); 96 | String str1= request.getParameter("t1"); 97 | String str2= request.getParameter("t2"); 98 | String str3= request.getParameter("t3"); 99 | String str4= request.getParameter("t4"); 100 | String str5= request.getParameter("t5"); 101 | String str6= request.getParameter("t6"); 102 | String str7= request.getParameter("t7"); 103 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 104 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 105 | Statement s= c.createStatement(); 106 | if(a.equals("ADD NURSE PROFILE")) 107 | { 108 | 109 | if(str1!=""&&str2!=""&&str3!=""&&str4!=""&&str5!=""&&str6!=""&&str7!="") 110 | { 111 | String sql="insert into nurse values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"',"+str7+")"; 112 | out.println(sql); 113 | s.execute(sql); 114 | %> 117 | <% 118 | } 119 | else 120 | { 121 | %> 124 | <% 125 | } 126 | } 127 | else if(a.equals("DELETE NURSE PROFILE")) 128 | { 129 | if(str1!="") 130 | { 131 | String sq="select * from nurse where nur_id="+str1+""; 132 | ResultSet rs1=s.executeQuery(sq); 133 | if(rs1.next()) 134 | { 135 | 136 | String sql="delete from nurse where nur_id="+str1+""; 137 | s.execute(sql); 138 | %> 141 | <% 142 | } 143 | else 144 | { 145 | %> 148 | <% 149 | } 150 | } 151 | else 152 | { 153 | %> 156 | <% 157 | } 158 | } 159 | else if(a.equals("EDIT NURSE PROFILE")) 160 | { 161 | if(str1!="") 162 | { 163 | String sq="select * from nurse where nur_id="+str1+""; 164 | ResultSet rs1=s.executeQuery(sq); 165 | if(rs1.next()) 166 | { 167 | String sql="delete from nurse where nur_id="+str1+""; 168 | s.execute(sql); 169 | String sql1="insert into nurse values("+str1+",'"+str2+"','"+str3+"','"+str4+"',"+str5+",'"+str6+"',"+str7+")"; 170 | s.execute(sql1); 171 | %> 174 | <% 175 | } 176 | else 177 | { 178 | %> 181 | <% 182 | } 183 | } 184 | else 185 | { 186 | %> 189 | <% 190 | } 191 | } 192 | }catch(Exception e) {} 193 | 194 | %> 195 | 196 |
NURSE ID
25 |

NURSE DETAILS

27 |
31 |

32 |

33 |

34 |

35 | <% 36 | try 37 | { a=request.getParameter("Button1"); 38 | if(a.equals("SEARCH NURSE PROFILE")) 39 | { 40 | String str1= request.getParameter("t1"); 41 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 42 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 43 | Statement s= c.createStatement(); 44 | if(str1!="") 45 | { 46 | String sql2="select * from nurse where nur_id='"+str1+"'"; 47 | ResultSet r=s.executeQuery(sql2); 48 | if(r.next()) 49 | { 50 | j=r.getString(1); 51 | b=r.getString(2); 52 | d=r.getString(3); 53 | e=r.getString(4); 54 | f=r.getString(5); 55 | g=r.getString(6); 56 | h=r.getString(7); 57 | } 58 | else 59 | { 60 | %> 63 | <% 64 | } 65 | 66 | } 67 | else 68 | { 69 | %> 72 | <% 73 | } 74 | } 75 | }catch(Exception e) {} 76 | %> 77 | 78 |
80 |
81 |
82 | NURSE NAME>
83 | NURSE EDUQUALIFICATION>
84 | DATE OF BIRTH>
85 | SALARY>
86 | FATHER'S NAME>
87 | DEPARTMENT ID>
88 |
197 |
198 | 199 |
202 |
203 | 204 | -------------------------------------------------------------------------------- /hosp/WebContent/apponit.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |

SET APPOINMENT

11 | PATIENT ID
12 | DOCTOR ID
13 | DATE
14 | DESCRIPTION
15 | PRESCRIPTION
16 | 17 | -------------------------------------------------------------------------------- /hosp/WebContent/bill.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | BILL WINDOW 8 | 9 | 10 |
11 |

FORTIS HOSPITAL

12 |

BILL RECEIPT

13 | <%! String abc,a,b,d,e,g,h,i,j,k,z; int m1=0,f=0,l=0;%> 14 | <% 15 | String b=(String)session.getAttribute("abc"); 16 | %> 17 | <% 18 | try 19 | { 20 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 21 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 22 | Statement s= c.createStatement(); 23 | String sq="select * from patient where patient_id="+b; 24 | ResultSet rs=s.executeQuery(sq); 25 | if(rs.next()) 26 | { 27 | z=rs.getString(1); 28 | d=rs.getString(2); 29 | e=rs.getString(3); 30 | f=Integer.parseInt(rs.getString(4)); 31 | g=rs.getString(5); 32 | h=rs.getString(6); 33 | i=rs.getString(7); 34 | j=rs.getString(8);l=f+500+3000; 35 | m1=3000; 36 | } 37 | 38 | }catch(Exception e){ out.println(e);} 39 | %> 40 | 41 | 42 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 60 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 |
43 |

PATIENT DETAILS

44 | 45 |
PATIENT ID
<%=z%>
PATIENT NAME
<%=d%>
DATE OF BIRTH
<%=e %>
FATHER's NAME
<%=g %>
BLOOD GROUP
<%=h %>
DEPARTMENT ID
<%=i %>
SEX
<%=j %>
58 |

BILL DETAILS

59 |
61 |
62 | DOCTOR FEE=<%=f%>

63 | ACCOMODATION CHARGES=<%=m1%>

64 | MAINTAINENCE FEE= Rs500

65 | TOTAL FEES=<%=l%> 66 | 67 | 68 | 69 | ACCOUNTS MANAGER 70 |
71 |
80 |
81 | 82 | -------------------------------------------------------------------------------- /hosp/WebContent/blue_background.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/blue_background.jpg -------------------------------------------------------------------------------- /hosp/WebContent/cfiles23725.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/cfiles23725.jpg -------------------------------------------------------------------------------- /hosp/WebContent/compaqblue7vy.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/compaqblue7vy.jpg -------------------------------------------------------------------------------- /hosp/WebContent/dischrg.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1" import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | DISCHARGE WINDOW 8 | 9 | 10 | 11 |
12 | <%! String a,str1,b,d,e,abc; %> 13 |
14 | 15 | 16 | 19 | 20 |
17 |

DISCHARGE PATIENT

18 |
21 |



22 | 23 | 27 | 28 | 29 | 58 | 59 | <% 60 | } 61 | else 62 | { 63 | %> 66 | <% 67 | } 68 | } 69 | else 70 | { 71 | %> 74 | <% 75 | } 76 | } 77 | }catch(Exception e){} 78 | %> 79 | 80 | <% 81 | try 82 | { 83 | a=request.getParameter("button1"); 84 | if(a.equals("DISCHARGE")) 85 | { 86 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 87 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 88 | Statement s= c.createStatement(); 89 | 90 | String sql="delete from rooms where patient_id="+str1+""; 91 | //String sq2="update table patient set status='D' where patient_id="+str1+""; 92 | //s.execute(sq2); 93 | s.execute(sql); 94 | %> 95 | 98 | <% 99 | session.setAttribute("abc",str1); 100 | %> 101 | 102 | 103 | 109 | <% 110 | } 111 | }catch(Exception e){ } 112 | %> 113 |
24 | ENTER THE PATIENT ID TO DISCHARGE--
25 |



26 |
30 | <% 31 | try{ 32 | a=request.getParameter("button1"); 33 | if(a.equals("ENTER")) 34 | { 35 | str1= request.getParameter("t1"); 36 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 37 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 38 | Statement s= c.createStatement(); 39 | if(str1!="") 40 | { 41 | String sq="select * from patient where patient_id="+str1+""; 42 | ResultSet rs1=s.executeQuery(sq); 43 | if(rs1.next()) 44 | { 45 | out.println("PATIENT ID="+rs1.getString(1)); %>
<% 46 | out.println("PATIENT NAME="+rs1.getString(2)); %>
<% 47 | out.println("DATE OF BIRTH="+rs1.getString(3)); %>
<% 48 | out.println("DOCTOR FEE ="+rs1.getString(4)); %>
<% 49 | out.println("FATHER'S NAME ="+rs1.getString(5)); %>
<% 50 | out.println("DEPARTMENT ID="+rs1.getString(6)); %>
<% 51 | out.println("BLOOD GROUP ="+rs1.getString(7)); %>
<% 52 | out.println("GENDER ="+rs1.getString(8)); %>
<% 53 | %>
54 |

ARE YOU SURE YOU WANT TO DISCHARGE PATIENT

55 | 56 | 57 |
114 |
115 |
116 | 117 | -------------------------------------------------------------------------------- /hosp/WebContent/docrep.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/dropdown.css: -------------------------------------------------------------------------------- 1 | body {margin:25px; font:12px Verdana, Arial, Helvetica} 2 | * {padding:0; margin:0} 3 | .dropdown {float:left; padding-right:5px} 4 | .dropdown dt {width:188px; border:2px solid #9ac1c9; padding:8px; font-weight:bold; cursor:pointer;} 5 | .dropdown dt:hover {background:url(images/header_over.gif)} 6 | .dropdown dd {position:absolute; overflow:hidden; width:208px; display:none; background:#fff; z-index:200; opacity:0} 7 | .dropdown ul {width:204px; border:2px solid #9ac1c9; list-style:none; border-top:none} 8 | .dropdown li {display:inline} 9 | .dropdown a, .dropdown a:active, .dropdown a:visited {display:block; padding:5px; color:#333; text-decoration:none; background:#eaf0f2; width:194px} 10 | .dropdown a:hover {background:#d9e1e4; color:#000} 11 | .dropdown .underline {border-bottom:1px solid #b9d6dc} -------------------------------------------------------------------------------- /hosp/WebContent/dropdown.js: -------------------------------------------------------------------------------- 1 | var DDSPEED = 10; 2 | var DDTIMER = 15; 3 | 4 | // main function to handle the mouse events // 5 | function ddMenu(id,d){ 6 | var h = document.getElementById(id + '-ddheader'); 7 | var c = document.getElementById(id + '-ddcontent'); 8 | clearInterval(c.timer); 9 | if(d == 1){ 10 | clearTimeout(h.timer); 11 | if(c.maxh && c.maxh <= c.offsetHeight){return} 12 | else if(!c.maxh){ 13 | c.style.display = 'block'; 14 | c.style.height = 'auto'; 15 | c.maxh = c.offsetHeight; 16 | c.style.height = '0px'; 17 | } 18 | c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); 19 | }else{ 20 | h.timer = setTimeout(function(){ddCollapse(c)},50); 21 | } 22 | } 23 | 24 | // collapse the menu // 25 | function ddCollapse(c){ 26 | c.timer = setInterval(function(){ddSlide(c,-1)},DDTIMER); 27 | } 28 | 29 | // cancel the collapse if a user rolls over the dropdown // 30 | function cancelHide(id){ 31 | var h = document.getElementById(id + '-ddheader'); 32 | var c = document.getElementById(id + '-ddcontent'); 33 | clearTimeout(h.timer); 34 | clearInterval(c.timer); 35 | if(c.offsetHeight < c.maxh){ 36 | c.timer = setInterval(function(){ddSlide(c,1)},DDTIMER); 37 | } 38 | } 39 | 40 | // incrementally expand/contract the dropdown and change the opacity // 41 | function ddSlide(c,d){ 42 | var currh = c.offsetHeight; 43 | var dist; 44 | if(d == 1){ 45 | dist = (Math.round((c.maxh - currh) / DDSPEED)); 46 | }else{ 47 | dist = (Math.round(currh / DDSPEED)); 48 | } 49 | if(dist <= 1 && d == 1){ 50 | dist = 1; 51 | } 52 | c.style.height = currh + (dist * d) + 'px'; 53 | c.style.opacity = currh / c.maxh; 54 | c.style.filter = 'alpha(opacity=' + (currh * 100 / c.maxh) + ')'; 55 | if((currh < 2 && d != 1) || (currh > (c.maxh - 2) && d == 1)){ 56 | clearInterval(c.timer); 57 | } 58 | } -------------------------------------------------------------------------------- /hosp/WebContent/editdoc.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"import="java.sql.*"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | ENTER DOCTOR ID TO EDIT 
11 | <% 12 | int k=0; 13 | try{ 14 | String str1= request.getParameter("t1"); 15 | Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); 16 | Connection c=DriverManager.getConnection ("jdbc:odbc:abc", "root", "data"); 17 | Statement s= c.createStatement(); 18 | if(str1!="") 19 | { 20 | String sql="select * from doctor where doc_id="+str1+")"; 21 | s.execute(sql); 22 | out.println ("Insert Successful"); 23 | k=1; 24 | } 25 | }catch(Exception e) { out.println(e); } 26 | 27 | %> 28 | DOCTOR NAME
29 | DOCTOR EDUQUALIFICATION
30 | DATE OF BIRTH
31 | FATHER'S NAME
32 | PHONE NO
33 | SALARY
34 | EMAIL ID
35 | 36 | 37 | -------------------------------------------------------------------------------- /hosp/WebContent/empattn.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | PATIENT ID
11 | PATIENT NAME
12 | PATIENT DEPARTMENT
13 | CONTACT NO
14 | GENDER
18 | 19 | -------------------------------------------------------------------------------- /hosp/WebContent/foliage-swirls-000145-light-sky-blue.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/foliage-swirls-000145-light-sky-blue.jpg -------------------------------------------------------------------------------- /hosp/WebContent/home.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | WELCOME TO HOSPITAL MANAGEMENT SYSTEM 8 | 9 | 10 | 15 | 16 | 17 |
18 | 19 | 20 | 22 | 23 | 24 | 96 | 97 |

HOSPITAL MANAGEMENT SYSTEM

21 |
25 |
 26 | 
 37 | 
 47 | 
 57 | 
 65 | 


66 | 74 | 84 | 94 |
95 |
98 |
99 | 100 | -------------------------------------------------------------------------------- /hosp/WebContent/home_6.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/home_6.swf -------------------------------------------------------------------------------- /hosp/WebContent/light-blue-wallpaper.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/light-blue-wallpaper.jpg -------------------------------------------------------------------------------- /hosp/WebContent/medical_doctor.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/medical_doctor.jpg -------------------------------------------------------------------------------- /hosp/WebContent/medrep.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/nurse.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/nurse.jpg -------------------------------------------------------------------------------- /hosp/WebContent/oestfold_hospital_arkitema260109_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/WebContent/oestfold_hospital_arkitema260109_1.jpg -------------------------------------------------------------------------------- /hosp/WebContent/patrep.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/sd.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /hosp/WebContent/transactn.jsp: -------------------------------------------------------------------------------- 1 | <%@ page language="java" contentType="text/html; charset=ISO-8859-1" 2 | pageEncoding="ISO-8859-1"%> 3 | 4 | 5 | 6 | 7 | Insert title here 8 | 9 | 10 |
11 | 12 | 13 | 16 | 17 |
14 |

TRANSACTION WINDOW

15 |
18 |
19 | 20 | 21 | 46 | 47 |
22 |
23 |
24 | 25 | 26 | 27 | 41 | 42 |
28 |

29 | 30 | PATIENT ID
31 | PATIENT NAME
32 | DEPARTMENT ID
33 | CONTACT NO
34 | BILL NO
35 | TOTAL AMOUNT
36 | DATE
37 | DOCTOR FEE
38 | MEDICINE FEE
39 | MODE
40 |
43 |
44 |
45 |
48 |
49 | 50 | 51 | 52 | 53 | 54 | -------------------------------------------------------------------------------- /hosp/build/classes/as.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/build/classes/as.class -------------------------------------------------------------------------------- /hosp/build/classes/srv1.class: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/build/classes/srv1.class -------------------------------------------------------------------------------- /hosp/home_6.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/MainakRepositor/Java-Fullstack-Projects/bb32d7380b12a8f52a2c75e353dd3c4bbd5b3cab/hosp/home_6.swf -------------------------------------------------------------------------------- /hosp/src/as.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | import java.io.IOException; 4 | import java.sql.Connection; 5 | import java.sql.DriverManager; 6 | 7 | import javax.servlet.ServletException; 8 | import javax.servlet.http.HttpServletRequest; 9 | import javax.servlet.http.HttpServletResponse; 10 | 11 | /** 12 | * Servlet implementation class for Servlet: as 13 | * 14 | */ 15 | public class as extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { 16 | static final long serialVersionUID = 1L; 17 | 18 | /* (non-Java-doc) 19 | * @see javax.servlet.http.HttpServlet#HttpServlet() 20 | */ 21 | public as() { 22 | super(); 23 | } 24 | 25 | /* (non-Java-doc) 26 | * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 27 | */ 28 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 29 | // TODO Auto-generated method stub 30 | } 31 | 32 | /* (non-Java-doc) 33 | * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 34 | */ 35 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 36 | try{ 37 | Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); 38 | Connection c= DriverManager.getConnection ("jdbc:odbc:abc", "root", "root"); 39 | Statement s= c.createStatement(); 40 | String sql="insert into student values("+roll+",'"+str2+"')"; 41 | s.execute (sql); 42 | out.println ("Insert Successful"); 43 | }catch(Exception e) { } 44 | 45 | // TODO Auto-generated method stub 46 | } 47 | } -------------------------------------------------------------------------------- /hosp/src/srv1.java: -------------------------------------------------------------------------------- 1 | 2 | 3 | import java.sql.Connection; 4 | import java.sql.DriverManager; 5 | import java.io.IOException; 6 | import javax.servlet.ServletException; 7 | import javax.servlet.http.HttpServletRequest; 8 | import javax.servlet.http.HttpServletResponse; 9 | 10 | /** 11 | * Servlet implementation class for Servlet: srv1 12 | * 13 | */ 14 | public class srv1 extends javax.servlet.http.HttpServlet implements javax.servlet.Servlet { 15 | static final long serialVersionUID = 1L; 16 | 17 | /* (non-Java-doc) 18 | * @see javax.servlet.http.HttpServlet#HttpServlet() 19 | */ 20 | public srv1() { 21 | super(); 22 | } 23 | 24 | /* (non-Java-doc) 25 | * @see javax.servlet.http.HttpServlet#doGet(HttpServletRequest request, HttpServletResponse response) 26 | */ 27 | protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 28 | // TODO Auto-generated method stub 29 | } 30 | 31 | /* (non-Java-doc) 32 | * @see javax.servlet.http.HttpServlet#doPost(HttpServletRequest request, HttpServletResponse response) 33 | */ 34 | protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException { 35 | 36 | try{ 37 | Class.forName ("sun.jdbc.odbc.JdbcOdbcDriver"); 38 | Connection c= DriverManager.getConnection ("jdbc:odbc:abc", "root", "root"); 39 | Statement s= c.createStatement(); 40 | String sql="select * from department where "; 41 | s.execute (sql); 42 | out.println ("Insert Successful"); 43 | }catch(Exception e) { } 44 | 45 | // TODO Auto-generated method stub 46 | 47 | } 48 | } --------------------------------------------------------------------------------