Download as doc, pdf, or txt
Download as doc, pdf, or txt
You are on page 1of 60

TABLE OF CONTENT

Sr. Description Page


No. No.
1 Project Profile

2 About The Project

3 Development Tools

Visual Basic

M.S. Access

M.S. Word

M.S. Data Report


4 Data Dictionary

5 Data Flow Diagram

6 Forms & Coding

7 Conclusion

8 Bibliography

1
TITLE OF THE PROJECT

BLOOD BANK MANAGEMENT SYSTEM

2
INTRODUCTION

“Blood Bank Management System ” is the process of the managing

and controlling the activities of a blood. It includes maintaining and

managing the records of Donor & Member available in the Blood Bank

Management System. It also maintains the list of donor, blood

requirement, and approval status held in the blood bank. First of all user

can send the details of blood group, no of unit, date and type ( Donate or

requirement) It has been designed to make available information as and

when required. Also, it is highly beneficial to administrator as well as

user and member involved in the Blood Bank Management System.

In manual system, which is time consuming and error-prone, we see that

most of the employees are busy in doing just paper works and

maintaining documents, reports etc. Also the flow of information is very

slow and is not secure. There is always a chance of unauthenticated

access of data. Manual system requires large no. of personnel in

comparison to automated system and it becomes costly affair

3
There is no other redeeming act than to save a human life. People may

feel afraid or selfish when it comes to donating blood. But if everybody

thinks that way, then doctors may be unable to save so many human

lives. People who have never donated blood may themselves require

blood at some point of their life. But think what will happen if

everybody feels unwilling to donate blood. There will be no blood

available in the blood banks. So many precious lives will be wasted. It

may happen to anyone, even you. So don't be afraid or selfish about

donating blood. Blood is the fuel of life. In India, blood is required in

every 2 seconds. More awareness should be created about blood

donation so that more and more people come forward to donate blood. If

human lives are wasted because of the dearth of blood in the blood

banks it will be a shame to the human society. So donate blood and

encourage other people as well.

Aim of this project is to provide such user friendly and interactive

service via web interface, mobile application and SMS. As soon as any

updates occur in the blood database these changes are reflected in all the

above mentioned interfaces. So by this manner this system provides a


4
simple and quicker interaction among various groups connected with

blood bank.

And also our goal to develop a web-based system to manage blood

requisition within the blood supply chain. The system is designed to

overcome the drawbacks of existing system problem. The main

objective is to improve the efficiency of data communication within the

supply chain to reduce response time for each blood demand request.

We also focused on managing blood inventory at each blood bank

effectively. The results have shown that the proposed system helps

enhancing the communication among blood partners within the supply

chain network. The recipient can get blood in emergency case also .we

also provide SMs facility to donors so that they can reach to exact

location .

5
Project Category:

Application Software

The Blood Bank Management System is Web Based software, in which

various activities are performed through machine. User Registration

process, The nature of this software is to solve the particular problem

that is why its category is application software.

Tools/Platform, Languages:

HARDWARE SPECIFICATION

VIRTUAL MEMEORY

PROCESSOR : 32 BIT, Pentium – IV

RAM : 256 MB

HARD DISK : 40 GB

MONITOR : SVGA Monitor (800 *

600RESOLUTIONS)

CLOCK SPEED : 266 MHz

FLOPPYDRIVE : 1.44 MB

6
3.1.2 SOFTWARE SPECIFICATION

OPERATING SYSTEM : Windows 2000/XP.

FRONT END : Net Beans IDE 6.9 JSP, HTML,

SERVLET

MIDDLEWARE : J2EE

BACK END : MY-SQL 5.0

SERVER : Apache Tomcat

Scope of Future Application

The main advantage of the project is that it provides different types of

registered users to be verified by the administrator. Admin can interact

with the selected users through according blood report only. Now this

site is free, after few months, registered users have to pay monthly for

better and good services.

In future, we can have the search engine that can provide the result on

the basis of different criteria to search. We can also have one more

module of implementing this project on web.

7
 One year maintenance and software support for the proposed

application software will be provided free of cost (provided change

of scope is not raised).

 The proposed software is completely modular and therefore it

facilitates for extendibility i.e. activities for new establishment can

be easily added without affecting the main program with less effort

and cost.

 Changes in GUIs based screen can be easily incorporated but it

will be treated as changed request and it will be charged.

 It will be portable can be implemented on most of the available

web based platform.

 Some part of the proposed Application System can be converted to

web based software by using web based scripting languages and

tools.

 Complete software will be easily upgraded (i.e. versioning of

software is possible) and will show downward compatibility.

8
LITERATURE SURVEY:

Paper [1], A Web-based blood donor management information

system for the Red Cross Society, Uganda (WBBDMI), describes

about developing a blood management information system to assist in

the management of blood donor records and control the distribution of

blood in various parts of the Uganda(country) based on the hospital

demands.

The blood management information system offers functionalities to

quick access to donor records collected from various parts of the

Uganda. It enables monitoring of the results and performance of the

blood donation activity such that relevant and measurable objectives of

the organization can be checked. It provides to management timely,

confidential and secure medical reports that facilitates planning and

decision making and hence improved medical service delivery.

Paper[2], Telemedicine, Telehealth, and Health Information

Technology, describes about providing a tool for ATA(American

Telemedicine Association) members to identify opportunities for

collaboration and to better understand the interaction between


9
telemedicine/telehealth services and health information technology

(HIT) applications on local, regional and national levels. Paper presents

a framework for discussing the interdependency of both telemedicine

and HIT.

Paper[3] , An Efficient Emergency, Healthcare, and Medical

Information System, explains about present situation of Malaysian

medical information and emergency systems and their information

processing system, and also focuses on developing an integrated

Emergency, Healthcare, and Medical Information System (IEHMS) that

can overcome many of the problems in the current systems in Malaysia .

The main goal of this paper is to incorporate the real-time and mobility

technologies with medical emergency systems. proposed system of this

paper can offer: SMS, MMS, live audio and video coverage.

Paper[4], Blood Bank Management Information System in India,

describes about the review of the main features, merits and demerits

provided by the existing Web-Based Information System for Blood

Banks and shows the comparison of various existing system and provide

some more idea for improve the existing system.


10
And explains about some basic introduction about blood banks then try

to provide comparative study of some existing web based blood bank

system. paper introduce some new idea for improving the existing

techniques used in web based blood bank system.

Paper [5], Medical Applications of Wireless Networks, describes

about how recent developments in the wireless networks field, new and

innovative medical applications based on this technology are being

developed in the research as well as commercial sectors. How this trend

has just started and how wireless networks are going to become an

integral part of medical solutions. And also this survey paper describes

about some background on applications of wireless networks in the

medical field and discusses the issues and challenges. and also tried to

identify some of the standards in use. This paper also identifies

innovative medical applications of wireless networks developed or

currently being developed in the research and business sectors, also talk

about the future trends in this field.

11
Paper[6] , ProSang – leading blood management system in

Scandinavia, describes about ProSang ( advanced computer support tool

that simplifies the entire management of blood– from blood donor call

up to transfusion).With ProSang safety, accuracy and security in blood

management is guaranteed and it is backed by 40 years of experience

and know-how. Conveniently, ProSang can be integrated with most

major systems/applications.

It is also a user-driven and feature-rich system that is extremely intuitive

and user-friendly. ProSang is the leading blood management system in

Scandinavia and is in use at approximately 120 blood banks throughout

the that region. People interaction is also observed in this paper.

Paper[7] , Telehealth in Malaysia – An Overview, describes about

usage of telehealth system in Malaysia ,and also describes about various

government projects .and implementation of telehealth in Malaysia

shows that the government is in the right track although having some

delayed in the execution. And explains about it is worth to invest big

amount of money to get better system in place for the future benefit.

12
Overall paper describes about how telehealth can be profit to the

country,and how it is useful to the Malaysian people. How reduction of

the deaths can be achieved using telehealth etc.

Paper [8] , Telemedicine for the benefit of patients, healthcare

systems and society, explains about a set of actions aimed at enabling

wider deployment of telemedicine services, focusing on three main

priorities: building confidence and acceptance of telemedicine services,

bringing legal clarity, and facilitating market development.

It also expands on certain aspects of the communication, such as the

outcome of the extensive consultation, the policy context and the legal

aspects. It also illustrates with concrete examples how wider deployment

of telemedicine can affect individual patients, healthcare systems and

society. And explains Telemedicine as delivery of healthcare services

at a distance using Information and Communication Technologies (ICT),

can help to address some of these challenges, providing benefits for

individual patients, Paper[9] , Telemedical Information System,

describes about wide scope of Telemedical Information System (TIS)’s

and discusses examples for the different types of TIS’s. Patient-related


13
TIS’s, knowledge-related TIS’s, and meta-TIS’s. It concludes that for

patient-related TIS’s there is the need for a better integration of TIS’s

with other patient-centered information systems.

Furthermore, paper gives short descriptions about the patient-related TIS

, TECSAC (distributed electronic patient record for cardiology) and the

domain-specific knowledge-related TIS’s ODITEB (radiological Internet

textbook)

and ENDOTEL-EIS (endoscopy information system).

Paper[10] , Design of U-Health System with the Use of Smart Phone

and Sensor Network ,describes about demerit of the U-health

system. It enhances reliability in order to possibly diagnose patient's

condition and judge emergency situation by applying the disease

identification algorithm to the existing U-health system. Also, explains

about role of notice by sending text message to family and medical

institution when a result of identifying disease is judged to be emergency

situation, and is to enhance speed by allowing patient's condition to be

possibly confirmed with real time by using smart phone.

14
And include the incidence of emergency situation by using

DCAP(Disease Combination Appearance Probability) prediction

algorithm, which is statistical method after creating the extracted data

from the body into the combined message in a new form while allowing

patient to wear several sensors based on USN(Ubiquitous Sensor

Network). Gives notice of emergency situation to family and medical

institution through sending text message given the occurrence of

emergency situation, and enhances speed by offering mobile service so

that patient's information can be searched, through using smart phone

available for wireless network.

Paper[11], E-Healthcare, describes about services provided by E-

healthcare in hospitals such as appointments and

prescriptions ,telesurgery and many more online services available in

hospitals and also explains about the importance of health care system

its advantages ,disadvantages etc.

Also explains about how E-healthcare will empower the consumer and

he/she will be able to choose their insurance, doctor and treatment

according to their liking and will not be restricted to their locality or


15
neighborhood this will lead to greater efficiency and reduced costs for

providers.

Paper [12], Can Electronic Medical Record Systems Transform

Health Care? Potential Health Benefits, Savings, And Costs,

compares health care with the use of IT in other industries. It estimates

potential savings and costs of widespread adoption of electronic medical

record (EMR) systems, models important health and safety benefits, and

concludes that effective EMR implementation and networking could

eventually save more than $81 billion annually-by improving health care

efficiency and safety-and that HIT-enabled prevention and management

of chronic disease could eventually double those savings while

increasing health and other social benefits.

Paper [13], Online Examination System, explains about disadvantage

with respect to existing system .and how the drawbacks are overcome by

proposed system. Also describes how proposed system will be less time

consuming and is more efficient. How Analysis will be very easy in

proposed system and how it is automated. Also explains about how

16
Result will be very precise and accurate and will be declared in very

short

Paper[14], mHealth: A Potential Tool for Health Care Delivery in

India, describe about mobile computing, medical sensors, and

communications technologies for health care. Also it describes about

how right information available at the right place, at the right time, and

in the correct form.

Paper[15] , Staying Connected in a Mobile Healthcare System:

Experiences from the MediNet Project,describes about mobile

healthcare system consists of a number of components networked

together including patients and their healthcare providers. And also

discusses the design of the MediNet system and shows how it seamlessly

handles connectivity issues between patients and their mobile phones,

between the healthcare meters and mobile phones, and between mobile

phones and web server components. The overall paper describes about

design strategies is to continue providing a high level of service to the

patient in the face of communication problems leading to improved

acceptability and trust of the system by patients.


17
3.PROBLEM DEFINITION:

3.1 Problem with existing system :

Blood bank has a major task to collect blood from donors, monitor

blood quality and supply, and distribute blood and blood components to

hospitals within the network. Blood distribution is an important activity

within this blood supply chain. If the blood bank is able to deliver blood

supply to its respective demand in a timely manner, patients' lives will

be saved. But nowadays, many regional blood banks in our region

confront with ineffective communication channel and insufficient

information to fulfill its obligation. Thus, this leads to an inaccurate

blood distribution and a waste of time, which can be harmful to patients

with critical conditions.

1. Lack of immediate retrievals: -The information is very difficult to

retrieve and to find particular information like- E.g. - To find out about

the donor’s history, the user has to go through various registers. This

results in inconvenience and wastage of time.

2. Does not meet emergency requirements.

3. searching required blood group and donor is tedious job.


18
3.2 Proposed system definition:

Our goal to develop a web-based system to manage blood requisition

within the blood supply chain. The system was designed to cope with

above described problem. The main objective is to improve the

efficiency of data communication within the supply chain to reduce

response time for each blood demand request. We also focused on

managing blood inventory at each blood bank effectively. The results

have shown that the proposed system helps enhancing the

communication among blood partners within the supply chain network.

The recipient can get blood in emergency case also. Also we are

providing advanced mobile phones to have an application which

connects to our web-site so that the one with our application in his/her

cell phone can easily access our site and can get information. This

proposed system provides online storage/ updations and retrieval

facility. This system promises donors also. In this system everything is

stored electronically so very less amount of paper work is required and

information can be retrieved very easily without searching here and

there into registers.


19
3.3 Highlights of proposed system:

 Donor registration through online.

 Recipients request processing.

 SMS facility to donor.

 Map interface to general users to give details of donors and blood

banks.

 Inventory management for blood bank.

 On-line quality control.

 Mobile application to access our site.

 Searching facility to recipient based on various types (blood group,

location etc).

4. PROPOSED SYSTEM:

To overcome the drawbacks of existing system we proposed our

system with following features:

20
Front-end Features:

 Donors registration

 Donors login

 Update donors profile

 Blood Request

 Search donors

 Search Blood Banks

 Add Blood Banks

 Request Blood

 List Blood Banks

 Mobile application

 Information service through SMS gateway

21
Administrative Features:

 Admin login

 Website Database Settings

 Add Blood Banks Address

 Blood Donors Reports

 Blood Banks Reports

 Blood Requesters list

 Change Admin Password

22
3.1 BLOCK DIAGRAM

Block diagram of proposed system is as shown in following figure.

Our system consists of main server which interacts with the database and

different kind of clients such as donor client, recipient client, general

client and also blood bank. Our server also interacts with multimedia

cell phones which have our mobile application. With help of mobile

interface user can interact with server effectively, user can easily search

locations of blood bank, location of the donor.

23
4.2 HARDWARE AND SOFTWARE REQUIREMENTS:

For system:

 Processor

 RAM

 Hard disk for Storage

 Monitor

 Keyboard :standard 101 key board

 Mouse

 Printer

 Operating system: windows XP environment /higher

 Software Tool: JAVA, JSP,ORACLE

For mobile:

 Mobile with SMS facility

 Mobile which supports apllication

 Software tool:J2ME

24
5. PROTOTYPE IMPLEMENTATION:

Structure chart of proposed system is as shown below.structure chart

consist of various modules.

25
5.1 VARIOUS MODULES DESCRIBED IN STRUCTURE

CHART:

 Blood bank Module.

 Administrator Module.

 General User Module.

ADMINISTRATOR MODULE:

 A Genuine person from the Administrator side will collect

information about the New Blood Bank like contact and

Address details etc for Registration. After filtering the invalid

data, the Blood Bank Details will be uploaded in Online

Blood Bank System site for general users.

 Before uploading their details the Administrator will give

unique username and password to the each Blood Bank.

 The Administrator can also add new donor who registered

trough site .and allows him to create his own account .

 The administrator search various donors details based on

normal or map based search.


26
 The Administrator can view the Account information and can

also view the suggestion (feedbacks) given by different users

of this site.

 The Administrator is the one, who updates latest Health Tips

provided in this site.

BLOOD BANK MODULE:

 Every Blood Bank will have their own unique Id and

Password with which, they will login to this site.

 After they logged into this site. They can search various

donors, can add camp details ,and can add new donor to

database.

 Blood bank Administrator does donor registration.

 Blood Bank also view information about reports like blood

requests, and replies etc.

27
OBJECTIVE

The main objective of this application is to automate the complete

operations of the blood bank. They need maintain hundreds of thousands

of records. Also searching should be very faster so they can find

required details instantly.

The main objectives of using Relational Database Management System

are as follows: -

1. CONTROL REDUNDANCY : The System should identify

existence of common data and avoid duplicate recording

relationships of pointers should be used to locate data which are used

many times selective redundancy is sometimes allowed to improve

performance or far better reliability.

2. DATA INTEGRITY : Consistency of data values and

relationships must be preserved in order to achieve this the system

must ensure validity of data by using good editing, synchronize

updating and propagating changes to other related data element it

28
also involves maintaining audit trails to enable recovery if errors are

deleted.

3. DATA SECURITY : This is concerned with protecting access to

data protection is needed at many levels for access, modification,

deletion or display access restriction may be for individual data items

or group of items.

4. DATABASE PERFORMANCE : The system should be able to

provide timely information as required. The cost of storing and

retrieving the data should be commensurate with the value of

information provided.

5. MANAGEMENT CONTROL : As the dependence of an

organization on a data base increases positive management controls

should be exercised over addition, deletion, changes and disposition

29
of data must be protected to start legal accounting and auditing

requirements.

Main Objectives are:-

 To provide a means for the hospital's blood bank to publicize

nationwide information about the blood donation requirement to

the public.

 To allow the public and organization to make online reservation on

the day and session that they want or free to make blood donation.

 To provide synchronized and centralized donor and blood stock

database to the blood bank.

 The main concern of this project is to improve the efficiency and

effectiveness of the whole system.

30
GENERAL USER MODULE:

 General Users are those who are new users in this site. They

can view general information about the Blood Bank details .

 They view the Health Tips.

 They can give their suggestion about this site.

 They can register themselves and become a donor for the

Online Blood Bank system.

 If general user registered as donor he/she will be given with

user name and password with the help of this he/she can

maintain his own account.

 General user can act as recipient to blood if he request

blood ,he can search required donor based on location and

blood group. and he can access his position and also he can

send message immediately.

5.2 PROTOTYPE IMPLEMENTED IN C:

Following simple c code describes about implementation of all modules

which are used in proposed system.

31
//Prototype implementation for "ONLINE BLOOD BANK

MANAGEMENT SYSTEM"

#include<stdio.h>

#include<stdlib.h>

#include<conio.h>

#include<string.h>

void search();

void main1();

void general_user();

void blood_bank();

void admin();

int login();

int validate(char c[]);

int enter();

int ch;

void main()

int i,ltype,a,b,c,f,u,v;
32
clrscr();

printf("Welcome to ONLINE BLOOD BANK\n");

printf("If you want to login press 1\n");

scanf("%d",&ch);

if(ch==1)

ltype=login();

switch(ltype)

case 1:admin();

break;

case 2:blood_bank();

break;

case 3:general_user();

break;

default:printf("\nYou are an Invalid user\n");

exit(0);

getch();
33
}

int login()

int x,i;

char c[5],d[5];

clrscr();

printf("Enter the user name\n");

fflush(stdin);

gets(d);

printf("\nEnter the password\n");

fflush(stdin);

gets(c);

x=validate(c);

if(x==1)

printf("\nYou are valid user\n");

if(c[0]=='a'&& c[1]=='d')

return 1;
34
else if(c[0]=='b'&& c[1]=='l')

return 2;

else if(c[0]=='d'&& c[1]=='o')

return 3;

else

return 4;

else

return 5;

int validate(char c[5])

printf("\nChecks user name and curresponding password if exists

returns 1 elsereturns 2\n");

return 1;

35
void admin()

int n,g,j;

printf("\nWelcome Admin\n");

printf("\nChoose your operation:\n");

printf("\n1-Search\n 2-Update Blood Bank Info\n 3-Update Map Info\n

4-Exit\n");

scanf("%d",&n);

switch(n)

case 1:printf("\nSearches for required info and displays resultset if data

found\n");

break;

case 2:printf("\nUpdates Blood Bank Info like:\n");

printf("\nUpdate BB address\n Update new username & password\

n");

break;

case 3:printf("\nUpdates Map Info like:\n");


36
printf("\nAdd new cities\n update marker for new blood bank\

nupdate marker for blood camps\n");

break;

case 4:printf("\nExiting admin\n");

main1();

default :printf("\nInvalid choice\n");

break;

admin();

void blood_bank()

int n,k;

printf("\n\nWelcome Blood Bank\n");

printf("\nChoose your operation:\n");

printf("1-Search 2-Update Camp shedule 3-Add donor 4-Delete donor

5-exit\n");

scanf("%d",&n);
37
switch(n)

int h;

case 1:printf("\nSearches for required info and displays resultset if data

found\n");

break;

case 2:printf("\nUpdates Camp shedule as required\n");

break;

case 3:printf("\nAdd a donor to database\n");

break;

case 4:printf("\nDelete donor from database\n");

break;

case 5:printf("\nExit from blood bank\n");

main1();

default :printf("\nInvalid choice\n");

break;

}
38
blood_bank();

void general_user()

int n,i,l;

printf("\n\nWelcome General User\n");

printf("\nChoose your operation:\n");

printf("1-Search 2-Register 3-Update user details 4-Exit\n");

scanf("%d",&n);

switch(n)

case 1: search();

break;

case 2:printf("\nRegisters as a donor\n");

break;

case 3:printf("\nUpdates user details like:\n");

printf("\nChanges current address\nChanges contact no\n");

break;
39
case 4:printf("\nExiting user\n");

main1();

default :printf("\nInvalid choice\n");

break;

general_user();

void search()

printf("\nProvides search based on user entry or map interface\n");

printf("\nReads blood group and location\n");

printf("\nSends message to every selected donor\n");

void main1()

printf("do you want to continue\n");

main();

}
40
MDI Form
Private Sub MDIForm_Load()
MDIForm1.mnuadministrator.Visible = False
MDIForm1.mnuOnline Examinationprofile.Visible = False
End Sub
Private Sub mnuadmin_Click()
frmchangeup.Show
End Sub
Private Sub mnuaboutOnline Examination_Click()
frmAbout.Show
End Sub
Private Sub mnuadministrator_Click()
frmchangeup.Show
End Sub
Private Sub mnucalculator_Click()
Shell "calc.exe"
End Sub
Private Sub mnucutdetail_Click()
Dim rs As New ADODB.Recordset
rs.Open "select * from cust_master order by acc_no", con,
adOpenStatic, adLockReadOnly
Open App.Path & "\report\cust.txt" For Output As #1
'MsgBox App.Path

41
Print #1, “----------------------------------------------------------------------”
Print #1, " All CUSTOMER DETAILS"
Print #1, “----------------------------------------------------------------------”
Print #1, " AccountNO" & Space(3) & "Name" & Space(15) & "City"
& Space(8) & "CONTACT NO" & Space(5) & "LAST BALANCE"
Print #1, “----------------------------------------------------------------------”
Do While Not rs.EOF
Print #1, " " & rs!acc_no & Space(10 - Len(rs!acc_no)) & rs!Name
& Space(20 - Len(rs!Name)) & rs!city & Space(15 - Len(rs!city)) & rs!
cno & Space(10 - Len(rs!current_amount)) & rs!current_amount
Print #1, ""
rs.MoveNext
Loop
Print #1, ""
Print #1, “---------------------------------------------------------”
Print #1, ""
Print #1, " " & Me.Caption & Space(4) & Date & Space(4) & Time
Close #1
Shell App.Path & "\utilitys\wordpad.exe " & App.Path & "\report\
cust.txt", vbMaximizedFocus
rs.Close
End Sub

42
Private Sub mnudeposit_Click()
frmdeposit.Show
End Sub

Private Sub mnudepositreport_Click()


Dim rs As New ADODB.Recordset
rs.Open "select * from deposit order by date", con, adOpenStatic,
adLockReadOnly
Open App.Path & "\report\alldeposit.txt" For Output As #1
'MsgBox App.Path
Print #1, "------------------------------------------------------------"
Print #1, " All DEPOSIT TRANSACTION DETAILS"
Print #1, "-------------------------------------------------------------"
Print #1, "Transaction ID" & Space(2) & "Account NO" & Space(3)
& "Date" & Space(10) & "Deposited_Amt" & Space(3) & "Available
Bal"
Print #1, "-----------------------------------------------------"
Do While Not rs.EOF
Print #1, ""
Print #1, rs!transactionid & Space(15 - Len(rs!acc_no)) & rs!
acc_no & Space(15 - Len(rs!Date)) & rs!Date & Space(15 - Len(rs!
depositamount)) & Format(rs!depositamount, "0.00") & Space(15 -
Len(rs!remaing_amt)) & Format(rs!remaing_amt, "0.00")

43
Print #1, ""
rs.MoveNext
Loop
Print #1, ""
Print #1, "---------------------------------------------------"
Print #1, ""
Print #1, Me.Caption & Space(4) & Date & Space(4) & Time
Close #1
Shell App.Path & "\utilitys\wordpad.exe " & App.Path & "\report\
alldeposit.txt", vbMaximizedFocus
rs.Close
End Sub
Private Sub mnuexit_Click()
End
End Sub
Private Sub mnunewcustomer_Click()
frmcust_master.Show
End Sub
Private Sub mnunewtransaction_Click()
frmwithdrawn.Show
End Sub
Private Sub mnunotepad_Click()
Shell "notepad.exe", vbMaximizedFocus

44
End Sub
Private Sub mnusingout_Click()
Unload Me
frmlogin.Show
End Sub
Private Sub mnuviewOnline Examinationprofile_Click()
frmOnline Examinationprofile.Show
End Sub
Private Sub mnuviewprofile_Click()
frmuser_info.Show
End Sub
Private Sub mnuviewtransaction_Click()
frmtransaction.Show
End Sub
Private Sub mnuwithdraw_Click()
frmwithdrawn.Show
End Sub
Private Sub mnuwithdrawlreport_Click()
Dim rs As New ADODB.Recordset
rs.Open "select * from withdrawn order by date", con, adOpenStatic,
adLockReadOnly
Open App.Path & "\report\allwithdrawl.txt" For Output As #1
'MsgBox App.Path

45
Print #1, "-------------------------------------------------------------------"
Print #1, " All WITHDRAWL TRANSACTION
DETAILS"
Print #1, "-------------------------------------------------------------------"
Print #1, "Trans_ID" & Space(3) & "A/c NO" & Space(5) & "Date" &
Space(8) & "Withdrawn_Amt" & Space(5) & "Available Bal"
Print #1, "-------------------------------------------------------------------"
Do While Not rs.EOF
Print #1, ""
Print #1, rs!transactionid & Space(11 - Len(rs!acc_no)) & rs!
acc_no & Space(11 - Len(rs!acc_no)) & rs!Date & Space(13 - Len(rs!
Date)) & Format(rs!withdrawn_amt, "0.00") & Space(16 - Len(rs!
withdrawn_amt)) & rs!remaing_amt & Space(22 - Len(rs!
remaing_amt))
Print #1, ""
rs.MoveNext
Loop
Print #1, ""
Print #1, "-------------------------------------------------------------------"
Print #1, ""
Print #1, Me.Caption & Space(4) & Date & Space(4) & Time
Close #1

46
Shell App.Path & "\utilitys\wordpad.exe " & App.Path & "\report\
allwithdrawl.txt", vbMaximizedFocus
rs.Close
End Sub
User profile

Option Explicit
Dim rs As New ADODB.Recordset
Private Sub calendardob_Click()
txtdob.Text = calendardob.Value
calendardob.Visible = False
End Sub
Private Sub Calendar1_Click()
End Sub
Private Sub chkshowpwd_Click()
If chkshowpwd.Value = vbChecked Then
txtpassword.PasswordChar = ""
Else
txtpassword.PasswordChar = Chr(219)
End If
End Sub
Private Sub cmdclose_Click()

47
Unload Me
End Sub
Private Sub cmdreset_Click()
Dim ans As String
ans = MsgBox("Are You Sure to Reset the Form ?", vbYesNo,
"USER INFORMATION")
If ans = vbYes Then
txtpassword.Text = ""
txtfullname.Text = ""
txtaddress.Text = ""
txtcontact.Text = ""
txtemail.Text = ""
End If
End Sub
Private Sub cmdsave_Click()
If LTrim(txtfullname.Text) = "" Or LTrim(txtaddress.Text) = "" Or
LTrim(txtcontact.Text) = "" Or LTrim(txtemail.Text) = "" Then
MsgBox "Please Fill All Information..."
Else
If vbYes = MsgBox("Are You Sure To Save This Changes ?",
vbYesNo, "USER INFORMATION") Then
Dim upd As String

48
upd = "update userprofile set [pwd]='" & txtpassword & "',
[fullname]='" & txtfullname & "',[address]='" & txtaddress & "',
[contact]='" & txtcontact & "',[email]='" & txtemail & "',
[birthdate]='" & txtdob & "' where [uname]='" & txtusername & "'"
con.Execute upd
MsgBox "Record Updated Successfully..."
End If
End If
End Sub
Private Sub Form_Load()
Dim qr As String
Me.Left = (MDIForm1.Width / 2) - (Me.Width / 2)
Me.Top = (MDIForm1.Height / 2) - (Me.Height / 2)
qr = "select * from userprofile where uname='" & auser & "'"
rs.Open qr, con, adOpenDynamic, adLockOptimistic
Call view
txtpassword.PasswordChar = Chr(219)
rs.Close
Me.Left = 2000
Me.Top = 50
calendardob.Visible = False
End Sub
Private Sub txtaddress_KeyPress(KeyAscii As Integer)

49
Call validate_alpha(KeyAscii)
End Sub
Private Sub txtcontact_KeyPress(KeyAscii As Integer)
Call validate_number(KeyAscii)
End Sub
Private Sub txtdob_GotFocus()
calendardob.Visible = True
calendardob.ZOrder 0
If txtdob = "" Then
calendardob.Value = rs.Fields(6)
Else
calendardob.Value = txtdob
End If
End Sub
Private Sub txtdob_LostFocus()
calendardob.Visible = False
End Sub
Private Sub view()
txtusername.Text = rs.Fields(0)
txtpassword.Text = rs.Fields(1)
txtfullname.Text = rs.Fields(2)
txtaddress.Text = rs.Fields(3)
txtcontact.Text = rs.Fields(4)

50
txtemail.Text = rs.Fields(5)
txtdob.Text = rs.Fields(6)
End Sub
Private Sub txtemail_KeyPress(KeyAscii As Integer)
Call validate_alpha(KeyAscii)
End Sub
Private Sub txtfullname_KeyPress(KeyAscii As Integer)
Call validate_alpha(KeyAscii)
End Sub
Private Sub txtpassword_KeyPress(KeyAscii As Integer)
If KeyAscii = 8 Then
KeyAscii = 8
ElseIf KeyAscii = 32 Then
KeyAscii = 0
End If
KeyAscii = validate_alphanumeric(KeyAscii)
End Sub
Private Sub txtusername_KeyPress(KeyAscii As Integer)
Call validate_alpha(KeyAscii)
End Sub
End Sub
Private Sub cmdsave_Click()
Dim str1 As String

51
If mode = "a" Then
rs_disp.Open "select * from cust_master where acc_no='" &
txtacc_no.Text & "'", Module1.con, adOpenKeyset
If rs_disp.RecordCount = 0 Then
str1 = "insert into cust_master values(" & txtcust_id.Text & ",'" &
txtacc_no.Text & "','" & txtname.Text & "','" & txtaddress.Text & "','" &
txtcity.Text & "','" & txtpincode.Text & "','" & state_combo.Text & "','"
& txtbdt.Text & "','" & sex_combo.Text & "','" & txtcontactno.Text &
"','" & acc_type_combo.Text & "','" & txtopen_dt & "','" &
txtopenamount.Text & "','" & txtopenamount.Text & " ','" &
txtremark.Text & "')"
Module1.con.Execute str1
rs_disp.Close
Call disp_rec
Call txt_empty
lock_form_control Me
cmdsave.Enabled = False
cmdupdate.Enabled = False
cmddel.Enabled = False
cmdadd.Enabled = True
Else
MsgBox "Account no already exists - plz enter unique
account_no"

52
cmdadd.Enabled = False
cmdsave.Enabled = True
cmdsave.Enabled = False
cmdadd.Enabled = True
End If
End If
If mode = "u" Then
rsu.Open "select * from cust_master where acc_no='" & txtacc_no
& "'", Module1.con, adOpenKeyset
str1 = "update cust_master set [acc_no]='" & txtacc_no.Text &
"',[name]='" & txtname.Text & "',[address]='" & txtaddress.Text & "',
[city]='" & txtcity.Text & "',[pincode]='" & txtpincode.Text & "',
[state]='" & state_combo.Text & "',[bdate]='" & txtbdt.Text & "',[sex]='"
& sex_combo.Text & "',[cno]='" & txtcontactno.Text & "',[acc_type]='"
& acc_type_combo.Text & "',[open_date]='" & txtopen_dt & "',
[open_amount]='" & txtopenamount.Text & "',[current_amount]='" &
txtopenamount.Text & "',[remark]='" & txtremark.Text & "'where
acc_no='" & txtacc_no & "'"
con.Execute str1
txt_empty
Call disp_rec
rsu.Close
cmdsave.Enabled = False

53
cmdadd.Enabled = True
cmdreset.Enabled = False
End If
End Sub
Private Sub cmdsearch_Click()
Dim Search_accno As Double
Search_accno = InputBox("Enter Account number")
If rs_disp.State = 1 Then
rs_disp.Close
End If
rs_disp.Open "select * from cust_master where acc_no='" &
txtacc_no & "'", Module1.con, adOpenKeyset
MsgBox rs_disp.Fields(0)
rs_disp.Close
End Sub
Private Sub cmdupdate_Click()
mode = "u"
unlock_form_control Me
cmdupdate.Enabled = False
cmddel.Enabled = False
cmdadd.Enabled = False
cmdsave.Enabled = True
txtcust_id.Enabled = False

54
txtacc_no.Enabled = False
txtname.SetFocus
End Sub
Private Sub Form_Load()
msflg1.TextMatrix(0, 0) = "Customer_id"
msflg1.TextMatrix(0, 1) = "Account_no"
msflg1.TextMatrix(0, 2) = "Name"
msflg1.TextMatrix(0, 3) = "Address"
msflg1.TextMatrix(0, 4) = "City"
msflg1.TextMatrix(0, 5) = "Pin Code"
msflg1.TextMatrix(0, 6) = "State"
msflg1.TextMatrix(0, 7) = "Birth_Date"
msflg1.TextMatrix(0, 8) = "Sex"
msflg1.TextMatrix(0, 9) = "Contact_no"
msflg1.TextMatrix(0, 10) = "Account_type"
msflg1.TextMatrix(0, 11) = "Open_Date"
msflg1.TextMatrix(0, 12) = "Open_amount"
msflg1.TextMatrix(0, 13) = "Current_Amt"
msflg1.TextMatrix(0, 14) = "Remark"
cmdupdate.Enabled = False
cmdsave.Enabled = False
cmddel.Enabled = False
cmdreset.Enabled = False

55
cmdadd.tabindex = 0
cmdcancel.tabindex = 1
lock_form_control Me
Call disp_rec
Me.Left = (MDIForm1.Width / 2) - (Me.Width / 2)
Me.Top = (MDIForm1.Height / 2) - (Me.Height / 2)
End Sub
'***************FILL FLEXGRID***********************88
Private Sub msflg1_Click()
txtcontactno.Text = msflg1.TextMatrix(msflg1.row, 9)
acc_type_combo.Text = msflg1.TextMatrix(msflg1.row, 10)
txtopen_dt.Text = msflg1.TextMatrix(msflg1.row, 11)
txtremark.Text = msflg1.TextMatrix(msflg1.row, 14)
lock_form_control Me
cmdsave.Enabled = False
cmdupdate.Enabled = True
cmddel.Enabled = True
cmdadd.Enabled = True
cmdreset.Enabled = True
End Sub

56
6. CONCLUSION

Online blood bank system is 24X7 systems for different kind of people

like blood bank personnel, doctors, donors, recipients and other general

users. Here any person who has undergone blood test can be registered

in any authorized blood bank as donor. That person can get facilities

like information about blood bank, blood camps, donors and recipients.

This project facilitates services like direct access to the site to get donors

information if there exists an emergency.

The whole the objective of the project is an online edge for bringing

mutually giving blood donors and patients (blood requesters) that needs

blood. The primary objective of the project is to create an interactive

Blood donors, Blood requesters and Blood bank clinics. This web

application is to be conceived in its current form as a dynamic site-

requiring constant updates both from the blood donors as well as the

blood requesters and is to enable blood donors (Volunteer) to place their

profile and blood requesters (patients) to publish their requests.

The mobile application of this project provides the users (with

multimedia cell phones) the service of finding a blood bank with map
57
interface. Here the application consists of a map which highlights the

various blood bank locations and also it gives information about

particular blood bank and also the list of donors in that particular

location.

58
7.REFERENCES:

1. Kanobe Fredrick, BA, PGDCS,” A Web-based blood donor

management information system for the Red Cross Society, Uganda

(WBBDMI)”.

2. Dena Puskin, ScD, Barbara Johnston, RN, Stuart Speedie, PhD, ”

Telemedicine, Telehealth, and Health Information Technology”, The

American Telemedicine Association May 2006.

3. Shihab A. Hameed, Aisha Hassan, Shahina Shabnam, Vladimir Miho

& Othman Khalifa,” An Efficient Emergency, Healthcare, and Medical

Information System”, 2006.

4. Vikas Kulshreshtha, Dr.Sharad Maheshwari, “Blood Bank

Management Information System in India”, International Journal of

Engineering Research and Applications (IJERA), Vol. 1, Issue 2,

pp.260-263, www.ijera.com.

5. Ibrahim Noorzaie,” Survey Paper on "Medical Applications of

wireless networks", April 12, 2006.

59
6. “ProSang-the leading blood management system in Scandinavia”,

www.prosang.com.

7. M.H. Mat Som, A.N. Norali and M.S.A. Megat Ali, “Telehealth in

Malaysia – An Overview”,IEEE symposium on Industrial Electronics

and Applications (ISIEA 2010),October, 2010.

8. “Telemedicine for the benefit of patients, healthcare systems and

society”, Commission Staff Working Paper Sec (2009)943 final June,

2009.

9. Alexander Horsch and Thomas Balbach,” Telemedical Information

Systems”, IEEE Transactions On Information Technology In

Biomedicine, Vol. 3, NO. 3, September 1999.

10. Oh-young Kwon, Su-hong Shin, Seung-jung Shin, Woo-sung Kim,

”Design of U-Health System with the Use of Smart Phone and Sensor

Network”.

11. Hongwei Du, Ben Bradford, Rostam Assadi-Shehni, Vikram

Gandhi,” E-HEALTHCARE”.

60

You might also like