You are on page 1of 101

Main Live Project Report Blood Bank Data Base for IRCS

zz

1. INTRODUCTION
1.1 About project:
The main aim of this project is to create Database for Blood Bank system, so that the
user can maintain all the details of the Donor, Donor test details, Stock details, Recipient
details, Discard details.
We have done our main project on Database for Blood Bank System inorder to
maintain the data in the database. And mentioned the complete details in the database.
The project is computerizing the School database system, which is designed and developed
in JAVA and Oracle 10g express edition. This project is developed to reduce the complexity
involved in maintaining large amount of data and frequent complex operations manually in
large school. This project comprises the modules like Student, Staff, Accounts and
Transportation.

The following are major activities that take place in Blood bank database:
Donor details.
Donor Test details.
Stock details.
Account details.
Recipient details.
Discard details.
Camp details.

Aizza College of Engineering & Technology Page 1


Main Live Project Report Blood Bank Data Base for IRCS
zz

1.2 Existing system with drawbacks:

At present the hospital maintaining all information in records, registers and papers.
Drawbacks

Difficult in database maintenance.


Time consuming process
Huge human resource.

1.3 Proposed system with features:

In our project we are providing a user friendly interface through which an


authenticated user can interact with the Database.
Features
The information regarding Blood Bank can be retrieved easily and takes less time.
Increases the efficiency in storing the information there by reducing risk.
This application provides security.

Aizza College of Engineering & Technology Page 2


Main Live Project Report Blood Bank Data Base for IRCS
zz

2. SYSTEM ANALYSIS

2.1 Functional Requirements:


Hardware Requirements (Preferable):

Processor : Intel Pentium-IV

Hard disk : 20GB

RAM : 512 MB

Software Requirements (Preferable):

Front End : JAVA/J2EE

Back end :Oracle10g Expression

IDES : Net Beans6.8

Operating System : Windows XP

Framework : C#(3.5 version)

Aizza College of Engineering & Technology Page 3


Main Live Project Report Blood Bank Data Base for IRCS
zz

2.2 Non-Functional Requirements:

Cost
Size
Maintainability
Robust
Reliability:

Cost:
It is Feasable
Size:
It occupies lessthan 2MB
Maintainability:
Maintainability is used to make future maintenance easier, meet new requirements.
Robustness:
Robustness is the quality of being able to withstand stress, pressures, or changes in
Procedure or circumstance.
Reliability:
Reliability is a ability of a person or system to perform and maintain its functions
in circumstances.

Aizza College of Engineering & Technology Page 4


Main Live Project Report Blood Bank Data Base for IRCS
zz

2.3 Technology Used:

The Technology used in the development of this software is JAVA/J2EE.JAVA [3]


represents an advanced new generation of software that will drive the Next Generation
Internet. Its purpose is to make information available any time, any place, and on any
device.JAVA is an initiative to integrate all Microsoft products with the Next Generation
web.

2.4 Module Description


Donor details.
Master
Stock details.
Discard & Issues details.
.

Donor:
In this module all the donor details are provided. They are like donor add and view.

Master:
In this module we are providing Master details. It is a combination of Donation test
details and Recipient details.

Stock Details:
In this module we are providing Stock details. They are like Stock view by bag , view
by expiry ,view by Blood group , view by gender.

Discard & Issue details:


In this module we are providing the details of discard. They are like discard add,
view, update, delete.

Aizza College of Engineering & Technology Page 5


Main Live Project Report Blood Bank Data Base for IRCS
zz

3. SYSTEM DESIGN

3.1 Block Diagram

Aizza College of Engineering & Technology Page 6


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 7


Main Live Project Report Blood Bank Data Base for IRCS
zz

F igure: 3.1(a ) Block Diagram

3.2 Data Flow Diagrams:

A data flow diagram[2] is graphical tool used to describe and analyze movement of
data through a system. These are the central tool and the basis from which the other
components are developed.
The transformation of data from input to output, through processed, may be described
logically and independently of physical components associated with the system. These
are known as the logical data flow diagrams.
The physical data flow diagrams show the actual implements and movement of data
between people, departments and workstations.
DFD is also known as a Bubble Chart has the purpose of clarifying system
requirements and identifying major transformations that will become programs in
system design. So it is the starting point of the design to the lowest level of detail.

DFD symbols:

Element References Symbols


Data Flow Process

Process

Data Store

Source & Destination


Description:
Process:
No process can have only outputs

Aizza College of Engineering & Technology Page 8


Main Live Project Report Blood Bank Data Base for IRCS
zz

No process can have only inputs. If an object has only inputs than it must be a sink.
A process has a verb phrase libels.

Data Store:
Data cannot move directly from one data store to another data store, a process must
move data.
Data cannot move directly from an outside source to a data store, a process, which
receives, must move data from the source and place the data into data store.
A data store has a noun phrase label.

Source or Sink:
The origin and/or destination of data
Data cannot move directly from a source to sink it must be moved by a process
Source and/or sink has a noun phrase

Aizza College of Engineering & Technology Page 9


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.2.1Context Level DFD

Login Insert and update details


1.0
Admin # Database
Logout Blood
bank Retrives the data

Figure: 3.2.1 Context Level DFD

Aizza College of Engineering & Technology Page 10


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.2.2 Top Level DFD

# Database

Admin 1.0
2.0
Login Donor
# Donor table

3.0
Donor # Donor test
test table

4.0 # Stock table


Stock

5.0 # Issue table


Issue

6.0
Recipie # Recipient table
nt

7.0
Discar # Discard table
Blood bank for d
IRCS
Figure: 3.2.2 Context Level DFD

Aizza College of Engineering & Technology Page 11


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.2.3 Detail Level DFD

Aizza College of Engineering & Technology Page 12


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 13


Main Live Project Report Blood Bank Data Base for IRCS
zz

F igure 3.2.3 detail level D FD

Aizza College of Engineering & Technology Page 14


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.3 Entity- Relationship Diagrams:


In E-R diagram[5] basic objects are.
Entity
Attribute
Relationship

Entity:

An entity is a logical object that represents a person, place, or thing about which an
organization maintains information.

Attributes:

Attribute collect information about an entity. Logical attribute usually corresponds to


physical columns in a table.

Relationships:

A very important object in a data model is the relationship, which is represented by the
solid or dashed line that connects two entities or tables. A relationship line connects parent to
child entities or tables.

Ellipses: Represent attribute

Aizza College of Engineering & Technology Page 15


Main Live Project Report Blood Bank Data Base for IRCS
zz

Diamonds: Represent relationship sets.

Lines: Link attribute to entity sets and entity sets to relationship sets.

Double Ellipse: Represent multi-valued attributes.

Dashed Ellipse: It denotes derived attributes.

Double Lines: Indicate total participation of an entity in a relationship set.

Aizza College of Engineering & Technology Page 16


Main Live Project Report Blood Bank Data Base for IRCS
zz

E-R DIAGRAM

F igure 3.3 ER D iagra m

Aizza College of Engineering & Technology Page 17


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4 Unified Modeling Language (UML) Diagrams


The Unified Modeling Language (UML)[1] is a Graphical Language for
Visualizing, Specifying, Constructing, and Documenting .The Artifacts of a Software
Intensive System. UML provides Blue Prints for Business process, System Function,
Programming Language statements, Database Schemas and Reusable Components.

There are 8 Types of Diagrams:

Class diagram
Object diagram
Use case diagram
Sequence diagram
Collaboration diagram
State diagram
Component diagram
Deployment diagram

Aizza College of Engineering & Technology Page 18


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4.1 Class Diagram:

Classes are the most important building of any obi-oriented languages. A class is
a description of a set of obis that share the same attributes, operations, relationships and
semantics. A class is an abstraction of things that are a part of a vocabulary. A class is not an
individual obj, but rather represents a whole set of obis.

SHAPE Name Name

Attributes:
ORIGIN

MOVE() O perations
Resize()

Name:
A name is a textual string. The name alone is called as simple name; a path name is a
class name prefixed by the name of the package in which the class lives.

Attribute:
An attribute is a named property of a class that describes a range of values that
instances of the property may hold. An attribute represents some property of the thing u are
modeling that is shared by all objs of that class.

Operation:
An operation is the implementation of a service that can be requested from any
obj of the class to effect behavior. class may have any number of operation or no operation at
all.

Aizza College of Engineering & Technology Page 19


Main Live Project Report Blood Bank Data Base for IRCS
zz

Class Diagram:

Donor Donation
dname bagno
daddress year sno
did month sno
dbloodgroup
view()
add() * update()
view() delete()
* update()

Stock
1 kitid
Admin kit name
user name 1 date of expiry
...
password *
1 view()
retrieve information()
... update()
1 delete()
update database()
1 1
Recipient
name
* id
* Issue
Discard
bagno view()
donorname
donation date recipient no
reason * quantity
crossmatch id
add()
view() add()
update() view()
update()
delete()

Figure 3 . 4 . 1 C l a s s D i a g r a m

Aizza College of Engineering & Technology Page 20


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4.2 Use Case Diagram:

Early stages of the design process to collect the intention requirements of a project.
The first diagram to look at a project is the Use Case diagram[1]. The main ingredients for
this type of diagram are use cases and actors. They are associated to the tasks, or use cases,
they are involved in. it is often used in

ACTORS - also referred to as roles. Name and stereotype of an actor can


be changed in its properties tab.
INHERITANCE - refinement relations between actors. This relation can
carry a name and a stereotype.

USE CASES - these can have extension points.

ASSOCIATIONS - between roles and use cases. It is useful to give


associations speaking names.

DEPENDENCIES - between use cases. Dependencies often have a


stereotype to better define the role of the dependency. There are two special
kinds of dependencies: <<extend>> and <<include>>.

EXTEND RELATIONSHIP - a unit-directional relationship between two


use cases. An extend relationship between use case b and use case a means
that the behavior of b can be included in a.

INCLUDE RELATIONSHIP - a unit-directional relationship between


two use cases. Such a relationship between use cases a and b means, that the
behavior of b is always included in a.

SYSTEM BORDER -. You can simply draw a rectangle; use it as system


border by putting all corresponding use cases inside the rectangle.

Aizza College of Engineering & Technology Page 21


Main Live Project Report Blood Bank Data Base for IRCS
zz

Use Case Diagram

Figure: 3.4.2 Use case Diagram

Aizza College of Engineering & Technology Page 22


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4.3 Sequence Diagram:

A Sequence diagram[1] is an easily comprehensible visualization of single


scenarios in time. The diagram essentially includes a timeline that flows from the top to the
bottom of the diagram and is displayed as a dotted line. The interaction between objects is
described by specifying the different kinds of messages sent between them. Messages are
called stimuli.

Diagram Elements:

OBJECTS - elements responsible for sending and receiving messages.


CALL STIMULI - represents a synchronous message, which means that it is
regarded as a procedure call.

SEND STIMULI - illustrates an asynchronous message, which means that it is


regarded as a signal. As such, the sender doesn't wait for an answer from the receiver.

RETURN STIMULI - represents the return statement of a call stimulus.

CREATE STIMULI - used to create a new object at a certain point in the


sequence. The created object will then be placed at this specific point and not at the
top of the diagram pane

DESTROY STIMULI - used to destroy an object at a specific point in the


sequence. the lifeline of the destroyed object will then end with a cross at this point
and not at the bottom of the diagram pane

Aizza College of Engineering & Technology Page 23


Main Live Project Report Blood Bank Data Base for IRCS
zz

Sequence Diagram

Figure: 3.4.3(e) Sequence diagram

Aizza College of Engineering & Technology Page 24


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4.4 Collaboration Diagram:

A Collaboration diagram[1] emphasizes the organization of the objects that


participates in interaction. It addresses the dynamic view of the system. It consists of a path
and sequence number. A path is used to indicate how one object is linked to another; you can
attach a path stereotype to the far end of a link. The sequence diagram used to indicate the
time-ordering of message; we prefix the message with a number.

Diagram Elements:

Objects- in Collaborations, objects represent different roles these are specified as


classifier roles in Poseidon for UML.
Association- Associations illustrate the connections between collaborating
objects. Messages are then placed along them.
Messages- Messages just like in Sequence diagrams, messages are used to
describe the interaction between objects. The numbers in front of the given names.

Aizza College of Engineering & Technology Page 25


Main Live Project Report Blood Bank Data Base for IRCS
zz

Collaboration diagram

Figure: 3.4.4 Collaboration diagram

Aizza College of Engineering & Technology Page 26


Main Live Project Report Blood Bank Data Base for IRCS
zz

3.4.5 Activity Diagrams:

Activity diagrams[1] are often used to model business processes. They simply and
quite plainly show how things work, and so function as a good aid to discussions of aspects
of the workflow with the domain experts.

Diagram Elements:

Initial States And Final States - indicate the beginning and end of the observed
process.
Action States - specific activities which comprise the process. They must be executed
in a specified chronological order. Sometimes you may want to split the sequence;
therefore, you have two different possibilities: branches (choice) and forks
(concurrency).

Branches - these divide the sequence into several alternatives specified by different
conditions (guards).

Forks And Joins - forks divide the sequence into concurrent sub-sequences. Joins
merge the sub-sequences.

Synchronization States - used in concurrent sub-sequences to synchronize producer-


consumer relations.

Transitions - the ingredient that keep states active and the model elements together.
Each transition can be given guards, triggers, and actions as properties to describe its
behavioral details.

Object Flow States - objects are inputs or outputs of activities and are accordingly
connected by transitions to them.

Dependencies - always possible between any model elements.

Aizza College of Engineering & Technology Page 27


Main Live Project Report Blood Bank Data Base for IRCS
zz

Activity diagram

Aizza College of Engineering & Technology Page 28


Main Live Project Report Blood Bank Data Base for IRCS
zz

Figure: 3.4.5 Activity diagram

4. DATA DICTIONARY

Data dictionary[5] is a catalog-a repository-of the elements in the system. It stores


details and description of the data flow, process and data stores. It is intended to be used to
understand the system by analysis, which retrieve the details and descriptions it stores and
during system design, when information about such concern as data length, alternative names
and data used for specific process must be available.
A Data Dictionary has many advantages the most obvious is documentation. It is
valuable reference in any organization. Another advantage is improving analyst/user
communication by establishing consistent definitions of various elements, terms and
procedures. During implementation it serves as a common their data descriptions. Also
control information for each data element is cross data element is cross-referenced in Data
Dictionary.
Once the system is developed the system analyst checks the required data elements
against the organizations central data dictionary. This saves a great deal of work to the
analyst. Finally DD is important step in building a database. Most data base management
system has a DD as standard features.
The most important aspect of the system is data design. The data must be organized
according to the system requirements.
The database approach is used to store and organize the data in developing the
system. The database is an integrated collection of data stored in different types of tables.
Some general objectives in establishing a database are as follows:
Integrating all data
Incorporate updating easily
Provide data security from unauthorized users

Aizza College of Engineering & Technology Page 29


Main Live Project Report Blood Bank Data Base for IRCS
zz

Table Datatype Details:

Aizza College of Engineering & Technology Page 30


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 31


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 32


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 33


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 34


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 35


Main Live Project Report Blood Bank Data Base for IRCS
zz

Aizza College of Engineering & Technology Page 36


Main Live Project Report Blood Bank Data Base for IRCS
zz

4. SAMPLE CODING

Welcome page :

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* modules.java
*
* Created on 20 Mar, 2012, 8:23:13 PM
*/

package source;

import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.Statement;
import java.util.Properties;
import javax.swing.JOptionPane;
import javax.swing.JPanel;

/**
*
* @author GAYATHRI
*/
public class modules extends javax.swing.JFrame {

/** Creates new form modules */


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


jPanel3 = new javax.swing.JPanel();

Aizza College of Engineering & Technology Page 37


Main Live Project Report Blood Bank Data Base for IRCS
zz

jLabel2 = new javax.swing.JLabel();


jComboBox1 = new javax.swing.JComboBox();
jLabel3 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jButton1 = new javax.swing.JButton();
jPanel4 = new javax.swing.JPanel();
jLabel4 = new javax.swing.JLabel();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();
jLabel8 = new javax.swing.JLabel();
jLabel9 = new javax.swing.JLabel();
jLabel10 = new javax.swing.JLabel();
jLabel11 = new javax.swing.JLabel();
jLabel12 = new javax.swing.JLabel();
jLabel13 = new javax.swing.JLabel();
jLabel14 = new javax.swing.JLabel();
jLabel15 = new javax.swing.JLabel();
jLabel16 = new javax.swing.JLabel();
jLabel17 = new javax.swing.JLabel();
jLabel18 = new javax.swing.JLabel();
jLabel19 = new javax.swing.JLabel();
jLabel20 = new javax.swing.JLabel();
jLabel21 = new javax.swing.JLabel();
jLabel22 = new javax.swing.JLabel();
jPanel2 = new javax.swing.JPanel();
jLabel1 = new javax.swing.JLabel();
jMenuBar1 = new javax.swing.JMenuBar();
jMenu1 = new javax.swing.JMenu();
jMenuItem8 = new javax.swing.JMenuItem();
jMenuItem2 = new javax.swing.JMenuItem();
jMenuItem1 = new javax.swing.JMenuItem();
jMenu2 = new javax.swing.JMenu();
jMenuItem28 = new javax.swing.JMenuItem();
jMenuItem4 = new javax.swing.JMenuItem();
jMenuItem5 = new javax.swing.JMenuItem();
jMenu3 = new javax.swing.JMenu();
jMenuItem6 = new javax.swing.JMenuItem();
jMenuItem9 = new javax.swing.JMenuItem();
jMenuItem10 = new javax.swing.JMenuItem();
jMenuItem7 = new javax.swing.JMenuItem();
jMenuItem23 = new javax.swing.JMenuItem();
jMenuItem29 = new javax.swing.JMenuItem();
jMenu5 = new javax.swing.JMenu();
jMenuItem13 = new javax.swing.JMenuItem();
jMenuItem14 = new javax.swing.JMenuItem();
jMenuItem15 = new javax.swing.JMenuItem();
jMenu6 = new javax.swing.JMenu();
jMenuItem16 = new javax.swing.JMenuItem();
jMenuItem17 = new javax.swing.JMenuItem();

Aizza College of Engineering & Technology Page 38


Main Live Project Report Blood Bank Data Base for IRCS
zz

jSeparator1 = new javax.swing.JPopupMenu.Separator();


jMenuItem12 = new javax.swing.JMenuItem();
jMenu7 = new javax.swing.JMenu();
jMenuItem20 = new javax.swing.JMenuItem();
jMenuItem21 = new javax.swing.JMenuItem();
jMenu8 = new javax.swing.JMenu();
jMenuItem3 = new javax.swing.JMenuItem();
jMenuItem18 = new javax.swing.JMenuItem();
jMenuItem19 = new javax.swing.JMenuItem();
jMenu9 = new javax.swing.JMenu();
jMenuItem22 = new javax.swing.JMenuItem();
jMenu10 = new javax.swing.JMenu();
jMenuItem25 = new javax.swing.JMenuItem();
jMenuItem26 = new javax.swing.JMenuItem();
jMenu4 = new javax.swing.JMenu();
jMenuItem11 = new javax.swing.JMenuItem();
jMenuItem24 = new javax.swing.JMenuItem();
jMenuItem27 = new javax.swing.JMenuItem();
jMenu11 = new javax.swing.JMenu();
jMenuItem30 = new javax.swing.JMenuItem();

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

jPanel3.setBackground(new java.awt.Color(255, 255, 255));

jLabel2.setText("Blood Group");

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


{ "Select", "A+", "B+", "AB+", "O+", "A-", "B-", "AB-", "O-" }));

jLabel3.setText("Threshold");

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

javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);


jPanel3.setLayout(jPanel3Layout);
jPanel3Layout.setHorizontalGroup(

Aizza College of Engineering & Technology Page 39


Main Live Project Report Blood Bank Data Base for IRCS
zz

jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(27, 27, 27)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG, false)
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel2)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jComboBox1,
javax.swing.GroupLayout.PREFERRED_SIZE, 121,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGroup(jPanel3Layout.createSequentialGroup()
.addComponent(jLabel3)
.addGap(18, 18, 18)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addComponent(jButton1)
.addComponent(jTextField1))))
.addContainerGap(88, Short.MAX_VALUE))
);
jPanel3Layout.setVerticalGroup(
jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel3Layout.createSequentialGroup()
.addGap(21, 21, 21)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel2)
.addComponent(jComboBox1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(31, 31, 31)

.addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel3)
.addComponent(jTextField1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
.addGap(43, 43, 43)
.addComponent(jButton1)
.addContainerGap(211, Short.MAX_VALUE))
);

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

jLabel4.setText("A+");

Aizza College of Engineering & Technology Page 40


Main Live Project Report Blood Bank Data Base for IRCS
zz

jLabel6.setText("B+");

jLabel8.setText("AB+");

jLabel10.setText("O+");

jLabel12.setText("A-");

jLabel14.setText("B-");

jLabel16.setText("AB-");

jLabel18.setText("O-");

jLabel20.setText("Kits");

javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);


jPanel4.setLayout(jPanel4Layout);
jPanel4Layout.setHorizontalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(24, 24, 24)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel20)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel21))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel18)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jLabel19))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel16)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel17))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel14)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel15))
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel12)

.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
.addComponent(jLabel13))
.addGroup(jPanel4Layout.createSequentialGroup()

Aizza College of Engineering & Technology Page 41


Main Live Project Report Blood Bank Data Base for IRCS
zz

.addComponent(jLabel10)
.addGap(18, 18, 18)
.addComponent(jLabel11))
.addComponent(jLabel8)
.addComponent(jLabel6)
.addGroup(jPanel4Layout.createSequentialGroup()
.addComponent(jLabel4)
.addGap(31, 31, 31)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)
.addComponent(jLabel7)
.addComponent(jLabel5)
.addComponent(jLabel9))))
.addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
);
jPanel4Layout.setVerticalGroup(
jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(jPanel4Layout.createSequentialGroup()
.addGap(26, 26, 26)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel4)
.addComponent(jLabel5))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel6)
.addComponent(jLabel7))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel8)
.addComponent(jLabel9))
.addGap(29, 29, 29)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel10)
.addComponent(jLabel11))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel12)
.addComponent(jLabel13))

Aizza College of Engineering & Technology Page 42


Main Live Project Report Blood Bank Data Base for IRCS
zz

.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel14)
.addComponent(jLabel15))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel16)
.addComponent(jLabel17))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel18)
.addComponent(jLabel19))
.addGap(18, 18, 18)

.addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASEL
INE)
.addComponent(jLabel20)
.addComponent(jLabel21))
.addContainerGap(62, Short.MAX_VALUE))
);

jLabel22.setFont(new java.awt.Font("Times New Roman", 3, 24)); // NOI18N


jLabel22.setForeground(java.awt.Color.red);
jLabel22.setText("WELCOME TO THE BLOOD BANK");

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()
.addGap(191, 191, 191)
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE, 490,
javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 170,
Short.MAX_VALUE)
.addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.PREFERRED_SIZE))
);
jPanel1Layout.setVerticalGroup(

Aizza College of Engineering & Technology Page 43


Main Live Project Report Blood Bank Data Base for IRCS
zz

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

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADI
NG)

.addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILI
NG, false)
.addComponent(jPanel4, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE)
.addComponent(jPanel3, javax.swing.GroupLayout.Alignment.LEADING,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE,
Short.MAX_VALUE))
.addGroup(jPanel1Layout.createSequentialGroup()
.addGap(89, 89, 89)
.addComponent(jLabel22, javax.swing.GroupLayout.PREFERRED_SIZE,
147, javax.swing.GroupLayout.PREFERRED_SIZE)))
.addContainerGap(79, Short.MAX_VALUE))
);

javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);


jPanel2.setLayout(jPanel2Layout);
jPanel2Layout.setHorizontalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 657, Short.MAX_VALUE)
);
jPanel2Layout.setVerticalGroup(
jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGap(0, 95, Short.MAX_VALUE)
);

jLabel1.setText("jLabel1");

jMenu1.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICON/images
(15).jpg"))); // NOI18N
jMenu1.setText("Donor");
jMenu1.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem8.setText("Add");
jMenuItem8.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem8ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem8);

jMenuItem2.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem2.setText("Update");
jMenuItem2.addActionListener(new java.awt.event.ActionListener() {

Aizza College of Engineering & Technology Page 44


Main Live Project Report Blood Bank Data Base for IRCS
zz

public void actionPerformed(java.awt.event.ActionEvent evt) {


jMenuItem2ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem2);

jMenuItem1.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem1.setText("View");
jMenuItem1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem1ActionPerformed(evt);
}
});
jMenu1.add(jMenuItem1);

jMenuBar1.add(jMenu1);

jMenu2.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/ICON/IIII.jpg"))); // NOI18N
jMenu2.setText("Donation");
jMenu2.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem28.setText("Add Techncians");
jMenuItem28.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem28ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem28);

jMenuItem4.setText("Add");
jMenuItem4.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem4ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem4);

jMenuItem5.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem5.setText("View");
jMenuItem5.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem5ActionPerformed(evt);
}
});
jMenu2.add(jMenuItem5);

jMenuBar1.add(jMenu2);

Aizza College of Engineering & Technology Page 45


Main Live Project Report Blood Bank Data Base for IRCS
zz

jMenu3.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICON/images
(17).jpg"))); // NOI18N
jMenu3.setText("Stock");
jMenu3.setFont(new java.awt.Font("Times New Roman", 1, 14));
jMenu3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenu3ActionPerformed(evt);
}
});

jMenuItem6.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem6.setText("View by Blood group");
jMenuItem6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem6ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem6);

jMenuItem9.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem9.setText("View by Gender");
jMenuItem9.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem9ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem9);

jMenuItem10.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem10.setText("View by bag");
jMenuItem10.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem10ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem10);

jMenuItem7.setText("View by expiry");
jMenuItem7.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem7ActionPerformed(evt);
}
});
jMenu3.add(jMenuItem7);

jMenuItem23.setText("View By Receipient");
jMenuItem23.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem23ActionPerformed(evt);
}

Aizza College of Engineering & Technology Page 46


Main Live Project Report Blood Bank Data Base for IRCS
zz

});
jMenu3.add(jMenuItem23);

jMenuItem29.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem29.setText("DailyStock");
jMenuItem29.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem29ActionPerformed1(evt);
}
});
jMenu3.add(jMenuItem29);

jMenuBar1.add(jMenu3);

jMenu5.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem13.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem13.setText("Add");
jMenuItem13.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem13ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem13);

jMenuItem14.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem14.setText("View");
jMenuItem14.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem14ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem14);

jMenuItem15.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem15.setText("Update");
jMenuItem15.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem15ActionPerformed(evt);
}
});
jMenu5.add(jMenuItem15);

jMenuBar1.add(jMenu5);

jMenu6.setText("Discard Details");
jMenu6.setFont(new java.awt.Font("Times New Roman", 1, 14));
jMenu6.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenu6ActionPerformed(evt);

Aizza College of Engineering & Technology Page 47


Main Live Project Report Blood Bank Data Base for IRCS
zz

}
});

jMenuItem16.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem16.setText("Add");
jMenuItem16.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem16ActionPerformed(evt);
}
});
jMenu6.add(jMenuItem16);

jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem17ActionPerformed(evt);
}
});
jMenu6.add(jMenuItem17);
jMenu6.add(jSeparator1);

jMenuItem12.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem12.setText("Update");
jMenuItem12.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem12ActionPerformed(evt);
}
});
jMenu6.add(jMenuItem12);

jMenuBar1.add(jMenu6);

jMenu7.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICON/images
(14).jpg"))); // NOI18N
jMenu7.setText("Test");
jMenu7.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem20.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem20.setText("Add");
jMenuItem20.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem20ActionPerformed(evt);
}
});
jMenu7.add(jMenuItem20);

jMenuItem21.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem21.setText("Updatae");
jMenuItem21.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem21ActionPerformed(evt);

Aizza College of Engineering & Technology Page 48


Main Live Project Report Blood Bank Data Base for IRCS
zz

}
});
jMenu7.add(jMenuItem21);

jMenuBar1.add(jMenu7);

jMenu8.setIcon(new javax.swing.ImageIcon(getClass().getResource("/ICON/kit.jpg")));
// NOI18N
jMenu8.setText("Kits");
jMenu8.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem3ActionPerformed(evt);
}
});
jMenu8.add(jMenuItem3);

jMenuItem18.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem18.setText("View");
jMenuItem18.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem18ActionPerformed(evt);
}
});
jMenu8.add(jMenuItem18);

jMenuItem19.setFont(new java.awt.Font("Times New Roman", 0, 14));


jMenuItem19.setText("Update");
jMenuItem19.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem19ActionPerformed(evt);
}
});
jMenu8.add(jMenuItem19);

jMenuBar1.add(jMenu8);

jMenu9.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/ICON/report.jpg"))); // NOI18N
jMenu9.setText("Reports");
jMenu9.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem22.setText("Complete Report");
jMenuItem22.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem22ActionPerformed1(evt);
}
});
jMenu9.add(jMenuItem22);

Aizza College of Engineering & Technology Page 49


Main Live Project Report Blood Bank Data Base for IRCS
zz

jMenuBar1.add(jMenu9);

jMenu10.setIcon(new
javax.swing.ImageIcon(getClass().getResource("/ICON/camp.jpg"))); // NOI18N
jMenu10.setText("Camp Details");
jMenu10.setFont(new java.awt.Font("Times New Roman", 1, 14));

jMenuItem25.setText("Add");
jMenuItem25.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem25ActionPerformed1(evt);
}
});
jMenu10.add(jMenuItem25);

jMenuItem26.setText("View");
jMenuItem26.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem26ActionPerformed1(evt);
}
});
jMenu10.add(jMenuItem26);

jMenuBar1.add(jMenu10);

jMenu4.setText("Accounts");

jMenuItem11.setText("View Daily Report");


jMenuItem11.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem11ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem11);

jMenuItem24.setText("Monthly Report");
jMenuItem24.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem24ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem24);

jMenuItem27.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem27ActionPerformed(evt);
}
});
jMenu4.add(jMenuItem27);

Aizza College of Engineering & Technology Page 50


Main Live Project Report Blood Bank Data Base for IRCS
zz

jMenuBar1.add(jMenu4);

jMenu11.setText("Receipient Details");

jMenuItem30.setFont(new java.awt.Font("Times New Roman", 1, 14));


jMenuItem30.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem30ActionPerformed(evt);
}
});
jMenu11.add(jMenuItem30);

jMenuBar1.add(jMenu11);

setJMenuBar(jMenuBar1);

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()
.addGap(408, 408, 408)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addGap(196, 196, 196))
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);
layout.setVerticalGroup(
layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
.addGroup(layout.createSequentialGroup()
.addContainerGap()
.addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
.addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
.addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE,
javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
.addContainerGap())
);

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

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


// TODO add your handling code here:

Aizza College of Engineering & Technology Page 51


Main Live Project Report Blood Bank Data Base for IRCS
zz

DonorView v=new DonorView();


v.setSize(800,550);
v.setVisible(true);
//this.dispose();
// JPanel jp = (JPanel)v.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
DonorUpdates u=new DonorUpdates();
u.setSize(800,600);
u.setVisible(true);
//this.dispose();
//JPanel jp = (JPanel)u.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
Donation a=new Donation();
//JPanel jp = (JPanel)a.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

a.setSize(1000,600);
a.setVisible(true);
//this.dispose();

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


// TODO add your handling code here:
Donationview v=new Donationview();
v.setSize(1300,550);
v.setVisible(true);
// this.dispose();
//JPanel jp = (JPanel)v.getContentPane();
// this.setContentPane(jp);

Aizza College of Engineering & Technology Page 52


Main Live Project Report Blood Bank Data Base for IRCS
zz

// this.validate();
// this.repaint();

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


// TODO add your handling code here:
StockViewBG v=new StockViewBG();
v.setSize(1000,600);
v.setVisible(true);
//this.dispose();
//JPanel jp = (JPanel)v.getContentPane();
// this.setContentPane(jp);
// this.validate();
// this.repaint();

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


// TODO add your handling code here:
StockViewexpiry e=new StockViewexpiry();
e.setSize(800,800);
e.setVisible(true);
//JPanel jp = (JPanel)e.getContentPane();
// this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
Stockviewgender g=new Stockviewgender();
g.setSize(1000,600);
g.setVisible(true);
//this.dispose();
// JPanel jp = (JPanel)g.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
Stockviewbag b=new Stockviewbag();
b.setSize(1300,600);
b.setVisible(true);
//this.dispose();

Aizza College of Engineering & Technology Page 53


Main Live Project Report Blood Bank Data Base for IRCS
zz

//JPanel jp = (JPanel)b.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
IssueAdd a=new IssueAdd();
a.setSize(800,600);
a.setVisible(true);
// JPanel jp = (JPanel)a.getContentPane();
// this.setContentPane(jp);
// this.validate();
// this.repaint();

//this.dispose();
}

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


// TODO add your handling code here:
IssueView i=new IssueView();
i.setSize(800,600);

//JPanel jp = (JPanel)i.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

i.setVisible(true);
//this.dispose();
}

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


// TODO add your handling code here:
IssueUpdate u=new IssueUpdate();
u.setSize(800,500);
//JPanel jp = (JPanel)u.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

u.setVisible(true);
//this.dispose();
}

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


// TODO add your handling code here:
KitsAdd k=new KitsAdd();

Aizza College of Engineering & Technology Page 54


Main Live Project Report Blood Bank Data Base for IRCS
zz

k.setSize(800,500);
k.setVisible(true);
//JPanel jp = (JPanel)k.getContentPane();
//this.setContentPane(jp);
//this.validate();
// this.repaint();

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


// TODO add your handling code here:
KitsView v=new KitsView();
v.setSize(800,500);
v.setVisible(true);

//JPanel jp = (JPanel)v.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:
KitsUpdate u=new KitsUpdate();
//JPanel jp = (JPanel)u.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

u.setSize(800,500);
u.setVisible(true);
}

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


// TODO add your handling code here:
//KitsDelete d=new KitsDelete();
//d.setSize(800,500);
//d.setVisible(true);
}

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


// TODO add your handling code here:
ReceipientView v=new ReceipientView();
//JPanel jp = (JPanel)v.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

Aizza College of Engineering & Technology Page 55


Main Live Project Report Blood Bank Data Base for IRCS
zz

v.setSize(850,550);
v.setVisible(true);
//this.dispose();
}

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


// TODO add your handling code here:
Reportsviewbygroup g=new Reportsviewbygroup();
g.setSize(800,500);
this.validate();
g.setVisible(true);
// JPanel jp = (JPanel)g.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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

AddDonor g=new AddDonor();

//JPanel jp = (JPanel)g.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

g.setSize(800,600);
g.setVisible(true);

// TODO add your handling code here:


}

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


// TODO add your handling code here:
TestUpdate u=new TestUpdate();
// JPanel jp = (JPanel)u.getContentPane();
// this.setContentPane(jp);
// this.validate();
// this.repaint();

u.setSize(900,550);
u.setVisible(true);
// this.dispose();
}

Aizza College of Engineering & Technology Page 56


Main Live Project Report Blood Bank Data Base for IRCS
zz

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


// TODO add your handling code here:
TestAdd a=new TestAdd();

//JPanel jp = (JPanel)a.getContentPane();
//this.setContentPane(jp);
//this.validate();
// this.repaint();

a.setSize(800,500);
a.setVisible(true);
// this.dispose();
}

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


// TODO add your handling code here
NewTechnician nt = new NewTechnician();
nt.setVisible(true);
nt.setSize(800, 500);
//JPanel jp = (JPanel)nt.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:

CampAdd cd = new CampAdd();


cd.setVisible(true);
cd.setSize(800, 500);
//JPanel jp = (JPanel)cd.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:

CampView cv = new CampView();

Aizza College of Engineering & Technology Page 57


Main Live Project Report Blood Bank Data Base for IRCS
zz

cv.setSize(1000, 500);

cv.setVisible(true);
// JPanel jp = (JPanel)cv.getContentPane();
// this.setContentPane(jp);
//this.validate();
//this.repaint();

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


// TODO add your handling code here:

StockViewexpiry sv = new StockViewexpiry();


sv.setSize(900,500);
// JPanel jp = (JPanel)sv.getContentPane();
//this.setContentPane(jp);
// this.validate();
//this.repaint();

sv.setVisible(true);

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


// TODO add your handling code here:

CompleteReport cr = new CompleteReport();


cr.setSize(1200,700);
cr.setVisible(true);
//JPanel jp = (JPanel)cr.getContentPane();
// this.setContentPane(jp);
// this.validate();
// this.repaint();

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

// TODO add your handling code here:


}

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

Aizza College of Engineering & Technology Page 58


Main Live Project Report Blood Bank Data Base for IRCS
zz

CampAdd ca=new CampAdd();


ca.setVisible(true);
ca.setSize(1000, 600);

// TODO add your handling code here:


}

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


ViewMonthlyAccountReport va=new ViewMonthlyAccountReport();
va.setVisible(true);
va.setSize(1000,600);

// TODO add your handling code here:


}

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


ViewDailyAccountReport va=new ViewDailyAccountReport();
va.setVisible(true);
va.setSize(1000,600);

// TODO add your handling code here:


}

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

// TODO add your handling code here:


ViewThalasaima vt=new ViewThalasaima();
vt.setVisible(true);
vt.setSize(1000, 700);
}

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


// TODO add your handling code here:
CampView v=new CampView();
v.setVisible(true);
v.setSize(1000, 600);
}

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


// TODO add your handling code here:
DailyStock s=new DailyStock();
s.setVisible(true);
s.setSize(1000, 600);
}

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

Aizza College of Engineering & Technology Page 59


Main Live Project Report Blood Bank Data Base for IRCS
zz

if(jTextField1.getText().equals(""))
{
JOptionPane.showMessageDialog(this,"please enter the Threshold value");
}
else
{
try{
FileInputStream fs=new FileInputStream("D:/dbconn.properties");
Properties p1=new Properties();
p1.load(fs);
String driver=p1.getProperty("driver");
String url=p1.getProperty("url");
String un=p1.getProperty("username");
String pwd=p1.getProperty("password");
Class.forName(driver);
Connection con=DriverManager.getConnection(url,un,pwd);
Statement st=con.createStatement();
String val=jComboBox1.getSelectedItem().toString();
ResultSet rs=st.executeQuery("select * from CRITICALVIEWDETAILS where
bg='"+val+"'");
if(rs.next())
{
PreparedStatement pst=con.prepareStatement("update CRITICALVIEWDETAILS set
thrhold=?,chage_date=? where bg=?");
pst.setInt(1, Integer.parseInt(jTextField1.getText()));
pst.setDate(2, new java.sql.Date(System.currentTimeMillis()));
pst.setString(3,jComboBox1.getSelectedItem().toString());
pst.executeUpdate();
JOptionPane.showMessageDialog(this,"Updated Successfully");
}
else
{
PreparedStatement pst=con.prepareStatement("insert into criticalviewdetails
values(?,?,?)");
pst.setInt(2, Integer.parseInt(jTextField1.getText()));
pst.setDate(3, new java.sql.Date(System.currentTimeMillis()));
pst.setString(1,jComboBox1.getSelectedItem().toString());
pst.executeUpdate();
JOptionPane.showMessageDialog(this,"Detals Uploaded Successfully");
}
}

catch(Exception e)
{
JOptionPane.showMessageDialog(this, e);
}
}
// TODO add your handling code here:
}

Aizza College of Engineering & Technology Page 60


Main Live Project Report Blood Bank Data Base for IRCS
zz

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

// TODO add your handling code here:


}

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

// TODO add your handling code here:


}

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


// TODO add your handling code here:

//this.dispose();
}

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


// TODO add your handling code here:

DiscardUpdate dsup = new DiscardUpdate();


dsup.setSize(800, 500);
dsup.setVisible(true);
//JPanel jp = (JPanel)dsup.getContentPane();
// this.setContentPane(jp);
// this.validate();
// this.repaint();

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


// TODO add your handling code here:
DiscardView v=new DiscardView();
v.setSize(800,500);
//JPanel jp = (JPanel)v.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

v.setVisible(true);
//this.dispose();
}

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


// TODO add your handling code here:
DiscardAdd a=new DiscardAdd();

Aizza College of Engineering & Technology Page 61


Main Live Project Report Blood Bank Data Base for IRCS
zz

//JPanel jp = (JPanel)a.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();

a.setSize(800,500);
a.setVisible(true);
//this.dispose();
}

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

}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JComboBox jComboBox1;
private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel10;
private javax.swing.JLabel jLabel11;
private javax.swing.JLabel jLabel12;
private javax.swing.JLabel jLabel13;
private javax.swing.JLabel jLabel14;
private javax.swing.JLabel jLabel15;
private javax.swing.JLabel jLabel16;
private javax.swing.JLabel jLabel17;
private javax.swing.JLabel jLabel18;
private javax.swing.JLabel jLabel19;
private javax.swing.JLabel jLabel2;
private javax.swing.JLabel jLabel20;
private javax.swing.JLabel jLabel21;
private javax.swing.JLabel jLabel22;
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;

Aizza College of Engineering & Technology Page 62


Main Live Project Report Blood Bank Data Base for IRCS
zz

private javax.swing.JMenu jMenu1;


private javax.swing.JMenu jMenu10;
private javax.swing.JMenu jMenu11;
private javax.swing.JMenu jMenu2;
private javax.swing.JMenu jMenu3;
private javax.swing.JMenu jMenu4;
private javax.swing.JMenu jMenu5;
private javax.swing.JMenu jMenu6;
private javax.swing.JMenu jMenu7;
private javax.swing.JMenu jMenu8;
private javax.swing.JMenu jMenu9;
private javax.swing.JMenuBar jMenuBar1;
private javax.swing.JMenuItem jMenuItem1;
private javax.swing.JMenuItem jMenuItem10;
private javax.swing.JMenuItem jMenuItem11;
private javax.swing.JMenuItem jMenuItem12;
private javax.swing.JMenuItem jMenuItem13;
private javax.swing.JMenuItem jMenuItem14;
private javax.swing.JMenuItem jMenuItem15;
private javax.swing.JMenuItem jMenuItem16;
private javax.swing.JMenuItem jMenuItem17;
private javax.swing.JMenuItem jMenuItem18;
private javax.swing.JMenuItem jMenuItem19;
private javax.swing.JMenuItem jMenuItem2;
private javax.swing.JMenuItem jMenuItem20;
private javax.swing.JMenuItem jMenuItem21;
private javax.swing.JMenuItem jMenuItem22;
private javax.swing.JMenuItem jMenuItem23;
private javax.swing.JMenuItem jMenuItem24;
private javax.swing.JMenuItem jMenuItem25;
private javax.swing.JMenuItem jMenuItem26;
private javax.swing.JMenuItem jMenuItem27;
private javax.swing.JMenuItem jMenuItem28;
private javax.swing.JMenuItem jMenuItem29;
private javax.swing.JMenuItem jMenuItem3;
private javax.swing.JMenuItem jMenuItem30;
private javax.swing.JMenuItem jMenuItem4;
private javax.swing.JMenuItem jMenuItem5;
private javax.swing.JMenuItem jMenuItem6;
private javax.swing.JMenuItem jMenuItem7;
private javax.swing.JMenuItem jMenuItem8;
private javax.swing.JMenuItem jMenuItem9;
private javax.swing.JPanel jPanel1;
private javax.swing.JPanel jPanel2;
private javax.swing.JPanel jPanel3;
private javax.swing.JPanel jPanel4;
private javax.swing.JPopupMenu.Separator jSeparator1;
private javax.swing.JTextField jTextField1;
// End of variables declaration }
Login Page:

Aizza College of Engineering & Technology Page 63


Main Live Project Report Blood Bank Data Base for IRCS
zz

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

/*
* Title.java
*
* Created on 20 Mar, 2012, 3:49:04 PM
*/

package source;

import java.awt.Color;
import java.io.FileInputStream;
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.util.Properties;
import javax.swing.JOptionPane;

/**
*
* @author GAYATHRI
*/
public class Title extends javax.swing.JFrame {

/** Creates new form Title */


public Title() {
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();
jLabel2 = new javax.swing.JLabel();
jLabel3 = new javax.swing.JLabel();
jLabel4 = new javax.swing.JLabel();
jTextField1 = new javax.swing.JTextField();
jPasswordField1 = new javax.swing.JPasswordField();
jButton1 = new javax.swing.JButton();

Aizza College of Engineering & Technology Page 64


Main Live Project Report Blood Bank Data Base for IRCS
zz

jButton2 = new javax.swing.JButton();


jButton3 = new javax.swing.JButton();
jLabel5 = new javax.swing.JLabel();
jLabel6 = new javax.swing.JLabel();
jLabel7 = new javax.swing.JLabel();

setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
addWindowListener(new java.awt.event.WindowAdapter() {
public void windowOpened(java.awt.event.WindowEvent evt) {
formWindowOpened(evt);
}
});
getContentPane().setLayout(null);

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


jPanel1.setLayout(null);

jLabel1.setFont(new java.awt.Font("Times New Roman", 1, 20));


jLabel1.setForeground(new java.awt.Color(249, 12, 12));
jLabel1.setText("BLOOD BANK DATABASE MANAGEMENT SYSTEMFOR
IRCS(mncl)");
jPanel1.add(jLabel1);
jLabel1.setBounds(150, 60, 730, 22);

jLabel2.setFont(new java.awt.Font("Times New Roman", 1, 18));


jLabel2.setForeground(new java.awt.Color(102, 0, 255));
jLabel2.setText(" Login");
jPanel1.add(jLabel2);
jLabel2.setBounds(360, 110, 53, 27);

jLabel3.setFont(new java.awt.Font("Times New Roman", 3, 14));


jLabel3.setText("User name");
jPanel1.add(jLabel3);
jLabel3.setBounds(268, 156, 90, 17);

jLabel4.setFont(new java.awt.Font("Times New Roman", 3, 14));


jLabel4.setText("Password");
jPanel1.add(jLabel4);
jLabel4.setBounds(268, 203, 54, 17);

jTextField1.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {
jTextField1FocusLost(evt);
}
});
jPanel1.add(jTextField1);
jTextField1.setBounds(375, 155, 119, 20);

jPasswordField1.addFocusListener(new java.awt.event.FocusAdapter() {
public void focusLost(java.awt.event.FocusEvent evt) {

Aizza College of Engineering & Technology Page 65


Main Live Project Report Blood Bank Data Base for IRCS
zz

jPasswordField1FocusLost(evt);
}
});
jPanel1.add(jPasswordField1);
jPasswordField1.setBounds(375, 202, 119, 20);

jButton1.setText("submit");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
jPanel1.add(jButton1);
jButton1.setBounds(294, 289, 90, 23);

jButton2.setText("cancel");
jButton2.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton2ActionPerformed(evt);
}
});
jPanel1.add(jButton2);
jButton2.setBounds(412, 289, 90, 23);

jButton3.setText("forgot password?");
jButton3.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton3ActionPerformed(evt);
}
});
jPanel1.add(jButton3);
jButton3.setBounds(460, 340, 180, 23);

jLabel5.setText("*");
jPanel1.add(jLabel5);
jLabel5.setBounds(498, 158, 160, 14);

jLabel6.setText("*");
jPanel1.add(jLabel6);
jLabel6.setBounds(498, 205, 190, 14);

jLabel7.setIcon(new
javax.swing.ImageIcon("C:\\Users\\GAYATHRI\\Documents\\NetBeansProjects\\Source\\src\
\ICON\\IRCSLOGO.jpg")); // NOI18N
jLabel7.setText("jLabel7");
jPanel1.add(jLabel7);
jLabel7.setBounds(10, 10, 140, 130);

getContentPane().add(jPanel1);
jPanel1.setBounds(0, 10, 800, 560);

Aizza College of Engineering & Technology Page 66


Main Live Project Report Blood Bank Data Base for IRCS
zz

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

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


jTextField1.setText("");
jPasswordField1.setText("");

// TODO add your handling code here:


}

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


try {

// JOptionPane.showMessageDialog(this," user name:"+jTextField1.getText()


+"password:"+jPasswordField1.getText());
String u=jTextField1.getText();
String p=jPasswordField1.getText();
FileInputStream fs=new FileInputStream("D:/dbconn.properties");
Properties p1=new Properties();
p1.load(fs);
String driver=p1.getProperty("driver");
String url=p1.getProperty("url");
String un=p1.getProperty("username");
String pwd=p1.getProperty("password");
Class.forName(driver);
Connection con=DriverManager.getConnection(url,un,pwd);
PreparedStatement ps=con.prepareStatement("select * from login where username=?
and password=?");
ps.setString(1,u);
ps.setString(2,p);
ResultSet rs=ps.executeQuery();
if(rs.next())
{
JOptionPane.showMessageDialog(this,"valid user");
modules m=new modules();
m.setSize(800,500);
m.setVisible(true);
this.dispose();
}
else
{
JOptionPane.showMessageDialog(this,"Invalid
user","alert",JOptionPane.ERROR_MESSAGE);
}

} catch (Exception e) {

Aizza College of Engineering & Technology Page 67


Main Live Project Report Blood Bank Data Base for IRCS
zz

JOptionPane.showMessageDialog(this,e);
}

// TODO add your handling code here:


}

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


// TODO add your handling code here:
Forgot fg=new Forgot();
fg.setSize(800,500);
fg.setVisible(true);
this.dispose();
}

private void jTextField1FocusLost(java.awt.event.FocusEvent evt) {


// TODO add your handling code here:
if(jTextField1.getText().equals(""))
{
// JOptionPane.showMessageDialog(this,"enter username");
jLabel5.setForeground(Color.red);
jLabel5.setText("enter username");
}
else
{
jLabel5.setText("");
}
}

private void jPasswordField1FocusLost(java.awt.event.FocusEvent evt) {


// TODO add your handling code here:
if(jPasswordField1.getText().equals(""))
{
// JOptionPane.showMessageDialog(this,"enter password");
jLabel6.setForeground(Color.red);
jLabel6.setText("enter password");
}
else
{
jLabel6.setText("");
}
}

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


this.setSize(800, 500);
// TODO add your handling code here:
}

/**
* @param args the command line arguments

Aizza College of Engineering & Technology Page 68


Main Live Project Report Blood Bank Data Base for IRCS
zz

*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Title().setVisible(true);
}
});
}

// Variables declaration - do not modify


private javax.swing.JButton jButton1;
private javax.swing.JButton jButton2;
private javax.swing.JButton jButton3;
private javax.swing.JLabel jLabel1;
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.JPanel jPanel1;
private javax.swing.JPasswordField jPasswordField1;
private javax.swing.JTextField jTextField1;
// End of variables declaration

5. RESULTS

Aizza College of Engineering & Technology Page 69


Main Live Project Report Blood Bank Data Base for IRCS
zz

Login page:

Forgot password form:

Aizza College of Engineering & Technology Page 70


Main Live Project Report Blood Bank Data Base for IRCS
zz

Modules Form:

Aizza College of Engineering & Technology Page 71


Main Live Project Report Blood Bank Data Base for IRCS
zz

Homepage:

Aizza College of Engineering & Technology Page 72


Main Live Project Report Blood Bank Data Base for IRCS
zz

Donor Updates Form:

Aizza College of Engineering & Technology Page 73


Main Live Project Report Blood Bank Data Base for IRCS
zz

Donor View Form:

Aizza College of Engineering & Technology Page 74


Main Live Project Report Blood Bank Data Base for IRCS
zz

New Technician Form:

Aizza College of Engineering & Technology Page 75


Main Live Project Report Blood Bank Data Base for IRCS
zz

Donor Test Details Form:

Aizza College of Engineering & Technology Page 76


Main Live Project Report Blood Bank Data Base for IRCS
zz

Donor Test View Form:

Aizza College of Engineering & Technology Page 77


Main Live Project Report Blood Bank Data Base for IRCS
zz

Stock View by Blood Group Form:

Aizza College of Engineering & Technology Page 78


Main Live Project Report Blood Bank Data Base for IRCS
zz

Stock View by Gender Form:

Aizza College of Engineering & Technology Page 79


Main Live Project Report Blood Bank Data Base for IRCS
zz

Stock View By Bag Form:

Aizza College of Engineering & Technology Page 80


Main Live Project Report Blood Bank Data Base for IRCS
zz

Stock View By Expiry Form:

Aizza College of Engineering & Technology Page 81


Main Live Project Report Blood Bank Data Base for IRCS
zz

Recipient View Form:

Aizza College of Engineering & Technology Page 82


Main Live Project Report Blood Bank Data Base for IRCS
zz

Daily Stock Form:

Aizza College of Engineering & Technology Page 83


Main Live Project Report Blood Bank Data Base for IRCS
zz

Discard Add Form:

Aizza College of Engineering & Technology Page 84


Main Live Project Report Blood Bank Data Base for IRCS
zz

Discard Update Form:

Aizza College of Engineering & Technology Page 85


Main Live Project Report Blood Bank Data Base for IRCS
zz

Test Add Form:

Aizza College of Engineering & Technology Page 86


Main Live Project Report Blood Bank Data Base for IRCS
zz

Test Update Form:

Aizza College of Engineering & Technology Page 87


Main Live Project Report Blood Bank Data Base for IRCS
zz

Kit Add Form:

Aizza College of Engineering & Technology Page 88


Main Live Project Report Blood Bank Data Base for IRCS
zz

Account Purchase Form:

Aizza College of Engineering & Technology Page 89


Main Live Project Report Blood Bank Data Base for IRCS
zz

Complete Report Form:

Aizza College of Engineering & Technology Page 90


Main Live Project Report Blood Bank Data Base for IRCS
zz

Camp Add Form:

Aizza College of Engineering & Technology Page 91


Main Live Project Report Blood Bank Data Base for IRCS
zz

Camp View Form:

Aizza College of Engineering & Technology Page 92


Main Live Project Report Blood Bank Data Base for IRCS
zz

View Thalasamia Form:

Aizza College of Engineering & Technology Page 93


Main Live Project Report Blood Bank Data Base for IRCS
zz

6. SYSTEM TESTING

Aizza College of Engineering & Technology Page 94


Main Live Project Report Blood Bank Data Base for IRCS
zz

The purpose of this project is for security testing to ensure the robustness of a system
at the face of malicious attacks or regular software failure. A process of executing a program
with explicit intension of finding errors that is that is making the program fails. A primary
purpose for testing is to detect software failures so that defects may be uncovered and
corrected. The scope testing often includes examination of code as execution of that code in
various environments and conditions.

Software testing:
It is process of testing the functionality and it is the process of executing a program
with the intent of finding an error.

Black box Testing:


The base of the black box testing[4] strategy lies in the selection of appropriate data
as per functionality and testing it against the functional specifications in order to check for
normal and abnormal behavior of system. Now a days, it is becoming to route the testing
work to a third party as the developer of the system knows too much of the internal logic and
coding of system, Which makes it unfit to test application by the developer.

Test case:
In our project, we have used the validation such that only required details to be entered.
Validation control is applied [Regular expression validation] for all the fields of mail
address such that the mail address is to be entered with format. @.
Calendar control is used such that format of date/month and year are correctly
inserted.

White box testing:


White box testing requires access to the source code. Though White box testing can
be performed any time in the life cycle after the code is developed, it is a good practice white
box testing during the unit testing phase.

Test cases:

Aizza College of Engineering & Technology Page 95


Main Live Project Report Blood Bank Data Base for IRCS
zz

According to our project, we have performed testing to check the correctness of


process.
Testing is performed to check the errors and to debug those errors, such that the forms
or modules are executed. I have done the unit testing by checking each line of code and found
that the code is error free.

8.SCOPE & EXPANSION

Aizza College of Engineering & Technology Page 96


Main Live Project Report Blood Bank Data Base for IRCS
zz

Scope:

The Administrator can maintain all the details such Donor , Donor test, Stock , Issue ,
Recipient and Disposed details.

Expansion:

We can search the required blood group by using mobile system.

9. LIMITATION AND CONCLUSION

Aizza College of Engineering & Technology Page 97


Main Live Project Report Blood Bank Data Base for IRCS
zz

Limitation:

We have done the project successfully according to the clients requirements. So there
are no limitations in the project.

Conclusion:

We are successfully completed the Data base project for Blood Bank Managent
System For IRCS.
On our project basis using JAVA technology we have developed database for
Blood bank database Management system For IRCS.
There application is user friendly.

GLOSSARY

Aizza College of Engineering & Technology Page 98


Main Live Project Report Blood Bank Data Base for IRCS
zz

DFD - Data Flow Diagram


UML - Unified Modeling Language

ER - Entity Relationship

IDE Integrated Development Environment

J2SE Java 2.0 Standard Editon

Aizza College of Engineering & Technology Page 99


Main Live Project Report Blood Bank Data Base for IRCS
zz

BIBLIOGRAPHY

Text Books:

[1] Grady Booch, James Rumbaugh, Ivar Jacobson, The Unified Modeling
Language User, Lower price Edition, 1997, 81-7808-169-5, 91.

[2] Roger.S.Pressman, Software Engineering, A Practitioners Approach, 7th


Edition, 2010, 13:978-007-126782-3, 482.

[3] Herbert schildt, TMHl, Java Programming Language, 6th Edition, 2006, 92-
7005-23-7, 345.

[4] Boris Beizer, Software Testing Techniques, Dreamtech, 2nd Edition, 2009,
10:81-7722-260-0, 145.

[5] Raghu Ramakrishnan / Johannes Gehrke, Data base Management Systems,


McGraw Hill, 2rd Edition, 2000, 0-07-116898-2, 24.

Aizza College of Engineering & Technology Page 100

You might also like