1.INTRODUCTION SYNOPSIS The main aim of the project is to design innovative software, which deals with the passport authority management. The motto of the project is to simplify the job of the administrative people and to render a user-friendly package. The system provides information regarding the passport application and its status (enquiry). The tedious jobs such as verifying all the records of the applicant, confirming that all the personal details are furnished, submission of emigration check documents, passing of police enquiry, positive report from the previous applied section, etc., are done in the most convenient way to the administrator. 1
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
1.INTRODUCTION
SYNOPSIS
The main aim of the project is to design innovative software,
which deals with the passport authority management. The motto of the project
is to simplify the job of the administrative people and to render a user-friendly
package.
The system provides information regarding the passport
application and its status (enquiry). The tedious jobs such as verifying all the
records of the applicant, confirming that all the personal details are furnished,
submission of emigration check documents, passing of police enquiry,
positive report from the previous applied section, etc., are done in the most
convenient way to the administrator.
Also security is being provided in the most proficient way. All
the intermediate stages starting from receiving of the application form to
revealing the passport number along with the dispatch of the passport are being
dealt.
1
2 . SYSTEM ENVIRONMENT
HARDWARE SPECIFICATION
PROCESSOR : CELERON/PENTIUM 233 MHZ
RAM : 32 MB
HARD DISK : 2.1GB
FLOPPY DRIVE : 1.44 MB
SOFWARE SPECIFICATION
OPERATING SYSTEM: MICROSOFT WINDOWS MILLENNIUM
BACKEND : MS ACCESS 7.0
FRONTEND : VISUAL BASIC 6.0
REPORT : DATA REPORTS
2
VISUAL BASIC 6.0 ENVIRONMENT
Visual basic is the quickest and easiest way to create
powerful applications for Microsoft operating system. The visual basic
programming system allows to create robust and useful applications that fully
make of the graphical user interface. The visual basic programming is
descendent of basic languages its name suggests ,is big portion of the
programming with visual basic is accomplished visually . This means that
during design time, we able to see how our program look during design. This is
a great advantage over the other programming languages because we are also
able to change and experiment with our design until we are satisfied with the
colors, sizes, images that are indicated in our program.
The visual basic language is quite powerful if we are able
to remember a programming , task it can be probably accomplished using
visual basic . In visual basic the “visual” part refers to the methods used to
create the graphical user interface (GUI). Rather than writing numerous lines
of code to describe the appearance and location of interface elements, we
simply drag and drop rebuilt objects and place on the screen . If we have ever
used drawing program such as paint, we already have the most of the skill
necessary skill to create in effective user interface
3
In visual basic the “basic” part refers to the basic
language used by more programmers than any other language in the history of
computing . Visual basic has evolved from the original BASIC languages and
now contains several hundreds of statements, functions and key words ,many
of which relate directly to the windows UI. Beginners can create useful
application by learning just a see of the keywords, yet the power of this
language allows all the professionals to accomplished anything that can be also
be accomplished using any other windows programming language.
The visual basic programming language is not unique to
visual basic programming system . Applications edition included in Microsoft
access, and many other windows applications use the language .the visual
programming system, scripts edition internet programming is a subset of the
visual basic language . The investment we make learning visual basic will
carry over to these other areas. Whether our goal is to create a small utility for
us or outwork group large enterprise-wide systems, or even to distributed
application spanning the globe via internet. although it retains much of the user
friendly , easy to use feeling of the earlier basic, by OT has added an
immensely rich and powerful features set with an incredible capability for
extension. It’s now certainly possible to design complies visual basic
applications in a high structured and rigorous fashion. The characteristics have
helped to make world’s best selling programming language . visual basic as
implemented ,lets the developer do almost anything in almost any way.
particularly with all the third party tools that are others, is tremendous variety
of ways to do almost any thing .this means that we can do things in right way
or wrong way. visual basic wont stops us from designing the system badly.
4
Therefore , it is very critical to learn and make habit of using correct
programming and design techniques.
1. Visual Basic code lines and comments
Normally , we enter visual basic on one line, meaning that end
of the physical line indicates the end of the statement . Thus we can think of
the lines as an usual implicit end of statement marker. This stand in contrast
with usage in more highly structured languages . There is essentially no limit
to theoretical length of visual basic statement entered this way on a single line.
However , it is poor coding practice to create statements that don’t fit on one
line is either a print out or the code window.
2. U ses of Visual Basic
Data access objects allows us to create database and front-end tools
applications for most popular database formats, including Microsoft SQL
server and other enterprise-level database. ActiveX technologies allows us the
functionality provided by the other applications ,such as Microsoft word
processor , Microsoft excel spread sheet, and other windows applications. We
can even automate and objects created using the professional or enterprise
edition of visual basic. internet capabilities make it easy to provide access to
documents and applications across the internet from with n our applications.
our finished application is a true exe file that users a run time dynamic link
library (DLL) that we can freely describe.
5
3. Visual Basic Edition:
Visual Basic is available in three versions, each geared to
meet a specific set of development requirements . All are 32-bit applications.
Learning edition
The visual basic learning edition allows the programmers too
easily create powerful applications for Microsoft windows 95 and windows nt.
includes all intrinsic controls, plus grid ,tab, and data bound controls.
Professional edition
The visual basic professional edition provides the computer
professional with full –featured set of tools for developing solution for others.
it includes all the features of learning edition , plus additional ActiveX controls
,including all internet controls , and the data report writer.
Enterprise edition
6
The visual basic enterprise edition allows professionals to create robust
distributed applications in a term setting. it includes all the features of the
professional edition ,plus the automation manager, component manager, data
base management tools, the Microsoft visual source safe project-oriented
version control system and more.
ABOUT MS-ACCESS
Main Elements of Access:
Access is an object-oriented program. Objects are modules,
which provide information and programs, which the user can directly apply
to create applications. Everything in access is an object, including the
application itself. Each object has properties that define how the object looks
and performs. Access has the following objects
1. Tables:
Tables are the primary building blocks of the access database.
All data is stored in tables. Every table in the database focuses on one
subject: for example, customer, order or products. Every row, or record in
the table is a unique instance of the subject of the table.
2. Queries:
7
A query is a question that you ask of the data that is stored in
the tables of your database. For example, you can create a query that only
asks for the customers who reside in the state of California or one that finds
all employees who have birthdays in the current month. Most Access
Databases contain more than one table. You can combine specific fields
from multiple tables into one Datasheet. The Datasheet that a query returns
is called a record set.
3. Forms:
Forms present the data from a table or a query in the way it to be
represented. The fields in the table or query are made available to a place on
the forms you create. You can edit the form just as you would edit a
Datasheet bound table or query.
4. Reports:
Whether we like it or not, we are still a paper-based society,
printing the results of the data we store. Reports are still necessary. With
Access, you can quickly and easily design reports based on your data.
5.Macros:
Macros provide an easy, effective method for automating many
database tasks. You can use macros for everything from displaying message
boxes to validating data entered into a record before it is saved.
6. Modules8
Modules are the containers for any programming code written in
an Access database. The two types of modules in an Access database are
global and form, or report.
3.SYSTEM ANALYSIS
Issuing of PASSPORT to the right citizen of the country with an
unique number is the main function of the PASSPORT AUTHORITY
(External Affairs). To avoid the tedious job of the administrators the whole
system is being automated.
9
SYSTEM DEFINITION
At first, the applicant is given the application form. The
applicant returns the application duly filled up with all the details. After
returning the application the administrator awards with a file number to that
applicant. This file number plays the major role in the entire administrative
procedure.
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.
Next section consists entirely of validating all the details like
police records, validation of the amount paid, previous applied and submission
of all the documents including the photos. Only if the concerned departments
correctly approve all the reports then the file is sent to the passport writing
section. Then the passport writing is done and dispatched. Also an ability of 10
the applicant to enquire about the status of his application can be known
through the enquiry section.
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.
> SUBMITTING PERSONAL INFORMATION
The input, process and output of this function are :
INPUT : Personal information form is filled with all details
PROCESS : These values are stored in the database
OUTPUT : A message confirmation stating the submission of information is
seen.
> SUBMITTING ADDRESS DETAILS
11
The input, process and output of this function are :
INPUT : Address Details form is filled with all details
PROCESS : These values are stored in the database
OUTPUT : A message confirmation stating the submission of Address Details
is seen.
> SUBMITTING PHYSICAL PARTICULARS
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.
> SUBMITTING EDUCATIONAL QUALIFICATIONS
The input, process and output of this function are :
INPUT : Educational Qualifications form is filled with all details
PROCESS : These values are stored in the database
OUTPUT : A message confirmation stating the submission of Educational
Qualifications is seen.
> SUBMITTING DOCUMENTS ENCLOSED
The input, process and output of this function are :
INPUT : Documents Enclosed form is filled with all details
PROCESS : These values are checked for conformation and stored in the
database
OUTPUT : A message confirmation stating the submission of documents
enclosed is seen.12
> SUBMITTING FEE DETAILS
The input, process and output of this function are :
INPUT : Fee Details information form is filled with all details
PROCESS : These values are checked for accuracy and then stored in the
database
OUTPUT : A message confirmation stating the submission of fee details is
seen.
> SUBMITTING POLICE INFORMATION
The input, process and output of this function are :
INPUT : Police Records 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 police
information is seen.
> SUBMITTING PREVIOUS APPLIED
The input, process and output of this function are :
INPUT : Previous Applied 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 Previous
Applied 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 details13
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 :
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.
> UPTO DATE REPORT
The input, process and output of this function are :
INPUT : The DATE from which the needed details is being given.
PROCESS : All the passport holders until the system date are checked in the
database.
OUTPUT : A report stating all the details of the passport holders is submitted.
>INVALID DATA REPORT
The input, process and output of this function are :14
INPUT : The file number is given in the form.
PROCESS : Whenever the data is found to be insufficient then that particular
record is searched.
OUTPUT : A report stating all the details of the file number holder is
submitted.
4.SYSTEM DESIGN
DATA FLOW DIAGRAMS
DETIALSFILE NO
DETAILS
15
APPLICATIONAPPLICANT
EXISTING APPLICANT
SUBMIT APPLICATION
DFD FOR EXISTING APPLICATION
FILE NO ENQUIRY
CONFOR.
DETAILSDETAILS
DETAILS DETAILS
16
EXISTING APPLICATION
APPLICANT WITH DETAILS
PERSONAL DETAILS
ADDRESS DETAILS
EDU. QUALIF.PHYSICAL DETAILS
SUBMIT INFORMATION
DFD FOR ADMINISTRATION
FILE NO CONFOR.
17
CHECKING RECORDS
EXISTING APPLICANT
DOCUMENTS CHECKED APLLICATION
ECNR
POLICE RECORDS
DOCUMENTS ENCLOSED
FEE PARTICULARS
PREVIOUS APPLIED
DFD FOR ENQUIRY
FILE NO DETAILS
FILE NODETAILS
18
USER USER WITH DETAILS
CHECK FOR THE RECORD
ENQUIRY
DATABASEDESIGN
ADDRESS DETAILS
NAME OF FIELD DATA TYPE WIDTH
FILENO TEXT 10
PERMANENT
ADDRESS
TEXT 50
CITY TEXT 15
STATE TEXT 15
ZIPCODE NUMBER 7
PHONENO NUMBER 12
POLICESTATION TEXT 20
POSTOFFICE TEXT 20
DOCUMENTS ENCLOSED
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
7PHOTOS TEXT 5
PLACEOFBIRTH TEXT 20
CITIZENSHIPDOCUMENT TEXT 15
19
APPLICATION FORM
NAME OF FIELD DATATYPE WIDTH
APPLICATIONNO TEXT 10
CATEGORY TEXT 15
APPLICANTNAME TEXT 25
PLACEOFBIRTH TEXT 20
DATEOFBIRTH DATE/TIME 10
AGE NUMBER 2
NATIONALITY TEXT 10
SEX TEXT 1
PRESENTADDRESS TEXT 50
PERMANENTADDRESS TEXT 50
PHONENO NUMBER 12
FILENO TEXT 10
OLD TEXT 10
PREVIOUS APPLIED
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
20
PHYSICAL PARTICULARS
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
HEIGHT NUMBER 5
WEIGHT NUMBER 5
COLOROFEYES TEXT 10
COLOROFHAIR TEXT 10
IDENTIFICATIONMARK TEXT 50
CONFIRMATION
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
21
DISPATCH
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
SPEEDPOSTNO NUMBER 15
DISPATCHDATE DATE/TIME 12
DELIVEREDADDRESS TEXT 50
CITY TEXT 20
STATE TEXT 15
ZIPCODE TEXT 7
EDUCATIONAL QUALIFICATION
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
QUALIFICATION TEXT 20
YEAROFPASSING TEXT 20
UNIVERSITY TEXT 30
22
EMMIGRATION CHECK
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 5
GO TEXT 5
DEGREE TEXT 5
ITPAYEE TEXT 5
PIV TEXT 5
DAO TEXT 5
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
23
FEE PARTICULARS
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
MODEOFPAYMENT TEXT 7
AMOUNTPAID NUMBER 4
VALID TEXT 5
PERSONAL INFORMATION
NAME OF FIELD DATATYPE WIDTH
FILENO TEXT 15
APPLICANTNAME TEXT 30
FATHERNAME TEXT 30
MOTHERNAME TEXT 30
SPOUSENAME TEXT 30
PLACEOFBIRTH TEXT 20
SEX TEXT 2
DATEOFBIRTH DATE/TIME 15
AGE NUMBER 2
NATIONALITY TEXT 10
24
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
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
25
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
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 = Now26
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
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)27
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
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