Beruflich Dokumente
Kultur Dokumente
INTRODUCTION
SYNOPSIS
1
2.SYSTEM ENVIRONMENT
HARDWARE SPECIFICATION
SOFWARE SPECIFICATION
2
VISUAL BASIC 6.0 ENVIRONMENT
4
1. Visual Basic code lines and comments
5
3. Visual Basic Edition:
Learning edition
Professional edition
Enterprise edition
6
ABOUT MS-ACCESS
1. Tables:
2. Queries:
4. Reports:
6. Modules
8
3.SYSTEM ANALYSIS
9
SYSTEM DEFINITION
Using the file number administrator enters all the details such as
personal information, address details, physical particulars and educational
qualifications. If any one of these are found to be invalid then that particular
section is stopped for process and the confirmation is being stopped.
10
EXISTING SYSTEM
The project contains following 4 modules.
1.NEW APPLICANT
>SUBMITTING OF APPLICATION
The input, process and output of this function are :
INPUT : Application form is submitted duly filled with all details
PROCESS : These values are stored in the database
OUTPUT : A message confirmation stating the submission of application and
issuing the file number is seen.
11
The input, process and output of this function are :
INPUT : Physical Particulars form is filled with all details
PROCESS : These values are stored in the database
OUTPUT : A message confirmation stating the submission of physical
particulars is seen.
12
OUTPUT : A message confirmation stating the submission of fee details is
seen.
2.CONFIRMATION
> RE-ENTERING OF THE DETAILS
The input, process and output of this function are :
INPUT : Appropriate form is filled with all details
PROCESS : These values are checked for accuracy stored in the database
OUTPUT : A message confirmation stating the submission of appropriate form
is seen.
3.ENQUIRY
>CHECK THE STATUS
The input, process and output of this function are :
13
INPUT : The file number is given in the form.
PROCESS : File number is checked in the database.
OUTPUT : A message stating and the status is revealed .
4.REPORTS
>PASSPORT WRITING
The input, process and output of this function are :
INPUT : The file number is given in the form.
PROCESS : Only after all the conformation is positive, the database is updated
and the expiry date is generated. Also the dispatch information is recorded in
another database.
OUTPUT : A report stating all the details of the passport holder is submitted.
14
4.SYSTEM DESIGN
APPLICANT
DETIALS
SUBMIT APPLICATION
FILE NO
APPLICATION
DETAILS
EXISTING
APPLICANT
15
DFD FOR EXISTING APPLICATION
DETAILS
DETAILS
DETAILS DETAILS
16
DFD FOR ADMINISTRATION
17
DFD FOR ENQUIRY
FILE NO
DETAILS
ENQUIRY
18
DATABASEDESIGN
ADDRESS DETAILS
NAME OF FIELD DATA TYPE WIDTH
FILENO TEXT 10
PERMANENT TEXT 50
ADDRESS
CITY TEXT 15
STATE TEXT 15
ZIPCODE NUMBER 7
PHONENO NUMBER 12
POLICESTATION TEXT 20
POSTOFFICE TEXT 20
DOCUMENTS ENCLOSED
APPLICATION FORM
PREVIOUS APPLIED
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
PHYSICAL PARTICULARS
CONFIRMATION
20
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 5
PERSONALINFORMATION TEXT 5
ADDRESS TEXT 5
PHYSICALPARTICULARS TEXT 5
EDUCATIONALQUALIFICATIONS TEXT 5
DOCUMENTSENCLOSED TEXT 5
FEEDETAILS TEXT 5
POLICERECORDS TEXT 5
PREVIOUSAPPLIED TEXT 5
DISPATCH
EDUCATIONAL QUALIFICATION
21
EMMIGRATION CHECK
ENQUIRY
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
PERSONALINFROMATION TEXT 5
ADDRESS TEXT 5
PHYSICALPARTICULARS TEXT 5
EDUCATIONALQUALIFICATION TEXT 5
DOCUMENTSENCLOSED TEXT 5
FEEDETAILS TEXT 5
POLICERECORDS TEXT 5
PREVIOUSAPPLIED TEXT 5
PASSPORTWRITING TEXT 15
DISPATCH TEXT 5
FEE PARTICULARS
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
MODEOFPAYMENT TEXT 7
22
AMOUNTPAID NUMBER 4
VALID TEXT 5
PERSONAL INFORMATION
PASSPORT WRITING
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
NAME TEXT 30
NATIONALITY TEXT 10
SEX TEXT 2
DATEOFBIRTH DATE/TIME 10
PLACEOFBIRTH TEXT 20
DATEOFISSUE DATE/TIME 10
DATEOFEXPIRY DATE/TIME 10
NAMEOFFATHER TEXT 30
NAMEOFMOTHER TEXT 30
23
NAMEOFSPOUSE TEXT 30
ADDRESS TEXT 50
CITY TEXT 20
STATE TEXT 15
ZIPCODE NUMBER 7
EMMIGRATIONCHECK TEXT 15
PASSPORTNO TEXT 15
POLICE RECORDS
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
CONVICTED TEXT 5
5.SYSTEM IMPLEMENTATION
SOURCE CODE
OPENMENU
Private Sub Command1_Click()
MAINMENU.Show
End Sub
MAINMENU
Private Sub CMDLOGIN_Click()
If (TXTUSERNAME.Text = "" And TXTPASSWORD.Text = "") Or
(TXTUSERNAME.Text = "" And TXTPASSWORD.Text = "") Then
PASSPORTAUTHORITY.Show
Else
24
MsgBox ("UNSUCCESSFUL LOGIN")
TXTUSERNAME.Text = ""
TXTUSERNAME.Text = ""
TXTUSERNAME.SetFocus
End If
End Sub
Private Sub CMDTERMINATE_Click()
End
End Sub
Private Sub Timer1_Timer()
Dim Today As Variant
Today = Now
Label1.Caption = Format(Today, "dddd")
Label2.Caption = Format(Today, "dd/mm/yyyy")
Label3.Caption = Format(Today, "h:mm:ss:ampm")
End Sub
Private Sub TXTPASSWORD_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
CMDLOGIN.SetFocus
End If
End Sub
Private Sub TXTUSERNAME_KeyPress(KeyAscii As Integer)
If KeyAscii = 13 Then
TXTPASSWORD.SetFocus
End If
End Sub
25
ADDRESS DETAILS
Option Explicit
Dim DB As Database
Dim RST As Recordset
Dim RST2 As Recordset
Dim RST14 As Recordset
Dim RST13 As Recordset
Private Sub FILLFORM()
TXTFILENO.Text = RST2(0)
TXTPERMANENTADDRESS.Text = RST2(1)
TXTCITY.Text = RST2(2)
TXTSTATE.Text = RST2(3)
TXTZIPCODE.Text = RST2(4)
TXTPHONENO.Text = RST2(5)
TXTPOLICESTATION.Text = RST2(6)
TXTPOSTOFFICE.Text = RST2(7)
End Sub
Private Sub FILLDB()
RST2(0) = TXTFILENO.Text
RST2(1) = TXTPERMANENTADDRESS.Text
RST2(2) = TXTCITY.Text
RST2(3) = TXTSTATE.Text
RST2(4) = TXTZIPCODE.Text
RST2(5) = TXTPHONENO.Text
RST2(6) = TXTPOLICESTATION.Text
RST2(7) = TXTPOSTOFFICE.Text
End Sub
26
Private Sub CMDSUBMIT_Click()
If (TXTFILENO.Text = "" Or TXTPERMANENTADDRESS.Text = "" Or
TXTCITY.Text = "" Or TXTSTATE.Text = "" Or TXTZIPCODE.Text = "" Or
TXTPHONENO.Text = "" Or TXTPOLICESTATION.Text = "" Or
TXTPOSTOFFICE.Text = "") Then
MsgBox "U CANT SAVE THE FORM"
Unload Me
DETAILSOFAPPLICANT.Show
Else
RST2.MoveFirst
While RST2.EOF <> True
If RST2(0) = TXTFILENO.Text Then
MsgBox "THIS RECORD ALREADY EXISTS"
GoTo HEAVEN
Else
End If
RST2.MoveNext
Wend
RST2.AddNew
FILLDB
RST2.Update
MsgBox "RECORD SAVED"
RST14.MoveFirst
While RST14.EOF <> True
If RST14(0) = TXTFILENO.Text Then
RST14.Edit
RST14(2) = "YES"
27
RST14.Update
Else
End If
RST14.MoveNext
Wend
RST13.MoveFirst
While RST13.EOF <> True
If RST13(0) = TXTFILENO.Text Then
RST13.Edit
RST13(2) = "YES"
RST13.Update
Else
End If
RST13.MoveNext
Wend
Unload Me
DETAILSOFAPPLICANT.Show
End If
HEAVEN:
Unload Me
DETAILSOFAPPLICANT.Show
End Sub
Private Sub Command1_Click()
If DataEnvironment1.Connection1.State = 1 Then
DataEnvironment1.Connection1.Close
DataEnvironment1.Connection1.Open
DataEnvironment1.Command3 TXTFILENO.Text
28
DataReport3.Show
End Sub
Private Sub Form_Load()
CMDSUBMIT.Enabled = True
CMDEXIT.Enabled = True
Set DB = OpenDatabase(App.Path & "\PASSPORT.MDB")
TXTFILENO.Text = DETAILSOFAPPLICANT.TXTFILENO.Text
Set RST2 = DB.OpenRecordset("ADDRESSDETAILS")
Set RST14 = DB.OpenRecordset("CONFIRMATION")
Set RST13 = DB.OpenRecordset("ENQUIRY")
Set RST = DB.OpenRecordset("APPLICATION")
RST.MoveFirst
While RST.EOF <> True
If RST(11) = TXTFILENO.Text Then
TXTFILENO.Enabled = False
TXTPERMANENTADDRESS.Text = RST(9)
TXTPHONENO.Text = RST(10)
Else
End If
RST.MoveNext
Wend
End Sub
Private Sub CMDEXIT_Click()
Unload Me
DETAILSOFAPPLICANT.Show
End Sub
Private Sub CMDFIRST_Click()
29
CMDSUBMIT.Enabled = False
RST2.MoveFirst
FILLFORM
End Sub
Private Sub CMDLAST_Click()
CMDSUBMIT.Enabled = False
RST2.MoveLast
FILLFORM
End Sub
Private Sub CMDNEXT_Click()
CMDSUBMIT.Enabled = False
RST2.MoveNext
If RST2.EOF Then
MsgBox "THIS IS THE LAST RECORD"
Else
FILLFORM
End If
End Sub
Private Sub CMDPREV_Click()
CMDSUBMIT.Enabled = False
RST2.MovePrevious
If RST2.BOF Then
MsgBox "THIS IS THE FIRST RECORD"
Else
FILLFORM
End If
End Sub
30
ADMINISTRATIVE VERIFICATION
Private Sub CMDBACK_Click()
Unload Me
Load DETAILSOFAPPLICANT
DETAILSOFAPPLICANT.Show
End Sub
Private Sub CMDDOCUMENTS_Click(Index As Integer)
If TXTFILENO.Text = "" Then
MsgBox "ENTER THE FILE NUMBER"
TXTFILENO.SetFocus
Else
Load DOCUMENTSENCLOSED
DOCUMENTSENCLOSED.Show
End If
End Sub
Private Sub CMDECNR_Click()
If TXTFILENO.Text = "" Then
MsgBox "ENTER THE FILE NUMBER"
TXTFILENO.SetFocus
Else
Load EMMIGRATIONCHECKNOTREQUIRED
EMMIGRATIONCHECKNOTREQUIRED.Show
End If
End Sub
Private Sub CMDEXIT_Click()
Unload Me
Load PASSPORTAUTHORITY
31
PASSPORTAUTHORITY.Show
End Sub
Private Sub CMDFEES_Click()
If TXTFILENO.Text = "" Then
MsgBox "ENTER THE FILE NUMBER"
TXTFILENO.SetFocus
Else
Load FEEPARTICULARS
FEEPARTICULARS.Show
End If
End Sub
42
MsgBox "NO SUCH FILE NUMBER EXISTS -- PLEASE SUBMIT UR
APPLICATION"
PASSPORTAUTHORITY.Show
End If
End Sub
Private Sub CLEARED()
TXTFILENO.Text = ""
TXTPI.Text = ""
TXTADDRESS.Text = ""
TXTPHYSICALDETAILS.Text = ""
TXTEDUCATIONALQUALIFICATIONS.Text = ""
TXTDOCUMENTSENCLOSED.Text = ""
TXTFEEDETAILS.Text = ""
TXTPOLICECONFIRMATION.Text = ""
TXTPREVIOUSAPPLIED.Text = ""
End Sub
Private Sub FILLFORM()
TXTFILENO.Text = RST14(0)
TXTPI.Text = RST14(1)
TXTADDRESS.Text = RST14(2)
TXTPHYSICALDETAILS.Text = RST14(3)
TXTEDUCATIONALQUALIFICATIONS.Text = RST14(4)
TXTDOCUMENTSENCLOSED.Text = RST14(5)
TXTFEEDETAILS.Text = RST14(6)
TXTPOLICECONFIRMATION.Text = RST14(7)
TXTPREVIOUSAPPLIED.Text = RST14(8)
End Sub
43
DETAILS OF APPLICANT
Private Sub CMDADDRESS_Click()
If TXTFILENO.Text = "" Then
MsgBox "ENTER FILE NUMBER"
TXTFILENO.SetFocus
Else
Load ADDRESSDETAILS
ADDRESSDETAILS.Show
End If
End Sub
Private Sub CMDBACK_Click()
Unload Me
PASSPORTAUTHORITY.Show
End Sub
Private Sub CMDEDUQUALIFICATIONS_Click()
If TXTFILENO.Text = "" Then
MsgBox "ENTER FILE NUMBER"
TXTFILENO.SetFocus
Else
Load EDUCATIONALQUALIFICATIONS
EDUCATIONALQUALIFICATIONS.Show
End If
End Sub
Private Sub CMDEXIT_Click()
Unload Me
PASSPORTAUTHORITY.Show
End Sub
44
Private Sub CMDPERSONALINFORMATION_Click(Index As Integer)
If TXTFILENO.Text = "" Then
MsgBox "ENTER FILE NUMBER"
TXTFILENO.SetFocus
Else
Load PERSONALINFORMATION
PERSONALINFORMATION.Show
End If
End Sub
Private Sub CMDPHYSICALPARTICULARS_Click()
If TXTFILENO.Text = "" Then
MsgBox "ENTER FILE NUMBER"
TXTFILENO.SetFocus
Else
Load PHYSICALPARTICULARS
PHYSICALPARTICULARS.Show
End If
End Sub
DISPATCH DETAILS
Option Explicit
Dim DB As Database
Dim RST11 As Recordset
Dim RST8 As Recordset
Dim RST13 As Recordset
Private Sub CMDSAVE_Click()
45
If (TXTFILENO.Text = "" Or TXTSPEEDPOSTNO.Text = "" Or
TXTDISPATCHDATE.Text = "" Or TXTDELIVEREDADDRESS.Text = ""
Or Text1.Text = "" Or Text2.Text = "" Or Text3.Text = "") Then
MsgBox "U CAN'T SAVE THE FORM -- PLEASE ENTER ALL THE
DETAILS"
TXTSPEEDPOSTNO.SetFocus
Else
RST11.AddNew
FILLDB
RST11.Update
MsgBox "RECORD SAVED"
RST13.MoveFirst
While RST13.EOF <> True
If RST13(0) = TXTFILENO.Text Then
RST13.Edit
RST13(10) = "YES"
RST13.Update
Else
End If
RST13.MoveNext
Wend
Unload Me
PASSPORTAUTHORITY.Show
End If
End Sub
Private Sub FILLDB()
RST11(0) = TXTFILENO.Text
46
RST11(1) = TXTSPEEDPOSTNO.Text
RST11(2) = TXTDISPATCHDATE.Text
RST11(3) = TXTDELIVEREDADDRESS.Text
RST11(4) = Text1.Text
RST11(5) = Text2.Text
RST11(6) = Text3.Text
End Sub
Private Sub Form_Load()
Set DB = OpenDatabase(App.Path & "\PASSPORT.MDB")
Set RST11 = DB.OpenRecordset("DISPATCH")
Set RST13 = DB.OpenRecordset("ENQUIRY")
Set RST8 = DB.OpenRecordset("EMMIGRATIONCHECK")
TXTFILENO.Text = PASSPORTWRITING.TXTFILENO.Text
TXTSPEEDPOSTNO.Text = ""
TXTDISPATCHDATE.Text =
PASSPORTWRITING.TXTDATEOFISSUE.Text
TXTDELIVEREDADDRESS.Text =
PASSPORTWRITING.TXTADDRESS.Text
Text1.Text = PASSPORTWRITING.Text1.Text
Text2.Text = PASSPORTWRITING.Text2.Text
Text3.Text = PASSPORTWRITING.Text3.Text
End Sub
DOCUMENTS ENCLOSED FORM
Option Explicit
Dim DB As Database
Dim RST As Recordset
Dim RST5 As Recordset
47
Dim RST14 As Recordset
Dim RST13 As Recordset
Private Sub FILLFORM()
TXTFILENO.Text = RST5(0)
LST7PHOTOS.Text = RST5(1)
LSTPROOFOFDATEOFBIRTH.Text = RST5(2)
LSTCITIZENSHIPDOCUMENT.Text = RST5(3)
End Sub
Private Sub FILLDB()
RST5(0) = TXTFILENO.Text
RST5(1) = LST7PHOTOS.Text
RST5(2) = LSTPROOFOFDATEOFBIRTH.Text
RST5(3) = LSTCITIZENSHIPDOCUMENT.Text
End Sub
RST5.AddNew
FILLDB
RST5.Update
MsgBox "RECORD SAVED"
RST14.MoveFirst
While RST14.EOF <> True
If RST14(0) = TXTFILENO.Text Then
RST14.Edit
RST14(5) = "YES"
RST14.Update
Else
End If
RST14.MoveNext
Wend
RST13.MoveFirst
While RST13.EOF <> True
If RST13(0) = TXTFILENO.Text Then
RST13.Edit
49
RST13(5) = "YES"
RST13.Update
Else
End If
RST13.MoveNext
Wend
Unload Me
ADMINISTRATIVEVERIFICATION.Show
End If
HEAVEN:
Unload Me
ADMINISTRATIVEVERIFICATION.Show
End Sub
Option Explicit
Dim DB As Database
Dim RST8 As Recordset
Private Sub FILLFORM()
TXTFILENO.Text = RST8(0)
LSTGO.Text = RST8(1)
LSTDEGREE.Text = RST8(2)
LSTITPAYEE.Text = RST8(3)
LSTPIV.Text = RST8(4)
LSTDAO.Text = RST8(5)
End Sub
Private Sub FILLDB()
RST8(0) = TXTFILENO.Text
RST8(1) = LSTGO.Text
RST8(2) = LSTDEGREE.Text
57
RST8(3) = LSTITPAYEE.Text
RST8(4) = LSTPIV.Text
RST8(5) = LSTDAO.Text
End Sub
Private Sub CMDSUBMIT_Click()
If (TXTFILENO.Text = "" Or LSTGO.Text = "" Or LSTDEGREE.Text = "" Or
LSTITPAYEE.Text = "" Or LSTPIV.Text = "" Or LSTDAO.Text = "" Or
(LSTGO.Text = "N" And LSTDEGREE.Text = "N" And LSTITPAYEE.Text =
"N" And LSTPIV.Text = "N" And LSTDAO.Text = "N")) Then
MsgBox "U CAN'T SAVE THE FORM"
Unload Me
ADMINISTRATIVEVERIFICATION.Show
Else
RST8.MoveFirst
While RST8.EOF <> True
If RST8(0) = TXTFILENO.Text Then
MsgBox "THIS RECORD ALREADY EXISTS"
GoTo HEAVEN
Else
End If
RST8.MoveNext
Wend
RST8.AddNew
FILLDB
RST8.Update
MsgBox "RECORD SAVED"
Unload Me
58
ADMINISTRATIVEVERIFICATION.Show
End If
HEAVEN:
Unload Me
ADMINISTRATIVEVERIFICATION.Show
End Sub
Private Sub Form_Load()
CMDSUBMIT.Enabled = True
CMDEXIT.Enabled = True
Set DB = OpenDatabase(App.Path & "\PASSPORT.MDB")
TXTFILENO.Text = ADMINISTRATIVEVERIFICATION.TXTFILENO.Text
Set RST8 = DB.OpenRecordset("EMMIGRATIONCHECK")
End Sub
Private Sub CMDEXIT_Click()
Unload Me
ADMINISTRATIVEVERIFICATION.Show
End Sub
Private Sub CMDFIRST_Click()
CMDSUBMIT.Enabled = False
CLEARED
RST8.MoveFirst
FILLFORM
End Sub
Private Sub CMDLAST_Click()
CMDSUBMIT.Enabled = False
CLEARED
RST8.MoveLast
59
FILLFORM
End Sub
Private Sub CMDNEXT_Click()
CMDSUBMIT.Enabled = False
RST8.MoveNext
If RST8.EOF Then
MsgBox "THIS IS THE LAST RECORD"
Else
FILLFORM
End If
End Sub
RST8.MoveFirst
While RST8.EOF <> True
If RST8(0) = TXTFILENO.Text Then
If (RST8(1) = "Y" Or RST8(2) = "Y" Or RST8(3) = "Y" Or RST8(4) = "Y"
Or RST8(5) = "Y") Then
LSTEMMIGRATIONCHECK.Text = "NOT REQUIRED"
Else
LSTEMMIGRATIONCHECK.Text = "REQUIRED"
End If
Else
End If
RST8.MoveNext
Wend
RST.MoveFirst
While RST.EOF <> True
If RST(11) = TXTFILENO.Text Then
If RST(1) = "FRESHPASSPORT" Then
73
MsgBox "PLEASE ISSUE NEW PASSPORT NUMBER TO
FRESHER"
Else
TXTPASSPORTNO.Text = RST(12)
End If
End If
RST.MoveNext
Wend
End Sub
93
SCREENS
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
REPORTS
115
116
117
118
119
120
6. SYSTEM TESTING
Testing has its own cycle. The testing process begins with the product
requirements phase and from there parallels the entire development process. In
other words, for each phase of the development process there is an important
testing activity. Successful testing requires a methodical approach. It requires
to focus on basic critical factors:
• Planning
• Project and process control
• Risk management
• Inspections
• Measurement tools
• Organization and professionalism
121
Test plan:
Before going for testing, first we have to decide upon the type of testing
to be carried out. The following factors are taken into consideration:
Unit Testing:
Unit or module testing is the process of testing the individual
components (subprograms or procedures) of a program. The purpose is to
discover discrepancies between the modules interface specification and its
actual behaviour. In our system each module namely
(i) search module
(ii) request module
(iii) order module
must be tested independently for validation.
122
Integration Testing:
System Testing:
123
7. CONCLUSION
124
8. SCOPE OF ENHANCEMENT
125
9. BIBILOGRAPHY
BY
NATHAN GUREWICH
ORI GUREWICH
BY
ERIC A.SMITH
VALOR WHISTLER
HENK MARQUIS
BY
EVANGELOS PETROUTSONS
BY
GARY CORNELL
BY
ABRAHAM
HENRY. F. LORTH
126