Professional Documents
Culture Documents
PROBLEM STATEMENT
The Exam registration system should have the features to entering the details of the
applicant, selecting the date, centre and then registration. The new applicant will be registered
with the system by giving his personalinformation and the required attachments. The applicant
will be given a unique identification number. The various verification will be done and the status
of application will be changed to verify.The facility to select the centre of the examination will
also be given and the date and time will be automatically generated by the system.
DATABASE DESIGN:
EXAM REGISTRATION SYSTEM
USECASE DIAGRAM
login
application
select date
registration
CLASS DIAGRAM
ACTIVITY DIAGRAM
get details
checks validity
and eligibility
register
issue registration id
and hall ticket no
COMPONENT DIAGRAM
DEPLOYMENT DAIGRAM
UI layer
Technical layer
db
]
SEQUENCE DIAGRAM
6: register
7: issue registration id
9: update database
MODULE:
Global db As New ADODB.Connection
Global rs As New ADODB.Recordset
Global rs1 As New ADODB.Recordset
Global applicantid As String
MDI FORM:
Private Sub menulogin_Click()
Form1.Show
End Sub
FORM 1:
Private Sub cmdcancel_Click()
Unload Me
End Sub
Private Sub Cmdlogin_Click()
query = "select * from login where applicantid='" & txtusername.Text & "'and password='" &
txtpassword.Text & "'"
Set rs = db.Execute(query)
If Not rs.EOF Then
applicantid = rs(0)
rs.Close
Form2.Show
Else
MsgBox ("invalid user name or password")
txtusername.SetFocus
End If
End Sub
Private Sub Form_Load()
db.ConnectionString = "provider=microsoft.jet.OLEDB.4.0;Data Source=Z:\exam1.mdb;persist Security
Info=False"
db.Open
End Sub
FORM 2:
Private Sub cmdcancel_Click()
End
End Sub
Private Sub Cmdselectcentre_Click()
Form3.Show
End Sub
Private Sub Form_Load()
DisplayDetails
LockBOxes
End Sub
Public Sub DisplayDetails()
Dim query As String
query = "select * from applicantinfo where applicantid='" & applicantid & "'"
Set rs = db.Execute(query)
txtdateofexam = IIf(IsNull(rs("dateofexam")), "", rs("dateofexam"))
txtcentreofexam = IIf(IsNull(rs("centreofexam")), "", rs("centreofexam"))
txtdob = rs("dob")
txtemail = rs("email")
txteducationalqualification = rs("educationalqualification")
txtname = rs("name")
txtphoneno = rs("phoneno")
txtapplicantid = rs("applicantid")
rs.Close
End Sub
Public Sub LockBOxes()
txtdateofexam.Locked = True
txtcentreofexam.Locked = True
txtdob.Locked = True
txtemail.Locked = True
txteducationalqualification.Locked = True
txtname.Locked = True
txtphoneno.Locked = True
txtapplicantid.Locked = True
End Sub
FORM 3:
Dim centreofexam As String
Dim dateofexam As String
Private Sub loadcentreofexam()
Dim query As String
query = "select * from centreofexam"
Set rs = db.Execute(query)
While Not rs.EOF
Lstcentreofexam.AddItem (rs(0))
rs.MoveNext
Wend
rs.Close
End Sub
Private Sub loaddateofexam()
Dim query As String
Lstdateofexam.Clear
query = "select *from dateofexam where centreofexam='" & centreofexam & "'"
Set rs = db.Execute(query)
While Not rs.EOF
Lstdateofexam.AddItem (rs(1))
rs.MoveNext
Wend
rs.Close
End Sub
Private Sub Cmdregister_Click()
query = "select * from applicantinfo where applicantid='" & applicantid & "'"
Set rs = db.Execute(query)
query = "update applicantinfo set centreofexam='" & centreofexam & "'and dateofexam= '" &
dateofexam & "'where applicantid='" & applicantid & "'"
Set rs1 = db.Execute(query)
MsgBox ("you are registered")
End Sub
Private Sub Form_Load()
loadcentreofexam
End Sub
Private Sub Lstdateofexam_Click()
Dim i As Integer
i = Lstdateofexam.ListIndex
dateofexam = Lstdateofexam.List(i)
DispdateDetails
End Sub
Private Sub Lstcentreofexam_Click()
Dim i As Integer
i = Lstcentreofexam.ListIndex
centreofexam = Lstcentreofexam.List(i)
loaddateofexam
End Sub
Private Sub DispdateDetails()
query = "select * from dateofexam where centreofexam='" & centreofexam & "'and dateofexam ='" &
dateofexam & "'"
Set rs1 = db.Execute(query)
txtadd.Text = rs1("addressofexaminationcentre")
txttime = rs1("time")
rs1.Close
End Sub
MDI FORM: