Académique Documents
Professionnel Documents
Culture Documents
ON
HOSPITAL MANAGEMENT
SUBMITTED IN PARTIAL FULFILLMENT FOR THE DEGREE
OF
Bachelors OF COMPUTER SCIENCE
UNDER THE GUIDANCE OF
SUBMITTED TO:
SUBMITTED BY:
Session: 2015-2016
INTEGRAL UNIVERSITY
LUCKNOW
1
ACKNOWLEDGEMENT
The satisfaction that accompanies that the successful completion of any task would be
incomplete without the mention of people whose ceaseless cooperation made it possible,
whose constant guidance and encouragement crown all the effort with success.
index
4. Preface
5. Table of Contents( with page no.)
6. Objective of the project
7. Requirement Analysis
(i) Requirement specification
(ii) H/w and S/w Requirements
8. Feasibility Study
9. System Design
i. Data base table structure
ii. ER Diagram
iii. DFD
10. Coding
11. Snap shots (form Design)
12. Testing
13. Limitations of Project
15. Future Scope
16. References
Prefrence
Hospital Management is the interface that allows the administrator to review
and update patients information. This includes the ability to subscribe
services, appointing medical specialist, including those for medication,
specific procedures, dietican and physiotherapist.
Developer
Database
: Sql 2007
Hardware Specification:
Client:
Processor : P3 866 MHz or later
RAM
: 512 MB
HDD
: 40GB
Display
Developer:
Processor
RAM
: 512 MB
HDD
: 40GB
Display
Modules
Administrator
Medical specialist
Medicine management
Subscription
Registration
Patient
Doctor
Take fees
Conformation
Patient report
Take appointment
Medicine
Hospital
management
Feedback
Recommendation
Take Doc
Information
Verify Doc info
Provide info of patient
Medicine management
Update data
Administrator
8
ER Diagram
P.ID
Pay
Take
Fees
D.ID
P.name
D.name
P.email
Patient
P.adderss
Submit
Advice
Take
Subscription
Doctor
D.Emai
l
Give
Take
Appointment
D.address
Name
Configurat
Verify
Medicine info
Quantity
Submit
D IDs
Medic Types
Administrator
Medic name
D Names
D Emails
Table Description
Patient Table
s.no
1
Field name
P.id
Data Type
Varchar
2
3
4
5
P.Name
P.Address
P.Email
P.Appointment
Varchar
Varchar
Varchar
Date
s.no
1
Field name
D.id
Data Type
Varchar
2
3
4
5
Doctor name
Doctor address
Doctor E.mail
Doctor Specialization
Varchar
Varchar
Varchar
Varchar
description
Unique Id of each
Patient
Name of Patient
Address of Patient
E.mail of Patient
Appointment Date
Doctor table
description
Unique Id of each
Doctor
Name of Doctor
Address of Doctor
E.mail of Doctor
Specialization
Medicine Table
s.no
1
2
3
Field name
Medicine Name
Medicine
Configuration
Medicine Quantity
Data Type
Varchar
Varchar
Integer
description
Name of medicine
Configuration of
Medicine
Quantity of
medicine
10
Screens
LoginWindow
11
MainWindow
12
AddNewDoctor
13
AddNewRoom
14
AddTest
15
AddDoctorDetail
16
AddPatientDetail
17
UpdateRoomInformation
18
BillDetail
19
Coding
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/*
* MainFrameWindow.java
*
* Created on May 3, 2012, 4:59:39 PM
*/
package apps;
import DB.DBCon;
import javax.swing.JButton;
import javax.swing.JEditorPane;
import javax.swing.JInternalFrame;
import javax.swing.JOptionPane;
import javax.swing.JScrollPane;
/**
*
public class MainFrameWindow extends javax.swing.JFrame {
=
20
initComponents();
}
statusToolBar.setFloatable(false);
statusToolBar.setRollover(true);
statusToolBar.setPreferredSize(new java.awt.Dimension(100, 20));
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Hospital Management System");
setLocationByPlatform(true);
28
standardToolBar.setRollover(true);
standardToolBar.setMaximumSize(new java.awt.Dimension(13, 12));
standardToolBar.setMinimumSize(new java.awt.Dimension(13, 12));
standardToolBar.setPreferredSize(new java.awt.Dimension(100, 30));
newDoctor.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon2.png"))); // NOI18N
newDoctor.setToolTipText("New Doctor Record");
newDoctor.setFocusable(false);
newDoctor.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
newDoctor.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
newDoctor.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
newDoctorMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
newDoctorMouseExited(evt);
}
public void mouseReleased(java.awt.event.MouseEvent evt) {
newDoctorMouseReleased(evt);
}
});
29
newDoctor.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newDoctorActionPerformed(evt);
}
});
standardToolBar.add(newDoctor);
newPatient.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/picon.PNG"))); // NOI18N
newPatient.setToolTipText("New Patient Record");
newPatient.setFocusable(false);
newPatient.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
newPatient.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
newPatient.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
newPatientMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
newPatientMouseExited(evt);
}
});
newPatient.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newPatientActionPerformed(evt);
}
30
});
standardToolBar.add(newPatient);
newRoom.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon1.png"))); // NOI18N
newRoom.setToolTipText("New Room Record");
newRoom.setFocusable(false);
newRoom.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
newRoom.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
newRoom.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
newRoomMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
newRoomMouseExited(evt);
}
});
newRoom.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newRoomActionPerformed(evt);
}
});
standardToolBar.add(newRoom);
31
newBill.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon_policies.gif"))); //
NOI18N
newBill.setToolTipText("New Bill");
newBill.setFocusable(false);
newBill.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
newBill.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
newBill.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseEntered(java.awt.event.MouseEvent evt) {
newBillMouseEntered(evt);
}
public void mouseExited(java.awt.event.MouseEvent evt) {
newBillMouseExited(evt);
}
});
newBill.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newBillActionPerformed(evt);
}
});
standardToolBar.add(newBill);
jButton17.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon2.png"))); // NOI18N
jButton17.setToolTipText("Update Doctar Recard");
jButton17.setFocusable(false);
32
jButton17.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton17.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton17ActionPerformed(evt);
}
});
standardToolBar.add(jButton17);
jButton18.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/picon.PNG"))); // NOI18N
jButton18.setToolTipText("Update Patient Information");
jButton18.setFocusable(false);
jButton18.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton18.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
standardToolBar.add(jButton18);
jButton22.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon3.png"))); // NOI18N
jButton22.setText(" ");
jButton22.setToolTipText("Update Room Information");
jButton22.setFocusable(false);
jButton22.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton22.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
jButton22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
33
jButton22ActionPerformed(evt);
}
});
standardToolBar.add(jButton22);
jButton23.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/resources/icon_policies.gif"))); //
NOI18N
jButton23.setToolTipText("Add Test Detail");
jButton23.setFocusable(false);
jButton23.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
jButton23.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
standardToolBar.add(jButton23);
getContentPane().add(standardToolBar, java.awt.BorderLayout.NORTH);
newDocWindow.setClosable(true);
newDocWindow.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_C
LOSE);
newDocWindow.setTitle("Add New Doctor");
newDocWindow.getContentPane().setLayout(new
org.netbeans.lib.awtextra.AbsoluteLayout());
34
newDocWindow.getContentPane().add(jLabel2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(24, 31, 60, 20));
35
jTextField4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField4ActionPerformed(evt);
}
});
newDocWindow.getContentPane().add(jTextField4, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 200, 210, -1));
newDocWindow.getContentPane().add(jTextField5, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 270, 210, -1));
jTextField6.setEnabled(false);
newDocWindow.getContentPane().add(jTextField6, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 340, 210, -1));
36
newDocWindow.getContentPane().add(jTextField7, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 410, 210, -1));
jTextField8.setText(" ");
newDocWindow.getContentPane().add(jTextField8, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 470, 210, -1));
37
jTextField20.setText(" ");
newDocWindow.getContentPane().add(jTextField20, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 530, 210, 20));
newRoomInfo.setClosable(true);
newRoomInfo.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CL
OSE);
newRoomInfo.setTitle("Add Room Detail");
jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder("Add Room
Detail"));
jPanel3.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel19.setText("Romm no");
jTextField17.setText(" ");
jTextField18.setText(" ");
jTextField19.setText(" ");
jButton5.setText("Add");
jButton5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton5ActionPerformed(evt);
}
});
jButton6.setText("close");
jButton6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton6ActionPerformed(evt);
39
}
});
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(46, 46, 46)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
.addComponent(jLabel21,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel20,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel19,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 114, Short.MAX_VALUE))
40
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING, false)
.addComponent(jTextField18)
.addComponent(jTextField17,
javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
.addComponent(jTextField19,
javax.swing.GroupLayout.DEFAULT_SIZE, 139, Short.MAX_VALUE))
.addGap(42, 42, 42)
.addComponent(jSeparator2, javax.swing.GroupLayout.DEFAULT_SIZE,
1, Short.MAX_VALUE))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jSeparator3, javax.swing.GroupLayout.DEFAULT_SIZE,
336, Short.MAX_VALUE)
.addContainerGap())))
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(98, 98, 98)
.addComponent(jButton5)
.addGap(56, 56, 56)
.addComponent(jButton6)
.addContainerGap(94, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
41
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel19, javax.swing.GroupLayout.PREFERRED_SIZE,
32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField17,
javax.swing.GroupLayout.PREFERRED_SIZE, 25,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel20, javax.swing.GroupLayout.PREFERRED_SIZE,
29, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField18,
javax.swing.GroupLayout.PREFERRED_SIZE, 24,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel21, javax.swing.GroupLayout.PREFERRED_SIZE,
32, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField19,
javax.swing.GroupLayout.PREFERRED_SIZE, 25,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(56, 56, 56)
42
.addComponent(jSeparator3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(108, 108, 108)
.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jButton5)
.addComponent(jButton6))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jSeparator2, javax.swing.GroupLayout.PREFERRED_SIZE,
102, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())
);
newRoomInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addGroup(newRoomInfoLayout.createSequentialGroup()
.addGap(29, 29, 29)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(19, Short.MAX_VALUE))
43
);
newRoomInfoLayout.setVerticalGroup(
newRoomInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addGroup(newRoomInfoLayout.createSequentialGroup()
.addGap(37, 37, 37)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 407,
Short.MAX_VALUE)
.addContainerGap())
);
newPatientRec.setClosable(true);
newPatientRec.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CL
OSE);
newPatientRec.setTitle("Add Patient Recard");
jPanel1.setBorder(new javax.swing.border.MatteBorder(null));
jPanel1.setForeground(new java.awt.Color(153, 51, 0));
44
jTextField12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField12ActionPerformed(evt);
}
});
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
45
.addComponent(jLabel13, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel11, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel10, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.PREFERRED_SIZE, 77,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
70, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
.addComponent(jTextField9)
.addComponent(jTextField10,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField11)
.addComponent(jTextField12, javax.swing.GroupLayout.DEFAULT_SIZE,
149, Short.MAX_VALUE))
.addGap(41, 41, 41))
);
jPanel1Layout.setVerticalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(20, 20, 20)
46
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel10)
.addComponent(jTextField9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel11)
.addComponent(jTextField10,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel12)
.addComponent(jTextField11,
javax.swing.GroupLayout.PREFERRED_SIZE, 17,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel13)
.addComponent(jTextField12,
javax.swing.GroupLayout.PREFERRED_SIZE, 20,
javax.swing.GroupLayout.PREFERRED_SIZE))
47
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);
jButton3.setText("Add");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jButton4.setText("Close");
jButton4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton4ActionPerformed(evt);
}
});
jPanel2.setBorder(new javax.swing.border.MatteBorder(null));
48
jTextField16.setText(" ");
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(64, 64, 64)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
49
.addGroup(jPanel2Layout.createSequentialGroup()
.addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE,
116, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.DEFAULT_SIZE, 213, Short.MAX_VALUE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING, false)
.addComponent(jLabel14,
javax.swing.GroupLayout.DEFAULT_SIZE, 101, Short.MAX_VALUE)
.addComponent(jLabel16,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel15,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addComponent(jLabel17))
.addGap(38, 38, 38)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING, false)
.addComponent(jTextField16)
.addComponent(jTextField15)
.addComponent(jTextField14)
50
.addComponent(jTextField13,
javax.swing.GroupLayout.DEFAULT_SIZE, 153, Short.MAX_VALUE))))
.addContainerGap())
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel14, javax.swing.GroupLayout.PREFERRED_SIZE,
29, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField13,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel15)
.addComponent(jTextField14,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
51
.addComponent(jLabel16)
.addComponent(jTextField15,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel17)
.addComponent(jTextField16,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(38, 38, 38)
.addComponent(jLabel18, javax.swing.GroupLayout.PREFERRED_SIZE,
22, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(27, 27, 27)
.addComponent(jScrollPane1,
javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE)))
.addContainerGap())
);
newPatientRec.getContentPane().setLayout(newPatientRecLayout);
newPatientRecLayout.setHorizontalGroup(
newPatientRecLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(newPatientRecLayout.createSequentialGroup()
.addGroup(newPatientRecLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.LEADING)
.addGroup(newPatientRecLayout.createSequentialGroup()
.addGap(18, 18, 18)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addComponent(jSeparator1,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 442, Short.MAX_VALUE)
.addGroup(newPatientRecLayout.createSequentialGroup()
.addGap(97, 97, 97)
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
73, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(58, 58, 58)
.addComponent(jButton4, javax.swing.GroupLayout.PREFERRED_SIZE,
75, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(newPatientRecLayout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap())
53
);
newPatientRecLayout.setVerticalGroup(
newPatientRecLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(newPatientRecLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator1, javax.swing.GroupLayout.PREFERRED_SIZE,
10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(newPatientRecLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.BASELINE)
.addComponent(jButton3)
.addComponent(jButton4))
.addContainerGap(37, Short.MAX_VALUE))
);
54
jDesktopPane1.add(newPatientRec,
javax.swing.JLayeredPane.DEFAULT_LAYER);
updateDocWindow.setClosable(true);
updateDocWindow.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON
_CLOSE);
updateDocWindow.setTitle("Update Doctor Record ");
updateDocWindow.setMinimumSize(new java.awt.Dimension(450, 500));
updateDocWindow.setPreferredSize(new java.awt.Dimension(450, 350));
jButton7.setText("Search...");
jButton7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton7ActionPerformed(evt);
}
});
jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder("Doctor Detail"));
jLabel24.setText("Name :");
jLabel25.setText("Degree : ");
55
jLabel26.setText("Specilization : ");
jLabel29.setText("Fee : ");
jLabel30.setText("Address : ");
jLabel31.setText("Contact No : ");
jTextField24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField24ActionPerformed(evt);
}
});
jSeparator4.setOrientation(javax.swing.SwingConstants.VERTICAL);
jButton8.setText("Update");
jButton8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton8ActionPerformed(evt);
}
56
});
jButton9.setText("Close");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jLabel24, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel25, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel26, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel27, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel28, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel29, javax.swing.GroupLayout.Alignment.TRAILING)
.addComponent(jLabel30, javax.swing.GroupLayout.Alignment.TRAILING)
57
.addComponent(jLabel31,
javax.swing.GroupLayout.Alignment.TRAILING))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jTextField23,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField24,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField25,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField26,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField27,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField28,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField29,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
58
.addComponent(jTextField22,
javax.swing.GroupLayout.PREFERRED_SIZE, 140,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(26, 26, 26)
.addComponent(jSeparator4, javax.swing.GroupLayout.PREFERRED_SIZE,
39, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jButton8)
.addComponent(jButton9))
.addContainerGap(30, Short.MAX_VALUE))
);
jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new
java.awt.Component[] {jTextField22, jTextField23, jTextField24, jTextField25,
jTextField26, jTextField27, jTextField28, jTextField29});
jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new
java.awt.Component[] {jButton8, jButton9});
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
59
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jSeparator4,
javax.swing.GroupLayout.PREFERRED_SIZE, 192,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel24)
.addComponent(jTextField22,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel25)
.addComponent(jTextField23,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
60
.addComponent(jLabel26)
.addComponent(jTextField24,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel27)
.addComponent(jTextField25,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel28)
.addComponent(jTextField26,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel29)
61
.addComponent(jTextField27,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel30)
.addComponent(jTextField28,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel31)
.addComponent(jTextField29,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(19, 19, 19)
.addComponent(jButton8)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton9)))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
62
);
javax.swing.GroupLayout updateDocWindowLayout = new
javax.swing.GroupLayout(updateDocWindow.getContentPane());
updateDocWindow.getContentPane().setLayout(updateDocWindowLayout);
updateDocWindowLayout.setHorizontalGroup(
updateDocWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addGroup(updateDocWindowLayout.createSequentialGroup()
.addContainerGap()
.addGroup(updateDocWindowLayout.createParallelGroup(javax.swing.GroupLayout.Ali
gnment.LEADING)
.addComponent(jPanel4, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(updateDocWindowLayout.createSequentialGroup()
.addComponent(jLabel23)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField21,
javax.swing.GroupLayout.PREFERRED_SIZE, 85,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton7)))
.addContainerGap())
);
updateDocWindowLayout.setVerticalGroup(
updateDocWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
63
.addGroup(updateDocWindowLayout.createSequentialGroup()
.addContainerGap()
.addGroup(updateDocWindowLayout.createParallelGroup(javax.swing.GroupLayout.Ali
gnment.BASELINE)
.addComponent(jLabel23)
.addComponent(jTextField21, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton7))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(16, Short.MAX_VALUE))
);
updateDocWindow.setBounds(400, 120, 450, 350);
jDesktopPane1.add(updateDocWindow,
javax.swing.JLayeredPane.DEFAULT_LAYER);
update_patient.setClosable(true);
update_patient.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CL
OSE);
jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Update
Patient", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma",
0, 12), new java.awt.Color(51, 0, 0))); // NOI18N
jPanel5.setLayout(jPanel5Layout);
jPanel5Layout.setHorizontalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE, 122,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(33, 33, 33)
.addComponent(jTextField30, javax.swing.GroupLayout.PREFERRED_SIZE,
123, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(42, 42, 42)
.addComponent(jSeparator5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(42, Short.MAX_VALUE))
);
jPanel5Layout.setVerticalGroup(
jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel5Layout.createSequentialGroup()
.addGap(39, 39, 39)
.addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel32, javax.swing.GroupLayout.PREFERRED_SIZE,
23, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField30,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
65
.addContainerGap(32, Short.MAX_VALUE))
.addGroup(jPanel5Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator5, javax.swing.GroupLayout.DEFAULT_SIZE, 83,
Short.MAX_VALUE))
);
jPanel6.setBorder(javax.swing.BorderFactory.createTitledBorder("Patientt Detail"));
jLabel33.setText("Patient Name");
jLabel34.setText("Gardian Name");
jLabel35.setText("Gardian No");
jLabel36.setText("Doctar ID");
jLabel37.setText("Room No.");
jLabel38.setText("Date of Admit");
jLabel39.setText("Date of Leave");
jLabel40.setText("Diogonisis");
jTextArea2.setColumns(20);
jTextArea2.setRows(5);
jScrollPane2.setViewportView(jTextArea2);
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
66
.addContainerGap()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jLabel34)
.addComponent(jLabel33, javax.swing.GroupLayout.PREFERRED_SIZE,
99, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel37)
.addComponent(jLabel35)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING)
.addComponent(jLabel38)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jLabel40)
.addComponent(jLabel39)))
.addComponent(jLabel36))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addGap(122, 122, 122)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
.addComponent(jTextField37,
javax.swing.GroupLayout.Alignment.LEADING)
67
.addComponent(jTextField36,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField35,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField34,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField33,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField32,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField31,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 108, Short.MAX_VALUE))
.addContainerGap(22, Short.MAX_VALUE))
.addGroup(jPanel6Layout.createSequentialGroup()
.addComponent(jScrollPane2,
javax.swing.GroupLayout.PREFERRED_SIZE, 154,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap())))
);
jPanel6Layout.setVerticalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField31,
javax.swing.GroupLayout.PREFERRED_SIZE,
68
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel33))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField32,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel34))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField33,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel35))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField34,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel36))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
69
.addComponent(jTextField35,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel37))
.addGap(18, 18, 18)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField36,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel38))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField37, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel39))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jScrollPane2,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel40))
.addContainerGap(21, Short.MAX_VALUE))
);
70
jButton10.setText("Search");
jButton10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton10ActionPerformed(evt);
}
});
jPanel7.setBorder(javax.swing.BorderFactory.createTitledBorder("Operation"));
jButton11.setText("Update");
jButton11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton11ActionPerformed(evt);
}
});
jButton12.setText("Clear");
jButton13.setText("close");
jButton13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton13ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel7Layout = new javax.swing.GroupLayout(jPanel7);
jPanel7.setLayout(jPanel7Layout);
jPanel7Layout.setHorizontalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
71
.addGroup(jPanel7Layout.createSequentialGroup()
.addGroup(jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
.addComponent(jButton11)
.addComponent(jButton12)
.addComponent(jButton13))
.addContainerGap(21, Short.MAX_VALUE))
);
jPanel7Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new
java.awt.Component[] {jButton11, jButton12, jButton13});
jPanel7Layout.setVerticalGroup(
jPanel7Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel7Layout.createSequentialGroup()
.addComponent(jButton11)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton12)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton13))
);
javax.swing.GroupLayout update_patientLayout = new
javax.swing.GroupLayout(update_patient.getContentPane());
update_patient.getContentPane().setLayout(update_patientLayout);
update_patientLayout.setHorizontalGroup(
72
update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(update_patientLayout.createSequentialGroup()
.addGroup(update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.TRAILING, false)
.addGroup(update_patientLayout.createSequentialGroup()
.addGap(26, 26, 26)
.addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
update_patientLayout.createSequentialGroup()
.addGap(37, 37, 37)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGap(18, 18, 18)
.addGroup(update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.LEADING)
.addComponent(jButton10)
.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(28, 28, 28))
.addComponent(jSeparator6, javax.swing.GroupLayout.DEFAULT_SIZE, 564,
Short.MAX_VALUE)
);
update_patientLayout.setVerticalGroup(
update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
73
.addGroup(update_patientLayout.createSequentialGroup()
.addGroup(update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.LEADING)
.addGroup(update_patientLayout.createSequentialGroup()
.addGap(63, 63, 63)
.addComponent(jButton10))
.addGroup(update_patientLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jSeparator6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignme
nt.LEADING)
.addGroup(update_patientLayout.createSequentialGroup()
.addGap(7, 7, 7)
.addComponent(jPanel6, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(update_patientLayout.createSequentialGroup()
.addGap(43, 43, 43)
.addComponent(jPanel7, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(54, Short.MAX_VALUE))
74
);
update_patient.setBounds(240, 20, 570, 650);
jDesktopPane1.add(update_patient,
javax.swing.JLayeredPane.DEFAULT_LAYER);
AddTest.setClosable(true);
AddTest.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLOSE);
AddTest.setTitle("Add Test Charge Detail");
jPanel8.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Add
Charges", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION,
javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma",
1, 12))); // NOI18N
jLabel41.setText("Patient Id");
jLabel42.setText("Doctar Id");
jLabel43.setText("Test");
jLabel44.setText("Charge");
javax.swing.GroupLayout jPanel8Layout = new javax.swing.GroupLayout(jPanel8);
jPanel8.setLayout(jPanel8Layout);
jPanel8Layout.setHorizontalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel8Layout.createSequentialGroup()
.addGap(18, 18, 18)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
75
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING, false)
.addComponent(jLabel42, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jLabel41, javax.swing.GroupLayout.DEFAULT_SIZE,
103, Short.MAX_VALUE))
.addComponent(jLabel43, javax.swing.GroupLayout.PREFERRED_SIZE,
128, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel44, javax.swing.GroupLayout.PREFERRED_SIZE,
94, javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED,
57, Short.MAX_VALUE)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
.addComponent(jTextField39,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField41,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField40,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jTextField38,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 138, Short.MAX_VALUE))
.addGap(40, 40, 40))
);
jPanel8Layout.setVerticalGroup(
jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel8Layout.createSequentialGroup()
.addGap(21, 21, 21)
76
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField38,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel41))
.addGap(18, 18, 18)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField39,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel42))
.addGap(18, 18, 18)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING)
.addComponent(jTextField40,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel43))
.addGap(18, 18, 18)
.addGroup(jPanel8Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jTextField41,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel44))
.addContainerGap(30, Short.MAX_VALUE))
77
);
jButton14.setText("Add");
jButton14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton14ActionPerformed(evt);
}
});
jButton15.setText("Close");
jButton15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton15ActionPerformed(evt);
}
});
javax.swing.GroupLayout AddTestLayout = new
javax.swing.GroupLayout(AddTest.getContentPane());
AddTest.getContentPane().setLayout(AddTestLayout);
AddTestLayout.setHorizontalGroup(
AddTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(AddTestLayout.createSequentialGroup()
.addGroup(AddTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addGroup(AddTestLayout.createSequentialGroup()
.addGap(35, 35, 35)
78
.addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(AddTestLayout.createSequentialGroup()
.addContainerGap()
.addComponent(jSeparator7, javax.swing.GroupLayout.DEFAULT_SIZE, 440,
Short.MAX_VALUE))
.addGroup(AddTestLayout.createSequentialGroup()
.addGap(98, 98, 98)
.addComponent(jButton14, javax.swing.GroupLayout.PREFERRED_SIZE, 68,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton15,
javax.swing.GroupLayout.PREFERRED_SIZE, 82,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 178,
Short.MAX_VALUE)))
.addContainerGap())
);
AddTestLayout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new
java.awt.Component[] {jButton14, jButton15});
AddTestLayout.setVerticalGroup(AddTestLayout.createParallelGroup(javax.swing.Grou
pLayout.Alignment.LEADING)
.addGroup(AddTestLayout.createSequentialGroup()
.addGap(66, 66, 66)
79
.addComponent(jPanel8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jSeparator7, javax.swing.GroupLayout.PREFERRED_SIZE,
10, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addGroup(AddTestLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jButton14)
.addComponent(jButton15))
.addContainerGap(94, Short.MAX_VALUE))
);
AddTest.setBounds(330, 0, 460, 480);
jDesktopPane1.add(AddTest, javax.swing.JLayeredPane.DEFAULT_LAYER);
jInternalFrame1.setClosable(true);
jInternalFrame1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_C
LOSE);
jInternalFrame1.setTitle("Bill Detail");
jLabel45.setText("Enter Patient ID : ");
jButton16.setText("Search...");
jButton16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton16ActionPerformed(evt);
}
80
});
javax.swing.GroupLayout jInternalFrame1Layout = new
javax.swing.GroupLayout(jInternalFrame1.getContentPane());
jInternalFrame1.getContentPane().setLayout(jInternalFrame1Layout);
jInternalFrame1Layout.setHorizontalGroup(
jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jInternalFrame1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel45)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jTextField42, javax.swing.GroupLayout.PREFERRED_SIZE,
103, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jButton16)
.addContainerGap(33, Short.MAX_VALUE))
);
jInternalFrame1Layout.setVerticalGroup(
jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jInternalFrame1Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jInternalFrame1Layout.createParallelGroup(javax.swing.GroupLayout.Alignm
ent.BASELINE)
.addComponent(jLabel45)
81
.addComponent(jTextField42, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jButton16))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);
jInternalFrame1.setBounds(100, 20, 330, 80);
jDesktopPane1.add(jInternalFrame1,
javax.swing.JLayeredPane.DEFAULT_LAYER);
UpdateRoom.setClosable(true);
UpdateRoom.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLO
SE);
UpdateRoom.setTitle("Update Room Information");
jPanel9.setBorder(javax.swing.BorderFactory.createTitledBorder("Update Room"));
jLabel46.setText("Room Number");
javax.swing.GroupLayout jPanel9Layout = new javax.swing.GroupLayout(jPanel9);
jPanel9.setLayout(jPanel9Layout);
jPanel9Layout.setHorizontalGroup(
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap(20, Short.MAX_VALUE)
.addComponent(jLabel46)
.addGap(41, 41, 41)
.addComponent(jTextField43, javax.swing.GroupLayout.PREFERRED_SIZE,
89, javax.swing.GroupLayout.PREFERRED_SIZE))
);
jPanel9Layout.setVerticalGroup(
82
jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel9Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel9Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BAS
ELINE)
.addComponent(jLabel46, javax.swing.GroupLayout.PREFERRED_SIZE,
25, javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jTextField43,
javax.swing.GroupLayout.PREFERRED_SIZE, 23,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(33, Short.MAX_VALUE))
);
jSeparator9.setOrientation(javax.swing.SwingConstants.VERTICAL);
jButton19.setText("Search");
jButton19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton19ActionPerformed(evt);
}
});
jButton20.setText("Close ");
jButton20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton20ActionPerformed(evt);
}
});
83
jPanel10.setBorder(javax.swing.BorderFactory.createTitledBorder("Detail"));
jLabel47.setText("Class");
jLabel48.setText("Charge");
javax.swing.GroupLayout jPanel10Layout = new javax.swing.GroupLayout(jPanel10);
jPanel10.setLayout(jPanel10Layout);
jPanel10Layout.setHorizontalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addGap(30, 30, 30)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING)
.addComponent(jLabel47)
.addComponent(jLabel48))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 68,
Short.MAX_VALUE)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LE
ADING, false)
.addComponent(jTextField45)
.addComponent(jTextField44, javax.swing.GroupLayout.DEFAULT_SIZE, 78,
Short.MAX_VALUE))
.addContainerGap())
);
jPanel10Layout.setVerticalGroup(
jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel10Layout.createSequentialGroup()
.addContainerGap()
84
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jTextField44,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel47))
.addGap(18, 18, 18)
.addGroup(jPanel10Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BA
SELINE)
.addComponent(jTextField45,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel48))
.addContainerGap(42, Short.MAX_VALUE))
);
jSeparator10.setOrientation(javax.swing.SwingConstants.VERTICAL);
jButton21.setText("Update");
jButton21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton21ActionPerformed(evt);
}
});
javax.swing.GroupLayout UpdateRoomLayout = new
javax.swing.GroupLayout(UpdateRoom.getContentPane());
UpdateRoom.getContentPane().setLayout(UpdateRoomLayout);
UpdateRoomLayout.setHorizontalGroup(
85
UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.LEADING)
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addGap(22, 22, 22)
.addComponent(jPanel9, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(18, 18, 18)
.addComponent(jSeparator9,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.LEADING, false)
.addComponent(jButton20,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(jButton19,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addComponent(jSeparator8,
javax.swing.GroupLayout.Alignment.TRAILING,
javax.swing.GroupLayout.DEFAULT_SIZE, 380, Short.MAX_VALUE)
.addGroup(UpdateRoomLayout.createSequentialGroup()
86
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jSeparator10,
javax.swing.GroupLayout.PREFERRED_SIZE, 11,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jButton21)))
.addContainerGap())
);
UpdateRoomLayout.setVerticalGroup(
UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G)
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.LEADING)
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addContainerGap()
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.TRAILING)
.addComponent(jPanel9,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
87
.addComponent(jSeparator9,
javax.swing.GroupLayout.PREFERRED_SIZE, 110,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addGap(35, 35, 35)
.addComponent(jButton19)
.addGap(18, 18, 18)
.addComponent(jButton20)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jSeparator8, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.LEADING)
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addGroup(UpdateRoomLayout.createParallelGroup(javax.swing.GroupLayout.Alignmen
t.LEADING, false)
.addComponent(jSeparator10)
.addComponent(jPanel10, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
.addGroup(UpdateRoomLayout.createSequentialGroup()
.addGap(62, 62, 62)
.addComponent(jButton21)))
.addContainerGap(24, Short.MAX_VALUE))
);
UpdateRoom.setBounds(250, 50, 400, 340);
88
jDesktopPane1.add(UpdateRoom, javax.swing.JLayeredPane.DEFAULT_LAYER);
getContentPane().add(jDesktopPane1, java.awt.BorderLayout.CENTER);
addMenu.setText("Add");
addMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addMenuActionPerformed(evt);
}
});
addDoc.setText("Doctor");
addMenu.add(addDoc);
addPatient.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addPatientActionPerformed(evt);
}
});
addMenu.add(addPatient);
addRoom.setText("Room");
addRoom.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
addRoomActionPerformed(evt);
}
});
addMenu.add(addRoom);
addTest.setText("Test");
addTest.addActionListener(new java.awt.event.ActionListener() {
89
updateMenu.add(updatePatient);
updateRoom.setText("Room");
updateRoom.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
updateRoomActionPerformed(evt);
}
});
updateMenu.add(updateRoom);
updateMenu.add(updateTest);
jMenuBar1.add(updateMenu);
billMenu.setText("Bill");
newBillMenu.setText("Generate");
newBillMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
newBillMenuActionPerformed(evt);
}
});
billMenu.add(newBillMenu);
jMenuBar1.add(billMenu);
setJMenuBar(jMenuBar1);
pack();
}// </editor-fold>
private void newDoctorMouseEntered(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Enter Record of New Doctor");
}
91
}
private void jTextField12ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void newDoctorActionPerformed(java.awt.event.ActionEvent evt) {
newDocWindow.setVisible(true);
}
private void newPatientActionPerformed(java.awt.event.ActionEvent evt) {
newPatientRec.setVisible(true);
// TODO add your handling code here:
}
private void newRoomActionPerformed(java.awt.event.ActionEvent evt) {
newRoomInfo.setVisible(true);
// TODO add your handling code here:
}
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
db.pstmt = db.con.prepareStatement("INSERT INTO
doctor_info(doc_id,doc_name,degree,specilization,d_o_j,fee,addr,cont)VALUES
(?,?,?,?,?,?,?,?)");
db.pstmt.setString(1, jTextField1.getText());
db.pstmt.setString(2, jTextField2.getText());
db.pstmt.setString(3, jTextField3.getText());
db.pstmt.setString(4, jTextField4.getText());
db.pstmt.setString(5, jTextField5.getText());
93
//
db.pstmt.setString(6, jTextField6.getText());
db.pstmt.setString(6, jTextField7.getText());
db.pstmt.setString(7, jTextField8.getText());
db.pstmt.setString(8, jTextField20.getText());
int i = db.pstmt.executeUpdate();
if (i > 0) {
JOptionPane.showMessageDialog(null, " Record Inserted Successfully !");
}
} catch (Exception e) {
System.out.println(e);
}
// TODO add your handling code here:
}
if (db.rst.next()) {
jPanel4.setVisible(true);
jTextField22.setText(db.rst.getString(1));
jTextField23.setText(db.rst.getString(2));
jTextField24.setText(db.rst.getString(3));
jTextField25.setText(db.rst.getString(4));
jTextField26.setText(db.rst.getString(5));
jTextField27.setText(db.rst.getString(6));
jTextField28.setText(db.rst.getString(7));
jTextField29.setText(db.rst.getString(8));
} else {
JOptionPane.showMessageDialog(null, "Sorry ! Record Not Found ");
}
} catch (Exception e) {
System.out.println(e);
}
}
private void updateDocActionPerformed(java.awt.event.ActionEvent evt) {
jPanel4.setVisible(false);
updateDocWindow.setVisible(true);
}
private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
95
db.pstmt.setString(6, jTextField6.getText());
db.pstmt.setString(6, jTextField14.getText());
db.pstmt.setString(7, jTextField15.getText());
db.pstmt.setString(8, jTextArea1.getText());
int i = db.pstmt.executeUpdate();
if (i > 0) {
JOptionPane.showMessageDialog(null, " Record Inserted Successfully !");
}
} catch (Exception e) {
System.out.println(e);
}
// TODO add your handling code here:
}
private void jButton5ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
97
} catch (Exception e) {
System.out.println(e);
}
// TODO add your handling code here:
}
try {
DBCon db = new DBCon();
db.stmt = db.con.createStatement();
98
db.rst = db.stmt.executeQuery("SELECT
p_name,gardian_name,gardian_no,doc_id,room_no,date_admit,date_leave,diogonosis
FROM patient_info WHERE p_id='" + (String) jTextField30.getText() + "'");
if (db.rst.next()) {
jPanel4.setVisible(true);
jTextField31.setText(db.rst.getString(1));
jTextField32.setText(db.rst.getString(2));
jTextField33.setText(db.rst.getString(3));
jTextField34.setText(db.rst.getString(4));
jTextField35.setText(db.rst.getString(5));
jTextField36.setText(db.rst.getString(6));
jTextField37.setText(db.rst.getString(7));
jTextArea2.setText(db.rst.getString(8));
jPanel6.setVisible(true);
jPanel7.setVisible(true);
} else {
JOptionPane.showMessageDialog(null, "Sorry ! Record Not Found ");
}
} catch (Exception e) {
System.out.println(e);
}
// TODO add your handling code here:
}
private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
99
update_patient.setVisible(true);
100
} catch (Exception e) {
System.out.println(e);
}
// TODO add your handling code here:
}
AddTest.setVisible(true);
101
day = db.rst.getString(4);
System.out.println(day)
;
docId = db.rst.getString(5);
roomNo = db.rst.getString(6);
//
jEditorPane11 = new javax.swing.JEditorPane(
"text/html", "<html><body><br>"
+ "<center>"
104
printme1.setText("print");
System.out.println("sahjdjksahd");
jEditorPane11.setContentType("text/html");
jEditorPane11.setEditable(false);
jScrollPane21.setViewportView(jEditorPane11);
}
} catch (Exception e) {
System.out.println(e);
}
}
private void newBillMenuActionPerformed(java.awt.event.ActionEvent evt) {
jInternalFrame1.setVisible(true);
}
private void newBillActionPerformed(java.awt.event.ActionEvent evt) {
jInternalFrame1.setVisible(true);
}
private void jButton6ActionPerformed(java.awt.event.ActionEvent evt) {
newRoomInfo.setVisible(false);
// TODO add your handling code here:
}
private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {
newDocWindow.setVisible(true);
// TODO add your handling code here:
}
private void jButton4ActionPerformed(java.awt.event.ActionEvent evt) {
newPatientRec.setVisible(false);
// TODO add your handling code here:
}
private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {
update_patient.setVisible(true);
106
db.stmt = db.con.createStatement();
db.rst = db.stmt.executeQuery("SELECT class,charge FROM room_info WHERE
room_no='" + (String) jTextField43.getText() + "'");
if (db.rst.next()) {
//jPanel4.setVisible(true);
jTextField44.setText(db.rst.getString(1));
jTextField45.setText(db.rst.getString(2));
// jPanel6.setVisible(true);
//jPanel7.setVisible(true);
} else {
JOptionPane.showMessageDialog(null, "Sorry ! Record Not Found ");
}
} catch (Exception e)
{
System.out.println(e);
}
// TODO add your handling code here:
}
private void jButton21ActionPerformed(java.awt.event.ActionEvent evt)
{
try {
DBCon db = new DBCon();
db.pstmt = db.con.prepareStatement("UPDATE room_info SET class =?, charge
=? WHERE room_no =?");
db.pstmt.setString(1, jTextField44.getText());
db.pstmt.setString(2, jTextField45.getText());
db.pstmt.setString(3, jTextField43.getText());
108
int i = db.pstmt.executeUpdate();
if (i > 0)
{
JOptionPane.showMessageDialog(null, " Record Updated Successfully !");
}
}
catch (Exception e)
{
System.out.println(e);
}
// TODO add your handling code here:
}
private void updateRoomActionPerformed(java.awt.event.ActionEvent evt)
{
UpdateRoom.setVisible(true);
// TODO add your handling code here:
}
private void jButton22ActionPerformed(java.awt.event.ActionEvent evt)
{
UpdateRoom.setVisible(true);
// TODO add your handling code here:
}
private void jButton20ActionPerformed(java.awt.event.ActionEvent evt)
{
UpdateRoom.setVisible(false);
// TODO add your handling code here:
}
109
110
10.Testing
Software testing is a critical element of software quality assurance and
represent the ultimate review of specification, design, coding. The purpose of
product testing is to verify and validate the various work products viz. units,
integrated unit, final product to ensure that they meet their requirements.
5.1 Testing Objectives:-Basically, testing is done for the following
purposes:
1. Testing is a process of executing a program with the intend of finding
an error.
2. A good test case is one that has a high probability of finding a yet
undiscovered error.
3. A successful test case is one that uncovers a yet undiscovered error.
Our objective is to design test cases that systematically uncover different
classes of errors and do so with a minimum amount of time and effort. This
process has two parts:--
117
5.2 Types of Testing Software:-The main types of software testing are:Component Testing:-Starting from the bottom the first test level is
Component Testing, sometimes called Unit Testing. It involves checking
that each feature specified in the Component Design has been implemented
in the component. In theory an independent tester should do this, but in
practice the developer usually does it, as they are the only people who
understand how a component works. The problem with a component is that it
performs only a small part of the functionality of a system, and it relies on
co-operating with other parts of the system, which may not have been built
yet. To overcome this, the developer either builds, or uses special software to
trick the component into believing it is working in a fully functional system.
Interface Testing:-As the components are constructed and tested they are
then linked together to check if they work with each other. It is fact that two
components that have passed all their tests, when connected to each other
produce one new component full of faults. These tests can be done by
specialists, or by the developers.
Interface testing is not focused on what the components are doing but on how
they communicate with each other, as specified in the System Design. The
system Design defines relationship between components, and this involves
stating:
1). what a component can expect from another component in terms of
services.
2). How these services will be asked for.
3). How they will be given.
4). How to handle non standard conditions, i.e. errors.
118
System Testing:Once the entire system has been built then it has to be
tested against the System Specification to check if it delivers the features
required. It is still developer focused, although specialist developers known
as system testers are normally employed to do it.
In essence System testing is not about checking the individual parts of the
design, but about checking the system as a whole. In effect it is one giant
component.
System testing can involve a number of specialist types of test to see if all the
functional and non-functional requirements have been met. In addition to
functional requirements these may include the following types of testing for
the non-functional requirements:
119
System testing checks that the system that was specified has been delivered.
Acceptance testing checks that the system delivers what was requested. The
customer and not the developer should always do acceptance testing. The
customer knows what is required from the system to achieve value in the
business and is the only person qualified to make that judgment. The forms of
tests may follow those in system testing, but at all times they are informed by
the
business
needs.
Release Testing:-Even if a system meets all its requirements, there is still a
case to be answered that it will benefit the business. Release testing is about
seeing if the new or changed system will work in the existing business
environment. Mainly this means the technical environment, and checks
concerns such as:
These tests are usually run by the computer operations team in a business. It
would appear obvious that the operation team should be involved right from
the start of a project to give their opinion of a new system may have.
Test Case Design:-Test case design focuses on a set of techniques for the
creation of test cases that meet overall testing objectives. In test case design
phase, the engineer creates a series of test cases that are intended to
demolish the software that has been built.
120
1). Knowing the specific function that a product has been designed to
perform, tests can be conducted that demonstrate each function is fully
operational, at the same time searching for errors in each function. This
approach is known as Black Box Testing.
Black box testing is designed to uncover errors. They are used to demonstrate
that software functions are operations; that input is properly accepted and
output is correctly produced; and that integrity of external information is
maintained. A black box examines some fundamental aspects of a system
with little regard for the internal logical structure of the software.
121
5.3.1 Functional Testing:-According to the need of the software, the following testing plans have been
planed on some amount on test data. Hypothetical data is used to test the
system before implementation. Some temporary user ids are created to check
the validity and authenticity of the users. Various constraints are checked for
their working. A demo case will be taken with dummy data for new users.
5.3.2 Security Testing:- User id and password is checked and verified for secure login and
access.
It will be demonstrated that two different login sessions have different
permissions on the menu items. In case a user forgets his password
then administrator has rights to change the password or allocate new
password.
5.3.3 Performance Testing:-Based on the field conditions these testing for fine tuning can be
carried out at a later date.
122
11. LIMITATION OF THE PROJECT:Although, we have made my best efforts to make the software very
much flexible, easy to operate and practical oriented as possible but
limitations cannot be ruled out. Although, the software presents a broad range
of option to its users, some intricate options could not be woven into it, partly
due top lack of sophistication. Paucity of time was also major constraint, so it
was not possible to make the software a full proof and dynamic one; lack of
time also compelled me to take up only a sub system of the application area
as my project work.
Also considerable efforts have been made to make the software easily
operative even by the persons not related to the field of computers but it is
acknowledged that a layman may find it a bit problematic at the first run.
At very start of execution, work could be hampered due to lack of Prior
information about report generation. But for these limitations, the software
presents an interesting and flexible solution for running the Auto Soft as
our project.
123
124
13.-BIBLIOGRAPHY
1. Schildt. Complete Reference: Java J2se 5th Edition. TATA McGraw Hill
Publication.
125