0% found this document useful (0 votes)
14 views

Hospital Report 1

The project report details the development of a Hospital Management System aimed at efficiently managing patient and doctor data. It outlines the system's specifications, design, and analysis, including hardware and software requirements, data flow diagrams, and entity-relationship diagrams. The report emphasizes user-friendliness, security, and error management as key performance requirements for the system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
14 views

Hospital Report 1

The project report details the development of a Hospital Management System aimed at efficiently managing patient and doctor data. It outlines the system's specifications, design, and analysis, including hardware and software requirements, data flow diagrams, and entity-relationship diagrams. The report emphasizes user-friendliness, security, and error management as key performance requirements for the system.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 145

A

PROJECT REPORT
ON

Submitted towards partial fulfillment of the requirement


For the awards of the degree of

D.A.V. COLLEGE , MUZAFFARNAGAR

(Affiliated to Ch.Charan Singh University MEERUT)

“BACHELOR OF COMPUTER APPLICATION”


Session (2021-2022)

Submitted to Submitted by

Mrs. Vishalni Vikrant Saini


Yash Dhiman
Sarthak Saini

1
INDEX

1. Acknowledgement………..………………………………………….
2. Study Center Certificate……….…………………………………….
3. Introduction………………………………………………………….
4. Preface………………………………………………………..………
5. Hardware, Software Specification……………………………………
 Hardware requirement…………………………………………
 Software requirement………………………………………….
 Database design………………………………………………..
 Dataflow diagram……………………………………………..
 ER-Diagram …………………………………………………..
5. System analysis……………………………………………………….
6. Software Planning…………………………………………………….
System design…………………………………………………………
8. Testing & Debugging...……………………………………………….
9. Security of the system…………………………………………………
10. Coding……………………..…………………………………………
11. Output………………………………………………………………..
11. Bibliography………………………………………….……………...

2
3
This project report on ”HOSPITAL MANAGEMENT SYSTEM” is the result of idea
and suggestions to me by Mrs. Vishalni

I have received unfailing encouragement and inspiration of Mrs. Vishalni whose


exceptional knowledge and unparalleled behavior is full of ardent inspiration in it.
However, we can never adequate thank all those who have their assistance, guidance,
cooperation criticism contributed to the improvement of this report. I am ebullient in
expressing my intense in debtless heartiest gratitude to all of them.

Since performance feedback is essential for effective communication, mistakes and


creative feedback of the report may be unhesitatingly communicated to me, which will be
as far as possible duly acknowledged and most welcome.

In this report, whatever is beneficial comes from almighty, and whatever is faulty is
mine.

DATE SUBMITED BY

Vikrant Saini
Yash Dhiman
Sarthak Saini

4
DECLARATION

This is to certify that the dissertation / project report entitled “ Hospital management
System ” is an authentic work carried out for the partial fulfillment of the Bachelors
Degree of Computer Application under the guidance of Mrs. Vishalni The matter
embodied in this project work has not been submitted earlier for award of any degree or
diploma to the best of my knowledge and belief.

Signature of the students


Vikrant saini
Yash Dhiman
Sarthak Saini

5
INTRODUCTION

The aim of this project i.e Hospital Management System is to maintain the Patent data,
There is only one type of user in this system, known as registered user. The user first insert
the data of all the Patent whose attendance is to be maintained and then can use patent
window. In this project, we can maintain the patent and doctor data Month wise. This
software provides you we can search the patent details of a particular patent quickly which
helps in time saving.

6
PREFACE

This project has been written in simple language. In presenting this project matter, we
have tried our best to make this exposition very clear and concise. Every attempt has
been made to create the interest of the converted people in project. Although the
presentation has made in the honest manner and the entire human weakness and they are
if the constructive suggestion modification and error brought to our notice will be highly
appreciated and grateful acknowledged.

This document is a full information document that serves for SRS document also. This
project contains all basic facilities that can be provide by a technical institute
management system.

We had kept the focus, while developing the project, that it should be project that be
implemented in any technical college with only slight modifications. Because it is an
introductory project so it does not contain all facilities that provided by a university.

7
HARDWARE REQUIREMENT

This software run in any environment .This software needs at least Pentium prosessor
32MB RAM memory,2.1GB of Hard disk ,SVGA display of 1 MB video memory and
color monitor but with this lot of processor power consumed and speed of the system will
be very slow. Therefore a realistic hardware configuration for this software is:-

Processor : i3 or higher processor


Operating System : Microsoft windows 7
Ram Memory : 4GB
Hard Disk : 8.4 GB
Display : VGA card
Keyboard : 104 keys
Mouse : True Mouse
JAVA NeatBeans : 6.5
Microsoft Access : 2007

8
FRONT END

JAVA NEATBEANS has been developed by MicroSystem. can use a large number of
reference liabraries and components. JAVA NEATBEANS –the environment-provides
integration with a variety of other tools, including source code management ,component
reuse tools and data manipulation. NeatBeans truly is much more of a “programming
environment” than just a language. using this environment ,a single developer can
quickly create a simple application; a team of developers can create a so sophisticated,
distributed application.

Features in JAVA NEATBEANS 6.5

 Data access
 Internet features
 Controls
 Component creation
 Language
 Wizards

JAVA NeatBean has evolved to be much more than a language-it is an application


producing “machine”.no other development environment on the planet provides as wide a
variety of capabilities in the box as NeatBeans. Even though JAVA NeatBeans is much
more productive than other tools,it also requires more discipline to produce clean design.
A key to improving your programming technique is to embrace the capabilities to create
classes and ActiveX in Java.

As system becomes more complex and distributed, no single tool can address all of the
needs of the system. JAVA NeatBeans provides the development environments with the
raw tools needed to build small systems well as components of large system.

9
If we look at all of the new features and functions added to the 6.5 release of the JAVA
NeatBeans, a couple of themes become evident: the internet and the database

BACK END

A database is a collection of information that’s related to a particular subject or purpose,


such as tracking customer orders or maintaining a music collection .If your database isn’t
stored on a computer, or only parts of it are , you may be tracking information from a
variety of sources that you have having to coordinate and organize yourself.

For example, suppose the phone numbers of your suppliers are stored in various
locations: in a card file containing supplier phone numbers, in product information file
cabinet, and in a spreadsheet containing order information .if a supplier’s phone number
changes, you might have to update that information in all three places in database,
however, you only have to update that information in one place- the supplier’s phone
number is automatically updated wherever you use it in database.

Using Microsoft Access, you can manage all your information from a single database
file. within the file, you can use:

 Tables to store your data.


 Queries to find and retrieve just the data you want
 Forms to view, add and update data in tables.
 Reports to analyze or print data in a specific layout.
 Data access pages to view, update, or analyze the database’s data from the internet or
an intranet.

10
HOSPITAL CHART

BOOKING ROOM

STAFF HOSPITAL ROOMS

CALCULATE BILL
PATIENT

REPORTS

11
DFD FOR USER LOGIN

USER 1 User_id
User Enter Their Password & User_Id for
Opening the application
Accessing User
Information
Invalid Pasword
Validity
Process
User Matched Accessing User
Information

Valid User for Type


Matching

Invalid User Type User Type


Validity
Process
Matched

12
DFD FOR ROOM

t ROOM

Room details

Data
Validity
Process 1 Patient1
Room not
available

2 Patient2

13
DFD FOR PATIENT

PATIENT
1 Room1

Accessing Patient
Info

Searching Room

Not found

Display Process
Available room

14
ENTITY – RELATIONSHIP DIAGRAM

The entity – relationship (E – R) data model is based on a perception of a real world that
consists of a collection of basic objects, called entities, and of relationships among these
objects. An entity is a thing or objects in the real world that is distinguishable from other
objects. Entities are described in database by a set of attributes.

A relationship is an association among several entities. The set of all entities of the same
type and the set of all relationships of the same type are termed as entity set and
relationship set, respectively.

The overall logical structure (schema) of a database can be expressed graphically by an


E-R Diagram, which is built up from the following components:

 Rectangles, which represents entity sets.

 Ellipses, which represents attributes.

 Diamonds, which represents relationships among entity sets.

 Lines, which link attributes to entity sets and entity sets to relationships.

15
rent
Age Phon
Address e
Roomtype Name
Roomno
ROOM
Patient
Roomno Admit

Date

contains Pid
has

HOSPITAL
DATABASE

Has staff
members

address

staff

staffid

post
name

16
OPERATIONS OF PRESENT SYSTEM

The Hospital Management is further the integration of various sub-systems. Broadly


speaking these sub-system are based on following broadly classified activities.

A. Login Window
 Login Id
 Password
B. Patient Management
 Add new patient Entry
 Delete patient Entry
 Modify patient Entry
 Search patient Entry

17
SYSTEM DEVELOPMENT LIFE CYCLE

Software development is a complex process so we divide the process in a small module.


These modules are called system development phases. These phases are combinedly
known as system development life cycle. These linear cycle phases are given below: -

i. Recognition of Needs: - It includes preliminary survey and initial investigation by


personnel interviews and questionnaires.

ii. System Analysis: - Detailed evaluation of present system and data collection is
done. The various reports and documents used are studied in detail. After that the
interview of various levels of management is carried out. The DFD. Data dictionary,
Menu chart are the tools used for it.

iii. System Design: - It involves general and detailed design specification, output, input
files, files, program construction plans, all these details are submitted to user and
got signed.

iv. System Construction: - It involves implementation of total construction plan i.e.


coding. It is done in a language i.e. known to user, analyst and programmer.

v. Testing: - Each and every input and output program is executed separately and
tested for bugs. Whole of the system is executed and test data is prepared and is fed
in to the system and the output reports are compared with the parameters.

vi. Implementation: - It checks that users requirement are fulfilled or not. Response
time is checked and finally the user manual is prepared and is submitted.

18
ANALYSIS PHASE

PROPOSAL FOR A NEW SYSTEM

SYSTEM DEFINATION

A system may be defined as any set of modules and ideas and its inter-relationships that
is ordered to achieve a common goal .A system processes the input to produce
outputs .The process in a manual system usually employs various types of elements.
 Physical
 Procedural
 Conceptual
 Social etc.
A system is limited by its boundary. A system is composed of sub-systems, which are
also systems as this developed Hospital Management System. It was decided to develop
a system which having following features:

1. Patent Form
2. Staff Form
3. Doctor Form
4. Salary

Therefore, the system has the characteristics of frequently available information.

19
PERFORMANCE REQUIREMENTS:

1. USER-FRIENDLY:
The system should be user friendly so that it can be easily understood by the user without
any difficulty.

2. EASY TO MAINTAIN:

The system be easy to maintain and use. The system should be less time consuming
whish could be achieved by good programming.

3. PORTABILITY:

The system probability should be take care of without any interventions.

4. SECURITY:
The system should be secure from the unauthorized access and should be password
protected so that no other user can access it.

5. ERROR FREE:

The system should easily handle the use error in any case.
GENERAL ATTRIBUTES:

 AVAILABILITY
 MAINTAINABILITY
This software can be maintained with the help of extensive documentation to be
provided to the client.
 TRANSFERABILITY/CONVERSION
Product can easily be transferable to new version of windows.

20
LIMITATIONS OF EXISTING SYSTEM

When the existing system of the Hospital is working, we found that some add on were
required there so that problems could be solved. Some of the problems or limitations in
the present system are: -

1) To update each Patient the patient has to Modify each room.

2) While preparing the Reports statements the Staff members have to manually go
through the Records Mannually.

3) There is no security of the database register i.e. any other person can make changes in
the database.

4) Calculating billing.

5) It is a time consuming task to prepare the list of patient of different room.

21
SYSTEM ANALYSIS

OBJECTIVE OF THE STUDY

Information plays a key role as the horizons of knowledge keep on expanding since the
project is an effort to making a software for Hospital that holds the complete information
of Hospital and Patient.

System Analysis is a very vast field of study through which a system analyst puts his
thought and search for the best solution of problem .Really, system analysis is not a
precise science, in fact it is an art of scientific approach through which a analyst find the
facts and records them in flexible manner . Since the evolution of computer, computer
based information system has generally increased the quality and the performance of the
computerization of entrance test, that’s why the possibility of partiality or mistakes by
checker has lowered down almost to zero(0).

For understanding the actual performance it provides lots of options are here which
make works easy and one click event.

PRELIMINARY INVESTIGATION

The first step in the computerization of entrance test is to investigate the feasibility of the
system. The purpose is to evaluate the project requirement .It is the collection of
information that made the impartial and very easy for the user to attempt any entrance
test.
The following objectives were achieved during the preliminary investigation.
 Classification and the understanding of the project.
 Determination of options required for the test

22
 Determination of the technical and operational feasibility of the alternative
approaches.
.
STRUCTURED ANALYSIS

DATA FLOW MODEL (DFD)

The DFD may be used to represent a system at any level of abstraction. It may be
partitioned into two levels that represent increased and functional flow details .It is also
called fundamental model or context model represent as a entire software element.

A DFD is a graphical technique that depicts information flow and transforms that are
applied as data move from input to output that is why it is also called bubble chart .It may
be broken into different levels. Function depicted here are sub functions of overall system
depicted in the context model.

FEASIBILITY ANALYSIS

It is a text of proposed system according to its work ability, ability to meet users need
and effective use of resources.

It is developed as a selection criteria and selection procedures. There are three criteria for
judgement are as follows:

TECHNICAL FEASIBILITY
This tells whether the appropriate h/w and s/w application tools will be available when
required. The system is developed under.
 Core i3
 Window -7 Plateform
 JAVA( Neat Beans)

23
ECONOMICAL FEASIBILITY

The application module has since been by us but it is difficult to know the cost of this
package in monetary terms after considering h/w, s/w and overall expenses in project
making.

OPERATIONAL FEASIBILITY:

This informs us whether the user will accept it or not and considered that it does not need
extra training to operate it .

Online guidelines are to be there and proper error message are to be displayed if occurs
during execution. Moreover the reports are generated in same format as are in existing
system.

24
DESIGN OBJECTIVE

Desugn is an excat blueprint of what will be built & a basis for the configuration &
content of that blueprint .The primary objective of the design is to deliver the
requirements as specified in the feasibility report. Following objectives should be kept in
mind: -

1. Practicability:-

The system must be stable & can be operated by people of average intelligence.

2. Efficiency:-

Good design should be efficient as it should properly use the scare resource of
system. two of the important such resources are processor time & memory. An
efficient system consume less processor time & memory.

3. Cost: -

It is desirable to aim for a system with a minimum cost subject to the condition that it
must satisfy all the requirements.

4. Flexibility: -

5. on the changing needs of the user, Such modifications should not entail extensive
reconstruction or recreation of softw

The system should be modifiable depending are. It should also be portable to


different computer systems.

25
5. Security: -

This is very important aspect of the design & should cover areas as hardware
reliability, fall back procedures, physical security of data & provision of detection of
fraud & abuse.

6. Reliability:-

The end user will normally specify reliability requirements for a new system.these
requirements may be expressed in terms of mean time between failure or mean time
to repair or system availability.

7. Correctness:-

Good design should correctly implement both ,all of the explicit requirements
contained in the analysis model and all of the implicit requirements desired by the
customer.

8. Understandability:-

The design should be a readable , simple, understandable guide for those who
generate code and for those who test and subsequently support the system.

9. Modularity:-

It aims for composition of a problem into modules which results in reduction of


complexity of the design solution.

10.Completeness:-

Good design should cover all relevant data structures , modules ,external interface
and module interconnection .

11.Consistency:-

Design should follow consistency through the system. it aims that there is no inherent
inconsistencies in the design.

26
12.Verifiability:-

Concerned with how easily the correctness of design canbe checked.

13.Traceabiliy:-

Design should be traceable. traceable design aid design verification.

27
FEASIBILITY REPORT
Is it feasible to automatic the system? The three major areas to determine the feasibility
of project:

1. Technical Feasibility:
The current level of technology can support the proposed system. The proposed
software is enabling to meet all the objective of the system and output received is
more efficient. So the project is technical feasible.

2. Economic Feasibility:
The proposed system needs to get hardware and software installed. The short-term
costs are over shadowed by the long-term gains. The profits of the business is raised
as this visual drafting system help in establishing the better relationship between
client and also satisfy their query’s and so the cost of the development of the software
and hardware is over shadowed. Thus, project is economically feasible.

3. Operational Feasibility:
The current system faces a lot of problems that are removed in the proposed system.
The Clients of the system will be free from the burden and a lot of confusion. The
clients are themselves interested in getting the manual system replace by the
automated one. The proposal system is user friendly, so even a layman can use it.
Thus it is operationally feasible.

28
COST & BENEFIT ANALYSIS

In developing cost estimates for a system, we need to consider servable cost elements.
Among them hardware, personnel, facility, operating, & supply costs.

Hardware Cost

Hardware cost relate to the actual purchase or lease of the computer &peripherals Ex.
Printers, disk, floppy drive, the best way to control for this cost is to treat it as an
operating cost.

Personnel Cost
This include staff salaries & benefits (health insurance, vocation time, sick pay etc.) as
well as pay for those involved in developing system. Costs incurred during the
development of a system are one time costs & are labeled development costs. Once the
system is installed the costs of operating & maintaining the system become recurring
costs.

Facility Cost
Facility costs are expenses incurred in the preparation of the physical site where the
application or the computer will be I operation. This includes wiring, flooring, acoustics,
lighting & air conditioning. These costs are treated as one-time costs.
Operating Cost
Operating costs include all costs associated with the day-to-day operating system. The
amount depends on the number of sifts the nature of the application & the caliber of the
operating staff. There are various ways of covering operating costs to overhead. Another
approach is to change each authorized user for the amount of processing they request

29
from the system. The amount charged is based on the computer time, staff time & the
volume of output produced.

Supply Cost

These costs are variable costs that increase with increased use of paper, ribbon, disks &
the like they should be estimated & include in the overall cost of the system.

Equipment Cost

Equipment costs include rental & annual deprecation of any equipment such as
typewriter, copies, computer, terminals & microcomputers used in connection with the
system. Other costs associated with the equipment, such as insurance & maintenance
should also be included.

SYSTEM ANALYSIS

Introduction :

System Analysis is a set of techniques and graphical tools to develop a new kind of
specification that are easily understandable to the users. The system Analysis has the
following attributes:

30
1. It is graphical. The DFD, for example, depicts a picture of what is being specified
and conceptually easy to under to understand the presentation of the application and
flow the data to /from/with in the system.

2. The process is partitioned so that we have clear picture of progression from general to
specific in the system flow.

1. It is logical rather then we have clear picture of progression from general to


specific in the system flow.

2. It collects regroups study of the user area, a commitment that is often taken likely
in the traditionally advent of the system analysis.

3. Certain tasks that are normally carried out late in the system development cycle
are moved to the analysis phase. For example , user procedure documented during
the analysis rather than later in the application.

The end result of the system analysis is that produces a structured specification has uses
several basics tools, such as:

 Context diagram

 Data flow diagram

 Structured chart

Context Diagram :

Context digram is the starting point of the structured analysis. They are constructed to
show the highest- level model of the system. It is used to represent pictorially, the scope
of boundaries of the system, or what we call “AREA UNDER STUDY”.

31
SYSTEM DESIGN

Introduction:

System design is a solution, “How to approach ” to the creation of a new system. This
important phase is composed of several steps. It provides the understanding and
procedural feasibility study. Design gose through a logical and physical stage of
development. Logical design reviews the present physical system, prepares input – output
specification, makes edit, security and control specification, detail implementation plans,
prepares a logical design walkthrough. The physical design maps out the details of the
physical system, plans the system implementation and specifies any new hardware and
software.

System design is a highly created process that can be greatly facilitated by the following:

 Strong problem definition,


 Pictorial description of the existing system, and
 Set of requirements of the new system.

Input Design

The most common cause of errors in data processing is inaccurate input data errors
entered by the data entry operator. It can be controlled by the input design. Input design
is the process of converting user oriented inputs to the computer based formats. The goal
of the input design is to make data entry as easy, logical and free from as many errors as
possible.

32
Output Design

Computers are the most important sources of information to the users are fed into the
computers to acquire the necessary outputs. The computers can provide the well enough
output in the form of information regarding various items to the users. The major form of
output is a hard copy from the printer. Printouts are designed around the output
requirements of the user(s).

Interface Design

Forms are designed to control the redundancy, increased operator accuracy maximum
readability, easy data entry and elimination of unnecessary data to provide easier
checking and correction of data.

Keeping in view the user’s requirements, the input/output forms have been designed
and developed for easy data entry and query handling. Based on the various types of
inputs to be fed into the computer in using this system, several inputs forms have been
designed to make data entry easier and accurate.

Database Design
information stored in the database, despite system crashes or attempts at unauthorized
access. The collection of data is usually referred to as the database. The database contains
information about the particular enterprise. Database systems are designed to manage
larger bodies of information. The management of data involves both the definition of the
structures for the storage of the information and the provision for the mechanism to
manipulate the information. In addition the database system must provide the safety of
this.

33
SYSTEM IMPLEMANTATION

Implementation, literally, means to put into effects or to carry out. The system
implementation phase of software engineering deals with all activities that take place to
convert from the old system to the new. Proper implementation is essential to provide
system to meet organization’s requirements.

During the implementation phase debugging, documentation of the system was created
out, module in the project for

 Accuracy of Results,
 Minimization of response Time,
 Clarity and Simplicity of the code,
 Minimization of hard – Coding i.e. (a generic approach was followed)
 Minimization of amount of memory used.

Various types of errors were discovered while debugging the modules. These ranged
from errors to failure to account for various processing cases. Proper documentation of
each module was done by embedding comments in the executable portion of the code. To
enhance the readability, comments, indentation, parenthesis, block spaces, blank lines
and borders were around the blocks of comments. Care was taken to use descriptive
names for table, field modules, forms etc. The proper use of indentation, parenthesis and
blank lines was also ensured during coding.

Testing of the report Generation module was carried out to find out the response time of
the system for the generating reports. To make the response time negligible.

34
SYSTEM DOCUMENTATION

Documentation is the process of collecting, organizing, storing, and maintaining on paper


(or some relatively permanently medium ) a complete record of why application were
developed, for whom, what function they perform, and how these function are carried
out. Thus it provides an explanation of how a system operates & what features
characterize models & algorithms. Producing documentation is an important – but often
neglected – activity of programmers.
Documentation of the system always reduces maintenance costs and make maintenance
much more easier. Documentation can be broadly classified as:

1. INTERNAL DOCUMENTATION
2. EXTERNAL DOCUMENTATION

INTERNAL DOCUMENTATION

Internal documentation in the code can be extremely useful in enhancing the


understandability of programs. Internal documentation of programs is done by the use of
comments. All the language provide means of writing comments in the programs.
Comments are textual statements that are meant for the reader and are not executed.
Comment, if properly written, and if kept consistent with the code, can be invaluable
during maintenance.

The purpose of comments is not to explain the internal logic of the program – the
program itself is the best documentation for the details of logic.
The comments should explain what the code is done is doing, and not how it is done it.
Comments should be provided for the block of code, particularly those parts of code
which are hard to follows.

35
Providing comments for module is most useful as module form the unit testing,
compiling, verification and modification. Comments for a module are often called
prologue for the module. It is best to standardized the structure of the prologue of the
module. It is desirable that prologue contains the following information ;
a) Module functionality or what the module is doing.
b) Parameters are their purpose
c) Assumptions about the input, if any
d) Global variable accessed and or modified in the module As explanation of parameters
(whether they are input only, output only or both input and output, why they are
needed by the module and how the parameters are modified) can be quite useful
during Maintenance.

In addition to that given above, often information can be included, depending on the
local coding standards. Example include:
 Name of the author,
 Date of compilation
 Last date of modification

Note that if the module is modified, then the prologue should also be modified, if
necessary. A prologue that is inconsistent with the internal logic of the module is
prologue worse than having no prologue at all.

While coding programs for the Station Coding System special attention has been paid to
the internal documentation of the system, in addition to the external documentation. Each
program/module has:
 Program/module name on top.
 Date of creation of the program.
 Last modification date.
 The S/W tool used to develop the program.
 Description of input to the program/module.
 Description of the output produced.

36
 How the module is related to other modules?
 Purpose of variable/constants used.

Apart from this comments lines have been inserted whenever it was felt that they were
necessary. Moreover meaningful variable names/constants have been assigned to
different variable/constants used in the program.

EXTERNAL DOCUMENTATION
The external documentation of the system contains all the relevant information about the
system which is not included within the programs. The external documentation typically
explains:

 What is the basic purpose of the system?


 Why the system was developed?
 The platform on which the system will run.
 The various trouble shooting mechanisms.
 The operation’s guide.

TESTING

During system testing, the system is used experimentally to ensure that the software
does not fail, specific test data are input for processing and results examined. It is
desirable to discover any surprises before the organization implements the system &
depends on it.

Testing Objectives: -

1. Testing is a process of executing a program with the intent of finding an error.

2. A good test case is one that has a high probability of finding an undiscovered
error.

37
3. A successful test is one that uncovers an undiscovered error.

4. Testing Principles:-

 All tests should be traceable to customer’s requirements.

 Test should be planned long before the testing begins.

 Testing should begin “in the small” & progress towards “in the large”.

 Exhaustive Testing is not possible.

 To be most effective, an independent third party should conduct testing.

White Box Testing: -

It is also known as glass box testing and internal testing. It is a test case design method
that uses a control structure of the procedural design to derive test cases. Using white box
testing methods, software engineer can derive test cases that: -

1. Guarantee that all independent paths within the module have been exercised at
least once.

2. Exercised all logical decisions on their true & false sides.

3. Execute all loops at their boundaries & within their operational bounds.

4. Exercise internal data structures to ensure their validity.

Black Box Testing: -

It is also called behavioral testing & external testing. It focuses in the functional
requirements of the software i.e. it enables the software engineer to derive sets of input
conditions that will fully exercise all functional requirements for a program. It is not an
alternative to white box techniques. Rather it is a complementary approach that is likely
to uncover a different class of errors than white box methods.

Black Box testing attempts to find errors in the following categories: -

38
1. Incorrect or missing functions.

2. Interface errors.

3. Errors in data structures.

4. Behavior or performance errors.

5. Initialization & termination errors.

Activity network for system testing:-

1. prepare test plan

2. specify conditions for user acceptance testing

3. prepare test data for program testing

4. Prepare test data for transaction path testing.

5. Plan user training

6. Compile/assemble programs

7. Prepare job performance helps.

8. Prepare operational documents.

39
DEBUGGING

This stage is the discovery & correction of programming errors. Few programs run
correctly the first time, so debugging is important & time-consuming stage of the
software development. Programming theorists & testing as verification & validation,
respectively. Verification ensures that the program does what the programmer intend to
do. It is the checking or testing of the items ,including software ,for conformance and
consistency with an associated specification. Validation ensures that the program
produces the correct results for a set of test data. It refers to the different set of activities
that ensures that the software that has been built is traceable to custom requirements.

BOEHM states these terms as

VERIFICATION—“Are we building the product right?”

VALIDATION—“Are we building the right product?”

The debugging of microprocessor programs is generally quite difficult because of the


inability to observe register contents directly, the primitive debugging aids, the close
interaction between hardware & software, the frequent dependence of programs on
precise timing, and the difficulty of obtaining adequate data for real-time applications,
The tools that can be used by programs with brief description are given below: -

Simulators: -

It is a compute program that simulates the execution of programs on another computer.

Logical Analyzers:

It is a test instrument that is the digital bus-oriented version of the oscilloscope. It detects
the states of digital signals during each clock cycle & stores them in the memory. It then
displays the information on a CRT, much as an oscilloscope does.

40
Breakpoints: -

It is place in a program at which execution can be halted, in order to examine the current
contents of registers, memory locations & I/O ports.

Trace Routines: -

A trace is a program that prints information concerning the status of the processor at
specified intervals. Most simulator program & some microcomputer development system
have trace facilities.

Memory Dumps: -

A memory dump is a listing of the current contents of a section of the memory. Most
simulator programs, microcomputer development systems & monitors can produce
memory dumps.

Software Interrupts: -

The software interrupts or trap instruction is frequently used for debugging purposes. The
instruction usually saves the current value of the program counter & then branches to a
specified memory location. That information location can be the starting point of a
debugging program that lists or displays status information – breakpoint may be inserted
with trap instructions.

41
MAINTENANCE

Like any system, there is an aging process that requires periodic maintenance of
hardware & software. If new information is inconsistent with design specifications, then
changes have to be made. Hardware also requires periodic maintenance to keep in tune
with design specifications. The importance of maintenance is to continue to bring the
new system to standards.

Types of Maintenance

1. Corrective maintenance:-

Repairing processing or performance failures or making changes due to uncorrected


errors.

2. Adaptive Maintenance: -

Adaptive maintenance means changing the program function to make it adaptable


according to its future environment.

3. Perfective Maintenance: -

Perfective Maintenance means enhancing the performance or modifying the


programs to responds to the changing needs.

42
Fundamental objective of system maintenance:-

1 Tto complete the system tasks as quickly as possible without compromising the
system reliability and quality.

2 To preserve those aspects of programs that were correct and to avoid the possibility
that fixes applications and cause other aspects of those applications to behave
differently.

3 To react proactively to affect changes to existing applications, to correct errors that


were made during system design or implementation.

4 To avoid as much as possible degradation of system performance.

43
SECURITY OF THE SYSTEM

While setting up a system aspect should be kept in mind for various reasons like privacy
of data, investment costs and levels this can be achieved by appointing system
administrator, users control supervisor etc. this organization that depends heavily on
information. These controls are classified into:

 Physical security: This security of system is performed by the protection from


fire, flood and other physical damages. For that many measures are taken such as
hardware locks, preventing access of unauthorized person from entering the system
area, keep the floppy and disk in face custody, keeping any heat generating
appliances away from the system. Obtaining insurance cover against the risk and
natural calamities.
 :

 Operating system level security: to maintain the data integrity many data
validation techniques are used so that the user cannot enter any unauthorized data.
The access of database is possible only to responsible user through password.

Database integrity The measures is taken by giving no permission to the direct


access to the data in primary memory or to online files, which protect it’s both
program and data.
 Application security: The application has also given a security measures, so that
no unauthorized person can enter the application, by giving the password at the start
of the program.

Administration security: By monitoring user on regular basis.

44
SYSTEM ANALYSIS
QUALITY ASSURANCE
I have determined the quality of our system through following factors:

1. Correctness
2. Reliability
3. Efficiency
4. Usability
5. Maintainability
6. Testability
7. Portability
8. Accuracy
9. Error tolerance

INTRODUCTION TO PROPOSED SYSTEM

APPLICATION AREA: - After studying the working of present system We were


able to learn about the difficulties and limitations, which it was facing. Before going into
the details of proposed system I am here by drawing the boundary of application area
inside which I would be working.

Following are three main sub area of the main application area: -
i. Proper Maintenance of Staff
ii. Proper Maintenance of Room
iii. Proper Generation of Patient

All the activities related with the above Three activities starts with addmiting a new
Patient in Hospital.

45
DATABASE DESIGN
All the tables, sequences, triggers are stored in database for storing the information about
entrance test made by the users.
Following are the tables:
Login Table
Loginname Text

Password Text

Table:- Patenttable

Field Name Field type


Patent Id Number
Patent Name Text
Father Name Text
Gender Text
Age Number
Contact no Text
Nationalty Text
Address Number
City Text
Room No Number
File No Number
Admitdate Date.
Dischargedate date
Chargeperday Number

46
CONCLUSION

After having completed this project ,We felt that it was an excellent learning experience
as I deal with a real life project that give a oppurtunity to working for the students to
make their test more easy, while working on this project I got a good exposure to the
sharp programming skills and the various programming techniques while coding for this
system I was exposed to the vast knowledge about the strength and weakness of VB
language .

A part from this I have been able to appreciate the hardwork of programmers spent in
developing such a system the most important realization was the amount of cooperation,
dedication, hardwork and team spirit that goes into making of a successful project.

HARDWARE REQUIREMENT

THIS SOFTWARE RUNS within any environment .This software needs at least Core I3
prosessor 32MB RAM memory,2.1GB of Hard disk ,SVGA display of 1 MB video
memory and color monitor but with this lot of processor power consumed and speed of
the system will be very slow. Therefore a realistic hardware configuration for this
software is:-

47
BIBLIOGRAPHY

The following are the books references that have been studied in the duration of making
of this project.

 Mastering in NeatBeans6.0
 Microsoft office
 C get crystal reports 6.0
 Black book of Java NeatBeans6
 Complete Ref. Microsoft Acess

WEB REFRENCES
www.microsoft.com

48
49
Login WIndow

SPLASH FORM

50
MAIN WINDOW

ADD NEWPATENT FORM

51
MODIFYPATENTFORM

DELETEPATENTFORM

52
53
54
formsplash

package hms;
import java.awt.*;

public class Splashform extends javax.swing.JFrame {

public Splashform() {
initComponents();
}

to
@SuppressWarnings("unchecked")
// <editor-fold defaultstate="collapsed" desc="Generated Code">
private void initComponents() {

jPanel1 = new javax.swing.JPanel();


jLabel1 = new javax.swing.JLabel();
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();
CONTI = new javax.swing.JButton();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setMinimumSize(new java.awt.Dimension(2147483647, 2147483647));

55
addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
formMouseMoved(evt);
}
});

jPanel1.setBackground(new java.awt.Color(255, 204, 255));


jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(10, 10, 10, 10,
new java.awt.Color(102, 0, 0)));
jPanel1.setMaximumSize(new java.awt.Dimension(2147483647, 2147483647));
jPanel1.setMinimumSize(new java.awt.Dimension(2147483647, 2147483647));
jPanel1.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
jPanel1MouseMoved(evt);
}
});

jLabel1.setFont(new java.awt.Font("Monotype Corsiva", 1, 24));


jLabel1.setForeground(new java.awt.Color(0, 0, 51));
jLabel1.setText("HOSPITAL");

jLabel2.setFont(new java.awt.Font("Monotype Corsiva", 1, 24));


jLabel2.setForeground(new java.awt.Color(0, 0, 51));
jLabel2.setText("MANAGEMENT");

jLabel3.setFont(new java.awt.Font("Monotype Corsiva", 1, 24));


jLabel3.setForeground(new java.awt.Color(0, 0, 51));
jLabel3.setText("SYSTEM");

jLabel4.setFont(new java.awt.Font("Arial", 1, 12)); // NOI18N


jLabel4.setText("VERSION N:1.0");

56
jLabel5.setFont(new java.awt.Font("Arial Black", 2, 14)); // NOI18N
jLabel5.setText("DEVELOPED BY");

jLabel6.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N


jLabel6.setForeground(new java.awt.Color(204, 0, 204));
jLabel6.setText("VIKRANT SAINI");

CONTI.setBackground(new java.awt.Color(255, 102, 102));


CONTI.setFont(new java.awt.Font("Arial", 1, 11)); // NOI18N
CONTI.setText("C L I C K T O C O N T I N U E");
CONTI.addMouseMotionListener(new java.awt.event.MouseMotionAdapter() {
public void mouseMoved(java.awt.event.MouseEvent evt) {
CONTIMouseMoved(evt);
}
});
CONTI.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CONTIActionPerformed(evt);
}
});

jLabel7.setFont(new java.awt.Font("Arial Black", 2, 14)); // NOI18N


jLabel7.setText("UNDER THE GUIDANCE");

jLabel8.setFont(new java.awt.Font("Arial Narrow", 1, 18));


jLabel8.setForeground(new java.awt.Color(204, 0, 204));
jLabel8.setText("Smt. VISHALNI");

jLabel9.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N


jLabel9.setForeground(new java.awt.Color(204, 0, 204));

57
jLabel9.setText("YASH DHIMAN");

jLabel10.setFont(new java.awt.Font("Arial Narrow", 1, 18)); // NOI18N


jLabel10.setForeground(new java.awt.Color(204, 0, 204));
jLabel10.setText("SARTHAK SAINI");

javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);


jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addContainerGap(219, Short.MAX_VALUE)
.addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 181,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(165, 165, 165))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel4)
.addGap(30, 30, 30))
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap(218, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(27, 27, 27)

58
.addComponent(jLabel1,
javax.swing.GroupLayout.PREFERRED_SIZE, 123,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(25, 25, 25)
.addComponent(jLabel3,
javax.swing.GroupLayout.DEFAULT_SIZE, 125, Short.MAX_VALUE)))))
.addGap(197, 197, 197))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(82, 82, 82)
.addComponent(CONTI, javax.swing.GroupLayout.PREFERRED_SIZE, 376,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(107, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel10)
.addContainerGap())
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Al
ignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel5, javax.swing.GroupLayout.DEFAULT_SIZE,
531, Short.MAX_VALUE)
.addContainerGap())
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayo
ut.Alignment.LEADING)
.addComponent(jLabel6)
.addComponent(jLabel9))

59
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.REL
ATED, 182, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayo
ut.Alignment.LEADING)
.addComponent(jLabel7)
.addComponent(jLabel8))
.addGap(66, 66, 66)))))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(28, 28, 28)
.addComponent(jLabel1)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRE
LATED)
.addComponent(jLabel2)
.addGap(13, 13, 13)
.addComponent(jLabel3)
.addGap(18, 18, 18)
.addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE,
45, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(27, 27, 27)
.addComponent(jLabel7)
.addGap(6, 6, 6))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()

60
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jLabel5)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELAT
ED)
.addComponent(jLabel6)
.addGap(1, 1, 1)))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(jLabel8)
.addGroup(jPanel1Layout.createSequentialGroup()
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELAT
ED)
.addComponent(jLabel9)))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel10)
.addGap(10, 10, 10)
.addComponent(CONTI)
.addGap(16, 16, 16))
);

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(150, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 585,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(160, Short.MAX_VALUE))

61
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap(20, Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 363,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(21, Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void CONTIActionPerformed(java.awt.event.ActionEvent evt) {


dispose();
Mainwindow obj=new Mainwindow();
obj.setVisible(true);

private void jPanel1MouseMoved(java.awt.event.MouseEvent evt) {


// TODO add your handling code here:
CONTI.setBackground(Color.orange);
}

private void CONTIMouseMoved(java.awt.event.MouseEvent evt) {


// TODO add your handling code here:
CONTI.setBackground(Color.pink);
}

private void formMouseMoved(java.awt.event.MouseEvent evt) {

62
// TODO add your handling code here:
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Splashform().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton CONTI;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
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.JPanel jPanel1;
// End of variables declaration

63
Passwordform

Private Sub CMDEXIT_Click()


End
End Sub

Private Sub Cmdok_Click()


Data1.Refresh

Data1.Recordset.MoveLast
If Text1.Text = Data1.Recordset.Fields(0) And Text2.Text =
Data1.Recordset.Fields(1) Then
Unload Me
Mainform.Show
Else
ans = MsgBox("Incorrect! Try Again ", vbYesNo)
If ans = vbYes Then
Text1.Text = ""
Text2.Text = ""
Text1.SetFocus
Else
End

End If
End If
End Sub

Private Sub cmdok_KeyPress(KeyAscii As Integer)


If KeyAscii = 13 Then
cmdexit.SetFocus
End If

64
End Sub

Private Sub Form_Activate()


Text1.SetFocus
End Sub

Private Sub Form_Load()


Password.WindowState = 2
Data1.DatabaseName = App.Path + "\hospdatabase.mdb"
Data1.RecordSource = "security"

End Sub

Private Sub exit_Click()


End
End Sub
Private Sub Text1_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Text2.SetFocus
End If
End Sub
Private Sub Text2_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
Cmdok.SetFocus
End If
End Sub

65
Mainform

Private Sub delpat_Click()


Del_modify_patient.Show
End Sub

Private Sub MDIForm_Load()


Me.WindowState = 2
End Sub

Private Sub mnu___Delete_Click()


Staff_Del.Show
End Sub

Private Sub mnu__Addnewstaff_Click()


Staff_add.Show
End Sub

Private Sub mnuAdd_Click()


Room_add.Show
End Sub

Private Sub mnuDeleteModify_Click()


Room_delete.Show
End Sub

Private Sub mnuBillingReport_Click()


Calculating_bill.Show
End Sub

66
Private Sub mnuDelete_Click()
Room_delete.Show
End Sub

Private Sub mnuModify_Click()


Staff_Modify.Show
End Sub

Private Sub mnuPatiantReport_Click()


patient_report.Show
End Sub

Private Sub mnuRoomReport_Click()


Room_report.Show
End Sub

Private Sub mnuSearch_Click()


Room_Search.Show
End Sub

Private Sub mnuSearching_Click()


Staff_Search.Show
End Sub

Private Sub mnuYes_Click()


End
End Sub

Private Sub Modifyopt_Click()


Room_modify.Show
End Sub

67
Private Sub newpat_Click()
Add_patient.Show
End Sub

Private Sub searchpat_Click()


Search_patient.Show
End Sub

Private Sub staffrpt_Click()


Staff_report.Show
End Sub

68
Add_patient
package hms;
import javax.swing.*;
import java.sql.*;
import java.awt.event.*;

public class AddNewPatientForm extends javax.swing.JFrame {

/** Creates new form NewJFrame */


public AddNewPatientForm() {
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() {

jPanel1 = new javax.swing.JPanel();


jLabel1 = new javax.swing.JLabel();
Pid = new javax.swing.JTextField();
City = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
Pname = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();

69
Pin = new javax.swing.JTextField();
Fname = new javax.swing.JTextField();
Roomno = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
Fileno = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
Age = new javax.swing.JTextField();
Admitdate = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
Dischargedate = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
Cno = new javax.swing.JTextField();
Chargeperday = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
Nationalty = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jButton1 = new javax.swing.JButton();
jButton2 = new javax.swing.JButton();
jButton3 = new javax.swing.JButton();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
Address = new javax.swing.JTextField();
Gender = new javax.swing.JComboBox();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
setIconImages(null);
setMinimumSize(new java.awt.Dimension(2147483647, 2147483647));

70
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowActivated(java.awt.event.WindowEvent evt) {
formWindowActivated(evt);
}
});

jPanel1.setBackground(new java.awt.Color(204, 204, 255));


jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(40, 270, 40, 270,
new java.awt.Color(0, 0, 0)));
jPanel1.setForeground(new java.awt.Color(0, 0, 204));
jPanel1.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
jPanel1KeyTyped(evt);
}
});

jLabel1.setText("Patient ID:- ");

Pid.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PidActionPerformed(evt);
}
});

City.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CityActionPerformed(evt);
}
});
City.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {

71
CityKeyTyped(evt);
}
});

jLabel2.setText("City:- ");

jLabel3.setText("Patent Name:- ");

Pname.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PnameActionPerformed(evt);
}
});
Pname.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
PnameKeyTyped(evt);
}
});

jLabel4.setText("Pincode:-");

Pin.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
PinActionPerformed(evt);
}
});
Pin.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
PinKeyTyped(evt);
}
});

72
Fname.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
FnameActionPerformed(evt);
}
});
Fname.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
FnameKeyTyped(evt);
}
});

Roomno.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
RoomnoActionPerformed(evt);
}
});
Roomno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
RoomnoKeyTyped(evt);
}
});

jLabel5.setText("Room No:-");

jLabel6.setText("Father Name:- ");

jLabel7.setText("Gender:- ");

jLabel8.setText("File No:- ");

73
Fileno.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
FilenoActionPerformed(evt);
}
});
Fileno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
FilenoKeyTyped(evt);
}
});

jLabel9.setText("Age:- ");

Age.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
AgeActionPerformed(evt);
}
});
Age.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
AgeKeyTyped(evt);
}
});

Admitdate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
AdmitdateActionPerformed(evt);
}
});

jLabel10.setText("Admit Date:- ");

74
Dischargedate.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
DischargedateActionPerformed(evt);
}
});

jLabel11.setText("Contect No:- ");

jLabel12.setText("Discharge Date:- ");

Cno.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
CnoActionPerformed(evt);
}
});
Cno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
CnoKeyTyped(evt);
}
});

Chargeperday.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ChargeperdayActionPerformed(evt);
}
});
Chargeperday.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
ChargeperdayKeyTyped(evt);
}

75
});

jLabel13.setText("Nationlaty:- ");

Nationalty.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
NationaltyActionPerformed(evt);
}
});
Nationalty.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
NationaltyKeyTyped(evt);
}
});

jLabel14.setText("Charge Perday:- ");

jButton1.setText("SAVE");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});

jButton2.setText("NEXT");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});

76
jButton3.setText("EXIT");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});

jLabel15.setFont(new java.awt.Font("Monotype Corsiva", 1, 24));


jLabel15.setText("ADD NEW PATIENT FORM");

jLabel16.setText("Address:- ");

Address.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
AddressActionPerformed(evt);
}
});
Address.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
AddressKeyTyped(evt);
}
});

Gender.setModel(new javax.swing.DefaultComboBoxModel(new String[]


{ "Select", "Male", "Female", "Other" }));
Gender.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
GenderActionPerformed(evt);
}
});

77
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.Alig
nment.LEADING)
.addComponent(jLabel1)
.addComponent(jLabel3)
.addComponent(jLabel6)
.addComponent(jLabel7)
.addComponent(jLabel9)
.addComponent(jLabel11)
.addComponent(jLabel13)
.addComponent(jLabel16))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addComponent(Address, javax.swing.GroupLayout.DEFAULT_SIZE, 738,
Short.MAX_VALUE)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(44, 44, 44)
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
88, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(46, 46, 46)
.addComponent(jButton2, javax.swing.GroupLayout.PREFERRED_SIZE,
87, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(54, 54, 54)

78
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
87, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELAT
ED, 332, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.TRAILING)
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.LEADING, false)
.addComponent(Gender, 0,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addComponent(Pid,
javax.swing.GroupLayout.PREFERRED_SIZE, 64,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Cno)
.addComponent(Fname)
.addComponent(Pname,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(Age,
javax.swing.GroupLayout.PREFERRED_SIZE, 66,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Nationalty))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.R
ELATED, 290, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel4)
.addComponent(jLabel5)

79
.addComponent(jLabel8)
.addComponent(jLabel10)
.addComponent(jLabel12)
.addComponent(jLabel14)))
.addComponent(jLabel15))
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayo
ut.Alignment.LEADING)
.addComponent(Chargeperday,
javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
.addComponent(Dischargedate,
javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLa
yout.Alignment.LEADING, false)
.addComponent(Admitdate)
.addComponent(Pin)
.addComponent(City,
javax.swing.GroupLayout.DEFAULT_SIZE, 168, Short.MAX_VALUE)
.addComponent(Roomno,
javax.swing.GroupLayout.PREFERRED_SIZE, 74,
javax.swing.GroupLayout.PREFERRED_SIZE)))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(Fileno,
javax.swing.GroupLayout.PREFERRED_SIZE, 76,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.R
ELATED, 92, javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addGap(525, 525, 525))
);

80
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGap(101, 101, 101)
.addComponent(jLabel15)
.addGap(30, 30, 30)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING, false)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(1, 1, 1)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(Pid, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel3)
.addComponent(Pname,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel6)

81
.addComponent(Fname,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel7)
.addComponent(Gender,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel9)
.addComponent(Age, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel11)
.addComponent(Cno, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel13)

82
.addComponent(Nationalty,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELAT
ED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(Address,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16))
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELAT
ED)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jButton3)
.addComponent(jButton2)
.addComponent(jButton1)))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(City, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)

83
.addComponent(jLabel4)
.addComponent(Pin, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(Roomno,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.TRAILING)
.addComponent(jLabel8)
.addComponent(Fileno,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Admitdate,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)

84
.addComponent(jLabel12)
.addComponent(Dischargedate,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(Chargeperday,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(82, 82, 82)))
.addGap(21, 21, 21))
);

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 749,
javax.swing.GroupLayout.PREFERRED_SIZE)
);

85
pack();
}// </editor-fold>

private void ChargeperdayActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
dispose();
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
int age,pincode,roomno,fileno,chargeday,pid, admitdate,disdate;
String pname,fname,address,city,nationalty,gender,cno;

// String pname,pid,fname,address,city,nationalty,gender,
admitdate,disdate,age,pincode,roomno,fileno,chargeday,cno;
pid=Integer.parseInt(Pid.getText());
age=Integer.parseInt(Age.getText());
cno=Cno.getText();
pincode=Integer.parseInt(Pin.getText());
roomno=Integer.parseInt(Roomno.getText());
fileno=Integer.parseInt(Fileno.getText());
admitdate=Integer.parseInt(Admitdate.getText());
disdate=Integer.parseInt(Dischargedate.getText());
chargeday=Integer.parseInt(Chargeperday.getText());
pname=Pname.getText();
fname=Fname.getText();
address=Address.getText();

86
city=City.getText();
nationalty=Nationalty.getText();
gender=String.valueOf(Gender.getSelectedItem());

try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
String query,s;
if((Pname.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Please enter patient name");
}
if((Age.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz enter age");
}
if((Fname.getText()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz Enter your father Name");
}
if((Gender.getSelectedItem()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz Enter gender");
}
if((Address.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz enter your address");
}

87
if((City.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz Enter city");
}
if((Nationalty.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz enter nationalty");
}

if((Admitdate.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz enter admitdate");
}
if((Dischargedate.getText()).equals(""))
{
JOptionPane.showMessageDialog(null, "Plz enter Date");
}
if((Chargeperday.getText()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz enter charge");
}
if((Pin.getText()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz enter pincode");
}
if((Roomno.getText()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz Enter roomno");
}
if((Fileno.getText()).equals(null))

88
{
JOptionPane.showMessageDialog(null, "Plz enter fileno");
}
if((Cno.getText()).equals(null))
{
JOptionPane.showMessageDialog(null, "Plz enter contactno");
}

else
{
// query=("insert into ptable
values(3,'gg','ff','male',12,'545434','indian','gg','mzn',25001,5,8,'02-02-2002','02-02-
2002',1000)");
//query="insert into
ptable(patientid,name,fname,gender,age,phone,nationalty,address,city,pincode,roomno,fil
eno,admitdate,dischargedate,chargeperday)"+
//"values("+pid+",'"+pname+"','"+fname+"','"+gender+"',"+age+","+cno+",'"+
nationalty+"','"+address+"','"+city+"',"+pincode+","+roomno+","+fileno+",'"+admitdate+
"','"+disdate+"',"+chargeday+");
s="insert into ptable
values("+pid+",'"+pname+"','"+fname+"','"+gender+"',"+age+",'"+cno+",,'"+nationalty+"'
,'"+address+"','"+city+"',"+pincode+","+roomno+","+fileno+","+admitdate+","+disdate+'
,"+chargeday+")";
state.executeUpdate(s);
JOptionPane.showMessageDialog(null, "Sucessfully Data Saved");
}
}
catch(Exception e)
{
JOptionPane.showMessageDialog(null,e.getMessage() );
System.out.print("not");}

89
}

private void jButton2ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

Pname.setText("");
Fname.setText("");
Age.setText("");
Cno.setText("");
Pin.setText("");
Gender.setSelectedItem("");
Roomno.setText("");
Fileno.setText("");
Admitdate.setText("");
Dischargedate.setText("");
Chargeperday.setText("");
Address.setText("");
City.setText("");
Nationalty.setText("");

int pno=0;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
ResultSet res=state.executeQuery("select * from ptable");
while(res.next())
{

90
pno=res.getInt("patientid");
}

Pid.setText(String.valueOf(pno+1));
Pid.enable(false);
Pname.requestFocus();
}
catch(Exception e)
{}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


// TODO add your handling code here:
int pno=0;
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
ResultSet res=state.executeQuery("select * from ptable");
while(res.next())
{
pno=res.getInt("patientid");
}

Pid.setText(String.valueOf(pno+1));
Pid.enable(false);
// Pname.requestFocus();
}
catch(Exception e)

91
{}

private void AgeKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid age");
evt.consume();
Age.requestFocus();
}

private void RoomnoKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid Room No.");
evt.consume();
Roomno.requestFocus();
}
}

92
private void FilenoKeyTyped(java.awt.event.KeyEvent evt) {
// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid File No.");
evt.consume();
Fileno.requestFocus();
}
}

private void PinKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid Pincode No.");
evt.consume();
Pin.requestFocus();
}
}

private void ChargeperdayKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();

93
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid Amount");
evt.consume();
Chargeperday.requestFocus();
}
}

private void CnoKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE))
{
JOptionPane.showMessageDialog(null, "Invalid No.");
evt.consume();
Cno.requestFocus();
}
}

private void PnameKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER))
{
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();

94
Pname.requestFocus();
}
}

private void FnameKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER))
{
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
Fname.requestFocus();
}
}

private void NationaltyKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER))
{
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
Nationalty.requestFocus();
}
}

private void CityKeyTyped(java.awt.event.KeyEvent evt) {

95
// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER))
{
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
City.requestFocus();
}

private void AddressKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:

private void PidActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void PnameActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void FnameActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void GenderActionPerformed(java.awt.event.ActionEvent evt) {

96
// TODO add your handling code here:
}

private void AgeActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void CnoActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void NationaltyActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void AddressActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void CityActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void PinActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void RoomnoActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

97
private void FilenoActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void AdmitdateActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void DischargedateActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
}

private void jPanel1KeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run(){
new AddNewPatientForm().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JTextField Address;
private javax.swing.JTextField Admitdate;
private javax.swing.JTextField Age;

98
private javax.swing.JTextField Chargeperday;
private javax.swing.JTextField City;
private javax.swing.JTextField Cno;
private javax.swing.JTextField Dischargedate;
private javax.swing.JTextField Fileno;
private javax.swing.JTextField Fname;
private javax.swing.JComboBox Gender;
private javax.swing.JTextField Nationalty;
private javax.swing.JTextField Pid;
private javax.swing.JTextField Pin;
private javax.swing.JTextField Pname;
private javax.swing.JTextField Roomno;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
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 jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
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;

99
private javax.swing.JPanel jPanel1;
// End of variables declaration

100
Del_modify_patient

package hms;
import javax.swing.*;
import java.sql.*;
import java.awt.event.*;

public class DeletePatientEntry extends javax.swing.JFrame {

/** Creates new form DeletePatientEntry */


public DeletePatientEntry() {
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() {

jPanel1 = new javax.swing.JPanel();


City = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
Pname = new javax.swing.JTextField();
jLabel4 = new javax.swing.JLabel();
Pin = new javax.swing.JTextField();

101
Gender = new javax.swing.JTextField();
Roomno = new javax.swing.JTextField();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
Fileno = new javax.swing.JTextField();
jLabel9 = new javax.swing.JLabel();
Age = new javax.swing.JTextField();
Admitdate = new javax.swing.JTextField();
jLabel10 = new javax.swing.JLabel();
Dischargedate = new javax.swing.JTextField();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
Cno = new javax.swing.JTextField();
Chargeperday = new javax.swing.JTextField();
jLabel13 = new javax.swing.JLabel();
Nationalty = new javax.swing.JTextField();
jLabel14 = new javax.swing.JLabel();
jButton3 = new javax.swing.JButton();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
Address = new javax.swing.JTextField();
combo = new javax.swing.JComboBox();
Fname = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowActivated(java.awt.event.WindowEvent evt) {
formWindowActivated(evt);

102
}
});

jPanel1.setBackground(new java.awt.Color(204, 204, 255));


jPanel1.setBorder(javax.swing.BorderFactory.createMatteBorder(40, 270, 40, 270,
new javax.swing.ImageIcon("D:\\PRO\\NEERAJ PROJECT\\JAVA FULL PROJECT\\
JAVA ODBC\\Hospital\\HOSPITAL IMG\\hospital2.jpg"))); // NOI18N

City.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
CityKeyTyped(evt);
}
});

jLabel2.setText("City:- ");

jLabel3.setText("Patient Name:- ");

Pname.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
PnameKeyTyped(evt);
}
});

jLabel4.setText("Pincode:-");

Pin.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
PinKeyTyped(evt);
}
});

103
Gender.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
GenderKeyTyped(evt);
}
});

Roomno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
RoomnoKeyTyped(evt);
}
});

jLabel5.setText("Room No:-");

jLabel6.setText("Father Name:- ");

jLabel7.setText("Gender:- ");

jLabel8.setText("File No:- ");

Fileno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
FilenoKeyTyped(evt);
}
});

jLabel9.setText("Age:- ");

Age.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {

104
AgeActionPerformed(evt);
}
});
Age.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
AgeKeyTyped(evt);
}
});

jLabel10.setText("Admit Date:- ");

jLabel11.setText("Contect No:- ");

jLabel12.setText("Discharge Date:- ");

Cno.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
CnoKeyTyped(evt);
}
});

Chargeperday.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
ChargeperdayActionPerformed(evt);
}
});
Chargeperday.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
ChargeperdayKeyTyped(evt);
}
});

105
jLabel13.setText("Nationality");

Nationalty.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
NationaltyKeyTyped(evt);
}
});

jLabel14.setText("Charge Perday:- ");

jButton3.setText("EXIT");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});

jLabel15.setFont(new java.awt.Font("Monotype Corsiva", 1, 24));


jLabel15.setText("DELETE PATIENT ENTRY");

jLabel16.setText("Address:- ");

Address.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
AddressKeyTyped(evt);
}
});

combo.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Select"


}));

106
combo.addItemListener(new java.awt.event.ItemListener() {
public void itemStateChanged(java.awt.event.ItemEvent evt) {
comboItemStateChanged(evt);
}
});
combo.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
comboActionPerformed(evt);
}
});

Fname.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
FnameKeyTyped(evt);
}
});

jButton1.setText("DELETE");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(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()

107
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(49, 49, 49)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addComponent(jLabel3)
.addComponent(jLabel6)
.addComponent(jLabel7)
.addComponent(jLabel9)
.addComponent(jLabel11)
.addComponent(jLabel13)
.addComponent(jLabel16))
.addGap(64, 64, 64)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.TRAILING)
.addComponent(Gender, javax.swing.GroupLayout.DEFAULT_SIZE,
170, Short.MAX_VALUE)
.addComponent(Address,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(Nationalty,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(Cno, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(Age, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE)
.addComponent(Pname, javax.swing.GroupLayout.DEFAULT_SIZE,
170, Short.MAX_VALUE)

108
.addComponent(Fname,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 170, Short.MAX_VALUE))
.addGap(82, 82, 82))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jButton1, javax.swing.GroupLayout.PREFERRED_SIZE,
88, javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(107, 107, 107)))
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addComponent(jLabel2)
.addComponent(jLabel4)
.addComponent(jLabel5)
.addComponent(jLabel8)
.addComponent(jLabel10)
.addComponent(jLabel12)
.addComponent(jLabel14))
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.LEADING)
.addComponent(Roomno,
javax.swing.GroupLayout.PREFERRED_SIZE, 74,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Fileno,
javax.swing.GroupLayout.PREFERRED_SIZE, 76,
javax.swing.GroupLayout.PREFERRED_SIZE)

109
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayo
ut.Alignment.TRAILING, false)
.addComponent(Chargeperday,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Dischargedate,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Admitdate,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(Pin,
javax.swing.GroupLayout.Alignment.LEADING)
.addComponent(City,
javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, 165, Short.MAX_VALUE))))
.addComponent(jButton3, javax.swing.GroupLayout.PREFERRED_SIZE,
87, javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(177, 177, 177))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(347, 347, 347)
.addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE, 108,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(437, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(305, 305, 305)
.addComponent(jLabel15, javax.swing.GroupLayout.PREFERRED_SIZE,
283, javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(304, Short.MAX_VALUE))
);
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

110
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGap(28, 28, 28)
.addComponent(jLabel15)
.addGap(18, 18, 18)
.addComponent(combo, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(15, 15, 15)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(Pname,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel3)
.addComponent(jLabel2)
.addComponent(City, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(185, 185, 185))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGap(26, 26, 26)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel4)

111
.addComponent(Fname,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6)
.addComponent(Pin, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel5)
.addComponent(Roomno,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel7)
.addComponent(Gender,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(42, 42, 42)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.TRAILING)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayo
ut.Alignment.BASELINE)
.addComponent(jLabel8)
.addComponent(Age,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)

112
.addComponent(jLabel9))
.addComponent(Fileno,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(8, 8, 8)))
.addGap(37, 37, 37)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alig
nment.LEADING)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
.addComponent(jButton3)
.addComponent(jButton1))
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel10)
.addComponent(Admitdate,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Cno, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel11))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel12)

113
.addComponent(Dischargedate,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Nationalty,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel13))
.addGap(45, 45, 45)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.
Alignment.BASELINE)
.addComponent(jLabel14)
.addComponent(Chargeperday,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(Address,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel16))
.addGap(82, 82, 82)))
.addGap(21, 21, 21))
);

javax.swing.GroupLayout layout = new


javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)

114
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(148, 148, 148))
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 708,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);

pack();
}// </editor-fold>

private void CityKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER)) {
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
City.requestFocus();

115
}
}

private void PnameKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER)) {
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
Pname.requestFocus();
}
}

private void PinKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER)) {
JOptionPane.showMessageDialog(null, "Invalid Pincode No.");
evt.consume();
Pin.requestFocus();
}
}

private void GenderKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();

116
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER)) {
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
Gender.requestFocus();
}
}

private void RoomnoKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE)) {
JOptionPane.showMessageDialog(null, "Invalid Room No.");
evt.consume();
Roomno.requestFocus();
}
}

private void FilenoKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE)) {
JOptionPane.showMessageDialog(null, "Invalid File No.");
evt.consume();
Fileno.requestFocus();
}
}

117
private void AgeActionPerformed(java.awt.event.ActionEvent evt) {
// TODO add your handling code here:
}

private void AgeKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE)) {
JOptionPane.showMessageDialog(null, "Invalid age");
evt.consume();
Age.requestFocus();
}
}

private void CnoKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE)) {
JOptionPane.showMessageDialog(null, "Invalid No.");
evt.consume();
Cno.requestFocus();
}
}

private void ChargeperdayActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:

118
}

private void ChargeperdayKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='0'&&ch<='9'||ch==KeyEvent.VK_ENTER||
ch==KeyEvent.VK_BACK_SPACE)) {
JOptionPane.showMessageDialog(null, "Invalid Amount");
evt.consume();
Chargeperday.requestFocus();
}
}

private void NationaltyKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(!(ch>='A'&&ch<='Z'||ch>='a'&&ch<='z'||ch==KeyEvent.VK_SPACE||
ch==KeyEvent.VK_BACK_SPACE||ch==KeyEvent.VK_ENTER)) {
JOptionPane.showMessageDialog(null, "Invalid Name.");
evt.consume();
Nationalty.requestFocus();
}
}

private void jButton3ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
dispose();
}

119
private void AddressKeyTyped(java.awt.event.KeyEvent evt) {
// TODO add your handling code here:
}

private void comboItemStateChanged(java.awt.event.ItemEvent evt) {


// TODO add your handling code here:
}

private void comboActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
int pid;
String s=String.valueOf(combo.getSelectedItem());
pid=Integer.parseInt(s);
try {
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
String query;
query="select * from ptable where patientid="+pid+"";
ResultSet res=state.executeQuery(query);
if(res.next()) {
Pname.setText(res.getString("name"));
Fname.setText(res.getString("fname"));
Gender.setText(res.getString("gender"));
Age.setText(res.getString("age"));
Cno.setText(res.getString("phone"));
Nationalty.setText(res.getString("nationalty"));
Address.setText(res.getString("address"));
City.setText(res.getString("city"));
Pin.setText(res.getString("pincode"));
Roomno.setText(res.getString("roomno"));

120
Fileno.setText(res.getString("fileno"));
Admitdate.setText(res.getString("admitdate"));
Dischargedate.setText(res.getString("dischargedate"));
Chargeperday.setText(res.getString("chargeperday"));
} else
JOptionPane.showMessageDialog(null, "Not Found");
} catch(Exception e) {
}
}

private void FnameKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
}

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
int no,choice;
String s=String.valueOf(combo.getSelectedItem());
no=Integer.parseInt(s);
choice=JOptionPane.showConfirmDialog(null, "ARE YOU SURE");
if(choice==JOptionPane.YES_OPTION)
{
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
String query;
query="delete * from ptable where patientid="+no+"";
state.executeUpdate(query);
Age.setText("");

121
Cno.setText("");
Pin.setText("");
Roomno.setText("");
Fileno.setText("");
Admitdate.setText("");
Dischargedate.setText("");
Chargeperday.setText("");
Pname.setText("");
Fname.setText("");
Address.setText("");
City.setText("");
Nationalty.setText("");
JOptionPane.showMessageDialog(null, "SUCESSFULLY DELETED");
combo.removeAllItems();
}
catch(Exception e)
{}

}
}

private void formWindowActivated(java.awt.event.WindowEvent evt) {


// TODO add your handling code here:
try
{
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection c=DriverManager.getConnection("jdbc:odbc:hospital");
Statement state=c.createStatement();
String query;
query="select * from ptable";
ResultSet res=state.executeQuery(query);

122
while(res.next())
{
combo.addItem(res.getString("patientid"));

}
}
catch(Exception e)
{}
}

/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new DeletePatientEntry().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JTextField Address;
private javax.swing.JTextField Admitdate;
private javax.swing.JTextField Age;
private javax.swing.JTextField Chargeperday;
private javax.swing.JTextField City;
private javax.swing.JTextField Cno;
private javax.swing.JTextField Dischargedate;
private javax.swing.JTextField Fileno;

123
private javax.swing.JTextField Fname;
private javax.swing.JTextField Gender;
private javax.swing.JTextField Nationalty;
private javax.swing.JTextField Pin;
private javax.swing.JTextField Pname;
private javax.swing.JTextField Roomno;
private javax.swing.JComboBox combo;
private javax.swing.JButton jButton1;
private javax.swing.JButton jButton3;
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 jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
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.JPanel jPanel1;
// End of variables declaration

}Search_patient

Private Sub CMDEXIT_Click()


Me.Hide

124
End Sub

Private Sub Cmdok_Click()


On Error GoTo message
Data1.Refresh
If Option1.Value = True Then
Data1.RecordSource = "SELECT * FROM patient_table WHERE patientid=" &
Text1.Text
ElseIf Option2.Value = True Then
Data1.RecordSource = "select * from patient_table where name ='" & Text1.Text & " '
"

ElseIf Option3.Value = True Then


Data1.RecordSource = "select * from patient_table where roomno=" & Text1.Text
Else
Data1.RecordSource = "select * from patient_table"
End If
Data1.Refresh
Exit Sub
message:
MsgBox "Invalid input", vbExclamation
End Sub

Private Sub Form_Load()


Me.WindowState = 2
Data1.DatabaseName = App.Path + "\hospdatabase.mdb"
Data1.RecordSource = "patient_table"

End Sub

125
Private Sub Option1_Click()
label.Caption = "Enter the patient id"
Text1.SetFocus
End Sub

Private Sub Option2_Click()


label.Caption = "Enter the patient name "
Text1.SetFocus
End Sub

Private Sub Option3_Click()


label.Caption = "Enter the room no"
Text1.SetFocus
End Sub

126
Patient_report

Private Sub CMDEXIT_Click()


Me.Hide
End Sub

Private Sub Form_Load()


Me.WindowState = 2
Data1.DatabaseName = App.Path + "\hospdatabase.mdb"
Data1.RecordSource = "PATIENT_table"
Data1.RecordSource = "SELECT * FROM PATIENT_TABLE"
Data1.Refresh
End Sub

127
Calculating_bill
package hms;
import java.awt.event.*;

public class Bill_form extends javax.swing.JFrame {

/** Creates new form Bill_form */


public Bill_form() {
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() {

jPanel1 = new javax.swing.JPanel();


jLabel1 = new javax.swing.JLabel();
txtcharge = new javax.swing.JTextField();
txtdays = new javax.swing.JTextField();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
txtamount = new javax.swing.JTextField();

128
jLabel4 = new javax.swing.JLabel();
txtadvance = new javax.swing.JTextField();
jLabel6 = new javax.swing.JLabel();
txtbalance = new javax.swing.JTextField();
calculation = new javax.swing.JButton();
exit = new javax.swing.JButton();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOS
E);

jPanel1.setBorder(javax.swing.BorderFactory.createCompoundBorder(new
javax.swing.border.LineBorder(new java.awt.Color(51, 0, 153), 19, true),
new javax.swing.border.LineBorder(new java.awt.Color(153, 0, 153), 19,
true)));

jLabel1.setText("Charge per day");

txtdays.addKeyListener(new java.awt.event.KeyAdapter() {
public void keyTyped(java.awt.event.KeyEvent evt) {
txtdaysKeyTyped(evt);
}
});

jLabel2.setText("No of days");

129
jLabel3.setText("Total amount");

jLabel4.setText("Advance");

jLabel6.setText("Balance");

calculation.setText("Calculation");
calculation.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
calculationActionPerformed(evt);
}
});

exit.setText("Exit");
exit.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
exitActionPerformed(evt);
}
});

javax.swing.GroupLayout jPanel1Layout = new


javax.swing.GroupLayout(jPanel1);
jPanel1.setLayout(jPanel1Layout);
jPanel1Layout.setHorizontalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)

130
.addGroup(jPanel1Layout.createSequentialGroup()
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.TRAILING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addContainerGap()
.addComponent(jLabel6)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlace
ment.RELATED, 82, Short.MAX_VALUE)
.addComponent(txtbalance,
javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(javax.swing.GroupLayout.Alignment.LEADING,
jPanel1Layout.createSequentialGroup()
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.G
roupLayout.Alignment.LEADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel4)
.addPreferredGap(javax.swing.LayoutStyle.Component
Placement.RELATED, 63, Short.MAX_VALUE)
.addComponent(txtadvance,
javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel3)
.addPreferredGap(javax.swing.LayoutStyle.Component
Placement.RELATED, 42, Short.MAX_VALUE)

131
.addComponent(txtamount,
javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel1)
.addGap(30, 30, 30)
.addComponent(txtcharge,
javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addComponent(jLabel2)
.addPreferredGap(javax.swing.LayoutStyle.Component
Placement.RELATED, 53, Short.MAX_VALUE)
.addComponent(txtdays,
javax.swing.GroupLayout.PREFERRED_SIZE, 125,
javax.swing.GroupLayout.PREFERRED_SIZE)))))
.addContainerGap(117, Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(80, 80, 80)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.LEADING)
.addComponent(calculation)
.addComponent(exit,
javax.swing.GroupLayout.PREFERRED_SIZE, 82,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addContainerGap(206, Short.MAX_VALUE))
);

132
jPanel1Layout.setVerticalGroup(

jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.L
EADING)
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.BASELINE)
.addComponent(jLabel1)
.addComponent(txtcharge,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(24, 24, 24)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.BASELINE)
.addComponent(jLabel2)
.addComponent(txtdays,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.BASELINE)
.addComponent(jLabel3)

133
.addComponent(txtamount,
javax.swing.GroupLayout.PREFERRED_SIZE, 20,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(18, 18, 18)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.BASELINE)
.addComponent(jLabel4)
.addComponent(txtadvance,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(33, 33, 33)
.addComponent(calculation)
.addGap(41, 41, 41)
.addGroup(jPanel1Layout.createParallelGroup(javax.swing.Group
Layout.Alignment.BASELINE)
.addComponent(txtbalance,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addComponent(jLabel6))
.addGap(18, 18, 18)
.addComponent(exit,
javax.swing.GroupLayout.DEFAULT_SIZE, 23, Short.MAX_VALUE)
.addContainerGap())
);

134
javax.swing.GroupLayout layout = new
javax.swing.GroupLayout(getContentPane());
getContentPane().setLayout(layout);
layout.setHorizontalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING
)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addContainerGap(65, Short.MAX_VALUE)
.addComponent(jPanel1,
javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addGap(53, 53, 53))
);
layout.setVerticalGroup(

layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING
)
.addGroup(javax.swing.GroupLayout.Alignment.TRAILING,
layout.createSequentialGroup()
.addGap(21, 21, 21)
.addComponent(jPanel1,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())

135
);

pack();
}// </editor-fold>

private void txtdaysKeyTyped(java.awt.event.KeyEvent evt) {


// TODO add your handling code here:
char ch;
ch=evt.getKeyChar();
if(ch==KeyEvent.VK_ENTER)
{
long charge,days,total;
charge=Long.parseLong(txtcharge.getText());
days=Long.parseLong(txtdays.getText());
total=charge*days;
txtamount.setText(String.valueOf(total));
txtadvance.requestFocus();
evt.consume();
}

private void calculationActionPerformed(java.awt.event.ActionEvent evt)


{
// TODO add your handling code here:
long bal,adv;
adv=Long.parseLong(txtadvance.getText());

136
bal=Long.parseLong(txtamount.getText())-adv;
txtbalance.setText(String.valueOf(bal));
}

private void exitActionPerformed(java.awt.event.ActionEvent evt) {


// TODO add your handling code here:
this.hide();
}

public static void main(String args[]) {


java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Bill_form().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton calculation;
private javax.swing.JButton exit;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel3;
private javax.swing.JLabel jLabel4;
private javax.swing.JLabel jLabel6;
private javax.swing.JPanel jPanel1;
private javax.swing.JTextField txtadvance;

137
private javax.swing.JTextField txtamount;
private javax.swing.JTextField txtbalance;
private javax.swing.JTextField txtcharge;
private javax.swing.JTextField txtdays;
// End of variables declaration

This project was developed to fulfill user requirement; however there are lots of scope to
improve the performance of the Online Student Registration System in the area of user
interface, database performance, and query processing time. Etc.

138
So there are many things for future enhancement of this project. The future enhancements
that are possible in the project are as follows.

 Web Based interface for system administrator to add modify question bank,
which presently done from back end
 Web based interface for generate reports, student test details for system
administrator
 Linking and integration of other online educational web sites.
 Integration with university database through Web Services
 Connection to third-party OLAP applications
 In the area of data security and system security.
 Provide more online tips and help.
 To optimize the query which is embedded in the system?

139
The project made me realize the significance of developing software for client,

where all the eventualities have to be taken care of, unlike at educational institution,

where the sole aim is to learn. What may be seen to the developed to be a software

complete in all respects, I was required to meet the stringent demands of the in-house

client in the materials department. Through this seemed tough at first, I realized that

pressure goaded us on to develop better and better applications.

During the project, the real importance for following all the principle of System

Analysis and Design drawled on me. I felt the necessity of going through the several

stages, because only such a process could make one understand the problems at hand,

more so due to the enormous size of data stores involved and their manipulation

In retrospect, I would like to say that the institute provided us with sample

opportunities to learn Oracle 8 and its tools. I specifically was able to learn MS-

ACCESS and its Tools. I specially was able to learn JAVA I also succeeded in

understanding a number of tricky concept in database, which were earlier only hazy blobs

in the realm of our comprehension. However my project library management is an asset

140
to the organization, even then FURTHER ENHANCEMENT are possible in this project

such as new forms & reports can be included as and when required.

Unfortunately due to lack of time we can developed any report in this system but

this is not the end of this system software, it is beginning. We can change and modify

this software due to more requirements of needs and also removed some errors which is

finding in this system software.

We also developed some complex reports which is required and makes this

software more powerful and friendly for user by which user can handle library data

more easily and can calculate all the calculation without any other software i.e., user’s

all the requirements will be fulfill by this software and user can manage all the numeric

data calculations.

141
S.No. Terms Description

1 BACK UP A copy of something preserved to insure against


the damage of primary copy.

2 DATA BASE A repository of stored data.

3 DBMS Data Base Management System is a layer if


Software between the physical database itself &
the users of the system.

4 DD Data Dictionary, which is a data base that


Contains “data about data” i.e. description of
other in the system

5 FLOW CHART FLOW CHART which


depicts relation between different entities in the
system.

6 HARDWARE The physical equipment in a system


comprising of computers, terminals, Keyboards
& Other ancillary items.

7 ITD Information Technology Division.

8 MENU A group of options from which Selection is to be


made.

142
9 MODULE A small components of a larger system

10 ON-LINE A term describing people, equipment or Devices


that are in direct communication with the
computer

11 PI Preliminary Investigation

12 PROGRAM A sequence of instruction given to the Computer


to solve a particular problem.

13 PROTOTYPE A development model of the system for test


Purpose

14 RDBMS A data Base/ Management System in which


Relationships are defined by tables.

15 RSD Requirement Specification Document.

16 SCALABILITY The ability to increase the performance With the


growth in Hardware.

17 SOFTWARE Computer program, procedure & Associated


documentation concerned with the operator of a
system.

143
Books
Following books and ebook are used to complete this project reports.
I. Mastering JAVA NEATBEANS 6.5
a. Author EBALAGURSWAMI
b. Publisher MC GRAY HILLS
II. Oracle The Complete Reference
a. Author Robert Koch
b. Publication Tata McGraw-Hill
III. SQL, PL/SQL The Programming Language of Oracle
a. Author Ivan Bayross
b. Publication BPB Publication
IV. Software Engineering Apractitioner’s Approach
a. Author Roger S. Pressman
b. Publication Tata McGraw-Hill
V. Fundamentals of Software Engineering
a. Author Carlo Ghezzi, Mehdi Jazayeri, DinoMandrioli
b. Publisher Prentice Hall of India

Websites
Following websites are referring to create this project reports.
 http://www.google.com
 http://www.microsoft.com
 http://www.programmer2programmer.net
 http://www.codeproject.com
 http://www.asp.net
 http://www.asp123.com
 http://www.wikipedia.com

144
145

You might also like