Professional Documents
Culture Documents
Department of Computing
Diploma in Business Information Technology
EC2316
Blood Donation Management System
[Type text]
Page 1
STATEMENT OF SUBMISSIONS
I declare that this report entitled Blood Donation Management System is my own work except
as cited in the references. The report has not been accepted for any degree or diploma and is not
being submitted concurrently in candidature for any degree or other award
Signature
.
Name
.
Date
.
[Type text]
Page 2
ACKNOWLEDGEMENTS
[Type text]
Page 3
ABSTRACT
This system is created for those people who are willing to donate their blood and help
other patients. This system is a system that can add donor details to save the donor who just
come to donate blood or maybe if the donor for 5 year no comes it will delete the details.
Another function is if the donor forgot their IC or id it can click search button to search for their
details. In addition the system also store blood group details and hospital order details. We will
send the blood pack since every weekend to the hospital and tell the hospital we will reach the
blood pack in anytime. Besides that, the system also got estimate function estimate the blood
donor is it suitable to donate blood; if the blood volume is not over 2500ml it cannot to donate
blood at the time. Other than that, the system adds a new feature that is got pet blood donation.
This feature is to help those pet are lack of blood. The pet is same as the human blood donation,
first the pet also need to estimate is it suitable to donate blood but for the pet is to estimate the
weight. The pet owner needs to enter the information of the pet to register as in the system to
store in the database or to modify the pet information or maybe the pet already a long time no
come donate blood also will be delete the details. In the pet blood group details, the user also
needs to input information and save it. They refer to the blood group details and check the pet
blood pack and it also same as the hospital order details but we send pet blood pack to veterinary
hospital in every weekend.
[Type text]
Page 4
TABLE OF CONTENTS
Contents
Title
Statement of submissions
Acknowledgements
Abstract
Table of contents
Page Number
1
2
3
4
5-6
Chapter 1: introduction
1.1 Project Background
1.2 Problem Statement
1.3 Objective and Goals
1.4 Scope
1.5 Process Model and Methodology
1.5.1Waterfall Model
1.6 Gantt Chart
1.7 Summary
7
8
9
10
11
Chapter 3: Analysis
3.1 Introduction
3.2 Data Flow Diagram
3.2.1 Context Diagram
3.2.2 Level 1 Diagram
3.2.3 Level 2 Diagram
3.3 Process Specification
3.4 Normalization
3.5 Entity Relationship Diagram
3.6 Data Dictionary
[Type text]
12
13
14-19
20-22
23-24
24
25
Page 5
Chapter 4: Design
4.1 Introduction
4.2 Interface Design
4.3 Database Design
4.4 Architecture Design
4.5 Procedural Design Language
4.5.1 Pseudo Code
4.6 Summary
26
26-31
31-33
33-34
34-37
37
38-44
Chapter 6: Testing
45
46
47
References
48
[Type text]
Page 6
CHAPTER 1: INTRODUCTION
1.1 Project Background
The purpose that I do this project because I am taking project course and I am requires building
a system. I choose the title of Blood Donation Management System, I found that this system
seems like quite rare this is because nowadays a lot of health care clinic or veterinary clinic they
are still using handwriting to record the donor information. Besides that they estimate human
blood volume by using the estimate tools to estimate the human blood volume to make sure that
donor can donate blood or not. Lastly, this is the reason that I choose this title Blood Donation
Management System and develop it for the staff to use.
1.2 Problem Statement
There are some problems if the Blood Donation Management System is not implementing. The
problem is just like what I told the staff is still using handwriting to record the donor
information. The problem is wasting a lot time to record donor information. If use the system it
can save a lot of time for input each of the information and it also can help admin faster to
estimate the donor blood volume to decide that the donor is it enable to donate blood.
1.3 Objectives and Goals
The objective of this project is to improve the quality of recording and management of
information, to save time to manage information, to provide free blood pack to hospital that lack
of blood. The System can record information so the admin can reveal back the information by
enter relate details and click search to search the information. This system is simple to use, the
user can learn the system by a short period.
1.4 Scope
This Blood Donation Management System is created for health care clinic staff uses. The system
it helps the admin save time to input information and manage the information. The system also
records the information to the database so the admin can reveal anytime by enter related
information and search it. The system is easy to understand and it not too complex to use it so
the admin it will start to know how to use the system by learning in a short time. Moreover, the
admin no need to use handwriting anymore to save the donor information, the admin can straight
use the system and enter donor information and save it.
[Type text]
Page 7
Figure 1.1
[Type text]
Page 8
Chart Title
Start Date
End Date
Deployed
3/9/2014
1/9/2014
Future Work
3/9/2014
1/9/2014
1/9/2014
28/8/2014
25/8/2014
21/8/2014
25/8/2014
21/8/2014
Coding
24/8/2014
14/8/2014
12/8/2014
7/8/2014
Design
21/7/2014
17/7/2014
Analysis
15/7/2014
10/7/2014
Rquirement Analaysis
7/7/2014
3/7/2014
Feasibility Study
Figure 1.2
1.7 Summary
This system is Blood Donation Management System, before this system implement there are
problems in the clinic that is wasting a lot of time to manage the information. The system
objective is to help the admin and hospital because the admin can save a lot time to manage the
information or modify the information or the admin can use the system to estimate the blood
volume faster so the donor no need to wait the result so long. This system it gives the clinic or
hospital a lot of advantage because the system help the admin save time to record information
and we can send blood pack to the hospital so the hospital can get the blood pack before the
hospital is not enough blood to use. The system is using waterfall model to start develop because
the progress is not turning back to the first stage once the progress is start.
[Type text]
Page 9
[Type text]
Process
Add details in database
Delete details in database
Update new information
Search for details
Generate reports
Page 10
Function
Add
Delete
Update
Search
Generate
Desktop
Printer
Mouse
Keyboard
Hardisk space 10gb
1 gb RAM
Window xp / 7 / 8
Microsoft access 2007
Microsoft visual studio
Microsoft .Net framework 4.5
2.6 Summary
As a summary, the system is added functional requirement to let the system work, there are add,
update, delete, search and generate report function to make it as a normal application system.
The admin can learn and understand the system easily but it takes some times to fully know how
to use the system. Other than that, the systems need hardware such as main hardware desktop,
normal accessories, require hardisk space need 10gb to store a lot of information and 1gb RAM
to performance the system so it not will delay and for the software the system is using window
xp, window 7 or window 8. Otherwise, it also needs Microsoft access to do database and visual
studio to do system and the Microsoft net framework must be install in the desktop if don't have
the program it not work as normal.
CHAPTER 3: ANALYSIS
3.1 Introduction
[Type text]
Page 11
The data flow diagram is include of context diagram, level 1 diagram and level 2 diagrams. The
diagram is shows that the process of the Blood Donation Management System. Process
specification is written how the process it work and the step of the process. Normalization is
including that the UNF, 1NF and 2NF, that means there are several tables that expand it to
another table. Entity Relationship Diagram is the relationship with the table system that I create
such as maybe many donors can provide information. Lastly for the data dictionary is write to let
us know that we set which field name is primary key or foreign key.
3.2.1 Context Diagram
Figure 3.1
[Type text]
Page 12
Figure 3.2
[Type text]
Page 13
Figure 3.3
Figure 3.4
Figure 3.5
[Type text]
Page 14
Figure 3.6
Figure 3.7
Figure 3.8
[Type text]
Page 15
Figure 3.9
Figure 3.10
Figure 3.11
[Type text]
Page 16
Figure 3.12
Figure 3.13
Figure 3.14
[Type text]
Page 17
Figure 3.15
Figure 3.16
Figure 3.17
[Type text]
Page 18
Figure 3.18
Figure 3.19
Figure 3.20
[Type text]
Page 19
Figure 3.21
Figure 3.22
Figure 3.23
[Type text]
Page 20
Figure 3.24
Figure 3.25
Figure 3.26
DFD Explanation
First process is the process 1, donor details. The blood donors provide information to the admin
and go through process 1.1 and admin enter the information that the blood donor provide and
save to database.
Second process is the process 2, blood group details. Admin already gets information from the
blood donors and go through process 2.1 and admin enter the information and save to database.
[Type text]
Page 21
Third process is the process 3, hospital order details, Admin get information about the hospital
details and go through the process 3.1 and enter the information and save to database.
Fourth process is the process 4, pet details, the pet owner provide the information of the pet to
the admin and go through process 4.1 and enter the information that the pet owner provide and
save to database.
Fifth process is the process 5, pet blood group details. Admin already gets information from the
pet owner so go through process 5.1 and enter the information and save to database
Sixth process is the process 6, veterinary hospital order details. Admin get information about the
veterinary hospital order details and pass through process 6.1 and enter the information and save
to database.
Seventh process is the process 7, update details, the admin if got anything want to modify or
check any incorrect information want to change and pass through 7.1, 7.2, 7.3, 7.4, 7.5, and 7.6
and enter the correct information and save to database.
Eighth process is the process 8, search details, if the donor forgot their information the admin can
help them find the information by using search function and pass through 8.1, 8.2, 8.3, 8.4, 8.5,
and 8.6 and enter the related information and click search it will display information.
Ninth process is the process 9, delete details, if the donor had many years about 5 to 10 years to
come to donate blood the admin is able to delete the details by pass through the 9.1, 9.2, 9.3, 9.4,
9.5, 9.6 and find the information that the admin want to delete and click delete button.
Page 22
A hospital order detail is the hospital may order the blood pack from us and we send it to the
hospital for backup blood pack. The admin click add button and enter the order ID, hospital
name, hospital address and hospital phone number, date and hospital email. After that the admin
save the details into the database.
Process 4.1
Admin add pet details such as donor ID, pet owner IC, pet owner name, pet name, pet age, pet
weight, phone number, pet type, address and pet medical history. Then the admin save the pet
details into the database for store information.
Process 5.1
The admin will add pet blood group details by click the add button and input the donor ID, pet
owner IC, pet blood group of the blood donor, donate date, storage date and expired date, lastly
enter the blood volume that the pet had donate how many blood. After that, the admin will save
the record into database.
Process 6.1
A veterinary hospital order detail is the hospital may order the pet blood pack from us and we
send it to the veterinary hospital for backup blood pack because the hospital maybe is lack of
blood pack to save the pet that they needs. The admin click add button and enter the order ID,
veterinary hospital name, veterinary hospital address and veterinary hospital phone number, date
and veterinary hospital email. After that the admin save the details into the database.
Process 7.1
The admin can update for any details if there is any wrong about the information. Admin just go
to page that the admin want to modify and click the update button. There are donor details, blood
group details, hospital order details, pet details, pet blood group details and veterinary hospital
order details. After the admin edit finish about the details then click save, the database will
update to the new information.
[Type text]
Page 23
Process 8.1
If the donor had come last time so they no need to add a new profile into the system, the admin
just need to go search section and input the donor ID, donor IC is in page donor and blood group
page, for the Order ID is the hospital page part then the system will view the information.
Another thing is admin can search for blood group details, donor details, pet details and pet
blood group details, hospital order details and veterinary hospital order details. The admin search
for this details because they want to check whether the admin itself input correctly and every
time update the newest information to the database.
Process 9.1
The admin can delete any details if there is any profile that already stored very long for maybe 5
to 10 years. Admin can just go to the page that the admin want to delete and click delete button.
There are donor details, blood group details, hospital order details, pet details and pet blood
group details and veterinary hospital order request. After the admin had chosen the details that
the admin wan to delete then click delete then click save button, the database will automatic
remove the information from the database and save it the previous information for the delete part
empty.
3.4 Normalization
UNF
Donor (Donor ID, Donor IC, Donor Name, Donor Age, Donor Address, Donor Phone Number,
Donor Gender, Donor Blood Group, Donor Weight, Donor Height, Donor Medical History,
Blood Group, Stored Date, Donate Date, Expired Date, Blood Volume, Order ID, Hospital
Name, Hospital Phone Number, Hospital Address, Hospital Email, Pet Owner IC, Pet Owner
[Type text]
Page 24
Name, Address, Phone Number, Pet Name, Pet Age, Pet Type, Pet Weight, Pet Medical History,
Pet Blood Group, Veterinary Hospital Name, Veterinary Hospital Address, Veterinary Hospital
Email, Veterinary Hospital Phone Number)
1NF
Donor (Donor ID, Donor IC, Donor Name, Donor Age, Donor Address, Donor Phone Number,
Donor Gender, Donor Blood Group, Donor Weight, Donor Height, Donor Medical History, Pet
Owner IC, Pet Owner Name, Address, Phone Number, Pet Name, Pet Age, Pet Type, Pet Weight,
Pet Medical History)
Blood Group (Donor ID, Donor IC, Blood Group, Stored Date, Donate Date, Expired Date,
Blood Volume, Pet Blood Group)
Hospital (Order ID, Hospital Name, Hospital Phone Number, Hospital Address, Hospital Email,
Veterinary Hospital Name, Veterinary Hospital Address, Veterinary Hospital Email, Veterinary
Hospital Phone Number)
2NF
Donor (Donor ID, Donor IC, Donor Name, Donor Age, Donor Address, Donor Phone Number,
Donor Gender, Donor Blood Group, Donor Weight, Donor Height, Donor Medical History)
Pet (Donor ID, Pet Owner IC, Pet Owner Name, Address, Phone Number, Pet Name, Pet Age,
Pet Type, Pet Weight, Pet Medical History)
Blood Group (Donor ID, Donor IC, Blood Group, Stored Date, Donate Date, Expired Date,
Blood Volume)
Pet Blood Group (Donor ID, Pet Owner IC, Pet Blood Group, Stored Date, Donate Date, Expired
Date, Blood Volume)
Hospital (Order ID, Hospital Name, Hospital Phone Number, Hospital Address, Hospital Email,
Veterinary Hospital Name, Veterinary Hospital Address, Veterinary Hospital Email, Veterinary
Hospital Phone Number)
Veterinary Hospital (Order ID, Veterinary Hospital Name, Veterinary Hospital Address,
Veterinary Hospital Email, Veterinary Hospital Phone Number)
[Type text]
Page 25
Figure 3.27
[Type text]
Page 26
Figure 3.28
CHAPTER 4: DESIGN
[Type text]
Page 27
4.1 Introduction
In the design, it had sketch a fully storyboard about the Blood Donation Management System
and it created the database in Microsoft access and there are few tables of them and I use the
system and connect to the database. Architecture design is process of how the step is running
in the system. Other than that, I had written the pseudo code in English language so it easy to
understand how the process is running.
4.2 Interface Design
Main Page
Figure 4.1
[Type text]
Page 28
Figure 4.2
When
the
user
click
add
then
user
can
input
information, after enter information or change information then click save then will pop out a
box say you had store your information or any error it will say please try again. The delete
button is for the user to delete the details and for the back button is go back to the main page.
The top button name search is for user easier to find the details, the user just enter the correct
id or ic it will display the details. For the refresh button is to refresh the same page.
Figure 4.3
information,
after
enter
information or change information then click save then will pop out a box say you had store your
information or any error will say please try again . The delete button is for the user to delete the
details and for the back button is go back to the main page. The top button name search is for
user easier to find the details, the user just enter the correct id or ic it will display the details. The
user click the generate report button it will open another page to display the result in the blood
group details. For the refresh button is to refresh the same page.
[Type text]
Page 29
Figure 4.4
When the user click add then user can input information, after enter information or change
information then click save then will pop out a box say you had store your information or any
error it will say please try again. The delete button is for the user to delete the details and for the
back button is go back to the main page. The top button name search is for user easier to find the
details, the user just enter the correct id or ic it will display the details. For the refresh button is to
refresh the same page.
Estimate Blood Volume part
Figure 4.5
[Type text]
Page 30
Figure 4.6
The estimate button is to calculate the blood volume of the donor is it enough of blood to donate
if not enough then the donor cannot donate blood. User need to select the gender and enter
weight and height and click estimate then it will start calculate the blood volume and it will
display the box in the blood volume box. For the back button is back to the page of estimate
selection page.
Figure 4.7
The estimate button is to calculate the pet weight of the pet is it enough of blood to donate if not
enough then the pet cannot donate blood. User need pet age and pet weight and click estimate
then it will start calculate the pet weight and it will display the box in the kilogram box. For the
back button is back to the page of estimate selection page.
[Type text]
Page 31
Figure 4.8
When the user click add then user can input information, after enter information or change
information then click save then will pop out a box say you had store your information or any
error it will say please try again. The delete button is for the user to delete the details and for the
back button is go back to the main page. The top button name search is for user easier to find the
details, the user just enter the correct id or ic it will display the details. For the refresh button is to
refresh the same page.
Figure 4.9
When the user click add then user can input information, after enter information or change
information then click save then will pop out a box say you had store your information or any
error will say please try again . The delete button is for the user to delete the details and for the
back button is go back to the main page. The top button name search is for user easier to find the
details, the user just enter the correct id or ic it will display the details. The user click the
generate report button it will open another page to display the result in the blood group details.
For the refresh button is to refresh the same page.
[Type text]
Page 32
Figure 4.10
When the user click add then user can input information, after enter information or change
information then click save then will pop out a box say you had store your information or any
error it will say please try again. The delete button is for the user to delete the details and for the
back button is go back to the main page. The top button name search is for user easier to find the
details, the user just enter the correct id or ic it will display the details. For the refresh button is to
refresh the same page.
4.3 Database Design
Figure 4.11
[Type text]
Page 33
Figure 4.12
Figure 4.13
Figure 4.14
[Type text]
Page 34
Figure 4.15
Figure 4.16
4.4 Architecture Design
Figure 4.17
[Type text]
Page 35
Figure 4.18
4.5 Pseudo Code
1.0 User opens the main page
2.0 User choose option donor detail
Donor Details Add and Save function
3.0 If input donor details already exist in the system then prompt box show please try again
4.0 Else save to database
Donor Details Save function
5.0 If users save modify donor details then success saves to database
6.0 Else prompt boxes please try again
Donor Details Search function
7.0 If user search by donor ID or IC then display information
8.0 Else prompt box please enter correct information to search
Donor Details Delete function
9.0 If user delete donor details then success save to database
Donor Details Return function
10.0 User finishes manage donor details back to main page
[Type text]
Page 36
Page 37
Page 38
[Type text]
Page 39
Handles Button1.Click
Handles Button2.Click
Handles Button3.Click
Handles Button7.Click
Handles Button4.Click
Handles Button5.Click
Handles Button6.Click
Form2
Public Class Form2
Private Sub Form2_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Blood_DonationDataSet.Donor_Details' table. You
can move, or remove it, as needed.
Me.Donor_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Donor_Details)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Add function for Donor Details'
Me.Donor_DetailsBindingSource.AddNew()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
'Save Button for update or store information'
Try
Me.Validate()
Me.Donor_DetailsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Blood_DonationDataSet)
MsgBox("You Had Save Information")
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show("Please Try Again")
End Try
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
'Delete function for Donor Details'
Me.Donor_DetailsBindingSource.RemoveCurrent()
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to main page'
[Type text]
Page 40
Form1.Show()
Me.Close()
End Sub
Private Sub SearchToolStripButton_Click(sender As Object, e As EventArgs) Handles
SearchToolStripButton.Click
'Search function for searching Donor Details'
Try
Me.Donor_DetailsTableAdapter.Search(Me.Blood_DonationDataSet.Donor_Details,
Donor_IDToolStripTextBox.Text, Donor_ICToolStripTextBox.Text)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Button for refresh page'
Me.Donor_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Donor_Details)
End Sub
End Class
Form3
Public Class Form3
Private Sub Form3_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Blood_DonationDataSet.Blood_Group_Details' table.
You can move, or remove it, as needed.
Me.Blood_Group_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Blood_Group_Details)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Add function for Donor Details'
Me.Blood_Group_DetailsBindingSource.AddNew()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
'Save Button for update or store information'
Try
Me.Validate()
Me.Blood_Group_DetailsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Blood_DonationDataSet)
MsgBox("You Had Save Information")
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show("Please Try Again")
End Try
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
'Delete function for Donor Details'
Me.Blood_Group_DetailsBindingSource.RemoveCurrent()
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to main page'
Form1.Show()
Me.Close()
End Sub
Private Sub SearchToolStripButton_Click(sender As Object, e As EventArgs) Handles
SearchToolStripButton.Click
'Search function for searching Donor Details'
Try
Me.Blood_Group_DetailsTableAdapter.Search(Me.Blood_DonationDataSet.Blood_Group_Details,
Donor_IDToolStripTextBox.Text, Donor_ICToolStripTextBox.Text)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Button for refresh page'
Me.Blood_Group_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Blood_Group_Details)
End Sub
[Type text]
Page 41
[Type text]
Page 42
Form6.Show()
Me.Close()
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Button for go to estimate pet weight page'
Form7.Show()
Me.Close()
End Sub
End Class
Form6
Public Class Form6
Private Sub ComboBox1_SelectedIndexChanged(sender As Object, e As EventArgs)
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to page of estimate blood volume'
Form5.Show()
Me.Close()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Button for estimate blood volume by using calculate function'
Dim BV As Decimal
Dim h As Decimal
Dim w As Decimal
h = CDbl(Donor_HeightTextBox.Text)
w = CDbl(Donor_WeightTextBox.Text)
'Male and Female formula calculation'
If ComboBox1.Text = "Male" Then
BV = (0.3669 * (h * h * h) + (0.03219 * w) + 0.6041)
TextBox1.Text = Str(BV)
BV = Math.Round(BV, 2)
TextBox1.Text = BV.ToString("0.00")
ElseIf ComboBox1.Text = "Female" Then
BV = (0.3561 * (h * h * h) + (0.03308 * w) + 0.1833)
TextBox1.Text = Str(BV)
BV = Math.Round(BV, 2)
TextBox1.Text = BV.ToString("0.00")
End If
End Sub
Private Sub Form6_Load(sender As Object, e As EventArgs) Handles MyBase.Load
End Sub
End Class
Form7
Public Class Form7
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to page of estimate blood volume'
Form5.Show()
Me.Close()
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Button for estimate pet weight by using calculate function'
Dim weight As Decimal
Dim a As Decimal
Dim w As Decimal
a = CDbl(Donor_HeightTextBox.Text)
w = CDbl(Donor_WeightTextBox.Text)
'Pet weight formula calculation'
weight = w / a * 52
TextBox1.Text = Str(weight)
weight = Math.Round(weight, 2)
TextBox1.Text = weight.ToString("0")
[Type text]
Page 43
End Sub
End Class
Form8
Public Class Form8
Private Sub Form8_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Blood_DonationDataSet.Pet_Details' table. You can
move, or remove it, as needed.
Me.Pet_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Pet_Details)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Add function for Donor Details'
Me.Pet_DetailsBindingSource.AddNew()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
'Save Button for update or store information'
Try
Me.Validate()
Me.Pet_DetailsBindingSource.EndEdit()
Me.TableAdapterManager.UpdateAll(Me.Blood_DonationDataSet)
MsgBox("You Had Save Information")
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show("Please Try Again")
End Try
End Sub
Private Sub Button4_Click(sender As Object, e As EventArgs) Handles Button4.Click
'Delete function for Donor Details'
Me.Pet_DetailsBindingSource.RemoveCurrent()
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to main page'
Form1.Show()
Me.Close()
End Sub
Private Sub SearchToolStripButton_Click(sender As Object, e As EventArgs) Handles
SearchToolStripButton.Click
'Search function for searching Donor Details'
Try
Me.Pet_DetailsTableAdapter.Search(Me.Blood_DonationDataSet.Pet_Details,
Donor_IDToolStripTextBox.Text, Pet_Owner_ICToolStripTextBox.Text)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Button for refresh page'
Me.Pet_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Pet_Details)
End Sub
End Class
Form9
Public Class Form9
Private Sub Form9_Load(sender As Object, e As EventArgs) Handles MyBase.Load
'TODO: This line of code loads data into the 'Blood_DonationDataSet.Pet_Blood_Group_Details'
table. You can move, or remove it, as needed.
Me.Pet_Blood_Group_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.Pet_Blood_Group_Details)
End Sub
Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click
'Add function for Donor Details'
Me.Pet_Blood_Group_DetailsBindingSource.AddNew()
End Sub
Private Sub Button3_Click(sender As Object, e As EventArgs) Handles Button3.Click
[Type text]
Page 44
[Type text]
Page 45
End Sub
Private Sub Button6_Click(sender As Object, e As EventArgs) Handles Button6.Click
'Button for go back to main page'
Form1.Show()
Me.Close()
End Sub
Private Sub SearchToolStripButton_Click(sender As Object, e As EventArgs) Handles
SearchToolStripButton.Click
'Search function for searching Donor Details'
Try
Me.Veterinary_Hospital_Order_DetailsTableAdapter.Search(Me.Blood_DonationDataSet.
Veterinary_Hospital_Order_Details, Order_IDToolStripTextBox.Text)
Catch ex As System.Exception
System.Windows.Forms.MessageBox.Show(ex.Message)
End Try
End Sub
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Button for refresh page'
Me.Veterinary_Hospital_Order_DetailsTableAdapter.Fill(Me.Blood_DonationDataSet.
Veterinary_Hospital_Order_Details)
End Sub
End Class
There are 10 forms in the system, these forms include add, delete, save, modify, search, estimate
blood volume and pet weight function to run in this system. The source code estimate is use
calculation formula to calculate the human blood volume and pet weight. The source code is
visual studio is less code, to avoid error or bug and redundant code. We use source code and take
the binding source data from the database, means that select the table and take the textbox label
from the binding sources data through the database so it no need to set or manage the difficulty
and if the user saves details it will automatic store information into the database or the user want
to search information they source code is to get information from the binding source data and
view to the user.
[Type text]
Page 46
CHAPTER 6: TESTING
Figure 6.1
[Type text]
Page 47
[Type text]
Page 48
[Type text]
Page 49
REFERENCES
No Name, (2013). ElDorado Donor Blood Management System. [Online]. Retrieved on 26 June
2014 from: http://www.haemonetics.com/products/software/blood%20center/eldorado
%20donor.aspx
Geek,(2013). Online Blood Donation Management System Project. [Online]. Retrieved on 27
June from: http://projectsgeek.com/2013/10/online-blood-donation-management-systemproject.html
No Name, (2012). Blood Bank Management Info System.[Online]. Retrieved on 27 June 2014
from: http://needblood.karnataka.gov.in/
Dowling.S.(2008) Pet Blood Donation: Pets saving Pets. [Online]. Retrieved on 30 June 2014
from: http://vetmed.illinois.edu/petcolumns/petcols_article_page.php?PETCOLID=384&URL=0
[Type text]
Page 50