Hospital Report
-
Upload
pintu-verma -
Category
Documents
-
view
7 -
download
0
description
Transcript of Hospital Report
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 1/125
1
MINOR PROJECT REPORT
ON
HOSPITAL MANAGEMENT
SUBMITTED IN PARTIAL FULFILLMENT FOR THE DEGREE
OF
Bachelors’ OF COMPUTER SCIENCE
UNDER THE GUIDANCE OF
Mrs. NIDA KHAN
AND
Mrs. SHEEBA
SUBMITTED TO: SUBMITTED BY:
Mrs. Nida Khan NAME: 1. Noor Khateeb Ali Khan
Mrs. Sheeba (1200112154)
INTEGRAL UNIVERSITY, 2.Shaheen Ishrat
LUCKNOW (1200112196)
COURSE: B.TECH in COMPUTER SC.
BATCH/GROUP/YEAR: C.S.E-4 /1/3
Session: 2015-2016
INTEGRAL UNIVERSITY
LUCKNOW
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 2/125
2
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.
I am very grateful to our Lecturer Mrs.Sheeba for giving me an opportunity to work on
this project and showing the confidence in me for the proper execution of the project.
I would also like to thank Mrs.Kavita Agarwal (H.O.D of Computer Science
Department),
who provide us the mental support and motivated us at every walk of our project.
1.) NOOR KHATEEB ALI KHAN
2.) ShAHEENB ISHRAT
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 3/125
3
index
4. Preface5. 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
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 4/125
4
Prefrence
Hospital Management is the interface that allows the administrator to review
and update patient‟s information. This includes the ability to subscribe
services, appointing medical specialist, including those for medication,
specific procedures, dietican and physiotherapist.
With the Hospital Management system:
Doctors, dietician, physiotherapist, pharmacist can be appointed.
Patient can be recommended for alternative medicines.
User can take appointment from doctor as suitable.
Hospital Management system would create a user friendly interface where
any user would able to use this system with basic computer skills.
Appropriate checks have been applied to ensure that whenever incorrect data
is entered suitable warnings are shown to thee data entry operator. The
system is developed using JAVA SCRIPT programming languages.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 5/125
5
Objective & Scope
The project „Hospital Management‟ is a system based system design to helpthe medical specialist and the patients to register themselves and use the
service available. The main objective of the system is to provide and easy to
use and robust system to medical specialize and common man where the
medical specialist available from all streams can provide tips and cure. The
patients can take appointment for doctors, dietician, physiotherapist,
medicines and can take subscription.
The main objectives of this system are:
To manage medical specialist information and details.
To provide interaction with medical specialist.
Subscription of medical services.
Recommendations for alternative medicines in all medical streams.
To facilitate the Management to take care of the services provided to
the users.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 6/125
6
Software & hardware Requirement
Software Requirement:
Client
Operating system : Any O.S. Windows/Linux.
Developer
Database : Sql 2007
Operating System : window XP
Scripting language : JavaScript
Hardware Specification:
Client:
Processor : P3 866 MHz or later
RAM : 512 MB
HDD : 40GB
Display : 1024 x 768 High color-32-bits Software
Developer:
Processor : P3 866 MHz or later
RAM : 512 MB
HDD : 40GB
Display : 1024 x 768 High color-32-bits Software
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 7/125
7
4.3 Feasibility Study
All projects are feasible given unlimited resources and infinite time!
Unfortunately, the development of computer based system is more likely to be plagued by
a scarcity of resources and difficult delivery dates. It is both necessary and prudent to
evaluate the feasibility of the project at the earliest possible time. Months or years of
effort, Money loss and untold professional embarrassment can be averted I few better
understand the project at its study time.
This type of study determines if an application can and should be developed. Once it
has been determining that, application is feasible. After that analyst can go ahead and
prepares the project specification, which finalizes project requirements. Feasibility studies
are undertaken within tight time constraints.
The developed system is started after considering the main three types of feasibilities
that are discussed below :-
Type of project: Demo
My role in the project:
The project having three parts designing, coding, analysis and testing.
We have doing designing and coding.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 8/125
8
Work done so far:
We have completed 50% of designing part and 40% of coding part of the
project.
Modules
Administrator
Medical specialist
Medicine management
Subscription
Registration
Data Flow Diagram(DFD)
Get information of Doctors Take fees
Conformation Patient report
Take appointment Medicine
Feedback
Recommendation Take Doc
Information
Verify Doc info
Provide info of patient Update data
Patient
Medicine management
Doctor
Administrator
Hospital
management
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 9/125
9
ER Diagram
Patient
Pay
Take
P.ID
P.name
P.email
Configurat
Fees
Advice
Subscri tion
Appointment
Take
Submit
Give
Doctor
D.ID
D.nam
D.Em
Medicine info
Name
P.adderss
Quantity
Submit
Verify
Administrator
Medic Types
Medic name
D ID’s
D Name’s
D Email’s
D.address
Take
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 10/125
10
Table Description
Patient Table
s.no Field name Data Type description
1 P.id Varchar Unique Id of each
Patient
2 P.Name Varchar Name of Patient
3 P.Address Varchar Address of Patient
4 P.Email Varchar E.mail of Patient5 P.Appointment Date Appointment Date
Doctor table
s.no Field name Data Type description
1 D.id Varchar Unique Id of each
Doctor
2 Doctor name Varchar Name of Doctor
3 Doctor address Varchar Address of Doctor
4 Doctor E.mail Varchar E.mail of Doctor5 Doctor Specialization Varchar Specialization
Medicine Table
s.no Field name Data Type description
1 Medicine Name Varchar Name of medicine
2 Medicine
Configuration
Varchar Configuration of
Medicine
3 Medicine Quantity Integer Quantity of
medicine
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 11/125
11
Screens
LoginWindow
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 12/125
12
MainWindow
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 13/125
13
AddNewDoctor
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 14/125
14
AddNewRoom
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 15/125
15
AddTest
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 16/125
16
AddDoctorDetail
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 17/125
17
AddPatientDetail
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 18/125
18
UpdateRoomInformation
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 19/125
19
BillDetail
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 20/125
20
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 {
=
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 21/125
21
private JInternalFrame generateBill1;
private JButton printme1;
private JScrollPane jScrollPane21;
private JEditorPane jEditorPane11;
/** Creates new form MainFrameWindow */
public MainFrameWindow() {
initComponents();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the Form Editor.
*/
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {
statusToolBar = new javax.swing.JToolBar();
jLabel1 = new javax.swing.JLabel();
standardToolBar = new javax.swing.JToolBar();
newDoctor = new javax.swing.JButton();
newPatient = new javax.swing.JButton();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 22/125
22
newRoom = new javax.swing.JButton();
newBill = new javax.swing.JButton();
jButton17 = new javax.swing.JButton();
jButton18 = new javax.swing.JButton();
jButton22 = new javax.swing.JButton();
jButton23 = new javax.swing.JButton();
jDesktopPane1 = new javax.swing.JDesktopPane();
newDocWindow = new javax.swing.JInternalFrame();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jTextField2 = new javax.swing.JTextField();
jTextField3 = new javax.swing.JTextField();
jTextField4 = new javax.swing.JTextField();
jTextField5 = new javax.swing.JTextField();
jTextField6 = new javax.swing.JTextField();
jTextField7 = new javax.swing.JTextField();
jTextField8 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 23/125
23
jTextField1 = new javax.swing.JTextField();
jLabel22 = new javax.swing.JLabel();
jTextField20 = new javax.swing.JTextField();
newRoomInfo = new javax.swing.JInternalFrame();
jPanel3 = new javax.swing.JPanel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jTextField17 = new javax.swing.JTextField();
jTextField18 = new javax.swing.JTextField();
jTextField19 = new javax.swing.JTextField();
jSeparator2 = new javax.swing.JSeparator();
jButton5 = new javax.swing.JButton();
jButton6 = new javax.swing.JButton();
jSeparator3 = new javax.swing.JSeparator();
newPatientRec = new javax.swing.JInternalFrame();
jPanel1 = new javax.swing.JPanel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jTextField9 = new javax.swing.JTextField();
jTextField10 = new javax.swing.JTextField();
jTextField11 = new javax.swing.JTextField();
jTextField12 = new javax.swing.JTextField();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 24/125
24
jSeparator1 = new javax.swing.JSeparator();
jButton3 = new javax.swing.JButton();
jButton4 = new javax.swing.JButton();
jPanel2 = new javax.swing.JPanel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jTextField13 = new javax.swing.JTextField();
jTextField14 = new javax.swing.JTextField();
jTextField15 = new javax.swing.JTextField();
jTextField16 = new javax.swing.JTextField();
jLabel18 = new javax.swing.JLabel();
jScrollPane1 = new javax.swing.JScrollPane();
jTextArea1 = new javax.swing.JTextArea();
updateDocWindow = new javax.swing.JInternalFrame();
jLabel23 = new javax.swing.JLabel();
jTextField21 = new javax.swing.JTextField();
jButton7 = new javax.swing.JButton();
jPanel4 = new javax.swing.JPanel();
jLabel24 = new javax.swing.JLabel();
jLabel25 = new javax.swing.JLabel();
jLabel26 = new javax.swing.JLabel();
jLabel27 = new javax.swing.JLabel();
jLabel28 = new javax.swing.JLabel();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 25/125
25
jLabel29 = new javax.swing.JLabel();
jLabel30 = new javax.swing.JLabel();
jLabel31 = new javax.swing.JLabel();
jTextField22 = new javax.swing.JTextField();
jTextField23 = new javax.swing.JTextField();
jTextField24 = new javax.swing.JTextField();
jTextField25 = new javax.swing.JTextField();
jTextField26 = new javax.swing.JTextField();
jTextField27 = new javax.swing.JTextField();
jTextField28 = new javax.swing.JTextField();
jTextField29 = new javax.swing.JTextField();
jSeparator4 = new javax.swing.JSeparator();
jButton8 = new javax.swing.JButton();
jButton9 = new javax.swing.JButton();
update_patient = new javax.swing.JInternalFrame();
jPanel5 = new javax.swing.JPanel();
jLabel32 = new javax.swing.JLabel();
jTextField30 = new javax.swing.JTextField();
jSeparator5 = new javax.swing.JSeparator();
jPanel6 = new javax.swing.JPanel();
jLabel33 = new javax.swing.JLabel();
jLabel34 = new javax.swing.JLabel();
jLabel35 = new javax.swing.JLabel();
jLabel36 = new javax.swing.JLabel();
jLabel37 = new javax.swing.JLabel();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 26/125
26
jLabel38 = new javax.swing.JLabel();
jLabel39 = new javax.swing.JLabel();
jLabel40 = new javax.swing.JLabel();
jTextField31 = new javax.swing.JTextField();
jTextField32 = new javax.swing.JTextField();
jTextField33 = new javax.swing.JTextField();
jTextField34 = new javax.swing.JTextField();
jTextField35 = new javax.swing.JTextField();
jTextField36 = new javax.swing.JTextField();
jTextField37 = new javax.swing.JTextField();
jScrollPane2 = new javax.swing.JScrollPane();
jTextArea2 = new javax.swing.JTextArea();
jButton10 = new javax.swing.JButton();
jSeparator6 = new javax.swing.JSeparator();
jPanel7 = new javax.swing.JPanel();
jButton11 = new javax.swing.JButton();
jButton12 = new javax.swing.JButton();
jButton13 = new javax.swing.JButton();
AddTest = new javax.swing.JInternalFrame();
jPanel8 = new javax.swing.JPanel();
jTextField38 = new javax.swing.JTextField();
jTextField39 = new javax.swing.JTextField();
jTextField40 = new javax.swing.JTextField();
jTextField41 = new javax.swing.JTextField();
jLabel41 = new javax.swing.JLabel();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 27/125
27
jLabel42 = new javax.swing.JLabel();
jLabel43 = new javax.swing.JLabel();
jLabel44 = new javax.swing.JLabel();
jSeparator7 = new javax.swing.JSeparator();
jButton14 = new javax.swing.JButton();
jButton15 = new javax.swing.JButton();
jInternalFrame1 = new javax.swing.JInternalFrame();
jLabel45 = new javax.swing.JLabel();
jTextField42 = new javax.swing.JTextField();
jButton16 = new javax.swing.JButton();
UpdateRoom = new javax.swing.JInternalFrame();
jPanel9 = new javax.swing.JPanel();
jLabel46 = new javax.swing.JLabel();
jTextField43 = new javax.swing.JTextField();
jSeparator8 = new javax.swing.JSeparator();
jSeparator9 = new javax.swing.JSeparator();
jButton19 = new javax.swing.JButton();
jButton20 = new javax.swing.JButton();
jPanel10 = new javax.swing.JPanel();
jLabel47 = new javax.swing.JLabel();
jLabel48 = new javax.swing.JLabel();
jTextField44 = new javax.swing.JTextField();
jTextField45 = new javax.swing.JTextField();
jSeparator10 = new javax.swing.JSeparator();
jButton21 = new javax.swing.JButton();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 28/125
28
jMenuBar1 = new javax.swing.JMenuBar();
addMenu = new javax.swing.JMenu();
addDoc = new javax.swing.JMenuItem();
addPatient = new javax.swing.JMenuItem();
addRoom = new javax.swing.JMenuItem();
addTest = new javax.swing.JMenuItem();
updateMenu = new javax.swing.JMenu();
updateDoc = new javax.swing.JMenuItem();
updatePatient = new javax.swing.JMenuItem();
updateRoom = new javax.swing.JMenuItem();
updateTest = new javax.swing.JMenuItem();
billMenu = new javax.swing.JMenu();
newBillMenu = new javax.swing.JMenuItem();
statusToolBar.setFloatable(false);
statusToolBar.setRollover(true);
statusToolBar.setPreferredSize(new java.awt.Dimension(100, 20));
jLabel1.setFont(new java.awt.Font("Tahoma", 0, 10));
jLabel1.setText(" Hospital Managment System");
statusToolBar.add(jLabel1);
setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setTitle("Hospital Management System");
setLocationByPlatform(true);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 29/125
29
setMinimumSize(new java.awt.Dimension(400, 300));
setName("ManeFrameFrom"); // NOI18N
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);
}
});
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 30/125
30
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);
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 31/125
31
});
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);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 32/125
32
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);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 33/125
33
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) {
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 34/125
34
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());
jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 12));
jLabel2.setText("Doctar ID");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 35/125
35
newDocWindow.getContentPane().add(jLabel2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(24, 31, 60, 20));
jLabel3.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel3.setText("Name");
newDocWindow.getContentPane().add(jLabel3, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 80, 150, -1));
jLabel4.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel4.setText("Degree");
newDocWindow.getContentPane().add(jLabel4, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 140, 120, -1));
jLabel5.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel5.setText("Specilization");
newDocWindow.getContentPane().add(jLabel5, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 200, 140, 20));
jLabel6.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel6.setText("Date of Join");
newDocWindow.getContentPane().add(jLabel6, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 270, -1, -1));
jLabel7.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel7.setText("Date of Leave");
newDocWindow.getContentPane().add(jLabel7, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 340, 127, -1));
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 36/125
36
jLabel8.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel8.setText("Address");
newDocWindow.getContentPane().add(jLabel8, new
org.netbeans.lib.awtextra.AbsoluteConstraints(20, 470, 117, -1));
jLabel9.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel9.setText("Feee");
newDocWindow.getContentPane().add(jLabel9, new
org.netbeans.lib.awtextra.AbsoluteConstraints(30, 410, 127, -1));
newDocWindow.getContentPane().add(jTextField2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 80, 210, -1));
newDocWindow.getContentPane().add(jTextField3, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 140, 210, -1));
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));
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 37/125
37
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));
jButton1.setFont(new java.awt.Font("Tahoma", 0, 12));
jButton1.setText("ADD ");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
newDocWindow.getContentPane().add(jButton1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(90, 590, 83, -1));
jButton2.setFont(new java.awt.Font("Tahoma", 0, 12));
jButton2.setText("Close");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
newDocWindow.getContentPane().add(jButton2, new
org.netbeans.lib.awtextra.AbsoluteConstraints(230, 590, 98, -1));
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 38/125
38
jTextField1.setFont(new java.awt.Font("Tahoma", 0, 12));
newDocWindow.getContentPane().add(jTextField1, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 30, 210, -1));
jLabel22.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel22.setText("Contact Number");
newDocWindow.getContentPane().add(jLabel22, new
org.netbeans.lib.awtextra.AbsoluteConstraints(20, 530, 100, 30));
jTextField20.setText(" ");
newDocWindow.getContentPane().add(jTextField20, new
org.netbeans.lib.awtextra.AbsoluteConstraints(200, 530, 210, 20));
newDocWindow.setBounds(350, 10, 450, 670);
jDesktopPane1.add(newDocWindow,
javax.swing.JLayeredPane.DEFAULT_LAYER);
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.setFont(new java.awt.Font("Tahoma", 1, 12));
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 39/125
39
jLabel19.setText("Romm no");
jLabel20.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel20.setText("Class");
jLabel21.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel21.setText("Charge");
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);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 40/125
40
}
});
javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(
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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 41/125
41
.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(
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 42/125
42
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 43/125
43
.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())
);
javax.swing.GroupLayout newRoomInfoLayout = new
javax.swing.GroupLayout(newRoomInfo.getContentPane());
newRoomInfo.getContentPane().setLayout(newRoomInfoLayout);
newRoomInfoLayout.setHorizontalGroup(
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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 44/125
44
);
newRoomInfoLayout.setVerticalGroup(
newRoomInfoLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(newRoomInfoLayout.createSequentialGroup()
.addGap(37, 37, 37)
.addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, 407,
Short.MAX_VALUE)
.addContainerGap())
);
newRoomInfo.setBounds(250, 10, 430, 490);
jDesktopPane1.add(newRoomInfo,
javax.swing.JLayeredPane.DEFAULT_LAYER);
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));
jLabel10.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel10.setText("Patient Id");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 45/125
45
jLabel11.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel11.setText("Patient Name");
jLabel12.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel12.setText("Gardian Name");
jLabel13.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel13.setText("Gardian No.");
jTextField12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jTextField12ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TR
AILING, false)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 46/125
46
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 47/125
47
.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.BASELINE)
.addComponent(jLabel13)
.addComponent(jTextField12,
javax.swing.GroupLayout.PREFERRED_SIZE, 20,
javax.swing.GroupLayout.PREFERRED_SIZE))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 48/125
48
.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));
jLabel14.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel14.setText("Doctar Id");
jLabel15.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel15.setText("Room No.");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 49/125
49
jLabel16.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel16.setText("Date of Admit");
jLabel17.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel17.setText("Date of Leave");
jTextField16.setText(" ");
jLabel18.setFont(new java.awt.Font("Tahoma", 1, 12));
jLabel18.setText("Diogonosis");
jTextArea1.setColumns(20);
jTextArea1.setRows(5);
jScrollPane1.setViewportView(jTextArea1);
javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel2Layout.createSequentialGroup()
.addGap(64, 64, 64)
.addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEA
DING)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 50/125
50
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 51/125
51
.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.BASELINE)
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 52/125
52
.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())
);
javax.swing.GroupLayout newPatientRecLayout = new
javax.swing.GroupLayout(newPatientRec.getContentPane());
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 53/125
53
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())
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 54/125
54
);
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))
);
newPatientRec.setBounds(300, 10, 460, 660);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 55/125
55
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));
jLabel23.setText("Enter Doctor ID : ");
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 : ");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 56/125
56
jLabel26.setText("Specilization : ");
jLabel27.setText("Date of Joining : ");
jLabel28.setText("Date of Leave : ");
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);
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 57/125
57
});
jButton9.setText("Close");
jButton9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton9ActionPerformed(evt);
}
});
javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 58/125
58
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 59/125
59
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 60/125
60
.addGroup(jPanel4Layout.createSequentialGroup()
.addContainerGap()
.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 61/125
61
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 62/125
62
.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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 63/125
63
);
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 64/125
64
.addGroup(updateDocWindowLayout.createSequentialGroup()
.addContainerGap()
.addGroup(updateDocWindowLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.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
jLabel32.setText("Enter Patient Id ");
javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 65/125
65
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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 66/125
66
.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);
javax.swing.GroupLayout jPanel6Layout = new javax.swing.GroupLayout(jPanel6);
jPanel6.setLayout(jPanel6Layout);
jPanel6Layout.setHorizontalGroup(
jPanel6Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel6Layout.createSequentialGroup()
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 67/125
67
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 68/125
68
.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,
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 69/125
69
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 70/125
70
.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))
);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 71/125
71
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 72/125
72
.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(
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 73/125
73
update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(update_patientLayout.createSequentialGroup()
.addGroup(update_patientLayout.createParallelGroup(javax.swing.GroupLayout.Alignment.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 74/125
74
.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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 75/125
75
);
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 76/125
76
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 77/125
77
.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))
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 78/125
78
);
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 79/125
79
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 80/125
80
.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);
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 81/125
81
});
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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 82/125
82
.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(
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 83/125
83
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);
}
});
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 84/125
84
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()
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 85/125
85
.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(
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 86/125
86
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()
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 87/125
87
.addGap(25, 25, 25)
.addComponent(jPanel10, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.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)
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 88/125
88
.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);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 89/125
89
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() {
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 90/125
90
public void actionPerformed(java.awt.event.ActionEvent evt) {
addTestActionPerformed(evt);
}
});
addMenu.add(addTest);
jMenuBar1.add(addMenu);
updateMenu.setText("Update");
updateMenu.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
updateMenuActionPerformed(evt);
}
});
updateDoc.setText("Doctor");
updateDoc.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
updateDocActionPerformed(evt);
}
});
updateMenu.add(updateDoc);
updatePatient.setText("Patient");
updatePatient.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
updatePatientActionPerformed(evt);
}
});
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 91/125
91
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");
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 92/125
92
private void newDoctorMouseReleased(java.awt.event.MouseEvent evt) {
}
private void newDoctorMouseExited(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Hospital Management System");
}
private void newPatientMouseEntered(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Enter Record of New Patient ");
}
private void newPatientMouseExited(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Hospital Management System");
}
private void newRoomMouseEntered(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Enter Record of New Room");
}
private void newRoomMouseExited(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Hospital Management System");
}
private void newBillMouseEntered(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Create New Bill ");
}
private void newBillMouseExited(java.awt.event.MouseEvent evt) {
jLabel1.setText(" Hospital Management System");
}
private void jTextField4ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 93/125
93
}
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());
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 94/125
94
// 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:
}
private void jTextField24ActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}
private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
db.stmt = db.con.createStatement();
db.rst = db.stmt.executeQuery("select
doc_name,degree,specilization,d_o_j,d_o_l,fee,addr,cont from doctor_info where doc_id
='" + (String) jTextField21.getText() + "'");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 95/125
95
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();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 96/125
96
db.pstmt = db.con.prepareStatement("UPDATE doctor_info SET doc_name = ?,
degree = ?, specilization = ?, d_o_j = ?, d_o_l = ?, fee = ?, addr = ?, cont = ? WHERE
doc_id = ?");
db.pstmt.setString(1, jTextField22.getText());
db.pstmt.setString(2, jTextField23.getText());
db.pstmt.setString(3, jTextField24.getText());
db.pstmt.setString(4, jTextField25.getText());
db.pstmt.setString(5, jTextField26.getText());
db.pstmt.setString(6, jTextField27.getText());
db.pstmt.setString(7, jTextField28.getText());
db.pstmt.setString(8, jTextField29.getText());
db.pstmt.setString(9, jTextField21.getText());
int i = db.pstmt.executeUpdate();
if (i > 0) {
JOptionPane.showMessageDialog(null, " Record Updated Successfully !");
}
} catch (Exception e) {
System.out.println(e);
}
}
private void jButton9ActionPerformed(java.awt.event.ActionEvent evt) {
updateDocWindow.doDefaultCloseAction();
// TODO add your handling code here:
}
private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {
try {
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 97/125
97
DBCon db = new DBCon();
db.pstmt = db.con.prepareStatement("INSERT INTO
patient_info(p_id,p_name,gardian_name,gardian_no,doc_id,room_no,date_admit,diogono
sis)VALUES (?,?,?,?,?,?,?,?)");
db.pstmt.setString(1, jTextField9.getText());
db.pstmt.setString(2, jTextField10.getText());
db.pstmt.setString(3, jTextField11.getText());
db.pstmt.setString(4, jTextField12.getText());
db.pstmt.setString(5, jTextField13.getText());
// 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();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 98/125
98
db.pstmt = db.con.prepareStatement("INSERT INTO
room_info(room_no,class,charge)VALUES(?,?,?)");
db.pstmt.setString(1, jTextField17.getText());
db.pstmt.setString(2, jTextField18.getText());
db.pstmt.setString(3, jTextField19.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 updateMenuActionPerformed(java.awt.event.ActionEvent evt) {
update_patient.setVisible(true);
// TODO add your handling code here:
}
private void jButton10ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
db.stmt = db.con.createStatement();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 99/125
99
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();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 100/125
100
db.pstmt = db.con.prepareStatement("UPDATE patient_info SET p_name
=?,gardian_name =?,gardian_no =?,doc_id =?,room_no =?,date_admit =?,date_leave
=?,diogonosis =?WHERE p_id =?");
db.pstmt.setString(1, jTextField31.getText());
db.pstmt.setString(2, jTextField32.getText());
db.pstmt.setString(3, jTextField33.getText());
db.pstmt.setString(4, jTextField34.getText());
db.pstmt.setString(5, jTextField35.getText());
db.pstmt.setString(6, jTextField36.getText());
db.pstmt.setString(7, jTextField37.getText());
db.pstmt.setString(8, jTextArea2.getText());
db.pstmt.setString(9, jTextField30.getText());
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 updatePatientActionPerformed(java.awt.event.ActionEvent evt) {
jPanel6.setVisible(false);
jPanel7.setVisible(false);
update_patient.setVisible(true);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 101/125
101
// TODO add your handling code here:
}
private void jButton14ActionPerformed(java.awt.event.ActionEvent evt) {
try {
DBCon db = new DBCon();
db.pstmt = db.con.prepareStatement("INSERT INTO
check_up_detail(p_id,doc_id,test,fee)VALUES (?,?,?,?)");
db.pstmt.setString(1, jTextField38.getText());
db.pstmt.setString(2, jTextField39.getText());
db.pstmt.setString(3, jTextField40.getText());
db.pstmt.setString(4, jTextField41.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 addTestActionPerformed(java.awt.event.ActionEvent evt) {
AddTest.setVisible(true);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 102/125
102
// TODO add your handling code here:
}
private void jButton16ActionPerformed(java.awt.event.ActionEvent evt) {
try {
String pName = null;
String admitDate = null;
String leaveDate = null;
String docName = null;
String roomCharge = null;
String checkFee = null;
String docFee = null;
String totalFee = null;
String day = null;
String docId = null;
String roomNo = null;
DBCon db = new DBCon();
db.stmt = db.con.createStatement();
db.rst = db.stmt.executeQuery("SELECT
p_name,date_admit,date_leave,DATEDIFF(date_leave,date_admit),doc_id,room_no
FROM patient_info WHERE p_id='" + (String) jTextField42.getText() + "'");
if (db.rst.next()) {
jInternalFrame1.doDefaultCloseAction();
pName = db.rst.getString(1);
admitDate = db.rst.getString(2);
leaveDate = db.rst.getString(3);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 103/125
103
day = db.rst.getString(4);
System.out.println(day)
; docId = db.rst.getString(5);
roomNo = db.rst.getString(6);
db.rst = db.stmt.executeQuery("SELECT doc_name,fee FROM doctor_info
WHERE doc_id=" + docId + "");
if (db.rst.next()) {
docName = db.rst.getString(1);
docFee = db.rst.getString(2);
}
db.rst = db.stmt.executeQuery("SELECT charge FROM room_info WHERE
room_no=" + roomNo + "");
if (db.rst.next()) {
roomCharge = db.rst.getString(1);
}
db.rst = db.stmt.executeQuery("SELECT SUM(fee) FROM check_up_detail
WHERE p_id='" + (String) jTextField42.getText() + "'");
if (db.rst.next()) {
checkFee = db.rst.getString(1);
}
docFee = String.valueOf(Integer.parseInt(day) * Integer.parseInt(docFee));
roomCharge = String.valueOf(Integer.parseInt(day) *
Integer.parseInt(roomCharge));
totalFee = String.valueOf(Integer.parseInt(docFee) +
Integer.parseInt(roomCharge) + Integer.parseInt(checkFee));
System.out.println("sahjdjksahd");
generateBill1 = new javax.swing.JInternalFrame();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 104/125
104
printme1 = new javax.swing.JButton();
jScrollPane21 = new javax.swing.JScrollPane();
// String imgsrc1 = new
javax.swing.ImageIcon(getClass().getResource("/npi/resources/Bill.jpg")).toString();
//new File("/npi/resources/n30days.png").toString();
//HTMLDocument doc = loader.loadDocument(new
URL("/npi/newhtml.html"));
//
jEditorPane11 = new javax.swing.JEditorPane(
"text/html", "<html><body><br>"
+ "<center>"
+ "<table border='0' cellpadding='0' cellspacing='0' width='80%'><tr><th
colspan='2' width='100%'><big>Bill</big><br><hr width='100%' height='1px'
/></th></tr><tr><td width='50%' align='left'>Patient ID: "+(String)
jTextField42.getText()+"<br>Patient Name : "+pName+"</td><td width='50%' align
='right'>Doctor ID : "+docId+"<br>Doctor Name : "+docName+" </td></tr><tr><tdwidth='100%' colspan='2'><hr width='100%' height='1px' /><br></td></tr><tr><td
width='100%' colspan='2'><table width='100%' cellpadding='0' cellspacing='0'
border='0'><tr><th>Doctor Fee</th><th>Room Charge</th><th>Checkup
Fee</th><th>Total</th></tr><tr><td align='center'>"+docFee+"</td><td
align='center'>"+roomCharge+" </td><td align='center'>"+checkFee+"</td><td
align='center'>"+totalFee+"</td></tr></table></td></tr> </table>"
+ "</center></body></html>");
generateBill1.setClosable(true);generateBill1.setDefaultCloseOperation(javax.swing.WindowConstants.HIDE_ON_CLO
SE);
generateBill1.setTitle("Generate Bill");
generateBill1.setVisible(true);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 105/125
105
printme1.setText("print");
System.out.println("sahjdjksahd");
jEditorPane11.setContentType("text/html");
jEditorPane11.setEditable(false);
jScrollPane21.setViewportView(jEditorPane11);
javax.swing.GroupLayout generateBill1Layout = new
javax.swing.GroupLayout(generateBill1.getContentPane());
generateBill1.getContentPane().setLayout(generateBill1Layout);
generateBill1Layout.setHorizontalGroup(
generateBill1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADIN
G).addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
generateBill1Layout.createSequentialGroup().addContainerGap(312,
Short.MAX_VALUE).addComponent(printme1).addGap(274, 274,
274)).addGroup(generateBill1Layout.createSequentialGroup().addContainerGap().addCo
mponent(jScrollPane21, javax.swing.GroupLayout.PREFERRED_SIZE, 621,
javax.swing.GroupLayout.PREFERRED_SIZE).addContainerGap(javax.swing.GroupLay
out.DEFAULT_SIZE, Short.MAX_VALUE)));
generateBill1Layout.setVerticalGroup(generateBill1Layout.createParallelGroup(javax.sw
ing.GroupLayout.Alignment.LEADING).addGroup(generateBill1Layout.createSequential
Group().addContainerGap().addComponent(jScrollPane21,
javax.swing.GroupLayout.PREFERRED_SIZE, 463,
javax.swing.GroupLayout.PREFERRED_SIZE).addPreferredGap(javax.swing.LayoutSty
le.ComponentPlacement.RELATED).addComponent(printme1).addContainerGap(javax.s
wing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
generateBill1.setBounds(0, 0, 630, 540);
jDesktopPane1.add(generateBill1,
javax.swing.JLayeredPane.DEFAULT_LAYER);
} else {
JOptionPane.showMessageDialog(null, "Sorry ! Record Not Found ");
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 106/125
106
}
} 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);
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 107/125
107
// TODO add your handling code here:
}
private void addMenuActionPerformed(java.awt.event.ActionEvent evt) {
newDocWindow.setVisible(true);
// TODO add your handling code here:
}
private void addPatientActionPerformed(java.awt.event.ActionEvent evt) {
newPatientRec.setVisible(true);
// TODO add your handling code here:
}
private void addRoomActionPerformed(java.awt.event.ActionEvent evt)
{
newRoomInfo.setVisible(true);
// TODO add your handling code here:
}
private void jButton17ActionPerformed(java.awt.event.ActionEvent evt)
{
updateDocWindow.setVisible(true);
// TODO add your handling code here:
}
private void jButton19ActionPerformed(java.awt.event.ActionEvent evt)
{
try {
DBCon db = new DBCon();
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 108/125
108
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());
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 109/125
109
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:
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 110/125
110
private void jButton15ActionPerformed(java.awt.event.ActionEvent evt) {
AddTest.setVisible(true);
// TODO add your handling code here:
} /**
* @param args the command line argument*/
// Variables declaration - do not modify
private javax.swing.JInternalFrame AddTest;
private javax.swing.JInternalFrame UpdateRoom;
private javax.swing.JMenuItem addDoc;
private javax.swing.JMenu addMenu;
private javax.swing.JMenuItem addPatient;
private javax.swing.JMenuItem addRoom;
private javax.swing.JMenuItem addTest;
private javax.swing.JMenu billMenu;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton10;
private javax.swing.JButton jButton11;
private javax.swing.JButton jButton12;
private javax.swing.JButton jButton13;
private javax.swing.JButton jButton14;
private javax.swing.JButton jButton15;
private javax.swing.JButton jButton16;
private javax.swing.JButton jButton17;
private javax.swing.JButton jButton18;
private javax.swing.JButton jButton19;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 111/125
111
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton20;
private javax.swing.JButton jButton21;
private javax.swing.JButton jButton22;
private javax.swing.JButton jButton23;
private javax.swing.JButton jButton3;
private javax.swing.JButton jButton4;
private javax.swing.JButton jButton5;
private javax.swing.JButton jButton6;
private javax.swing.JButton jButton7;
private javax.swing.JButton jButton8;
private javax.swing.JButton jButton9;
private javax.swing.JDesktopPane jDesktopPane1;
private javax.swing.JInternalFrame jInternalFrame1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 112/125
112
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
private javax.swing.JLabel jLabel23;
private javax.swing.JLabel jLabel24;
private javax.swing.JLabel jLabel25;
private javax.swing.JLabel jLabel26;
private javax.swing.JLabel jLabel27;
private javax.swing.JLabel jLabel28;
private javax.swing.JLabel jLabel29;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel30;
private javax.swing.JLabel jLabel31;
private javax.swing.JLabel jLabel32;
private javax.swing.JLabel jLabel33;
private javax.swing.JLabel jLabel34;
private javax.swing.JLabel jLabel35;
private javax.swing.JLabel jLabel36;
private javax.swing.JLabel jLabel37;
private javax.swing.JLabel jLabel38;
private javax.swing.JLabel jLabel39;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel40;
private javax.swing.JLabel jLabel41;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 113/125
113
private javax.swing.JLabel jLabel42;
private javax.swing.JLabel jLabel43;
private javax.swing.JLabel jLabel44;
private javax.swing.JLabel jLabel45;
private javax.swing.JLabel jLabel46;
private javax.swing.JLabel jLabel47;
private javax.swing.JLabel jLabel48;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
private javax.swing.JLabel jLabel8;
private javax.swing.JLabel jLabel9;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel10;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPanel jPanel5;
private javax.swing.JPanel jPanel6;
private javax.swing.JPanel jPanel7;
private javax.swing.JPanel jPanel8;
private javax.swing.JPanel jPanel9;
private javax.swing.JScrollPane jScrollPane1;
private javax.swing.JScrollPane jScrollPane2;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 114/125
114
private javax.swing.JSeparator jSeparator1;
private javax.swing.JSeparator jSeparator10;
private javax.swing.JSeparator jSeparator2;
private javax.swing.JSeparator jSeparator3;
private javax.swing.JSeparator jSeparator4;
private javax.swing.JSeparator jSeparator5;
private javax.swing.JSeparator jSeparator6;
private javax.swing.JSeparator jSeparator7;
private javax.swing.JSeparator jSeparator8;
private javax.swing.JSeparator jSeparator9;
private javax.swing.JTextArea jTextArea1;
private javax.swing.JTextArea jTextArea2;
private javax.swing.JTextField jTextField1;
private javax.swing.JTextField jTextField10;
private javax.swing.JTextField jTextField11;
private javax.swing.JTextField jTextField12;
private javax.swing.JTextField jTextField13;
private javax.swing.JTextField jTextField14;
private javax.swing.JTextField jTextField15;
private javax.swing.JTextField jTextField16;
private javax.swing.JTextField jTextField17;
private javax.swing.JTextField jTextField18;
private javax.swing.JTextField jTextField19;
private javax.swing.JTextField jTextField2;
private javax.swing.JTextField jTextField20;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 115/125
115
private javax.swing.JTextField jTextField21;
private javax.swing.JTextField jTextField22;
private javax.swing.JTextField jTextField23;
private javax.swing.JTextField jTextField24;
private javax.swing.JTextField jTextField25;
private javax.swing.JTextField jTextField26;
private javax.swing.JTextField jTextField27;
private javax.swing.JTextField jTextField28;
private javax.swing.JTextField jTextField29;
private javax.swing.JTextField jTextField3;
private javax.swing.JTextField jTextField30;
private javax.swing.JTextField jTextField31;
private javax.swing.JTextField jTextField32;
private javax.swing.JTextField jTextField33;
private javax.swing.JTextField jTextField34;
private javax.swing.JTextField jTextField35;
private javax.swing.JTextField jTextField36;
private javax.swing.JTextField jTextField37;
private javax.swing.JTextField jTextField38;
private javax.swing.JTextField jTextField39;
private javax.swing.JTextField jTextField4;
private javax.swing.JTextField jTextField40;
private javax.swing.JTextField jTextField41;
private javax.swing.JTextField jTextField42;
private javax.swing.JTextField jTextField43;
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 116/125
116
private javax.swing.JTextField jTextField44;
private javax.swing.JTextField jTextField45;
private javax.swing.JTextField jTextField5;
private javax.swing.JTextField jTextField6;
private javax.swing.JTextField jTextField7;
private javax.swing.JTextField jTextField8;
private javax.swing.JTextField jTextField9;
private javax.swing.JButton newBill;
private javax.swing.JMenuItem newBillMenu;
private javax.swing.JInternalFrame newDocWindow;
private javax.swing.JButton newDoctor;
private javax.swing.JButton newPatient;
private javax.swing.JInternalFrame newPatientRec;
private javax.swing.JButton newRoom;
private javax.swing.JInternalFrame newRoomInfo;
private javax.swing.JToolBar standardToolBar;
private javax.swing.JToolBar statusToolBar;
private javax.swing.JMenuItem updateDoc;
private javax.swing.JInternalFrame updateDocWindow;
private javax.swing.JMenu updateMenu;
private javax.swing.JMenuItem updatePatient;
private javax.swing.JMenuItem updateRoom;
private javax.swing.JMenuItem updateTest;
private javax.swing.JInternalFrame update_patient;
}
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 117/125
117
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:--
Planning: This involves writing and reviewing unit, integration,
functional, validation and acceptance test plans.
Execution: This involves executing these test plans, measuring,
collecting data and verifying if it meets the quality criteria. Data
collected is used to make appropriate changes in the plans related to
development and testing.
The quality of a product or item can be achieved by ensuring that the productmeets the requirements by planning and conducting the following tests at
various stages.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 118/125
118
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.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 119/125
119
5). Tests are constructed to deal with each of these.
The tests are organized to check all the interfaces, until all the components
have been built and interfaced to each other producing the whole system.
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 giantcomponent.
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:
1). Performance- Are the performance criteria met?2). Volume- Can large volumes of information be handled?
3). Stress- Can peak volumes of information be handled?
4). Documentation- Is the documentation usable for the system?
5). Robustness- Does the system remain stable under adverse circumstances?
There are many others, the needs for which are dictated by how the system is
supposed to perform.
Acceptance Testing:-
Acceptance testing checks the system against the
“Requirements”. It is similar to system testing in that the whole system is
checked but the important difference is the change in focus:
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 120/125
120
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:
1). Does it affect any other systems running on the hardware?
2). Is it compatible with other system?
3). Does it have acceptable performance under load?
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.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 121/125
121
Any software product can be tested in one of two ways:
1). Knowing the specific function that a product has been designed to
perform, tests can be conducted that demonstrate each function is fullyoperational, at the same time searching for errors in each function. This
approach is known as Black Box Testing.
2). Knowing the internal workings of a product, tests can be conducted to
ensure that internal operation performs according to specifications and all
internal components have been adequately exercised. This approach is known
as White 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.
White box testing of software is predicated on close examination of
procedural details. Providing test cases that exercises specific set of
conditions and/or loop tests logical paths through the software. The “state of
program” may be examined at various points to determine if the expected or
asserted status corresponding to the actual status.
5.3 Testing the Personnel Information System:--
Testing phase is the very important phase in the software development so it is
fully kept in mind while developing this software. In case of this software,
testing has been done in the following areas and manner:--
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 122/125
122
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 thesystem 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.
Peak load testing
Storage testing
Performance time testing
Recovery testing
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 123/125
123
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.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 124/125
124
12. SCOPE OF FUTURE APPLICATION
The project has been designed to work on a large scale. So according to our
analysis the' future scope of the project is bright and would have an
everlasting effect on the current system.
The project is designed considering further improvement in the project.
With this project we can add functionality like Houses basis search etc.
Being our first project we have decided it to keep as simple as we can easily
work toward the development of the project. We have learned a vast
amount of experience after working on this project. A lot of improvement is
therefore possible after that.
7/18/2019 Hospital Report
http://slidepdf.com/reader/full/hospital-report 125/125
13. BIBLIOGRAPHY
1. Schildt. Complete Reference: Java J2se 5th Edition. TATA McGraw Hill
Publication.
2. Keogh. Complete Reference: J2EE 6th Edition. TATA McGraw Hill
Publication.
3. Ivan Bayross. SQL, PL/SQL The programming Language of Oracle 3rd
Edition. BPB Publication.
4. Budi Kurniawan. Java for the Web with Servlets, JSP, and EJB.
New Riders Publication.