DATA FLOW DIAGRAMS

DFD : LEVEL 0

DFD : LEVEL 1 .

DFD : LEVEL 2 .

DFD : LEVEL 3 .

ENTITY – RELATIONSHIP DIAGRAM .

* WARNING: Do NOT modify this code. } /** This method is called from within the constructor to * initialize the form.JFrame { /** Creates new form Login */ public Login() { initComponents().swing. public class Login extends javax.JLabel().swing.java package mainproject. jl1 = new javax.JTextField().JLabel(). t1 = new javax. jl2 = new javax.swing.CODING MODULE 1 : Login.swing. The content of this method is * always regenerated by the Form Editor. .JLabel(). */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GENBEGIN:initComponents private void initComponents() { jLabel1 = new javax.swing.

addActionListener(new java.swing.swing.swing.swing.jpg"))).event.EXIT_ON_CLOSE). 0)).GroupLayout layout = new javax. 1.JPasswordField(). 14)).ActionEvent evt) { b1ActionPerformed(evt).JLabel().awt. .swing. // NOI18N jLabel2.setText("Login"). jPasswordField1 = new javax. setDefaultCloseOperation(javax. jLabel1.GroupLayout(getContentPane()).setLayout(layout).event.getResource("/mainproject/login_new.JButton().awt. getContentPane().setFont(new java.awt.Font("Tahoma".b1 = new javax. } }).WindowConstants. jLabel2 = new javax.setText("Password").ActionListener() { public void actionPerformed(java. jl2. b1.awt. // NOI18N jl1. jLabel2.Color(204.swing.ImageIcon(getClass(). 0.setForeground(new java. javax.swing.setIcon(new javax. b1.setText("UserName").

addGap(178. 117.DEFAULT_SIZE.addGap(116.RELATED.LayoutStyle. 302.Alignment.GroupLayout. 18) . 18. 18) . javax.PREFERRED_SIZE) . javax.createSequentialGroup() .swing.createSequentialGroup() .addComponent(b1) . 116) .GroupLayout.swing.addGap(18. 302) . 18.addGroup(layout.addGroup(layout. javax. Short.addComponent(jPasswordField1. javax.GroupLayout.createSequentialGroup() .addComponent(jl2) .swing.swing. Short.swing.GroupLayout.MAX_VALUE)) . 114. javax.addPreferredGap(javax.addContainerGap(602.addGroup(layout.PREFERRED_SIZE) . Short.createSequentialGroup() .createParallelGroup(javax. 90)) .swing. 156.MAX_VALUE))) . 178.Alignment.addComponent(jl1) . 178) .GroupLayout.addGroup(layout.ComponentPlacement.MAX_VALUE)) .setHorizontalGroup( layout.addGap(18.addGap(302.createSequentialGroup() .DEFAULT_SIZE.layout.addGroup(layout.createParallelGroup(javax.LEADING) . 90.addGap(90.PREFERRED_SIZE.addGroup(layout. 116.swing.GroupLayout. 356.addComponent(t1.GroupLayout.swing.LEADING) .addComponent(jLabel2.

GroupLayout.addGroup(layout.BASELINE) .addGroup(layout.LEADING) .setVerticalGroup( layout.addComponent(jl1) . 27) . javax.GroupLayout.PREFERRED_SIZE)) .addComponent(b1)) .swing.PREFERRED_SIZE.Alignment.swing.swing.createParallelGroup(javax. layout.addComponent(jl2) .addGap(92. javax.swing.PREFERRED_SIZE) . 92) .Alignment. javax.LEADING) .GroupLayout.Alignment.GroupLayout.addGroup(layout.swing. javax.swing.addComponent(t1.createSequentialGroup() .GroupLayout..addComponent(jLabel1.createParallelGroup(javax. javax.DEFAULT_SIZE.PREFERRED_SIZE) . javax.addGap(27.swing. 18.GroupLayout.Alignment.addContainerGap() . javax.addContainerGap(341.PREFERRED_SIZE. 365.swing.DEFAULT_SIZE.PREFERRED_SIZE.PREFERRED_SIZE.BASELINE) .swing.GroupLayout. 92. 504. javax.PREFERRED_SIZE)) .MAX_VALUE)) ).addGroup(layout.swing.GroupLayout.addGroup(layout.addComponent(jLabel1.GroupLayout.addGap(18.swing.GroupLayout. Short.GroupLayout.GroupLayout. 27.swing. 18) . javax.GroupLayout.createParallelGroup(javax.swing.addComponent(jPasswordField1.swing.GroupLayout. javax.createParallelGroup(javax.createSequentialGroup() .

}// </editor-fold>//GEN-END:initComponents private void b1ActionPerformed(java.addGroup(layout. 22.MAX_VALUE)) ). if(user. Short.GroupLayout.addContainerGap(77.addComponent(jLabel2.equals(jPasswordField1. javax.createSequentialGroup() .swing. String user="user". 55.PREFERRED_SIZE.event. } else{ jLabel2. dispose(). h. } }//GEN-LAST:event_b1ActionPerformed /** .GroupLayout.PREFERRED_SIZE))) .setVisible(true).getText()) && pass. javax..swing. pack().addGap(22.setText("User name & password is Wrong").ActionEvent evt) {//GENFIRST:event_b1ActionPerformed String pass="admin".equals(t1. 22) .getText())) { Hospital h=new Hospital().awt.

private javax.* @param args the command line arguments */ public static void main(String args[]) { java.swing.swing. private javax.JPasswordField jPasswordField1.swing.swing.swing. private javax.JLabel jLabel1.JButton b1.JLabel jLabel2. private javax. // End of variables declaration//GEN-END:variables } .invokeLater(new Runnable() { public void run() { new Login().JLabel jl1.awt.swing. private javax.do not modify//GEN-BEGIN:variables private javax.EventQueue.swing. private javax.JTextField t1.setVisible(true). } }). } // Variables declaration .JLabel jl2.

java package mainproject. } /** This method is called from within the constructor to * initialize the form.MODULE 2 : Search.JScrollPane(). jLabel1 = new javax. */ @SuppressWarnings("unchecked") // <editor-fold defaultstate="collapsed" desc="Generated Code">//GENBEGIN:initComponents private void initComponents() { jPanel1 = new javax.JFrame { /** Creates new form search */ public search() { initComponents(). public class search extends javax.swing. jScrollPane1 = new javax.swing.swing.JTable().swing.swing. jTable1 = new javax. * WARNING: Do NOT modify this code. The content of this method is * always regenerated by the Form Editor.JLabel().JPanel(). .

null} }. null. {null. null. null. null. null}.swing. null. null. null. null. "DOB". 0. null. null. null.Color(255. null. null. null. null}. null.setBackground(new java. null. null. null. null. new String [] { "P_ID". null. null.JLabel(). null. null.Color(204. null.awt. {null. null. null.swing. null. null.awt.JButton(). 204.EXIT_ON_CLOSE).swing. {null. null. null. "Address". null. "Advance_Pay". null. null. null. null. jPanel1. null. null.DefaultTableModel( new Object [][] { {null. null. null. null}. null. null. null. null.jLabel2 = new javax. null}. null.table. "Desease". null.setModel(new javax.Color(153. null. {null. null. null. {null. null}. "Room". null. null. {null.WindowConstants. null. null. null. "Phone". 153)). null. null}. null.swing. "Doctor" . setDefaultCloseOperation(javax. null. null. null. null. null. null. null. null. null. jTable1. 204)). null. null. {null. null. null. "Date". 255)). null.setForeground(new java. null}. null. null. null.awt. null}. null. jTable1. null. {null. null. null. null. "P_Name". null. null. null. null. null. null}. null. jButton1 = new javax. null. null. 204. null.setBackground(new java. null. "Gender". jTable1. {null. null. null. null.

addGroup(jPanel1Layout.awt.createParallelGroup(javax.swing. jLabel1.awt.event.awt.GroupLayout jPanel1Layout = new javax. jLabel1. 160.setRowHeight(30).setForeground(new java.setFont(new java.Alignment. 14)).setLayout(jPanel1Layout). jTable1. jButton1.setRowMargin(5).swing.awt.setViewportView(jTable1). jTable1.createSequentialGroup() . 18)).Font("Tahoma". 0)).addActionListener(new java. jButton1.ActionListener() { public void actionPerformed(java.setFont(new java.event. jLabel2. } }).setText("OK").GroupLayout(jPanel1).swing.Alignment.Color(51.createSequentialGroup() .awt. 160) .addGroup(jPanel1Layout.Font("Tahoma".LEADING) . 51.setHorizontalGroup( jPanel1Layout.setText("Results according to your entedered text"). 1.createParallelGroup(javax.addGap(160.} )). javax.ActionEvent evt) { jButton1ActionPerformed(evt).GroupLayout. jLabel1. jScrollPane1.GroupLayout. jPanel1Layout.LEADING) .swing. jPanel1.addGroup(jPanel1Layout. 2.

GroupLayout..swing.addGap(224.ComponentPlacement. javax.addComponent(jLabel2.swing.swing.RELATED.swing.PREFERRED_SIZE. 82. javax. 934. 326. 31) . 35.addComponent(jLabel2.GroupLayout.swing.LayoutStyle.swing.addGroup(jPanel1Layout.PREFERRED_SIZE)) .ComponentPlacement.PREFERRED_SIZE) . 224.GroupLayout. 224) .addGroup(jPanel1Layout.swing.addGap(418.swing.PREFERRED_SIZE.GroupLayout.addGroup(jPanel1Layout. Short. javax. 418.PREFERRED_SIZE) . 322.GroupLayout. javax.PREFERRED_SIZE) . javax.PREFERRED_SIZE)) .swing.createSequentialGroup() .LayoutStyle.swing. javax.LayoutStyle.RELATED) . javax.GroupLayout. 35.PREFERRED_SIZE.LEADING) .Alignment.GroupLayout.GroupLayout.GroupLayout.createSequentialGroup() .PREFERRED_SIZE. javax.PREFERRED_SIZE. javax.addContainerGap(40. javax. Short.createParallelGroup(javax.GroupLayout. 418) .GroupLayout. 31. 446.MAX_VALUE) .GroupLayout.swing. javax.swing.swing.addPreferredGap(javax.createSequentialGroup() .setVerticalGroup( jPanel1Layout.addComponent(jScrollPane1.addComponent(jButton1.PREFERRED_SIZE.PREFERRED_SIZE) .addComponent(jLabel1. javax.GroupLayout.addComponent(jLabel1.swing. javax.RELATED) .GroupLayout.addGap(31.PREFERRED_SIZE.addPreferredGap(javax. jPanel1Layout.MAX_VALUE)) ).GroupLayout.addComponent(jScrollPane1.swing.swing. javax.addPreferredGap(javax.ComponentPlacement. 52.PREFERRED_SIZE))) .swing.swing.

javax.swing.GroupLayout(getContentPane()). layout.GroupLayout. pack(). }//GEN-LAST:event_jButton1ActionPerformed /** .DEFAULT_SIZE. 45.GroupLayout..GroupLayout.DEFAULT_SIZE.setVerticalGroup( layout.createParallelGroup(javax.GroupLayout layout = new javax.GroupLayout.swing. Short.Alignment.setHorizontalGroup( layout.swing.MAX_VALUE) ).createParallelGroup(javax.swing.GroupLayout.ActionEvent evt) {//GENFIRST:event_jButton1ActionPerformed dispose().addGap(45. javax. javax.setLayout(layout).DEFAULT_SIZE. 45)) ). Short.MAX_VALUE) ).Alignment. javax. getContentPane().swing.GroupLayout. layout.DEFAULT_SIZE.addComponent(jButton1) .swing.LEADING) .awt. }// </editor-fold>//GEN-END:initComponents private void jButton1ActionPerformed(java.LEADING) .addComponent(jPanel1. javax.event.addComponent(jPanel1.swing.swing.

setVisible(true). } // Variables declaration .do not modify//GEN-BEGIN:variables private javax.swing.* @param args the command line arguments */ public static void main(String args[]) { java. public javax.JButton jButton1.awt.EventQueue. // End of variables declaration//GEN-END:variables } .JLabel jLabel2. private javax.swing.JPanel jPanel1. public javax.swing.JScrollPane jScrollPane1. private javax.invokeLater(new Runnable() { public void run() { new search().JLabel jLabel1. } }).swing.JTable jTable1.swing.swing. private javax.

.

30 809.9 447       .... 83 74:5.4:9 .  ..4:9   .30 09439039!.4:930. .4:9. 83 74:5..-0 80947074:3/ 30..4:9 09439039!.

.

  .

74:5   .//74:5 ..//74:5 .70..5         .4:9 &%*$   $479 *'&   ...//42543039 !.8847/0/ .70..074:5 .90!.5      .74:5   .90$06:039.//74:5 . 83 74:5.5      .70.//.70.4:9 80947439.//74:5 .5 .-0 ...307.4:9 ..4:9$90 42543039!.90$06:039..4:9 !###*$   .74:5  .5      .//439.70.4:9 !###*$   .5   $479 *'&   .//42543039    ..//42543039 9 ..90$06:039.4:9 32039    .5     .90$06:039. 83 74:5.90$06:039.4:9 &%*$   $479 *'&   .74:5   .7.//42543039    .//!7010770/. 83 74:5. 83 .4:9 .7.4:9 .. 83 74:5..//.//74:5 .074:5 .4:9 .74:5   ..//42543039 .//42543039 -   .4:9 32039    .90!.4:9 . 83 74:5.4:9 .//74:5 .4:9 !###*$   .70. 83 74:5.74:5   ..5      .4:9 .. 83 74:5.//.//.02039 #%   ..//.//..70.

90$06:039...//..4:9 .074:5 .7.4:9 !###*$   .4:9 32039    .74:5   ..4:9 .70.4:9 &%*$  .//42543039 9 .. 83 74:5...90!...70.74:5   .//74:5 .90$06:039..4:9 !###*$   .//.5   .74:5  .4:9 .074:5 . 83 74:5. 83 74:5.//..4:9 !###*$ . 83 74:5..70.//42543039 .//74:5 . 83 74:5.. 83 74:5.307.4:9 &%*$ .5      .90!.4:9 !###*$   .4:9 .//439.4:9 32039 $   .//74:5 . 83 74:5.4:9 32039 $   . 83 74:5.//42543039 -  . 83 74:5.4:9 32039    ..//74:5 ..4:9 !###*$  .//42543039 ..4:9 !###*$    .90!...4:9 .. 83 74:5.4:9 809'079.70.//42543039    . 83 74:5.90!.-0 ..307.-0 . 83 74:5.4:9 .5      ..7.074:5 .70. 83 74:5.//74:5 ..5      .5  $479 *'&    ..//42543039    .074:5 ...//42543039 !..//439.4:9 !###*$   .4:9 !###*$   .70.. 83 74:5..7.7. ..8847/0/  .

 83 74:5.//.//42543039 .4:9 !###*$   ..74:5   .  <.4:9 ..307.4:9 !###*$   .70. 83 74:5..-0 .//439. ..//74:5 .5  $479 *'&     5..90$06:039.5      .

.

.

0/947 14/.

.

9 0.0390.4/-.. 39425430398  57..9 .943!0714720/ . .039 .90.943..

.

304859. #$%0.88.943!0714720/ $9735.   809'8-0 97:0  /85480  < 080 .20 5./23 $973:807:807 1 :807 06:.-0 809%09 &8073.8847/8743  < <.8 9 09%09  4859.039*-.

.

 $%0.943!0714720/  .039*-.

  5.8 !.88 06:.8847/0/ 09%09  .

7890.2.422. 5.7:20398  .3/30.7.

9 . ..40.9.907 30#:33. 5:-.3 $973.89.4/2..78(  .039":0:0 3.4/7:3  3043 809'8-0 97:0  < <  <  ...-0  5:-.

.

7.943 /434924/1.'..7.-08/0.

.

.-0 57.-0 57....90.7..8847/0/ 57.. 83 .90. 83 %090/9 . 83 .-0 57.-08 57. ...90.. 83 . 83 !.90... 83 .....8847/0/!..90. 83 :9943- 57....-0..-0..90.90.-0 57..

.

.7.943..3/41.7.-08/0.

.

 .7..-08  <     .

..35740. .. &$0..8880.7.9  5:-. 83 7.  5...02.20  .0903/8.7...

7. . 70.90830147280.

7. 5:-.80.  39425430398  <  .

.90/-90472/947   .4/0 %0.94794  39.43897:.8700307.0/17429390. %82094/8.0901472   #4 %24/198.43903941982094/8  ..

0/  .7338 :3. $:557088.0.

.

0/947 14//01.4.90/4/0.90.0307.:989.580//08.

.

.3030. 83 .74!..-030.3030...-0  ...30  %. 39425430398 57.-0  .4/39425430398   !.30  $.-030.. 83 $.90. 83 !. 83 %.74!...

 83 9.-0 8094/0 30..398 %* * $   !. 83 .943 ...0*!.80 4.-030.-0 80947074:3/ 30.20 03/07   ..:9%.9 447        %.74:3/ 30..74:3/ 30..3.90 //7088 !430 #442  /.:9480 507. 080....-0 809. .. . ..947 .....-0 01.9(( 3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:<  3: 3: 3: 3: 3: 3: 3: 3: 3: 3: 3:< <  30$973( !* !*.9 447      %. 83 :9943   80901.-0  :994330..30 809.-04/0  30 -0..9 447      %. 83 3/44389..

73   $.. 83 74:5.7.//74:5 !.30.9  :9943..    .4:9 !.4/.74:5  !.74:5   .-0 809439 30.42.70.0390.74:5   .7.-0   ...943!0714720/ . 83 74:5. .30.    :9943 809%09    :9943 . .42.30  !.943!0714720/ 0.70. .90$06:039.9 439 %...30.4:9 32039    .-0 809%09 #08:98.<   %..30..-0 80947074:3/ 30..30..9 447     .47/3944:70390/070/909  ..30..90!.9 439 %.. . 83 74:5.9 0.4:9 .. 83 74:5.//74:5 !.5     .30.//74:5 !...943890307 30.-0 809439 30.074:5 ..4:9  !.4:9 80947439.4:9 .4:9 32039    .039 .074:5 .4:930.039 .74!..90!.//.70.-0 809#4.943..30 809'05479'0 %..-0 809#409   %.30 809.9 0.4:9 !.90$06:039.4:9 .9  < <  .943890307  5:-.70..//..4:9 . .4:9!.

 83 74:5.//!7010770/.//42543039 :9943 .30.//.307.//42543039 $.74!.. 83 74:5.4:9 !###*$   .4:9 !###*$   .//!7010770/..30.//42543039 ..5 ... 83 74:5.4:9 !###*$   .74:5   .. 83 74:5.4:9 809'079. 83 74:5..-0 . 83 74:5.4:9 !###*$   . 83 74:5...//74:5 !.70.4:9$90 42543039!.02039 #%   ... 83 ..4:9 !###*$   .//42543039 .90$06:039..30 ..4:9 !###*$   . 83 .4:9 !###*$   .02039 #%   $479 *'&  . 83 74:5. 83 74:5.5      ..4:9$90 42543039!.-0 ...//42543039 $.4:9 32039    .4:9 !###*$   . 83 .//.30..//42543039 .//74:5 !.02039 #%   . 83 74:5.4:9 !###*$   .90$06:039.-0 ....5      .90!.4:9 .4:9 !###*$   .4:9 ..4:9 !###*$   .70.5      ..74:5   ...74:5   . 83 74:5.4:9 !###*$   ..74:5  !.30.074:5 ..7. 83 74:5.5 .4:9 !###*$   . 83 74:5.......4:9 .//439. 83 74:5..4:9 !###*$   .5 .//74:5 !..//..4:9$90 42543039!.70..74!.4:9 . 83 74:5.70.. .//!7010770/.30 ..5  $479 *'&    !.-0 .90$06:039.//42543039 .30..

4:9 &%*$ $479 *'&    .30 .4:9  .90!.. ..074:5 ..//42543039 !...  <.//42543039 :9943   ... 83 74:5..7.74:5  .//42543039 !.074:5 ..7...4:9 &%*$  .30 .4:9 32039    .4:9 09439039!.4:930. 83 74:5.. 83 74:5.30 809.5        .70..90!.4:9. 83 74:5. 83 74:5..30 09439039!.4:9 .. 83 74:5.. 83 74:5.4:9 &%*$  .4:9 80947439.//..74:5  .4:9 &%*$ $479 *'&     5.4:9 809'079.4:9 32039    . 83 74:5..4:9 .4:9 .70.

.

.

0/947 14/.

.

..039 ..943!0714720/ .4/:9943.9 0.0390..9 .90.943. 39425430398  57.

.

039*:9943.943!0714720/ /85480  <. #$%0.

.

039*:9943.943!0714720/  . $%0.

  .

3/30. 5.2.7.7890.7:20398  .422.

40.9..907 30#:33. 809'8-0 97:0  < <  < .89..4/2.78(  . . 5:-.9 .039":0:0 3.7.4/7:3  3080..3 $973.-0  5:-..

.

'..7.943 /434924/1.-08/0.7.

.

..-08 57.30$. 83 $.30 57...90.. .30 5:-..90...-0 5:-..... 83 !..30!.-0..90.-0 57.-0.90.-0%. 83 :9943:9943 57..74!.74!. 83 %.7.. 83 .. 83 ...-0 .

.

7.3/41.-08/0.943.7...

.

.-08 <  . .7.

Sign up to vote on this title
UsefulNot useful