Sie sind auf Seite 1von 10

EXNO: 3 EXAM REGISTRATION SYSTEM

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

student select centre database

select date

registration

CLASS DIAGRAM
ACTIVITY DIAGRAM

enter the username


and password

valid login display error


message

get details

checks validity
and eligibility

register

issue registration id
and hall ticket no

COMPONENT DIAGRAM

exam registration database


system
STATECHART DIAGRAM

login details register validity issue

DEPLOYMENT DAIGRAM

exam system database

LAYERED ARCHITECTURE DIAGRAM

UI layer

login details registration


Domain layer

application login details validity register

Technical layer

db

]
SEQUENCE DIAGRAM

STUDENT GUI DATABASE

1: enter details login

2: valid details searched

3: get username and password

4: invalid display msg

5: selected details displayed

6: register

7: issue registration id

8: issue hall ticket no

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:

Das könnte Ihnen auch gefallen