Professional Documents
Culture Documents
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.
At present the hospital maintaining all information in records, registers and papers.
Drawbacks
2. SYSTEM ANALYSIS
RAM : 512 MB
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.
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.
3. SYSTEM DESIGN
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:
Process
Data Store
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
# Database
Admin 1.0
2.0
Login Donor
# Donor table
3.0
Donor # Donor test
test table
6.0
Recipie # Recipient table
nt
7.0
Discar # Discard table
Blood bank for d
IRCS
Figure: 3.2.2 Context Level DFD
Entity:
An entity is a logical object that represents a person, place, or thing about which an
organization maintains information.
Attributes:
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.
Lines: Link attribute to entity sets and entity sets to relationship sets.
E-R DIAGRAM
Class diagram
Object diagram
Use case diagram
Sequence diagram
Collaboration diagram
State diagram
Component diagram
Deployment 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.
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.
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
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
Diagram Elements:
Sequence Diagram
Diagram Elements:
Collaboration diagram
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.
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.
Activity diagram
4. DATA DICTIONARY
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 {
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);
}
});
jLabel2.setText("Blood Group");
jLabel3.setText("Threshold");
jButton1.setText("Update");
jButton1.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jButton1ActionPerformed(evt);
}
});
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))
);
jLabel4.setText("A+");
jLabel6.setText("B+");
jLabel8.setText("AB+");
jLabel10.setText("O+");
jLabel12.setText("A-");
jLabel14.setText("B-");
jLabel16.setText("AB-");
jLabel18.setText("O-");
jLabel20.setText("Kits");
.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()
.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))
.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))
);
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))
);
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);
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);
jMenuBar1.add(jMenu2);
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);
}
});
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);
}
});
jMenu3.add(jMenuItem23);
jMenuBar1.add(jMenu3);
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);
}
});
jMenuItem17.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
jMenuItem17ActionPerformed(evt);
}
});
jMenu6.add(jMenuItem17);
jMenu6.add(jSeparator1);
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));
}
});
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);
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);
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");
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);
jMenuBar1.add(jMenu4);
jMenu11.setText("Receipient Details");
jMenuBar1.add(jMenu11);
setJMenuBar(jMenuBar1);
pack();
}// </editor-fold>
a.setSize(1000,600);
a.setVisible(true);
//this.dispose();
// this.validate();
// this.repaint();
//JPanel jp = (JPanel)b.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();
//this.dispose();
}
//JPanel jp = (JPanel)i.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();
i.setVisible(true);
//this.dispose();
}
u.setVisible(true);
//this.dispose();
}
k.setSize(800,500);
k.setVisible(true);
//JPanel jp = (JPanel)k.getContentPane();
//this.setContentPane(jp);
//this.validate();
// this.repaint();
//JPanel jp = (JPanel)v.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();
u.setSize(800,500);
u.setVisible(true);
}
v.setSize(850,550);
v.setVisible(true);
//this.dispose();
}
//JPanel jp = (JPanel)g.getContentPane();
//this.setContentPane(jp);
//this.validate();
//this.repaint();
g.setSize(800,600);
g.setVisible(true);
u.setSize(900,550);
u.setVisible(true);
// this.dispose();
}
//JPanel jp = (JPanel)a.getContentPane();
//this.setContentPane(jp);
//this.validate();
// this.repaint();
a.setSize(800,500);
a.setVisible(true);
// this.dispose();
}
cv.setSize(1000, 500);
cv.setVisible(true);
// JPanel jp = (JPanel)cv.getContentPane();
// this.setContentPane(jp);
//this.validate();
//this.repaint();
sv.setVisible(true);
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:
}
//this.dispose();
}
v.setVisible(true);
//this.dispose();
}
//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);
}
});
}
/*
* 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 {
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);
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) {
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);
pack();
}// </editor-fold>
} catch (Exception e) {
JOptionPane.showMessageDialog(this,e);
}
/**
* @param args the command line arguments
*/
public static void main(String args[]) {
java.awt.EventQueue.invokeLater(new Runnable() {
public void run() {
new Title().setVisible(true);
}
});
}
5. RESULTS
Login page:
Modules Form:
Homepage:
6. SYSTEM TESTING
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.
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.
Test cases:
Scope:
The Administrator can maintain all the details such Donor , Donor test, Stock , Issue ,
Recipient and Disposed details.
Expansion:
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
ER - Entity Relationship
BIBLIOGRAPHY
Text Books:
[1] Grady Booch, James Rumbaugh, Ivar Jacobson, The Unified Modeling
Language User, Lower price Edition, 1997, 81-7808-169-5, 91.
[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.