Professional Documents
Culture Documents
Project Report On Blood Donation System
Project Report On Blood Donation System
SUBMITTED BY:
YASHVEER SINGH
ENROLMENT NO:836086
ROLL NO: 802271
SUBMITTED TO
MR. PRABHAT RANJAN SHARMA
(H.O.D.)
Department of computer science
UNDER THE SUPERVISION OF
MR. MOHIT KUMAR VARSHNEY
(Lecturer)
2008-2011
We like to pay our wish and love to our all supporting friends who
made their best efforts to help us. Words defeat us in expressing
DECLARATION
th
Place:
Name
Date:
Yashveer Singh
Document information:
Project code
B.C.A.
Project Name
BLOOD DONATION
SYSTEM
Location
IIMT
Submitted to
Technical Member
YASHVEER SINGH
Table of contents:
1. INTRODUCTION
2. SYSTEM DEVELOPMENT
2.1) Initial investigation
2.2) Opportunities of the system:
Technical feasibility
3.2.2)
Economical feasibility
3.2.3)
Operational feasibility
6.) CODING
7.) CONCLUSION
9.) BIBLIOGRAPHY
Basic
(VB)
is
the
third-generation
event-driven
11
12
BASIC,
such
as
Microsoft
QBASIC,
QUICKBASIC,
13
form, and you can change its color any time using the properties
windows.
On the other hand, because the user may click on a certain object
randomly, so each object has to be programmed independently to
be able to response to those actions (events). Therefore, a VB
Program is made up of many subprograms, each has its own
program code, and each can be executed independently and at the
same time each can be linked together in one way or another.
Like the BASIC programming language, Visual Basic was designed
to be easily learned and used by beginner programmers. The
language not only allows programmers to create simple GUI
applications,
but
can
also
develop
complex
applications.
14
automatically display its list and allow the user to select any
element. An event handler is called when an item is selected,
which can then execute additional code created by the programmer
to perform some action based on which element was selected, such
as populating a related list.
16
1.) INTRODUCTION
1.2) PURPOSE:
1.3) SCOPE:
1.4) INTENDED AUDIENCE:
1.5) USER CHARACTERISTICS:
1.6) CONSTRAINT:
1.8.2)
1.8.3)
17
1.9.2) Efficiency:
1.9.3) Maintainability:
1.9.4) Security:
1.9.5) Reliability:
1.9.6) Performance:
18
1. INTRODUCTION
1.5) PURPOSE:
The basic purpose of the system is to manage the transaction
that occurs during the operation as well as performing
calculation and updating database as and when necessary. The
19
system is can also provide the reports about current state of the
student Information.
1.6) SCOPE:
The scope of this project is in the various Library that need to
manage their data about their transaction and services
efficiently and effectively.
This project with the slight variations can be enhanced to be
used in the other systems which need to manage the quick data
processing.(more)
20
1.6) CONSTRAINT:
2)
Developers should have known about all the main devices and
there
Specification.
21
1)
Project will work for a long time and user will adopt it.
2)
3)
4)
1.8.4)
1.8.5)
Preferences
This project is based upon Visual Basic user interfaces. The
user of this project is any computer literate person handling the
22
Login Process
This system interface is used to give access to the user for the
system, and mean while maintaining the security of th system.
1.8.6)
2.
1.10)
1.9.1) Usability:
The system is fully usable and does not require any prespecified constraint to work properly.
1.9.2) Efficiency:
Hardware should me min. Pentium with 196 MB RAM.
(Fully efficient in the environments having less memory available
and a reasonable speed of execution)
24
1.9.3) Maintainability:
In case of any change in policies and rule of the institution
using the system, required changes will be made to the module
written by developer.
1.9.4) Security:
Only the super user can enter the system to use it.
1.9.5) Reliability:
System gives accurate result without any errors.
1.9.6) Performance:
The system itself is quiet fast.
25
27
1)
2)
3)
4)
28
The existing system can be replaced by computerbased system, which can perform all the related tasks
of business in a better and efficient way. The
alternative computer based system can provide many
facilities over present paper based system in the
following manner.
1)
2)
3)
4)
29
Technical feasibility
3.2.5)
Economical feasibility
3.2.6)
Operational feasibility
30
31
32
33
34
2)
3)
35
36
1)
Object Modeling
2)
Dynamic modeling
3)
Functional Modeling
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
6.) Coding:
54
Coding:
FOR FORM-1
FOR PASSWORD:Private Sub command1_Click()
If txtpassword = "" Then
Form2.Show
Form1.Hide
Else
MsgBox "Sorry!!Invalid Password,Try Again"
txtpassword = ""
txtpassword.SetFocus
End If
End Sub
FOR FORM-2C:\Documents and Settings\GARIMA\My
Documents\Session 3 Ex-2_files
TO SHOW FORMS:Private Sub mnubgwise_Click()
55
Form2.Hide
Form6.Show
End Sub
Private Sub mnudd_Click()
Form2.Hide
Form5.Show
End Sub
Private Sub mnudeleted_Click()
Form2.Hide
frmDeleteDeptt.Show
End Sub
Private Sub mnudu_Click()
Form2.Hide
Form4.Show
End Sub
Private Sub mnuexit_Click()
End
End Sub
Private Sub mnunr_Click()
Form2.Hide
Form3.Show
End Sub
FOR FORM-3
FOR SAVE RECORD:Private Sub command1_Click()
On Error GoTo myerror:
56
If text1 = "" Or text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = ""
Or Text6 = "" Or Combo1 = "" Or Combo2 = "" Or Combo3 = "" Or
Combo4 = "" Or Combo5 = "" Then
MsgBox "Fill up all fields"
Exit Sub
End If
Dim strsql As String
strsql = "Select * from registration"
Set rs = New ADODB.Recordset
rs.Open strsql, con, adOpenForwardOnly, adLockOptimistic
If MsgBox("
Are you sure(Y/N)???", 4) = 7 Then Exit Sub
rs.AddNew
If Not rs.EOF Then
rs.Fields("Donor ID") = text1.Text
rs.Fields("Name") = UCase$(text2.Text)
rs.Fields("Phone no") = (Text3.Text)
rs.Fields("E-mail ID") = (Text4.Text)
rs.Fields("Address") = UCase$(Text6.Text)
rs.Fields("Occupation") = UCase$(Combo1.Text)
rs.Fields("Blood Group") = UCase$(Combo2.Text)
rs.Fields("Department") = UCase$(Combo3.Text)
rs.Fields("Faculty") = UCase$(Combo4.Text)
rs.Fields("Hall") = UCase$(Combo5.Text)
rs.Fields("Enrollment no/Employee ID") = Text5.Text
rs.Update
End If
rs.Close
myerror:
57
Call error
End Sub
FOR CANCEL:Private Sub command2_Click()
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text5.Text = Clear
Text6.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
Combo3.Text = Clear
Combo4.Text = Clear
Combo5.Text = Clear
text2.SetFocus
End Sub
FOR BACK:Private Sub Command3_Click()
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text5.Text = Clear
Text6.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
Combo3.Text = Clear
58
Combo4.Text = Clear
Combo5.Text = Clear
text2.SetFocus
Form3.Hide
Form2.Show
End Sub
FOR DATA LINK:Private Sub Form_Load()
On Error GoTo myerror:
Set con = CreateObject("Adodb.connection")
con.Provider = "Microsoft.jet.oledb.4.0"
con.Open App.Path & "\db1.mdb"
Dim strsql As String
strsql = "Select distinct Faculty from registration"
Set rs = New ADODB.Recordset
rs.Open strsql, con, adOpenForwardOnly, adLockOptimistic
Combo1.AddItem "Student"
Combo1.AddItem "Employee"
Combo1.AddItem "Others"
While Not rs.EOF
Combo3.AddItem rs.Fields("Faculty")
rs.MoveNext
Wend
rs.Close
Dim strsql1 As String
strsql1 = "Select distinct Department from registration"
Set rs1 = New ADODB.Recordset
59
61
FOR FORM-4
GENERAL DECLARATION:Dim con As ADODB.Connection
FOR UPDATION:Private Sub command1_Click()
On Error GoTo myerror:
If text1 = "" Or text2 = "" Or Text3 = "" Or Text4 = "" Or Text5 = ""
Or Text6 = "" Or Combo1 = "" Or Combo2 = "" Or Combo3 = "" Or
Combo4 = "" Or Combo5 = "" Then
MsgBox "Fill up all fields"
Exit Sub
End If
Dim strsql As String
strsql = "Select * from registration where [Donor ID]='" & text1.Text
& "'"
Set rs = New ADODB.Recordset
rs.Open strsql, con, adOpenForwardOnly, adLockOptimistic
If MsgBox("
Are you sure(Y/N)???", 4) = 7 Then Exit Sub
rs.Update("Name") = text2.Text
rs.Update("Phone no") = Text3.Text
rs.Update("E-mail ID") = Text4.Text
rs.Update("Address") = Text5.Text
rs.Update("Occupation") = Combo1.Text
rs.Update("Blood Group") = Combo2.Text
rs.Close
MsgBox "Your change has been saved!!"
myerror:
62
Call error
End Sub
FOR CANCEL:Private Sub command2_Click()
text1.Text = Clear
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text5.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
text1.SetFocus
Form4.Hide
Form2.Show
End Sub
FOR BACK:Private Sub Command3_Click()
text1.Text = Clear
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text5.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
End Sub
63
End Sub
Private Sub Text1_Change()
text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Combo1.Enabled = True
Combo2.Enabled = True
command1.Enabled = True
Label4.Enabled = True
Label5.Enabled = True
Label6.Enabled = True
Label7.Enabled = True
Label8.Enabled = True
Label9.Enabled = True
Label10.Enabled = True
Label11.Enabled = True
Label12.Enabled = True
Dim strsql10 As String
strsql10 = "Select * from registration where [Donor ID]='" &
text1.Text & "'"
Set rs10 = New ADODB.Recordset
rs10.Open strsql10, con, adOpenForwardOnly, adLockOptimistic
If Not rs10.EOF Then
text2.Text = rs10.Fields("Name")
Text3.Text = rs10.Fields("Phone no")
Text4.Text = rs10.Fields("E-mail ID")
66
Text5.Text = rs10.Fields("Address")
Combo1.Text = rs10.Fields("Occupation")
Combo2.Text = rs10.Fields("Blood Group")
Endf
rs10.Close
End Sub
Private Sub Text6_Change()
text1.Enabled = True
text2.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Combo1.Enabled = True
Combo2.Enabled = True
command1.Enabled = True
Label4.Enabled = True
Label5.Enabled = True
Label6.Enabled = True
Label7.Enabled = True
label3.Enabled = True
Label10.Enabled = True
Label11.Enabled = True
Label12.Enabled = True
Dim strsql11 As String
strsql11 = "Select * from registration where [Enrollment
no/Employee ID]='" & Text6.Text & "'"
Set rs11 = New ADODB.Recordset
rs11.Open strsql11, con, adOpenForwardOnly, adLockOptimistic
If Not rs11.EOF Then
67
Form2.Show
Form5.Hide
myerror:
End Sub
FOR BACK:Private Sub Command3_Click()
text1.Text = Clear
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text6.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
text1.SetFocus
Form4.Hide
Form2.Show
End Sub
FOR CANCEL:Private Sub command2_Click()
text1.Text = Clear
text2.Text = Clear
Text3.Text = Clear
Text4.Text = Clear
Text5.Text = Clear
Combo1.Text = Clear
Combo2.Text = Clear
End Sub
69
Label5.Enabled = True
Label6.Enabled = True
Label7.Enabled = True
Label8.Enabled = True
Label9.Enabled = True
Label10.Enabled = True
Label11.Enabled = True
Label12.Enabled = True
Text3.Enabled = True
Text4.Enabled = True
Text5.Enabled = True
Combo1.Enabled = True
Combo2.Enabled = True
command1.Enabled = True
Label4.Enabled = True
Label5.Enabled = True
Label6.Enabled = True
Label7.Enabled = True
Label8.Enabled = True
label3.Enabled = True
Label10.Enabled = True
Label11.Enabled = True
Label12.Enabled = True
Dim strsql11 As String
strsql11 = "Select * from registration where [Enrollment
no/Employee ID]='" & Text6.Text & "'"
Set rs11 = New ADODB.Recordset
rs11.Open strsql11, con, adOpenForwardOnly, adLockOptimistic
If Not rs11.EOF Then
text1.Text = rs11.Fields("Donor ID")
text2.Text = rs11.Fields("Name")
Text3.Text = rs11.Fields("Phone no")
Text4.Text = rs11.Fields("E-mail ID")
Text5.Text = rs11.Fields("Address")
Combo1.Text = rs11.Fields("Occupation")
Combo2.Text = rs11.Fields("Blood Group")
72
End If
rs11.Close
End Sub
FOR FORM-6
Dim con As ADODB.Connection
Dim selec As Integer
FOR SEARCH:Private Sub command1_Click()
On Error GoTo myerror:
Dim strsql As String
If Not Combo1.Text = "" Then
strsql = "SELECT registration.[Donor ID], registration.Name,
registration.[Phone no],registration.[E-mail
ID],registration.Address,registration.Occupation,registration.[Blood
Group] FROM registration WHERE [Blood Group]='" &
Combo1.Text & "'"
End If
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.Open strsql, con, adOpenForwardOnly, adLockOptimistic
Set DataGrid1.DataSource = rs
DataGrid1.Columns(0).Caption = "D.ID"
DataGrid1.Columns(0).Width = 500
DataGrid1.Columns(1).Width = 700
DataGrid1.Columns(2).Width = 1500
DataGrid1.Columns(3).Width = 2500
73
DataGrid1.Columns(4).Width = 2500
DataGrid1.Columns(5).Width = 500
DataGrid1.Columns(6).Width = 900
DataGrid1.Columns(7).Width = 2200
DataGrid1.Columns(8).Width = 2200
DataGrid1.Columns(9).Width = 1500
DataGrid1.Columns(10).Width = 900
DataGrid1.Refresh
'rs.Close
myerror:
Call error
End Sub
FOR DONOR DETAILS:Private Sub command2_Click()
Form6.Hide
Form2.Show
End Sub
FOR BACK:Private Sub Command3_Click()
Form8.Show
End Sub
Private Sub DataGrid1_DblClick()
Form4.Show
Call datashow
End Sub
Private Sub Form_Load()
74
Call datashow
End Sub
Private Sub error()
If Err.Number <> 0 Then
MsgBox ("Error: " & Err.Description)
Exit Sub
End If
End Sub
Sub datashow()
On Error GoTo myerror:
Set con = CreateObject("Adodb.connection")
con.Provider = "Microsoft.jet.oledb.4.0"
con.Open App.Path & "\db1.mdb"
'Blood Group setting
Combo1.AddItem "A+"
Combo1.AddItem "A-"
Combo1.AddItem "B+"
Combo1.AddItem "B-"
Combo1.AddItem "O+"
Combo1.AddItem "O-"
Combo1.AddItem "AB+"
Combo1.AddItem "AB-"
Dim strsql As String
strsql = "SELECT registration.[Donor ID], registration.Name,
registration.[Phone no],registration.[E-mail
ID],registration.Address,registration.Occupation,registration.[Blood
Group],registration.[Enrollment no/Employee
75
ID],registration.Department,registration.Faculty,registration.Hall
FROM registration "
Set rs = New ADODB.Recordset
rs.CursorLocation = adUseClient
rs.Open strsql, con, adOpenForwardOnly, adLockOptimistic
Set DataGrid1.DataSource = rs
DataGrid1.Columns(0).Caption = "D.ID"
DataGrid1.Columns(0).Width = 500
DataGrid1.Columns(1).Width = 700
DataGrid1.Columns(2).Width = 1500
DataGrid1.Columns(3).Width = 2500
DataGrid1.Columns(4).Width = 2500
DataGrid1.Columns(5).Width = 500
DataGrid1.Columns(6).Width = 900
DataGrid1.Columns(7).Width = 2200
DataGrid1.Columns(8).Width = 2200
DataGrid1.Columns(9).Width = 1500
DataGrid1.Columns(10).Width = 900
DataGrid1.Refresh
'rs.Close
selec = 0
myerror:
Call error
End Sub
Private Sub Form_Unload(Cancel As Integer)
con.Close
End Sub
76
77
7.) CONCLUSION
78
Conclusion:
Overall conclusion is that the efficiency and quality are bet served by
the project. by going proper software development phase step by step
through the each phases. Proper testing of the project, its modularity
& simplicity increases its productivity of the project in many ways.
And its visual environment plays the major role in this.
This project has been developed to enable users to manage their daily
work efficiency.
79
80
FUTURE SCOPE:
Suppose in the future activities or the method associated with the
Blood Donation System. System is changed or they want some more
activities to be automated, then is such cases this project can be
easily to handle and anyone can operate it. It will not only reduce the
cost of maintenance of records but it will be also. Improve the
efficiency of work.
81
82
9.) BIBLIOGRAPHY:
83
BIBLIOGRAPHY:
BY Evangelos Petroutsos
BY Steven Holzner
Microsoft Access
BY Harkins, ETAL
Software Engineering
BY Pankaj Jalote
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156