Passport Automation System F
Passport Automation System F
AIM:
To create an automated system to perform the Passport Process
Passport Automation System is used in the effective dispatch of passport to all of the
applicants. This system adopts a comprehensive approach to minimize the manual work and
schedule resources, time in a cogent manner. The core of the system is to get the online
registration form (with details such as name, address etc.,) filled by the applicant whose
testament is verified for its genuineness by the Passport Automation System with respect to
the already existing information in the database. This forms the first and foremost step in the
processing of passport application. After the first round of verification done by the system,
the information is in turn forwarded to the regional administrator's (Ministry of External
Affairs) office. The application is then processed manually based on the report given by the
system, and any forfeiting identified can make the applicant liable to penalty as per the law.
The system also provides the applicant the list of available dates for appointment to
'document verification' in the administrator's office, from which they can select one. The
system forwards the necessary details to the police for its separate verification whose report is
then presented to the administrator. The administrator will be provided with an option to
display the current status of application to the applicant, which they can view in their online
interface. After all the necessary criteria have been met, the original information is added to
the database and the passport is sent to the applicant.
1.0 INTRODUCTION
1.1 PURPOSE
If the entire process of 'Issue of Passport' is done in a manual manner then it would
takes several months for the passport to reach the applicant. Considering the fact that the
number of applicants for passport is increasing every year, an Automated System becomes
essential to meet the demand. So this system uses several programming and database
techniques to elucidate the work involved in this process. As this is a matter of National
Security, the system has been carefully verified and validated in order to satisfy it.
1.2 SCOPE
▪ The System provides an online interface to the user where they can fill in their personal
details and submit the necessary documents (may be by scanning).
▪ The authority concerned with the issue of passport can use this system to reduce his
workload and process the application in a speedy manner.
▪ Provide a communication platform between the applicant and the administrator.
▪ Transfer of data between the Passport Issuing Authority and the Local Police for
verification of applicant's information.
▪ Users/Applicants will come to know their status of application and the date in which
they must subject themselves for manual document verification.
1.3 DEFINITIONS, ACRONYMS AND THE ABBREVIATIONS
▪ Administrator
Refers to the super user who is the Central Authority with the privilege to manage the
entire system. It can be any higher official in the Regional Passport Office of Ministry of
External Affairs.
▪ Applicant
One who wishes to obtain the Passport.
▪ PAS
Refers to this Passport Automation System.
▪ HTML
Markup Language used for creating web pages.
▪ J2EE
Java 2 Enterprise Edition is a programming platform java platform for developing and
running distributed java applications.
▪ HTTP
Hyper Text Transfer Protocol.
▪ TCP/IP
Transmission Control Protocol/Internet Protocol is the communication protocol used to
connect hosts on the Internet.
1.7 OVERVIEW
SRS includes two sections overall description and specific requirements.
Overall Description will describe major role of the system components and inter
connections.
Specific Requirements will describe roles & functions of the actors.
2.6 CONSTRAINTS
▪ The applicants require a computer to submit their information.
▪ Although the security is given high importance, there is always a chance of intrusion in
the web world which requires constant monitoring.
▪ The user has to be careful while submitting the information. Much care is required.
ACTORS INVOLVED:
1. Applicant
2. Passport Officer
3. Police
The class diagram is referred as object modeling in the static analysis diagram. The main task
of object modeling is to graphically show what each object will do in the problem domain.
The problem domain describes the structure and the relationships among objects. The Passport
Automation system class diagram consists of five classes
1. Login class
2. Appointment class
3. Registration class
4. Authority class
5. Verification class
1) LOGIN CLASS:
It consists of two attributes and two operations. The attributes are user name, and
password. The operations of this class are creating login ( ), sign in ( ).
2) APPOINMENT CLASS:
The attributes of this class are appointment id, applicant id, date, time, and
description. The operation of this class are get appointment ( ), get appointment status ( ),
Modify ( ), cancel ( ).
3) REGISTRATION CLASS:
The attributes are applicant id, name, dob, gender, birthplace, father name, addr1,
addr2, district, state, country, pin code, mobile, email id, qualification. The operation are add
( ), modify ( ), view ( ).
4) AUTHORITY CLASS:
The attributes of this class are officered, name, designation, and password. The
operations are search ( ).
5) VERIFICATION CLASS:
The attributes of this class are verification id, appointment id, applicant id, officer id,
status id, description. The operation are verify ( ).
Fig.5.CLASS DIAGRAM FOR PASSPORT AUTOMATION SYSTEM
▪ Most object to object interactions and operations are considered events and events
include signals, inputs, decisions, interrupts, transitions and actions to or from users or
external devices.
▪ An event also is considered to be any action by an object that sends information.
▪ The event line represents a message sent from one object to another, in which the
“form” object is requesting an operation be performed by the “to” object. The “to” object
performs the operation using a method that the class contains.
▪ It is also represented by the order in which things occur and how the objects in the
system send message to one another.
▪ The sequence diagram for each USE-CASE that exists when a user administrator, check
status and new registration about passport automation system are given.
Fig.6.1.SEQUENCE DIAGRAM FOR LOGIN AND VERIFICATION
▪ The diagrams show the process done by the Passport Authority to the Passport Automation
system. The applicant has to enter his details.
▪ The details entered are verified by the Passport Authority and the applicant is approved if
the details match then the passport is dispatch, otherwise an appropriate error message is
displayed.
Deployment diagrams are used to visualize the topology of the physical components of a
system where the software components are deployed.
SOURCE CODE:
FORM1
Private Sub Command1_Click()
Dim app As Applicant
Set app = New Applicant
app.Login
End Sub
Private Sub Command2_Click()
Dim pass As PassportAdministrator
Set pass = New PassportAdministrator
pass.Login
End Sub
Private Sub Command3_Click()
Dim reg As RegionalAdminstrator
Set reg = New RegionalAdminstrator
reg.Login
End Sub
Private Sub Command4_Click()
Dim pol As Police
Set pol = New Police
pol.Login
End Sub
Private Sub Command5_Click()
If Form1.Text1.Text = "" And Form1.Text2.Text = "" Then
MsgBox "LOGIN SUCCESSFUL"
Form6.Show
Else
MsgBox "INVALID USERNAME AND PASSWORD"
Unload Me
End If
End Sub
Private Sub Command6_Click()
End
End Sub
FORM2:
Private Sub Command1_Click()
Dim subdetails As Applicant
Set subdetails = New Applicant
subdetails.SubmitDetails
End Sub
Private Sub Command3_Click()
Data1.Recordset.Edit
End Sub
Private Sub Command4_Click()
Data1.Recordset.update
End Sub
Private Sub Form_Load()
Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""
Text5.Text = ""
Text6.Text = ""
Text7.Text = ""
Text8.Text = ""
End Sub
FORM3:
Private Sub a_Click()
Data2.Recordset.AddNew
End Sub
Private Sub Command1_Click()
Dim search As PassportAdministrator
Set search = New PassportAdministrator
search.update
End Sub
Private Sub Command2_Click()
If Data1.Recordset.BOF Then
MsgBox "NO DATA FOUND"
Else
Data1.Recordset.MovePrevious
End If
End Sub
Private Sub Command3_Click()
If Data1.Recordset.EOF Then
MsgBox "NO DATA FOUND"
Else
Data1.Recordset.MoveNext
End If
End Sub
Private Sub Command4_Click()
Form1.Show
Unload Me
End Sub
Private Sub Command5_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub Command6_Click()
Data1.Recordset.MoveLast
End Sub
Private Sub Command7_Click()
Data1.Recordset.Edit
Data1.Recordset.Fields(9) = "successful"
Data1.Recordset.update
End Sub
Private Sub Command8_Click()
Data1.Recordset.Edit
Data1.Recordset.Fields(9) = "unsuccessful"
Data1.Recordset.update
End Sub
Private Sub ve_Click()
Dim verify As PassportAdministrator
Set verify = New PassportAdministrator
verify.update
End Sub
FORM4:
Private Sub Command1_Click()
Dim search As RegionalAdminstrator
Set search = New RegionalAdminstrator
search.verify
End Sub
Private Sub Command2_Click()
Data1.Recordset.Edit
Data1.Recordset.Fields(10) = "successful"
Data1.Recordset.update
End Sub
Private Sub Command3_Click()
Data1.Recordset.Edit
Data1.Recordset.Fields(10) = "unsuccessful"
Data1.Recordset.update
End Sub
Private Sub Command4_Click()
Form1.Show
Unload Me
End Sub
Private Sub Command5_Click()
Dim update As RegionalAdminstrator
Set update = New RegionalAdminstrator
update.update
End Sub
Private Sub Command6_Click()
Data1.Recordset.MoveLast
End Sub
Private Sub Command7_Click()
Data1.Recordset.MoveFirst
End Sub
Private Sub Command8_Click()
If Data1.Recordset.BOF Then
MsgBox "NO DATA FOUND"
Else
Data1.Recordset.MovePrevious
End If
End Sub
Private Sub Command9_Click()
If Data1.Recordset.EOF Then
MsgBox "NO DATA FOUND"
Else
Data1.Recordset.MoveNext
End If
End Sub
FORM5:
Private Sub Command1_Click()
Dim search As Police
Set search = New Police
search.verify
End Sub
Private Sub Command2_Click()
Data2.Recordset.Edit
Data2.Recordset.Fields(11) = "successful"
Data2.Recordset.update
End Sub
Private Sub Command3_Click()
Data2.Recordset.Edit
Data2.Recordset.Fields(11) = "unsuccessful"
Data2.Recordset.update
End Sub
Private Sub Command4_Click()
Form1.Show
Unload Me
End Sub
Private Sub Command6_Click()
Data2.Recordset.MoveLast
End Sub
Private Sub Command7_Click()
Data2.Recordset.MoveFirst
End Sub
Private Sub Command8_Click()
If Data2.Recordset.BOF Then
MsgBox "NO DATA FOUND"
Else
Data2.Recordset.MovePrevious
End If
End Sub
Private Sub Command9_Click()
If Data2.Recordset.EOF Then
MsgBox "NO DATA FOUND"
Else
Data2.Recordset.MoveNext
End If
End Sub
FORM6:
Private Sub Command1_Click()
Dim checkstate As Applicant
Set checkstate = New Applicant
checkstate.CheckStatus
End Sub
Private Sub Command2_Click()
Form1.Show
Unload Me
End Sub
UML CODINGS:
APPLICANT:
Option Explicit
'##ModelId=4D7521E80271
Private Name As Variant
'##ModelId=4D7521EE02CE
Private FatherName As Variant
'##ModelId=4D7521F3009C
Private DateOfBirth As Variant
'##ModelId=4D75220B01A5
Private PermanentAddress As Variant
'##ModelId=4D752220033C
Private TemporaryAddress As Variant
'##ModelId=4D75224101E4
Private EmailID As Variant
'##ModelId=4D75224701E4
Private PhoneNumber As Variant
'##ModelId=4D75224E031C
Private PanNo As Variant
'##ModelId=4D7522590242
Private ApplicationNo As Variant
'##ModelId=4D75225D038A
Private UserName As Variant
'##ModelId=4D75226300CB
Private Password As Variant
'##ModelId=4D7523300271
Public NewProperty As Database
'##ModelId=4D7522690109
Public Sub Login()
If Form1.Text1.Text = "" And Form1.Text2.Text = "" Then
MsgBox "LOGIN SUCCESSFUL"
Form2.Show
Else
MsgBox "INVALID USERNAME AND PASSWORD"
Unload Me
End If
End Sub
'##ModelId=4D752271032C
Public Sub SubmitDetails()
Dim ap As Integer
Form1.Data1.Recordset.MoveLast
ap = Data1.Recordset.Fields(0)
Data1.Recordset.AddNew
ap = ap + 1
Form1.Data1.Recordset.Fields(0) = ap
Form1.Data1.Recordset.Fields(1) = Text1.Text
Form1.Data1.Recordset.Fields(2) = Text2.Text
Form1.Data1.Recordset.Fields(3) = Text3.Text
Form1.Data1.Recordset.Fields(4) = Text4.Text
Form1.Data1.Recordset.Fields(5) = Text5.Text
Form1.Data1.Recordset.Fields(6) = Text6.Text
Form1.Data1.Recordset.Fields(7) = Text7.Text
Form1.Data1.Recordset.Fields(8) = Text8.Text
Form1.Data1.Recordset.Fields(9) = "Under Process"
Form1.Data1.Recordset.Fields(10) = "Under Process"
Form1.Data1.Recordset.Fields(11) = "Under Process"
Form1.Data1.Recordset.update
Form1.Show
Unload Me
End Sub
'##ModelId=4D7522760261
Public Sub CheckStatus()
Dim Currentdb As Database
Set Currentdb = OpenDatabase("D:\PASSPORTPROJECT1\PASSPORT.mdb")
Dim Data As Recordset
Set Data = Currentdb.OpenRecordset("applicant", dbOpenDynaset)
Data.FindFirst "([ApplicationNo])=" & Form6.Text1.Text
If Data.NoMatch Then
MsgBox "No such record"
Else
MsgBox "success"
Form6.Text1.Text = Data.Fields(0)
Form6.Label5 = Data.Fields(1)
Form6.Label7 = Data.Fields(9)
Form6.label9 = Data.Fields(10)
Form6.Label11 = Data.Fields(11)
End If
Data.Close
End Sub
DATA BASE:
Option Explicit
'##ModelId=4D7522A30222
Private Name As Variant
'##ModelId=4D75233C005D
Public NewProperty As PassportAdministrator
'##ModelId=4D75233E006D
Public NewProperty2 As RegionalAdminstrator
'##ModelId=4D75234202BF
Public NewProperty3 As Police
'##ModelId=4D7522A50186
Public Sub store()
End Sub
PASSPORT ADMINSTRATOR:
Option Explicit
'##ModelId=4D7522A90128
Private UserName As Variant
'##ModelId=4D7522F9035B
Private Password As Variant
'##ModelId=4D7522B20232
Public Sub Login()
If Form1.Text1.Text = "passadmin" And Form1.Text2.Text = "12345" Then
MsgBox "LOGIN SUCCESSFUL"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
Form3.Show
Else
MsgBox "INVALID USERNAME OR PASSWORD"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
End If
End Sub
'##ModelId=4D7522BA004E
Public Sub verify()
Set Currentdb = OpenDatabase("D:\PASSPORTPROJECT1\passport.mdb")
Dim Data As Recordset
Set Data = Currentdb.OpenRecordset("PassportAdministrator", dbOpenDynaset)
If Form3.Text1.Text = "" Then
MsgBox "select any data"
Else
Data.FindFirst "([PanNo])=" & Form3.Text1.Text
If Data.NoMatch Then
MsgBox "No such record"
Else
MsgBox "success"
Form3.Text7.Text = Data.Fields(1)
Form3.Text8.Text = Data.Fields(2)
End If
End If
End Sub
'##ModelId=4D7522BF01D4
Public Sub update()
If Form3.Text2.Text = Form3.Text7.Text And Form3.Text3.Text = Form3.Text8.Text Then
Form3.Data1.Recordset.Edit
Form3.Data1.Recordset.Fields(9) = "successful"
Form3.Data1.Recordset.update
MsgBox "success"
Else
MsgBox "no "
Form3.Text7.Text = ""
Form3.Text8.Text = ""
End If
End Sub
POLICE:
Option Explicit
'##ModelId=4D7522E1001F
Private UserName As Variant
'##ModelId=4D75232601D4
Private Password As Variant
'##ModelId=4D7522E30251
Public Sub Login()
If Form1.Text1.Text = "poladmin" And Form1.Text2.Text = "12345" Then
MsgBox "LOGIN SUCCESSFUL"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
Form5.Show
Else
MsgBox "INVALID USERNAME OR PASSWORD"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
End If
End Sub
'##ModelId=4D7522E8008C
Public Sub verify()
Dim Currentdb As Database
Set Currentdb = OpenDatabase("D:\PASSPORTPROJECT1\passport.mdb")
Dim Data As Recordset
Set Data = Currentdb.OpenRecordset("Police", dbOpenDynaset)
If Form5.Text1.Text = "" Then
MsgBox "select any data"
Else
Data.FindFirst "([PanNo])=" & Form5.Text1.Text
If Data.NoMatch Then
MsgBox "No such record"
Else
MsgBox "success"
If Data.Fields(5) = "Notallowed" Then
MsgBox "not allowed"
Else
MsgBox "allowed"
End If
End If
End If
Data.Close
End Sub
'##ModelId=4D7522EA02BF
Public Sub update()
End Sub
REGIONAL ADMINSTRATOR:
Option Explicit
'##ModelId=4D7522C80222
Private UserName As Variant
'##ModelId=4D75231A0109
Private Password As Variant
'##ModelId=4D7522CB02CE
Public Sub Login()
If Form1.Text1.Text = "regadmin" And Form1.Text2.Text = "12345" Then
MsgBox "LOGIN SUCCESSFUL"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
Form4.Show
Else
MsgBox "INVALID USERNAME OR PASSWORD"
Form1.Text1.Text = ""
Form1.Text2.Text = ""
Form1.Text1.SetFocus
End If
End Sub
'##ModelId=4D7522CE01A5
Public Sub verify()
Dim Currentdb As Database
Set Currentdb = OpenDatabase("D:\PASSPORTPROJECT1\passport.mdb")
Dim Data As Recordset
Set Data = Currentdb.OpenRecordset("RegionalAdminstrator", dbOpenDynaset)
If Form4.Text1.Text = "" Then
MsgBox "select any data"
Else
Data.FindFirst "([PanNo])=" & Form4.Text1.Text
If Data.NoMatch Then
MsgBox "No such record"
Else
MsgBox "success"
Form4.Text6.Text = Data.Fields(1)
Form4.Text7.Text = Data.Fields(2)
Form4.Text8.Text = Data.Fields(3)
Form4.Text9.Text = Data.Fields(4)
End If
End If
End Sub
'##ModelId=4D7522D002BF
Public Sub update()
If Form4.Text2.Text = Text6.Text And Form4.Text3.Text = Form4.Text7.Text And
Form4.Text4.Text = Form4.Text8.Text And Form4.Text5.Text = Form4.Text9.Text Then
MsgBox "Details match"
Else
MsgBox "Details donot match"
End If
End Sub
OUTPUT:
FORM 1
FORM 2
FORM 3
FORM 4
FORM 5
FORM 6
FORM 7
CONCLUSION:
Thus the above mini project for Passport Automation System the
application registered successfully completed.