Anda di halaman 1dari 11

EXNO:1 PASSPORT AUTOMATION SYSTEM

PROBLEM STATEMENT

This project is used for passport generation. Display the application form to the user. If
the user needs to renew the passport then additional information about the old passport is
required. Else the user is considered to be a new applicant. Get the filed in application form from
the user. Check whether the attached verification documents are valid. If valid, then process the
application for passport generation. During the processing of the passport the status of the
application can be checked with application number. The status displays the expected date of
issue of the passport and the current processing information.

DATABASE DESIGN

APPLICATION TABLE

ISSUE TABLE
PASSPORT AUTOMATION SYSTEM

USE CASE DIAGRAM

apply for passport

furnish details

store details in db
applicant
administrator

receive application number

check the details

issue passport

CLASS DIAGRAM
SEQUENCE DIAGRAM

applicant passport office administrator

apply for passport

furnish details

details to be verified

verification

receive application number

issue passport
ACTIVITY DIAGRAM

apply for
passport

applied
applicant no

furnish
details

check details

incorrect

deny issue
passport passport

COMPONENT DIAGRAM

passport admin
office

DEPLOYMENT DIAGRAM

admin passpor
t office
LAYERED ARCHITECTURE DIAGRAM

ui layer

police form
application form verfication form

regional
administra...

domain layer

applicant passport police


administrator

regional
administrator
technical layer

database
MODULE
Private Sub mApply_Click()
Form1.Show
End Sub

Private Sub MDIForm_Load()


db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\CaseTools\passport\passport.mdb;Persist Security Info=False"
db.Open
End Sub

Private Sub mIssue_Click()


Form3.Show
End Sub

Private Sub mRenew_Click()


Form4.Show
End Sub

Private Sub mVerify_Click()


Form2.Show
End Sub

FORM1 (APPLICATION)
Private Sub cmdAddr_Click()
CommonDialog1.ShowOpen
txtAddr.Text = CommonDialog1.FileName
End Sub

Private Sub cmdApply_Click()


db.Execute ("insert into
Apply(PAN,ANAME,FNAME,DOB,AGE,CADDR,PADDR,REF1,REF1ADDR,REF2,REF2A
DDR,QUAL,STATUS)values(" & txtPan & ",'" & txtName & "','" & txtFather & "','" & txtDob
& "'," & txtAge & ",'" & txtCAddr & "','" & txtPAddr & "','" & txtRef1 & "','" & txtRA1 & "','"
& txtRef2 & "','" & txtRA2 & "','" & txtQual & "','APPLIED')")
MsgBox ("Application Successful")
End Sub

Private Sub cmdCancel_Click()


Unload Me
End Sub

Private Sub cmdQual_Click()


CommonDialog1.ShowOpen
txtPQual.Text = CommonDialog1.FileName
End Sub

FORM2 (VERIFICATION)
Private Sub cmdOk_Click()
query = "select * from Apply where APPLN= " &Val(txtAppln.Text) & ""
Set rs = db.Execute(query)
txtName.Text = rs("ANAME")
If Not rs.EOF Then
txtAppln.Text = rs(0)
rs.Close
End If
End Sub

Private Sub cmdVerify_Click()


If Check1.Value = 1 Then
If Check2.Value = 1 Then
If Check3.Value = 1 Then
db.Execute ("update Apply set STATUS='VERIFIED' where APPLN= " & txtAppln.Text & "")
MsgBox ("Verification processed")
End If
End If
End If
End Sub

FORM3 (ISSUE)
Private Sub cmdIssue_Click()
renewdate = DateAdd("YYYY", 5, Date)
db.Execute ("insert into
Issue(APPLN,ANAME,PASSPORTNO,MODE,ISSUEDATE,RENEWDATE) values (" &
txtAppln.Text & ",'" & txtName.Text & "'," & txtPass.Text & " , '" & cmbMode.Text & "', '" &
Date & "', '" & renewdate & "')")
db.Execute ("update Apply set STATUS='ISSUED' where APPLN= " & txtAppln.Text & "")
MsgBox ("Passport Issued")
End Sub
Private Sub cmdOk_Click()
query = "select * from Apply where APPLN= " &Val(txtAppln.Text) & ""
Set rs = db.Execute(query)
txtName.Text = rs("ANAME")
If Not rs.EOF Then
txtAppln.Text = rs(0)
rs.Close
End If
End Sub

FORM4 (RENEWAL)
Private Sub cmdIssue_Click()
query = "update Issue set RENEWDATE='" & txtRenew & "' where PASSPORTNO=" &
txtPass & ""
Set rs = db.Execute(query)
End Sub

Private Sub cmdOk_Click()


query = "select * from Issue where PASSPORTNO= " &Val(txtPass.Text) & ""
Set rs = db.Execute(query)
txtName.Text = rs("ANAME")
txtExp = rs("RENEWDATE")
txtRenew = DateAdd("YYYY", 5, rs("RENEWDATE"))
MsgBox ("Renewed")
End Sub

OUTPUT
MDI FORM
FORM1 (APPLICATION)

FORM2 (VERIFICATION)

FORM3 (ISSUE)
FORM4 (RENEWAL)

RESULT:

Anda mungkin juga menyukai