Blood Bank

Published on June 2016 | Categories: Types, School Work | Downloads: 68 | Comments: 0 | Views: 524
of 9
Download PDF   Embed   Report

Abstract java jdbc

Comments

Content

2015-2016
Topic :-Blood Bank
Advance Java Project

Submitted toSubmitted By:Ms. G Shivagami
Khandelwal

Somil

RA1411003010041
CSE-A

Acknowledgement –

I would like to express my deepest appreciation
to all those who provided me the possibility to
complete this project report in time. A special
gratitude towards our advanced java faculty,
Ms.G Shivagami , whose contribution in
stimulating suggestions and encouragement,
helped me to coordinate my project especially in
writing this report. Also I would like to thank my
friends who helped me in this project. Last but
not the least, The Internet played an important
role in helping me understand few concepts
related to the project without which the
completion of this project was not possible.

ObjectiveThe purpose of the blood bank management system is to
simplify and automate the process of searching for blood in
case of emergency and maintain the records of blood donors,
recipients, blood donation programs and blood stocks in the
bank. It also allows entering the details of the hospital with the
contact person.

ModulesIn this project I use servlets. Servlets provide a componentbased, platform-independent method for building Web-based
applications, without the performance limitations of CGI
programs. Servlets have access to the entire family of Java
APIs, including the JDBC API to access enterprise databases.
For connectivity I used MySQL, which is a database used to
store data in table.

Donor Information

It is used to enter the details of the Donor who is giving the
blood and is stored in data base whose schema name
Bloodbank and table name donorinfo.

Donor Blood Details

It will take the Donor name from the previous table donorinfo of
the same schema. In this, present date and time is taken and
stored with all the details relating to status and quantity of the
blood in another table DonorDetails.

Present Date And Time:Algorithm:Calendar C=Calendar.getInstance();
String dt=C.get(Calendar.YEAR)+"/"+(C.get(Calendar.MONTH)
+1)+"/"+C.get(Calendar.DATE);
String tm=C.get(Calendar.HOUR)+":"+(C.get(Calendar.MINUTE)
+1)+":"+C.get(Calendar.SECOND);

Here we are using calendar class which is part of util package.

Hospital Information:-

In the above we are taking the hospital information such as
hospital id,hospital name ,contact person and it’s details .

Blood Search-

Here we are searching the blood city wise .

Algorithm:String q="select D.*,dd.* from donnerinfo D,donerdetails dd where
D.bloodgroup='"+bg+"' and D.City='"+ct+"' ";
ResultSet rs=smt.executeQuery(q);
if(rs.next())
{
out.println("<html>");
out.println("<table border=1><caption><h3><font
color=red>List of Doner</font></h3></caption>");
out.println("<tr><th>Doner Name</th><th>Father
Name</th><th>Blood Group</th><th>Date Of
Birth</th><th>Gender</th><th>Contact No
</th><th>Address</th><th>Date</th><th>Time</th><th>Quantity</th><th>Status<
/th></tr>");
do{

out.println("<tr><td>"+rs.getString(2)+"</td><td>"+rs.getString(3)+"</td><t
d>"+rs.getString(4)+"</td><td>"+rs.getString(5)+"</td><td>"+rs.getString(6)
+"</td><td>"+rs.getString(7)+"</td><td>"+rs.getString(10)+"</td><td>"+rs.ge
tString(14)+"</td><td>"+rs.getString(15)+"</td><td>"+rs.getString(16)+"</td
><td>"+rs.getString(17)+"</td></tr>");
}while(rs.next());
}

else
{

out.println("This Group Blood

not found..");

}

Software Requirements:
Front End

:

HTML

Back End

:

My sql, JDBC,java

Tools

:

Eclipse Juno

Hardware Requirements:
CPU
version.

:

Core i3 or higher

RAM

:

2 GB

Hard Disk

:

500 GB

DatabaseDonor Info table:-

Donor Details Table:-

Hospital Details Table:-

The above database is the example of the types of data
entered into the database by the user and size of each input as
defined by the programmer.

ConclusionI have successfully created the program for Blood Bank which
was developed using Java,Servlet, JDBC, MySQL and
Eclipse,Tomcat Server version 7.0 , fully meets the objectives of
the system for which it was developed.

Sponsor Documents

Or use your account on DocShare.tips

Hide

Forgot your password?

Or register your new account on DocShare.tips

Hide

Lost your password? Please enter your email address. You will receive a link to create a new password.

Back to log-in

Close