0% found this document useful (0 votes)
1K views

Clinic Management System Report File

This document provides a project report on a Clinic Management System submitted in partial fulfillment of the requirements for a Bachelor of Computer Application degree. The report includes an introduction describing the existing clinic system and its limitations, as well as the proposed computerized system. It outlines the objectives of the new system to make the clinic fully computerized, store daily entries, save time, provide prescriptions in print format, and facilitate checking patient details anytime. The report also covers a feasibility study analyzing the economic, technical, and operational feasibility of the proposed system.

Uploaded by

wahid
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Clinic Management System Report File

This document provides a project report on a Clinic Management System submitted in partial fulfillment of the requirements for a Bachelor of Computer Application degree. The report includes an introduction describing the existing clinic system and its limitations, as well as the proposed computerized system. It outlines the objectives of the new system to make the clinic fully computerized, store daily entries, save time, provide prescriptions in print format, and facilitate checking patient details anytime. The report also covers a feasibility study analyzing the economic, technical, and operational feasibility of the proposed system.

Uploaded by

wahid
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 125

A

Project Report
On
“Clinic Management System”
Submitted in Partial Fulfillment of the

Requirements for the Degree

Of

BACHELOR OF COMPUTER AAPLICATION

From

Submitted to:
INVERTIS UNIVERSITY
Invertis Village, Bareilly - Lucknow National Highway, NH-24, Bareilly,
Uttar Pradesh - 243123

Submitted By: Supervised By:


Wahid Yar Khan
Kalpana Gangwar[Ass.Professor]
CONTENT AT A GLANCE

1. Title Page
1.1 Candidate Declaration
1.2 Acknowledgement
1.3 Preface
2. Introduction to System
2.1 Introduction
2.2 Existing system with Limitations
2.3 Proposed system
2.4 Objective of the Project
3. Feasibility Study
4. System Analysis
5. Software/Hardware Requirement
6. System Design
6.1 Database Design
6.1.1 ER-Diagram
6.1.2 Database Specifications
6.2 Data Flow Diagram
7. Input/output Design
8. Implementation
8.1 Coding
9. System Testing
10. Conclusion
11. Bibliography
CANDIDATE DECLARATION

We hereby declare that the work which is being presented in the project report entitled
“CLINIC MANAGEMENT SYSTEM’’ for partial fulfillment of the requirement of degree of
“BSC(IT)’’ of Shri Dev Suman Tehri Garhwal university submitted in Omkarananda
Institute of Managemnt& Technology, Rishikesh Is of record of our own work & was
carried out under the guidance of Mr. ANIL RANAKOTI OIMT, Rishikesh.

Date:
Wahid Yar Khan

This is to certify that the above statement made by candidate is correct to the best of my
knowledge.

Dr. Jitendra Chaudhry Ms.kalpna gangwar


HOD (IIU) (Asst Prof.)
Acknowledgement

First of all with great reverence, we express our deep sense of gratitude to “Invertis Institute of
Management and Technology (IIMT)”, Bareilly for giving us an opportunity to prepare a project
during B.C.A.

We would like to express our gratitude to Dr.Umesh Gautham Invertis Institute of


Management and Technology (IIMT), for giving us an opportunity to do this project in such an
efficient institute.

The guidance given by Mr. Saurabh Kumar, IIMT throughout the work was invaluable and
is an asset.

Our sincere and heartfelt gratitude is also due to all the other faculty members for their
guidance, they provided us as well as for the care and concern shown by them.

Ast.Pro Saurabh Kumar


Date: Wahid Yar khan

PREFACE
It gives us the great pleasure in redesign our work in a report from which contains the
real useful programming part of this project work .

This project has undergone significant changes. Since it is very initial stage through its present
version . the programming of this work has been done exclusively in .Net framework; this
programming language is chosen by us due to its acceptability features .

We hope & wish this project work will be linked by all & if anyone find any bug or
drawback he/she is welcome for any suggestion & help in debugging.
INTRODUCTION

Our project Clinic Management system includes registration of patients, storing their details into the
system . Our software has the facility to give a unique id for every patient and stores the details of
every patient and the staff automatically. User can search availability of a doctor and the details of a
patient using the id.

The Clinic Management System can be entered using a username and password. It is accessible
either by an administrator or receptionist. Only they can add data into the database. The data can be
retrieved easily. The interface is very user-friendly. The data are well protected for personal use and
makes the data processing very fast.
EXISTING SYSTEM WITH LIMITATIONS

Existing system refers to the system that is being followed till now. Presently all the hospital
functionalities are done manually. That is if a patient want to consult a doctor he can visit their till
his chance called. This is made the person very difficult. Out-Patients and In-Patients tickets are
distributed directly. The main disadvantage is time consuming.

Limitations of Existing System

 Lack of security of data.


 Time consuming.
 Consumes large volume of paper work.
 Manual work
 No direct role for the higher officials.

To avoid all these limitations and make the system working more accurately it needs to be
computerized.
PROPOSED SYSTEM

The main purpose behind the proposed system is to provide a comprehensive computerized system.

 In comparison to the present system the proposed system will be less time consuming and is
more efficient.
 Analysis will be very easy in proposed system as it is automated.
 The proposed system is very secure as no chances of misplace the record of any department
in hospital.
OBJECTIVE OF THE PROJECT

Now as we have seen the huge the database management of patient through
computerization. We are summarizing up allthe advantage of computerized system.

They are as follows-

 To make the fully computerized system.


 To store the daily entries record.
 Save time and provide prescription in print format.
 To provides facility to check patient detail in any time.
 There is no need of more manpower rather than one user to look after.
 Allocated doctor to every patient by computerized system.
FEASIBILITY STUDY

Feasibility study is a test of a system proposal according to its workability , impact on the
organization ability to meet user needs , and effective use of resources . Depending on the
result of the initial investigation, the survey is expanded to a more detailed feasibility study.

It focuses on three major questions:

 What are the user’s demonstrable needs? And how does a candidate system meet them?
 What resourcesare available for given candidate system? Is the problem worth solving?
 What are the likely impacts of the candidate system on the organization ?

The answer of the above question revolve around investigation and evaluation of the
problem. The objective of the feasibility study is not to solve the problem but to acquire a
sense of its scops. During the study, the problem definition is crystallized and aspects of the
problem to be include in the system are determined.

We analyze the feasibility of the purposed system through the three types of feasibility
studies, which are as below.

Economic feasibility

Technical feasibility

Operational feasibility
Economical Feasibility

Economical feasibility determines whether there are sufficient benefits in creating to make the cost
acceptable, or is the cost of the system too high. As this signifies cost-benefit analysis and savings.
On the behalf of the cost-benefit analysis, the proposed system is feasible and is economical
regarding its pre-assumed cost for making a system. During the economical feasibility test we
maintained the balance between the Operational and Economical feasibilities, as the two were the
inflicting. For example the solution that provides the best operational impact for the end-users may
also be the most expensive and, therefore, the least economically feasible.

We classified the costs of NEMOSYS according to the phase in which they occur. As we know
that the system development costs are usually one-time costs that will not recur after the project has
been completed. For calculating the Development costs we evaluated certain cost categories viz.

(i) Personnel costs


(ii) Computer usage
(iii) Training
(iv) Supply and equipments costs

Technical Feasibility :

Technical feasibility determines whether the work for the project can be done with the existing
equipment, software technology and available personnel. Technical feasibility is concerned with
specifying equipment and software that will satisfy the user requirement. This project is feasible on
technical remarks also, as the proposed system is more beneficiary in terms of having a sound proof
system with new technical components installed on the system. The proposed system can run on
any machines supporting Windows and works on the best software and hardware that had been
used while designing the system so it would be feasible in all technical terms of feasibility.
Operational Feasibility:-

In the phase of operational feasibility study we apply different operation to the project. Collect the
record, save the data, delete, update information, and search the information.

Steps in feasibility study:-

 From a project team and appoint a project leader.


 Prepare system flowcharts.
 Enumerate potential candidate system.
 Describe and identify characteristics of candidates system.
 Determine and evaluate performance and cost effects vanes of each candidate system.
 Weight system performance and cast data.
 Select the best candidate system.
 Prepare and report final project directive to management.
System Requirement Analysis:

To design the Hospital Management software we have gather the information about processing and
other details related patient.

Information Gathering:

We have used following technique to gather information about the salary system.

Interviewing:

We had multiple round of interview with staff of alldepartments for patient details.

Questionnaire:

We have design the questionnaire to get the every aspect of software they actually need.
Software and hardware Requirement

Every successful running of project needs to be run on a particular specification. For the proposed
software following are the requirements with regard to hardware and software.

Hardware requirements:

PROCESSOR (CPU): PENTIUM

MEMORY 120MB

HARD DISK 80 GB

KEYBOARD 101 KEY

OPERATING SYSTEM WINDOWS XP OR WINDOWS 7

Software requirements:

C#.NET FRONT END


MS SQL Express 2005 BACK END
ER-Diagram
Database Design

Login Table

Patient Registration Table


Patient InformationTable

Doctor InfoTable
Staff InfoTable
Data Flow Diagram
Welcome Form
Login Form
Main Form
Patient RegistrationForm
Patient Information Form
Doctor Form
Staff Information
User Information
Welcome Form
import java.awt.BorderLayout;

import java.awt.EventQueue;

import javax.swing.JFrame;

import javax.swing.JPanel;

import javax.swing.border.EmptyBorder;

import java.awt.Color;

import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.ImageIcon;

import javax.swing.JButton;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

public class name extends JFrame {

private JPanel contentPane;

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {
public void run() {

try {

name frame = new name();

frame.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the frame.

*/

public name() {

setUndecorated(true);

setBackground(new Color(192, 192, 192));

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setBounds(0, 0, 1400, 730);

contentPane = new JPanel();

contentPane.setBackground(new Color(192, 192, 192));

contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

setContentPane(contentPane);

contentPane.setLayout(null);

JLabel lblNewLabel = new JLabel(" Clinic Management System");


lblNewLabel.setForeground(new Color(0, 255, 255));

lblNewLabel.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblNewLabel.setBounds(511, 23, 449, 41);

contentPane.add(lblNewLabel);

JPanel panel = new JPanel();

panel.setBackground(new Color(0, 255, 255));

panel.setBounds(511, 60, 449, 4);

contentPane.add(panel);

JLabel lblNewLabel_2 = new JLabel("");

lblNewLabel_2.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\14.png"));

lblNewLabel_2.setBounds(309, 11, 77, 68);

contentPane.add(lblNewLabel_2);

JLabel lblNewLabel_1 = new JLabel("Dr. Sanjay Gupta");

lblNewLabel_1.setBackground(new Color(34, 139, 34));

lblNewLabel_1.setForeground(new Color(255, 218, 185));

lblNewLabel_1.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblNewLabel_1.setBounds(838, 142, 273, 36);

contentPane.add(lblNewLabel_1);

JLabel lblNewLabel_3 = new JLabel("Cold , Ear, Nose & Throat Surgeon");

lblNewLabel_3.setForeground(new Color(255, 140, 0));


lblNewLabel_3.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblNewLabel_3.setBounds(838, 189, 460, 31);

contentPane.add(lblNewLabel_3);

JLabel lblNewLabel_4 = new JLabel("M.B.B.S. , M.S , K.G.M.C.(Lucknow)");

lblNewLabel_4.setForeground(new Color(255, 140, 0));

lblNewLabel_4.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblNewLabel_4.setBounds(838, 231, 494, 41);

contentPane.add(lblNewLabel_4);

JLabel lblDrmamtaBhura = new JLabel("Dr. (Mrs) Mamta Bisht");

lblDrmamtaBhura.setForeground(new Color(255, 218, 185));

lblDrmamtaBhura.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblDrmamtaBhura.setBackground(new Color(34, 139, 34));

lblDrmamtaBhura.setBounds(218, 142, 381, 36);

contentPane.add(lblDrmamtaBhura);

JLabel lblColdEar = new JLabel("Cold , Ear, Nose & Throat Surgeon");

lblColdEar.setForeground(new Color(255, 140, 0));

lblColdEar.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblColdEar.setBounds(216, 189, 460, 31);

contentPane.add(lblColdEar);

JLabel lblMbbsMddermatologykanpur = new JLabel("M.B.B.S. , M.D-Dermatology.


(Kanpur)");
lblMbbsMddermatologykanpur.setForeground(new Color(255, 140, 0));

lblMbbsMddermatologykanpur.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblMbbsMddermatologykanpur.setBounds(218, 231, 505, 41);

contentPane.add(lblMbbsMddermatologykanpur);

JLabel lblMonsat = new JLabel("Monday-Saturday");

lblMonsat.setForeground(new Color(240, 255, 240));

lblMonsat.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblMonsat.setBounds(350, 300, 233, 36);

contentPane.add(lblMonsat);

JLabel lblAmto = new JLabel("9:00 A.M.TO 1:00 P.M (Morning)");

lblAmto.setForeground(new Color(240, 230, 140));

lblAmto.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAmto.setBounds(350, 357, 373, 31);

contentPane.add(lblAmto);

JLabel lblAmto_1 = new JLabel("5:00 A.M.TO 7:00 P.M (Evening)");

lblAmto_1.setForeground(new Color(240, 230, 140));

lblAmto_1.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAmto_1.setBounds(350, 398, 364, 31);

contentPane.add(lblAmto_1);

JLabel lblNewLabel_5 = new JLabel(" TIMING");

lblNewLabel_5.setForeground(new Color(250, 235, 215));


lblNewLabel_5.setFont(new Font("Times New Roman", Font.BOLD, 28));

lblNewLabel_5.setBounds(195, 370, 145, 48);

contentPane.add(lblNewLabel_5);

JLabel label = new JLabel("Monday-Saturday");

label.setForeground(new Color(240, 255, 255));

label.setFont(new Font("Times New Roman", Font.BOLD, 30));

label.setBounds(959, 300, 233, 36);

contentPane.add(label);

JLabel lblAmto_2 = new JLabel("9:00 A.M.TO 2:00 P.M (Morning)");

lblAmto_2.setForeground(new Color(240, 230, 140));

lblAmto_2.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAmto_2.setBounds(959, 357, 373, 31);

contentPane.add(lblAmto_2);

JLabel label_1 = new JLabel("5:00 A.M.TO 7:00 P.M (Evening)");

label_1.setForeground(new Color(240, 230, 140));

label_1.setFont(new Font("Times New Roman", Font.BOLD, 25));

label_1.setBounds(959, 398, 364, 31);

contentPane.add(label_1);

JLabel lblTiming = new JLabel("TIMING");

lblTiming.setForeground(new Color(250, 235, 215));

lblTiming.setFont(new Font("Times New Roman", Font.BOLD, 28));


lblTiming.setBounds(838, 370, 106, 48);

contentPane.add(lblTiming);

JLabel lblAddressDehradunRoad = new JLabel(" Adarsh Gram, Rishikesh-249201");

lblAddressDehradunRoad.setForeground(new Color(255, 218, 185));

lblAddressDehradunRoad.setFont(new Font("Times New Roman", Font.BOLD, 27));

lblAddressDehradunRoad.setBounds(341, 440, 413, 36);

contentPane.add(lblAddressDehradunRoad);

JLabel lblAddress = new JLabel(" Address: ");

lblAddress.setForeground(new Color(250, 235, 215));

lblAddress.setFont(new Font("Times New Roman", Font.BOLD, 28));

lblAddress.setBounds(195, 440, 145, 36);

contentPane.add(lblAddress);

JLabel label_2 = new JLabel(" Address: ");

label_2.setForeground(new Color(250, 235, 215));

label_2.setFont(new Font("Times New Roman", Font.BOLD, 28));

label_2.setBounds(815, 440, 145, 36);

contentPane.add(label_2);

JLabel lblDehradunRoadRishikesh = new JLabel(" Ganga Vatika, Rishikesh-249137");

lblDehradunRoadRishikesh.setForeground(new Color(255, 218, 185));

lblDehradunRoadRishikesh.setFont(new Font("Times New Roman", Font.BOLD, 27));

lblDehradunRoadRishikesh.setBounds(959, 440, 395, 41);


contentPane.add(lblDehradunRoadRishikesh);

JLabel label_3 = new JLabel("070601 84080");

label_3.setForeground(new Color(255, 222, 173));

label_3.setFont(new Font("Times New Roman", Font.BOLD, 25));

label_3.setBounds(350, 487, 149, 31);

contentPane.add(label_3);

JLabel lblPhone = new JLabel(" Phone:");

lblPhone.setForeground(new Color(250, 235, 215));

lblPhone.setFont(new Font("Times New Roman", Font.BOLD, 28));

lblPhone.setBounds(195, 487, 120, 31);

contentPane.add(lblPhone);

JLabel label_4 = new JLabel("085293 92577");

label_4.setForeground(new Color(255, 218, 185));

label_4.setFont(new Font("Times New Roman", Font.BOLD, 25));

label_4.setBounds(969, 492, 149, 31);

contentPane.add(label_4);

JLabel lblPhone_1 = new JLabel(" Phone:");

lblPhone_1.setForeground(new Color(250, 235, 215));

lblPhone_1.setFont(new Font("Times New Roman", Font.BOLD, 28));

lblPhone_1.setBounds(824, 492, 120, 31);

contentPane.add(lblPhone_1);

JLabel lblPresentationBy = new JLabel("Presentation By : -");


lblPresentationBy.setForeground(new Color(255, 215, 0));

lblPresentationBy.setFont(new Font("Times New Roman", Font.BOLD, 31));

lblPresentationBy.setBounds(453, 574, 250, 36);

contentPane.add(lblPresentationBy);

JLabel lblBeenadivyameerapayalseema = new JLabel("Beena , Divya , Meera , Payal ,


Seema");

lblBeenadivyameerapayalseema.setForeground(new Color(240, 230, 140));

lblBeenadivyameerapayalseema.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblBeenadivyameerapayalseema.setBounds(702, 575, 494, 36);

contentPane.add(lblBeenadivyameerapayalseema);

JLabel lblBscit = new JLabel("B.SC(IT) 6th Sem");

lblBscit.setForeground(new Color(240, 230, 140));

lblBscit.setFont(new Font("Times New Roman", Font.BOLD, 30));

lblBscit.setBounds(702, 615, 494, 36);

contentPane.add(lblBscit);

JButton btnNewButton = new JButton("");

btnNewButton.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

login.main(new String[]{});

});
btnNewButton.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\25.png"));

btnNewButton.setBounds(1261, 656, 77, 41);

contentPane.add(btnNewButton);

JLabel lblNewLabel_6 = new JLabel("");

lblNewLabel_6.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\pqsCZy.jpg"));

lblNewLabel_6.setBounds(0, 0, 1400, 730);

contentPane.add(lblNewLabel_6);

Login Form
import java.awt.BorderLayout;

import java.awt.EventQueue;

import java.awt.Window;

import java.sql.*;

import javax.swing.JFrame;

import javax.swing.JOptionPane;

import javax.swing.JPanel;

import javax.swing.border.EmptyBorder;

import java.awt.Dimension;

import javax.swing.JButton;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import javax.swing.JLabel;

import java.awt.Font;

import javax.swing.JTextField;

import javax.swing.JPasswordField;

import java.awt.event.WindowAdapter;

import java.awt.event.WindowEvent;

import java.awt.Point;

import javax.swing.ImageIcon;

import java.awt.Color;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.Statement;
public class login extends JFrame {

private JPanel contentPane;

private JTextField text1;

private JPasswordField text2;

/**

* Launch the application.

*/

/**

*database connectivity.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

login frame = new login();

frame.setVisible(true);

} catch (Exception e) {
e.printStackTrace();

});

/**

* Create the frame.

*/

public login() {

setUndecorated(true);

addWindowListener(new WindowAdapter() {

@Override

public void windowOpened(WindowEvent arg0) {

});

setMaximumSize(new Dimension(1366, 730));

setTitle("clinic");

setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

setBounds(100, 100, 591, 321);

contentPane = new JPanel();


contentPane.setBackground(new Color(192, 192, 192));

contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));

setContentPane(contentPane);

contentPane.setLayout(null);

JButton btnX = new JButton("x");

btnX.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

System.exit(0);

});

btnX.setBounds(518, 11, 47, 23);

btnX.setToolTipText("Close");

contentPane.add(btnX);

JLabel lblUsername = new JLabel("Username");

lblUsername.setFont(new Font("Arial", Font.PLAIN, 16));

lblUsername.setBounds(238, 71, 84, 31);

contentPane.add(lblUsername);

JLabel lblPassword = new JLabel("Password");

lblPassword.setFont(new Font("Arial", Font.PLAIN, 16));

lblPassword.setBounds(238, 124, 84, 31);

contentPane.add(lblPassword);
text1 = new JTextField();

text1.setFont(new Font("Arial", Font.PLAIN, 16));

text1.setBounds(332, 71, 186, 31);

contentPane.add(text1);

text1.setColumns(10);

text2 = new JPasswordField();

text2.setFont(new Font("Arial", Font.PLAIN, 14));

text2.setBounds(332, 125, 186, 31);

contentPane.add(text2);

JButton btnLogin = new JButton("LOGIN");

btnLogin.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Connection conn;

Statement smt;

System.out.println("Connected");

int i = 0;
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

conn = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

String sql="select * from login";

System.out.println("Connected db");

smt = conn.createStatement();

ResultSet rs = smt.executeQuery(sql);

String usr= text1.getText();

String pwd= text2.getText();

while(rs.next()){

String us= rs.getString("UserName");

String pd = rs.getString("Password");

if((usr.equals(us)) && (pwd.equals(pd))){

menu window = new menu();

window.frame.setVisible(true);

i=2;

break;

}
}

if(i==0){

System.out.println("Not Matched");

catch(SQLException e){

System.out.println("Not Connected");

} catch (ClassNotFoundException e) {

// TODO Auto-generated catch block

e.printStackTrace();

});

btnLogin.setFont(new Font("Times New Roman", Font.BOLD, 15));


btnLogin.setForeground(new Color(128, 0, 128));

btnLogin.setBackground(Color.WHITE);

btnLogin.setBounds(332, 190, 84, 38);

btnLogin.setToolTipText("Enter The Login ");

contentPane.add(btnLogin);

JButton btnReset = new JButton("RESET");

btnReset.setBackground(Color.WHITE);

btnReset.setFont(new Font("Times New Roman", Font.BOLD, 15));

btnReset.setForeground(new Color(128, 0, 128));

btnReset.setToolTipText("Enter The Reset ");

btnReset.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

text1.setText(null);

text2.setText(null);

});

btnReset.setBounds(426, 190, 92, 38);

contentPane.add(btnReset);

JLabel lblNewLabel = new JLabel("");

lblNewLabel.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\user_add.png"));

lblNewLabel.setBounds(200, 75, 20, 27);

contentPane.add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel("");

lblNewLabel_1.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\lock-24-20.png"));

lblNewLabel_1.setBounds(200, 129, 20, 26);

contentPane.add(lblNewLabel_1);

}
Main Menu

import java.awt.EventQueue;

import javax.swing.JFrame;

import java.awt.Dimension;

import javax.swing.JDesktopPane;

import javax.swing.JButton;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import javax.swing.JLabel;

import java.awt.Color;

import java.awt.Font;

import javax.swing.ImageIcon;

public class menu {

JFrame frame;

private final JDesktopPane dp = new JDesktopPane();

/**

* Launch the application.


*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

menu window = new menu();

window.frame.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the application.

*/

public menu() {

initialize();

/**

* Initialize the contents of the frame.


*/

private void initialize() {

frame = new JFrame();

frame.setUndecorated(true);

frame.setMinimumSize(new Dimension(1366, 730));

frame.setResizable(false);

frame.setSize(new Dimension(1366, 730));

frame.setBounds(0, 0, 1366, 730);

frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);

frame.getContentPane().setLayout(null);

dp.setBackground(new Color(192, 192, 192));

dp.setBounds(0, 96, 1366, 730);

frame.getContentPane().add(dp);

JButton btnPatient = new JButton("Patient Registration");

btnPatient.setBackground(new Color(221, 160, 221));

btnPatient.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\preg.png"));

btnPatient.setFont(new Font("Times New Roman", Font.BOLD, 18));

btnPatient.setForeground(new Color(30, 144, 255));

btnPatient.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

dp.removeAll();
preg f1 = new preg();

dp.add(f1);

f1.show();

});

btnPatient.setBounds(120, 6, 236, 58);

frame.getContentPane().add(btnPatient);

JButton btnPatientInformation = new JButton("Patient Information");

btnPatientInformation.setBackground(new Color(221, 160, 221));

btnPatientInformation.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

dp.removeAll();

pimformation f1 = new pimformation();

dp.add(f1);

f1.show();
}

});

btnPatientInformation.setIcon(new
ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\4.png"));

btnPatientInformation.setForeground(new Color(30, 144, 255));

btnPatientInformation.setFont(new Font("Times New Roman", Font.BOLD, 18));

btnPatientInformation.setBounds(356, 6, 242, 58);

frame.getContentPane().add(btnPatientInformation);

JButton btnDocter = new JButton("Doctor");

btnDocter.setBackground(new Color(221, 160, 221));

btnDocter.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

dp.removeAll();

doctor f1 = new doctor();

dp.add(f1);

f1.show();

});

btnDocter.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\2.png"));
btnDocter.setFont(new Font("Times New Roman", Font.BOLD, 18));

btnDocter.setForeground(new Color(30, 144, 255));

btnDocter.setBounds(597, 6, 242, 58);

frame.getContentPane().add(btnDocter);

JButton btnUserInformation = new JButton("User Information");

btnUserInformation.setBackground(new Color(221, 160, 221));

btnUserInformation.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

dp.removeAll();

userinfor f1 = new userinfor();

dp.add(f1);

f1.show();

});

btnUserInformation.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\6.png"));

btnUserInformation.setForeground(new Color(30, 144, 255));

btnUserInformation.setFont(new Font("Times New Roman", Font.BOLD, 18));

btnUserInformation.setBounds(1081, 6, 236, 58);

frame.getContentPane().add(btnUserInformation);
JButton btnStaffInformation = new JButton("Staff Information");

btnStaffInformation.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

dp.removeAll();

staff f1 = new staff();

dp.add(f1);

f1.show();

});

btnStaffInformation.setBackground(new Color(221, 160, 221));

btnStaffInformation.setBounds(838, 6, 244, 58);

frame.getContentPane().add(btnStaffInformation);

btnStaffInformation.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\5.png"));

btnStaffInformation.setForeground(new Color(30, 144, 255));

btnStaffInformation.setFont(new Font("Times New Roman", Font.BOLD, 18));

JButton btnLogout = new JButton("Logout");

btnLogout.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

System.exit(0);

});

btnLogout.setFont(new Font("Times New Roman", Font.BOLD, 14));

btnLogout.setBounds(1239, 73, 84, 23);

frame.getContentPane().add(btnLogout);

JButton btnNewButton_1 = new JButton("");

btnNewButton_1.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

login.main(new String[]{});

});

btnNewButton_1.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project
img\\left.jpg"));

btnNewButton_1.setBounds(10, 64, 44, 36);

frame.getContentPane().add(btnNewButton_1);
JButton button_1 = new JButton("x");

button_1.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

System.exit(0);

});

button_1.setBounds(1322, 6, 44, 23);

button_1.setToolTipText("Close");

frame.getContentPane().add(button_1);

JButton btnNewButton_2 = new JButton("Menu");

btnNewButton_2.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

menu window = new menu();

window.frame.setVisible(true);

});

btnNewButton_2.setFont(new Font("Times New Roman", Font.BOLD, 25));

btnNewButton_2.setBounds(0, 6, 110, 58);

frame.getContentPane().add(btnNewButton_2);
}

public void setVisible(boolean b) {

// TODO Auto-generated method stub

}
Registration Form

import java.awt.EventQueue;

import javax.swing.JInternalFrame;

import java.awt.Color;

import javax.swing.JButton;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import javax.swing.JLabel;

import java.awt.Font;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.SQLException;

import javax.swing.ImageIcon;

import javax.swing.JOptionPane;

import javax.swing.JTextField;

import javax.swing.JRadioButton;

import javax.swing.ButtonGroup;
public class preg extends JInternalFrame {

private JTextField t1;

private JTextField t2;

private JTextField t3;

private JTextField t4;

private JTextField t5;

private JTextField t8;

String Gender;

private final ButtonGroup buttonGroup = new ButtonGroup();

Connection con = null;

PreparedStatement psmt;

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

preg fr = new preg();


fr.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the frame.

*/

public preg() {

getContentPane().setFont(new Font("Times New Roman", Font.BOLD, 25));

getContentPane().setBackground(new Color(192, 192, 192));

getContentPane().setForeground(new Color(192, 192, 192));

getContentPane().setLayout(null);

JLabel lblNewLabel = new JLabel(" Patient Registration");

lblNewLabel.setForeground(new Color(30, 144, 255));

lblNewLabel.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblNewLabel.setBounds(626, 11, 316, 42);

getContentPane().add(lblNewLabel);
JLabel lblNewLabel_1 = new JLabel(" Registration No.");

lblNewLabel_1.setForeground(new Color(32, 178, 170));

lblNewLabel_1.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblNewLabel_1.setBounds(332, 112, 218, 42);

getContentPane().add(lblNewLabel_1);

JLabel lblPatientName = new JLabel(" Patient Name");

lblPatientName.setForeground(new Color(32, 178, 170));

lblPatientName.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblPatientName.setBounds(332, 181, 218, 42);

getContentPane().add(lblPatientName);

JLabel lblRegistrationDate = new JLabel(" Registration Date");

lblRegistrationDate.setForeground(new Color(32, 178, 170));

lblRegistrationDate.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblRegistrationDate.setBounds(332, 254, 198, 42);

getContentPane().add(lblRegistrationDate);

JLabel lblAddress = new JLabel(" Address");

lblAddress.setForeground(new Color(32, 178, 170));

lblAddress.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAddress.setBounds(332, 332, 149, 42);

getContentPane().add(lblAddress);
t1 = new JTextField();

t1.setFont(new Font("Times New Roman", Font.BOLD, 14));

t1.setBounds(558, 120, 170, 26);

getContentPane().add(t1);

t1.setColumns(10);

t2 = new JTextField();

t2.setFont(new Font("Times New Roman", Font.BOLD, 14));

t2.setBounds(560, 189, 168, 26);

getContentPane().add(t2);

t2.setColumns(10);

t3 = new JTextField();

t3.setFont(new Font("Times New Roman", Font.BOLD, 14));

t3.setBounds(560, 262, 170, 26);

getContentPane().add(t3);

t3.setColumns(10);

t4 = new JTextField();

t4.setFont(new Font("Times New Roman", Font.BOLD, 14));

t4.setBounds(560, 340, 170, 26);

getContentPane().add(t4);

t4.setColumns(10);
JLabel lblCity = new JLabel(" City");

lblCity.setForeground(new Color(32, 178, 170));

lblCity.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblCity.setBounds(827, 112, 134, 42);

getContentPane().add(lblCity);

JLabel lblGender = new JLabel(" Gender");

lblGender.setForeground(new Color(32, 178, 170));

lblGender.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblGender.setBounds(827, 181, 134, 42);

getContentPane().add(lblGender);

JLabel lblPhone = new JLabel(" Phone");

lblPhone.setForeground(new Color(32, 178, 170));

lblPhone.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblPhone.setBounds(827, 254, 134, 42);

getContentPane().add(lblPhone);

t5 = new JTextField();

t5.setFont(new Font("Times New Roman", Font.BOLD, 14));

t5.setColumns(10);

t5.setBounds(1055, 120, 170, 26);

getContentPane().add(t5);

t8 = new JTextField();
t8.setFont(new Font("Times New Roman", Font.BOLD, 14));

t8.setColumns(10);

t8.setBounds(1055, 262, 170, 26);

getContentPane().add(t8);

JButton btnNewButton = new JButton("Add");

btnNewButton.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database Connected");

catch(Exception e){

JOptionPane.showMessageDialog(null, "not connected");

try{
psmt=con.prepareStatement("insert into PatientRg(Rnum, Rname, Rdate, City, Gender,
Address,Phone) values(?,?,?,?,?,?,?)");

psmt.setString(1,t1.getText());

psmt.setString(2,t2.getText());

psmt.setString(3,t3.getText());

psmt.setString(4,t4.getText());

psmt.setString(5,Gender);

psmt.setString(6,t5.getText());

psmt.setString(7,t8.getText());

JOptionPane.showMessageDialog(null,"data submit");

psmt.executeQuery();

}catch(SQLException e ){

});

btnNewButton.setForeground(new Color(128, 0, 128));

btnNewButton.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnNewButton.setBounds(607, 437, 104, 33);

getContentPane().add(btnNewButton);
JButton btnEdit = new JButton("Reset");

btnEdit.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

t1.setText(null);

t2.setText(null);

t3.setText(null);

t4.setText(null);

t5.setText(null);

t8.setText(null);

});

btnEdit.setForeground(new Color(128, 0, 128));

btnEdit.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnEdit.setBounds(864, 437, 104, 33);

getContentPane().add(btnEdit);

JButton btnExit = new JButton("Exit");

btnExit.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

menu window = new menu();

window.frame.setVisible(true);
}

});

btnExit.setForeground(new Color(128, 0, 128));

btnExit.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnExit.setBounds(1121, 437, 104, 33);

getContentPane().add(btnExit);

JRadioButton rdbtnFemale = new JRadioButton("Female");

rdbtnFemale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

Gender="Female";

});

buttonGroup.add(rdbtnFemale);

rdbtnFemale.setBounds(1055, 190, 86, 33);

getContentPane().add(rdbtnFemale);

JRadioButton rdbtnMale = new JRadioButton("Male");

rdbtnMale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {


Gender="Male";

});

buttonGroup.add(rdbtnMale);

rdbtnMale.setBounds(1143, 190, 86, 33);

getContentPane().add(rdbtnMale);

JLabel label = new JLabel("");

label.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\88.png"));

label.setBounds(520, 0, 100, 80);

getContentPane().add(label);

setBounds(0, 0, 1366, 730);

Information Form
import java.awt.EventQueue;

import javax.swing.JInternalFrame;
import javax.swing.JButton;
import javax.swing.JLabel;
import javax.swing.JOptionPane;

import java.awt.Font;
import java.awt.Color;
import javax.swing.ImageIcon;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.SQLException;

import javax.swing.JRadioButton;
import javax.swing.ButtonGroup;

public class pimformation extends JInternalFrame {


private JTextField textField;
private JTextField p1;
private JTextField p2;
private JTextField p4;
private JTextField p5;
private JTextField p6;
private JTextField p7;
private JTextField p3;

String Gender;
private final ButtonGroup buttonGroup = new ButtonGroup();

PreparedStatement psmt;
Connection con;

/**
* Launch the application.
*/
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
pimformation frame = new pimformation();
frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}

/**
* Create the frame.
*/
public pimformation() {
getContentPane().setBackground(new Color(192, 192, 192));

setBounds(0, 0, 1366, 730);


getContentPane().setLayout(null);

JLabel lblPatientImformation = new JLabel(" Patient Information");


lblPatientImformation.setForeground(new Color(30, 144, 255));
lblPatientImformation.setFont(new Font("Times New Roman", Font.BOLD,
35));
lblPatientImformation.setBounds(598, 11, 316, 42);
getContentPane().add(lblPatientImformation);

JLabel lblNewLabel_1 = new JLabel(" Input Patient's ID");


lblNewLabel_1.setForeground(new Color(65, 105, 225));
lblNewLabel_1.setFont(new Font("Times New Roman", Font.BOLD, 22));
lblNewLabel_1.setBounds(257, 194, 208, 34);
getContentPane().add(lblNewLabel_1);

textField = new JTextField();


textField.setFont(new Font("Times New Roman", Font.BOLD, 20));
textField.setBounds(257, 240, 208, 34);
getContentPane().add(textField);
textField.setColumns(10);

JLabel lblPid = new JLabel(" PID");


lblPid.setForeground(new Color(32, 178, 170));
lblPid.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblPid.setBounds(476, 187, 218, 42);
getContentPane().add(lblPid);

JLabel lblPname = new JLabel(" PName");


lblPname.setForeground(new Color(32, 178, 170));
lblPname.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblPname.setBounds(476, 251, 218, 42);
getContentPane().add(lblPname);

JLabel lblGender = new JLabel(" Gender");


lblGender.setForeground(new Color(32, 178, 170));
lblGender.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblGender.setBounds(476, 315, 218, 42);
getContentPane().add(lblGender);

JLabel lblAge = new JLabel(" Age");


lblAge.setForeground(new Color(32, 178, 170));
lblAge.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblAge.setBounds(486, 375, 208, 42);
getContentPane().add(lblAge);

JLabel lblPhone = new JLabel(" Phone");


lblPhone.setForeground(new Color(32, 178, 170));
lblPhone.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblPhone.setBounds(885, 186, 218, 42);
getContentPane().add(lblPhone);

JLabel lblAddress = new JLabel(" Address");


lblAddress.setForeground(new Color(32, 178, 170));
lblAddress.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblAddress.setBounds(885, 251, 218, 42);
getContentPane().add(lblAddress);

JLabel lblDisease = new JLabel(" Disease");


lblDisease.setForeground(new Color(32, 178, 170));
lblDisease.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblDisease.setBounds(885, 315, 218, 42);
getContentPane().add(lblDisease);

JLabel lblCheckin = new JLabel(" CheckIn");


lblCheckin.setForeground(new Color(32, 178, 170));
lblCheckin.setFont(new Font("Times New Roman", Font.BOLD, 25));
lblCheckin.setBounds(895, 375, 218, 42);
getContentPane().add(lblCheckin);

p1 = new JTextField();
p1.setFont(new Font("Times New Roman", Font.BOLD, 14));
p1.setBounds(701, 193, 178, 26);
getContentPane().add(p1);
p1.setColumns(10);

p2 = new JTextField();
p2.setFont(new Font("Times New Roman", Font.BOLD, 14));
p2.setBounds(701, 261, 178, 26);
getContentPane().add(p2);
p2.setColumns(10);

p4 = new JTextField();
p4.setFont(new Font("Times New Roman", Font.BOLD, 14));
p4.setBounds(1136, 200, 189, 26);
getContentPane().add(p4);
p4.setColumns(10);

p5 = new JTextField();
p5.setFont(new Font("Times New Roman", Font.BOLD, 14));
p5.setBounds(1136, 264, 189, 26);
getContentPane().add(p5);
p5.setColumns(10);

p6 = new JTextField();
p6.setFont(new Font("Times New Roman", Font.BOLD, 14));
p6.setBounds(1136, 325, 189, 26);
getContentPane().add(p6);
p6.setColumns(10);

p7 = new JTextField();
p7.setFont(new Font("Times New Roman", Font.BOLD, 14));
p7.setBounds(1136, 385, 189, 26);
getContentPane().add(p7);
p7.setColumns(10);

JButton button_1 = new JButton("Update");


button_1.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database
Connected");

}catch(Exception e){
}

try{

String pid,pna,gen,ag,pn,add,dis,chk;
pid=p1.getText();
pna=p2.getText();
gen=Gender;
ag=p3.getText();
pn=p4.getText();
add=p5.getText();
dis=p6.getText();
chk=p7.getText();

psmt=con.prepareStatement("update PatientInformation
set Pname='"+ pna +"', Gender='"+ gen +"' ,Age='" + ag +"', Phone='" + pn +"',
Address='"+ add +"', Diseses='" + dis +"', CheckIn='" + chk +"' where Pid="+ pid
);

psmt.executeUpdate();
JOptionPane.showMessageDialog(null,"Updated");
p2.setText("");
p3.setText("");
p4.setText("");
p5.setText("");
p6.setText("");
p7.setText("");
p1.setText("");

}catch(SQLException g2){
JOptionPane.showMessageDialog(null,g2.toString());
}

}
});
button_1.setForeground(new Color(128, 0, 128));
button_1.setFont(new Font("Times New Roman", Font.BOLD, 20));
button_1.setBounds(676, 470, 104, 33);
getContentPane().add(button_1);

JRadioButton rdbtnFemale = new JRadioButton("Female");


rdbtnFemale.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

Gender="Female";

}
});

buttonGroup.add(rdbtnFemale);

rdbtnFemale.setBounds(700, 325, 86, 33);


getContentPane().add(rdbtnFemale);

JRadioButton rdbtnMale = new JRadioButton("Male");


rdbtnMale.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

Gender="Male";

}
});
buttonGroup.add(rdbtnMale);

rdbtnMale.setBounds(788, 325, 86, 33);

getContentPane().add(rdbtnMale);

p3 = new JTextField();
p3.setFont(new Font("Times New Roman", Font.BOLD, 14));
p3.setColumns(10);
p3.setBounds(701, 385, 178, 26);
getContentPane().add(p3);

JLabel label = new JLabel("");


label.setIcon(new
ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\88.png"));
label.setBounds(486, 0, 100, 80);
getContentPane().add(label);

JButton btnDelete = new JButton("Delete");


btnDelete.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
con =
DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database
Connected");

}catch(Exception e){
}

try{

psmt = con.prepareStatement("Delete from


PatientInformation where Pid=? and Pname=? and Age=? and Phone=? and Address=?
and Diseses=? and chekin =? ");
psmt.setString(1,p1.getText());
psmt.setString(2,p2.getText());
psmt.setString(3,p3.getText());
psmt.setString(4,p4.getText());
psmt.setString(5,p5.getText());
psmt.setString(6,p6.getText());
psmt.setString(7,p7.getText());

psmt.execute();
}catch(SQLException e){

}
});
btnDelete.setForeground(new Color(128, 0, 128));
btnDelete.setFont(new Font("Times New Roman", Font.BOLD, 20));
btnDelete.setBounds(932, 470, 104, 33);
getContentPane().add(btnDelete);

JButton btnSearch = new JButton("Search");


btnSearch.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

try{
String cId;
cId=(textField.getText());
psmt=con.prepareStatement("select*from Table1
where Name=?");
psmt.setString(1,cId);
rs=psmt.executeQuery();

if(rs.next())
{

textField.setText(rs.getString(1));
textField_1.setText(rs.getString(2));

}
else
{
JOptionPane.showMessageDialog(null,"
Record not found");
}

con.close();
psmt.close();

}
});
btnSearch.setForeground(new Color(128, 0, 128));
btnSearch.setFont(new Font("Times New Roman", Font.BOLD, 20));
btnSearch.setBounds(306, 301, 104, 33);
getContentPane().add(btnSearch);

JButton button = new JButton("Exit");


button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

menu window = new menu();


window.frame.setVisible(true);
}
});
button.setForeground(new Color(128, 0, 128));
button.setFont(new Font("Times New Roman", Font.BOLD, 20));
button.setBounds(1188, 470, 104, 33);
getContentPane().add(button);

}
}

}
Doctor Search Form

import java.awt.EventQueue;

import javax.swing.JInternalFrame;

import javax.swing.JButton;

import javax.swing.JLabel;

import javax.swing.JOptionPane;

import java.awt.Font;

import java.awt.Color;

import javax.swing.JTextField;

import javax.swing.ImageIcon;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.ResultSet;

import java.sql.SQLException;
import javax.swing.JRadioButton;

import javax.swing.ButtonGroup;

public class doctor extends JInternalFrame {

private JTextField d1;

private JTextField d2;

private JTextField d3;

private JTextField d4;

private JTextField d5;

String Gender;

private final ButtonGroup buttonGroup = new ButtonGroup();

PreparedStatement psmt;

Connection con;

private JTextField d6;

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

doctor frame = new doctor();


frame.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the frame.

*/

public doctor() {

getContentPane().setBackground(new Color(192, 192, 192));

setBounds(0, 0, 1366, 730);

getContentPane().setLayout(null);

JLabel label = new JLabel("");

label.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\88.png"));

label.setBackground(Color.LIGHT_GRAY);

label.setBounds(526, 0, 100, 80);

getContentPane().add(label);

JLabel lblDoctor = new JLabel("Doctor");

lblDoctor.setForeground(new Color(30, 144, 255));

lblDoctor.setFont(new Font("Times New Roman", Font.BOLD, 35));


lblDoctor.setBounds(636, 0, 105, 41);

getContentPane().add(lblDoctor);

JLabel lblName = new JLabel(" ID");

lblName.setForeground(new Color(32, 178, 170));

lblName.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblName.setBounds(418, 143, 105, 41);

getContentPane().add(lblName);

d1 = new JTextField();

d1.setFont(new Font("Times New Roman", Font.BOLD, 14));

d1.setColumns(10);

d1.setBounds(571, 150, 170, 26);

getContentPane().add(d1);

d2 = new JTextField();

d2.setFont(new Font("Times New Roman", Font.BOLD, 14));

d2.setColumns(10);

d2.setBounds(571, 232, 170, 26);

getContentPane().add(d2);

d3 = new JTextField();

d3.setFont(new Font("Times New Roman", Font.BOLD, 14));

d3.setColumns(10);

d3.setBounds(571, 320, 170, 26);


getContentPane().add(d3);

JLabel lblAge = new JLabel(" Age");

lblAge.setForeground(new Color(32, 178, 170));

lblAge.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAge.setBounds(418, 225, 105, 41);

getContentPane().add(lblAge);

JLabel lblContactNo = new JLabel("Contact No");

lblContactNo.setForeground(new Color(32, 178, 170));

lblContactNo.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblContactNo.setBounds(418, 313, 124, 46);

getContentPane().add(lblContactNo);

JLabel lblId = new JLabel("Name");

lblId.setForeground(new Color(32, 178, 170));

lblId.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblId.setBounds(828, 143, 135, 41);

getContentPane().add(lblId);

d4 = new JTextField();

d4.setFont(new Font("Times New Roman", Font.BOLD, 14));

d4.setColumns(10);

d4.setBounds(973, 150, 170, 26);

getContentPane().add(d4);
d5 = new JTextField();

d5.setFont(new Font("Times New Roman", Font.BOLD, 20));

d5.setColumns(10);

d5.setBounds(973, 320, 170, 26);

getContentPane().add(d5);

JLabel lblDepartment = new JLabel("Department");

lblDepartment.setForeground(new Color(32, 178, 170));

lblDepartment.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblDepartment.setBounds(828, 310, 135, 46);

getContentPane().add(lblDepartment);

JLabel lblGender = new JLabel("Gender");

lblGender.setForeground(new Color(32, 178, 170));

lblGender.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblGender.setBounds(828, 222, 135, 46);

getContentPane().add(lblGender);

JRadioButton rdbtnFemale = new JRadioButton("Female");

rdbtnFemale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

Gender="Female";

}
});

buttonGroup.add(rdbtnFemale);

rdbtnFemale.setBounds(970, 225, 86, 33);

getContentPane().add(rdbtnFemale);

JRadioButton rdbtnMale = new JRadioButton("Male");

rdbtnMale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

Gender="Male";

});

buttonGroup.add(rdbtnMale);

rdbtnMale.setBounds(1057, 225, 86, 33);

getContentPane().add(rdbtnMale);

JButton btnReset = new JButton("Reset");

btnReset.setForeground(new Color(128, 0, 128));

btnReset.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnReset.setBounds(828, 419, 104, 33);

getContentPane().add(btnReset);

JButton button = new JButton("Update");

button.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database Connected");

}catch(Exception e){

try{

String did,dna,dag,dpn,dadd,genn;

dna=d4.getText();

dadd=d5.getText();

dag=d2.getText();

dpn=d3.getText();

genn=Gender;

did=d1.getText();
psmt=con.prepareStatement("update DoctorInfo set DName='"+
dna +"', Department='"+ dadd +"', Gender='" + genn +"' ,Age='" + dag +"', ContactNo='" + dpn +"' where
DId="+ did );

psmt.executeUpdate();

JOptionPane.showMessageDialog(null,"Updated");

d4.setText("");

d5.setText("");

d2.setText("");

d3.setText("");

d1.setText("");

}catch(SQLException g2){

JOptionPane.showMessageDialog(null,g2.toString());

});

button.setForeground(new Color(128, 0, 128));

button.setFont(new Font("Times New Roman", Font.BOLD, 20));


button.setBounds(620, 419, 104, 33);

getContentPane().add(button);

JButton btnAdd = new JButton("Add");

btnAdd.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database Connected");

}catch(Exception e){

try{

psmt=con.prepareStatement("insert into
DoctorInfo(DId,Age,ContactNo,Dname,Department,Gender) values(?,?,?,?,?,?)");

psmt.setString(1,d1.getText());

psmt.setString(2,d2.getText());
psmt.setString(3,d3.getText());

psmt.setString(4,d4.getText());

psmt.setString(6,Gender);

psmt.setString(5,d5.getText());

JOptionPane.showMessageDialog(null,"data submit");

psmt.executeQuery();

}catch(SQLException e ){

});

btnAdd.setForeground(new Color(128, 0, 128));

btnAdd.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnAdd.setBounds(418, 419, 104, 33);

getContentPane().add(btnAdd);

JButton button_1 = new JButton("Exit");

button_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

menu window = new menu();

window.frame.setVisible(true);

});

button_1.setForeground(new Color(128, 0, 128));

button_1.setFont(new Font("Times New Roman", Font.BOLD, 20));

button_1.setBounds(1039, 419, 104, 33);

getContentPane().add(button_1);

JLabel lblInputDoctorsId = new JLabel(" Input Doctor's ID");

lblInputDoctorsId.setForeground(new Color(65, 105, 225));

lblInputDoctorsId.setFont(new Font("Times New Roman", Font.BOLD, 22));

lblInputDoctorsId.setBounds(184, 161, 208, 34);

getContentPane().add(lblInputDoctorsId);

d6 = new JTextField();

d6.setFont(new Font("Times New Roman", Font.BOLD, 20));

d6.setColumns(10);

d6.setBounds(169, 205, 208, 34);

getContentPane().add(d6);

JButton button_3 = new JButton("Search");


button_3.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

String cId;

cId=(d6.getText());

psmt=con.prepareStatement("select*from DoctorInfo where


DId=?");

psmt.setString(1,cId);

ResultSet rs = psmt.executeQuery();

if(rs.next())

d1.setText(rs.getString(1));

d2.setText(rs.getString(2));

d3.setText(rs.getString(3));

d4.setText(rs.getString(4));

d5.setText(rs.getString(5));

else

{
JOptionPane.showMessageDialog(null," Record not
found");

con.close();

psmt.close();

}catch(SQLException e2 )

System.out.println("error");

});

button_3.setForeground(new Color(128, 0, 128));

button_3.setFont(new Font("Times New Roman", Font.BOLD, 20));

button_3.setBounds(225, 271, 104, 33);

getContentPane().add(button_3);

}
Staff Form
import java.awt.EventQueue;

import javax.swing.JInternalFrame;

import javax.swing.JButton;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import java.awt.Color;

import javax.swing.JLabel;

import javax.swing.ImageIcon;

import java.awt.Font;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.SQLException;

import javax.swing.JOptionPane;

import javax.swing.JTextField;

import javax.swing.JRadioButton;

import javax.swing.ButtonGroup;
public class staff extends JInternalFrame {

private JTextField textField;

private JTextField s1;

private JTextField s2;

private JTextField s3;

private JTextField s4;

private JTextField s5;

private JTextField s6;

String Gender;

private final ButtonGroup buttonGroup = new ButtonGroup();

PreparedStatement psmt;

Connection con;

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

staff frame = new staff();

frame.setVisible(true);
} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the frame.

*/

public staff() {

getContentPane().setBackground(new Color(192, 192, 192));

setBounds(0, 0, 1366, 730);

getContentPane().setLayout(null);

JLabel label = new JLabel("");

label.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\88.png"));

label.setBounds(482, 0, 100, 80);

getContentPane().add(label);

JLabel lblStaffInformation = new JLabel("Staff Information");

lblStaffInformation.setForeground(new Color(30, 144, 255));

lblStaffInformation.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblStaffInformation.setBounds(596, 11, 268, 41);

getContentPane().add(lblStaffInformation);
JLabel lblInputStaffsName = new JLabel(" Input Staff's Name");

lblInputStaffsName.setForeground(new Color(65, 105, 225));

lblInputStaffsName.setFont(new Font("Times New Roman", Font.BOLD, 22));

lblInputStaffsName.setBounds(302, 204, 208, 34);

getContentPane().add(lblInputStaffsName);

textField = new JTextField();

textField.setFont(new Font("Times New Roman", Font.BOLD, 20));

textField.setColumns(10);

textField.setBounds(312, 249, 208, 34);

getContentPane().add(textField);

JLabel lblId = new JLabel(" ID");

lblId.setForeground(new Color(32, 178, 170));

lblId.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblId.setBounds(542, 207, 150, 26);

getContentPane().add(lblId);

JLabel lblName = new JLabel(" Name");

lblName.setForeground(new Color(32, 178, 170));

lblName.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblName.setBounds(542, 283, 150, 26);

getContentPane().add(lblName);
JLabel lblGender = new JLabel(" Gender");

lblGender.setForeground(new Color(32, 178, 170));

lblGender.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblGender.setBounds(542, 358, 150, 26);

getContentPane().add(lblGender);

s1 = new JTextField();

s1.setFont(new Font("Times New Roman", Font.BOLD, 14));

s1.setColumns(10);

s1.setBounds(699, 207, 178, 26);

getContentPane().add(s1);

s2 = new JTextField();

s2.setFont(new Font("Times New Roman", Font.BOLD, 14));

s2.setColumns(10);

s2.setBounds(702, 283, 178, 26);

getContentPane().add(s2);

JLabel lblPosition = new JLabel("Position");

lblPosition.setForeground(new Color(32, 178, 170));

lblPosition.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblPosition.setBounds(976, 203, 109, 34);

getContentPane().add(lblPosition);

JLabel lblSalary = new JLabel("Salary");


lblSalary.setForeground(new Color(32, 178, 170));

lblSalary.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblSalary.setBounds(976, 283, 109, 26);

getContentPane().add(lblSalary);

JLabel lblContactNo = new JLabel("Contact No");

lblContactNo.setForeground(new Color(32, 178, 170));

lblContactNo.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblContactNo.setBounds(976, 358, 126, 26);

getContentPane().add(lblContactNo);

JLabel lblAddress = new JLabel(" Address");

lblAddress.setForeground(new Color(32, 178, 170));

lblAddress.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblAddress.setBounds(542, 436, 150, 26);

getContentPane().add(lblAddress);

s3 = new JTextField();

s3.setFont(new Font("Times New Roman", Font.BOLD, 14));

s3.setColumns(10);

s3.setBounds(1111, 207, 178, 26);

getContentPane().add(s3);

s4 = new JTextField();

s4.setFont(new Font("Times New Roman", Font.BOLD, 14));


s4.setColumns(10);

s4.setBounds(1111, 283, 178, 26);

getContentPane().add(s4);

s5 = new JTextField();

s5.setFont(new Font("Times New Roman", Font.BOLD, 14));

s5.setColumns(10);

s5.setBounds(1112, 358, 178, 26);

getContentPane().add(s5);

s6 = new JTextField();

s6.setFont(new Font("Times New Roman", Font.BOLD, 14));

s6.setColumns(10);

s6.setBounds(702, 436, 178, 26);

getContentPane().add(s6);

JButton btnAdd = new JButton("Add");

btnAdd.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");
JOptionPane.showMessageDialog(null,"database Connected");

}catch(Exception e){

try{

psmt=con.prepareStatement("insert into
StaffInformation(SId,Sname,Gender,Position,Salary,Phone,Address) values(?,?,?,?,?,?,?)");

psmt.setString(1,s1.getText());

psmt.setString(2,s2.getText());

psmt.setString(3,Gender);

psmt.setString(4,s3.getText());

psmt.setString(5,s4.getText());

psmt.setString(6,s5.getText());

psmt.setString(7,s6.getText());

JOptionPane.showMessageDialog(null,"data submit");

psmt.executeQuery();
}catch(SQLException e ){

});

btnAdd.setForeground(new Color(128, 0, 128));

btnAdd.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnAdd.setBounds(559, 496, 104, 33);

getContentPane().add(btnAdd);

JButton btnUpdate = new JButton("Update");

btnUpdate.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent e) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database Connected");
}catch(Exception e1){

JOptionPane.showMessageDialog(null,"not Connected");

try{

String sid,sna,gen,pos,sal,ph,addr;

sid=s1.getText();

sna=s2.getText();

gen=Gender;

pos=s3.getText();

sal=s4.getText();

ph=s5.getText();

addr=s6.getText();

psmt=con.prepareStatement("update StaffInformation set


Sname='"+ sna +"', Gender='"+ gen +"', Position='" + pos +"', Salary='" + sal +"', Phone='" + ph +"', Address='"
+ addr +"' where SId="+ sid );

psmt.executeUpdate();

JOptionPane.showMessageDialog(null,"Updated");
s2.setText("");

s3.setText("");

s4.setText("");

s5.setText("");

s6.setText("");

s1.setText("");

}catch(SQLException g2){

JOptionPane.showMessageDialog(null,g2.toString());

});

btnUpdate.setForeground(new Color(128, 0, 128));

btnUpdate.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnUpdate.setBounds(785, 496, 104, 33);

getContentPane().add(btnUpdate);

JRadioButton rdbtnFemale = new JRadioButton("Female");

rdbtnFemale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

Gender="Female";
}

});

buttonGroup.add(rdbtnFemale);

rdbtnFemale.setBounds(703, 358, 86, 33);

getContentPane().add(rdbtnFemale);

JRadioButton rdbtnMale = new JRadioButton("Male");

rdbtnMale.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

Gender="Male";

});

buttonGroup.add(rdbtnMale);

rdbtnMale.setBounds(791, 358, 86, 33);

getContentPane().add(rdbtnMale);

JButton button = new JButton("Search");

button.setForeground(new Color(128, 0, 128));

button.setFont(new Font("Times New Roman", Font.BOLD, 20));

button.setBounds(354, 307, 104, 33);

getContentPane().add(button);

JButton button_1 = new JButton("Exit");

button_1.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent arg0) {

menu window = new menu();

window.frame.setVisible(true);

});

button_1.setForeground(new Color(128, 0, 128));

button_1.setFont(new Font("Times New Roman", Font.BOLD, 20));

button_1.setBounds(1029, 496, 104, 33);

getContentPane().add(button_1);

}
User Info Form
import java.awt.EventQueue;

import javax.swing.AbstractButton;

import javax.swing.JInternalFrame;

import javax.swing.JButton;

import javax.swing.JOptionPane;

import java.awt.event.ActionListener;

import java.awt.event.ActionEvent;

import java.awt.Color;

import javax.swing.JLabel;

import javax.swing.ImageIcon;

import java.awt.Font;

import java.awt.Panel;

import java.sql.Connection;

import java.sql.DriverManager;

import java.sql.PreparedStatement;

import java.sql.SQLException;

import javax.swing.JPanel;

import javax.swing.JTextField;

public class userinfor extends JInternalFrame {

PreparedStatement psmt;
Connection con;

private JTextField textField;

private JTextField textField_1;

/**

* Launch the application.

*/

public static void main(String[] args) {

EventQueue.invokeLater(new Runnable() {

public void run() {

try {

userinfor frame = new userinfor();

frame.setVisible(true);

} catch (Exception e) {

e.printStackTrace();

});

/**

* Create the frame.

*/

public userinfor() {
getContentPane().setBackground(new Color(192, 192, 192));

setBounds(0, 0, 1366, 730);

getContentPane().setLayout(null);

JLabel lblUserInformation = new JLabel("User Information");

lblUserInformation.setForeground(new Color(30, 144, 255));

lblUserInformation.setFont(new Font("Times New Roman", Font.BOLD, 35));

lblUserInformation.setBounds(646, 11, 261, 41);

getContentPane().add(lblUserInformation);

JButton btnNew = new JButton("Add");

btnNew.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

try{

Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");

con = DriverManager.getConnection("jdbc:odbc:clinicdb","","");

JOptionPane.showMessageDialog(null,"database Connected");

}catch(Exception e){

}
try{

psmt=con.prepareStatement("insert into
login(UserName,Password) values(?,?)");

AbstractButton text1 = null;

psmt.setString(1,text1.getText());

AbstractButton text2 = null;

psmt.setString(2,text2.getText());

JOptionPane.showMessageDialog(null,"data submit");

psmt.executeQuery();

}catch(SQLException e ){

});

btnNew.setForeground(new Color(128, 0, 128));

btnNew.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnNew.setBounds(587, 344, 104, 33);

getContentPane().add(btnNew);
JButton btnClose = new JButton("Close");

btnClose.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

System.exit(0);

});

btnClose.setForeground(new Color(128, 0, 128));

btnClose.setFont(new Font("Times New Roman", Font.BOLD, 20));

btnClose.setBounds(803, 344, 104, 33);

getContentPane().add(btnClose);

JLabel label = new JLabel("");

label.setIcon(new ImageIcon("C:\\Users\\Divya\\workspace\\clinic\\project img\\88.png"));

label.setBackground(Color.LIGHT_GRAY);

label.setBounds(532, 0, 100, 80);

getContentPane().add(label);

JLabel lblNewLabel = new JLabel(" Add New User");

lblNewLabel.setForeground(new Color(0, 0, 128));

lblNewLabel.setFont(new Font("Times New Roman", Font.BOLD, 33));

lblNewLabel.setBounds(641, 95, 233, 33);

getContentPane().add(lblNewLabel);
JLabel lblUserName = new JLabel(" User Name");

lblUserName.setForeground(new Color(32, 178, 170));

lblUserName.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblUserName.setBounds(550, 173, 181, 26);

getContentPane().add(lblUserName);

textField = new JTextField();

textField.setFont(new Font("Times New Roman", Font.BOLD, 14));

textField.setColumns(10);

textField.setBounds(766, 173, 170, 26);

getContentPane().add(textField);

textField_1 = new JTextField();

textField_1.setFont(new Font("Times New Roman", Font.BOLD, 14));

textField_1.setColumns(10);

textField_1.setBounds(766, 241, 170, 26);

getContentPane().add(textField_1);

JLabel lblPassword = new JLabel(" Password");

lblPassword.setForeground(new Color(32, 178, 170));

lblPassword.setFont(new Font("Times New Roman", Font.BOLD, 25));

lblPassword.setBounds(562, 241, 154, 26);

getContentPane().add(lblPassword);
JButton button = new JButton("Exit");

button.addActionListener(new ActionListener() {

public void actionPerformed(ActionEvent arg0) {

menu window = new menu();

window.frame.setVisible(true);

});

button.setForeground(new Color(128, 0, 128));

button.setFont(new Font("Times New Roman", Font.BOLD, 20));

button.setBounds(1027, 344, 104, 33);

getContentPane().add(button);

}
System Testing:-
The aim of testing process is to identify all defects existing in a software product. But it provides a
practical way of reducing defects in a system and increasing the user’s confidence in a developed
system.
There are several factors that results in errors but three main areas:
 Communication between the user and the designer.
 The programmer’s ability to generate a code that reflects exactly the system
specification.
 The time frame for the design.
Verification and validation
Verification is the process of determining whether the output of one phase of software development
conforms to that of its previousphase.
Validation is the process of determining whether a fully developed system conforms to its
requirements specification.
Verification and Validation are important part of testing process. Verification and validation mustbe
checked for accurate and efficient flow of software.
The effects of the system errors on the files and records with in the system .some tests which we did
to make our project error free are as follows:

Volume Testing:-

In this test, we create as many records as many records as world normally be produce to
verify that the hardware and software will function correctly.
The purpose of stress testing is to prove that candidate system does not malfunction under peak
loads. Unlike volume testing, where time is not a factor, we subject to a high volume of data cover
time period.
Current Problems
 The current system is very time consuming.
 It is very difficult to analyze the record manually.
 Which doctors is allocated the which patient
 Results are not precise as calculation and evaluations are done manually. 
 The chances of paper leakage are more in current system as compared to proposed system. 
 Billing and medicine Stock processing takes more time as it is done manually.

Areas for Improvement

 Save record and retrieve on demand user.


 Doctor allocation to the patient is computerized system.
 Billing And payment are not calculated manually.
 Electronic medical records
Future Enhancements

The proposed system is Hospital Management System. We can enhance this system by including
more facilities like billing system, inpatient room allotment for the admitted patients and the stock
details of medicines in the pharmacy. Providing such features enable the users to include more
comments into the system.
Bibliography

www.Wikipedia.com

www.google.com

www.Microsoft.com

Windows server 2003 environment

Complete Reference .Net Framework

You might also like