Você está na página 1de 10

EXNO: 5 ONLINE COURSE RESERVATION SYSTEM

PROBLEM STATEMENT:

It gives the description about the course and the colleges. The system gives the overall status of the course
available in all college and also it helps to check the availability of the course in a particular college. If
the user wants to register the course, an account is required. Depending on the availability of course, the
user can reserve their required course. For reservation, the user details like name,percentage,mail id,phone
no,address are needed. And also the system checks for the eligibility which depends on the percentage
obtained by the student. It follows some criteria. If the criteria are not satisfied, the reservation is not
possible and it displays them as a non-eligible candidate. After reserving the course register number is
displayed to confirm the details of the student.

DATA BASE DESIGN


Login Table

Course Table

College Table

Student Details Table


ONLINE COURSE RESERVATION SYSTEM

USECASE DIAGRAM:

log in

course selection

student

registration

CLASS DIAGRAM:
ACTIVITY DIAGRAM:

enter username
and password

valid login?

get details of the


student

display error
select course message
and college

register
STATE CHART DIAGRAM:

log in

fill form

give proof

select course

submit

verify

issue allotment
order
COMPONENT DIAGRAM:

candidat admin
e

data verifier
base

DEPLOYMENT DIAGRAM:

online
cou...

candidat verifier databas


admin e
e
LAYERED ARCHITECTURE DIAGRAM:

ui layer

login form student details course details


form

domain layer

details course register

technical layer

database
CLASS MODULE

Global db As New ADODB.Connection


Global rs As New ADODB.Recordset
Global StudentId As String

FORM 1
Private Sub cmdcancel_Click()
Unload Me
End Sub

Private Sub CmdLogin_Click()


query = "select * from Login where studentid='" & TxtUser.Text & "' and password='" & TxtPass.Text & "'"
Set rs = db.Execute(query)
If Not rs.EOF Then
'If (rs.RecordCount>0) Then
StudentId = rs(0)
rs.Close
Form2.Show
Else
MsgBox ("Invalid Username or Password")
TxtUser.SetFocus
End If
End Sub
Private Sub Form_Load()
db.ConnectionString = "Provider=Microsoft.Jet.OLEDB.4.0;Data
Source=Z:\SE\Ex2\CourseReg.mdb;Persist Security Info=False"
db.Open
End Sub

FORM 2
Private Sub cmdExit_Click()
End
End Sub

Private Sub cmdSelect_Click()


Form3.Show
End Sub

Private Sub Form_Load()


DisplayDetails
LockBoxes
End Sub

Public Sub DisplayDetails()


Dim query As String
query = "select * from studentInfo where studentid= '" & StudentId & "'"
Set rs = db.Execute(query)
TxtCollege = IIf(IsNull(rs("collegeselected")), "", rs("collegeselected"))
TxtCourse = IIf(IsNull(rs("courseselected")), "", rs("courseselected"))
TxtDoB = rs("dob")
TxtEmail = rs("email")
TxtMarks = rs("marks")
txtname = rs("name")
TxtPhoneNo = rs("phoneno")
TxtStudentId = rs("studentId")
rs.Close
End Sub

Public Sub LockBoxes()


TxtCollege.Locked = True
TxtCourse.Locked = True
TxtDoB.Locked = True
TxtEmail.Locked = True
TxtMarks.Locked = True
txtname.Locked = True
TxtPhoneNo.Locked = True
TxtStudentId.Locked = True
End Sub

FORM 3

Dim course As String


Dim college As String
Public Sub loadcourse()
Dim query As String
query = "select * from course"
Set rs = db.Execute(query)
While Not rs.EOF
LstCourse.AddItem (rs(0))
rs.MoveNext
Wend
rs.Close
End Sub

Public Sub LoadCollege()


Dim query As String
LstCollege.Clear
query = "select * from college where course= '" & course & "'"
Set rs = db.Execute(query)
While Not rs.EOF
LstCollege.AddItem (rs(0))
rs.MoveNext
Wend
rs.Close
End Sub

Private Sub cmdExit_Click()


End
End Sub
Private Sub CmdRegister_Click()
query = "select * from studentInfo where StudentId= '" & StudentId & "'"
Set rs = db.Execute(query)
query = "update studentInfo set CourseSelected= '" & course & "' and CollegeSelected='" & college & "'
where StudentId= '" & StudentId & "'"
Set rs = db.Execute(query)
MsgBox ("You are registered")
End Sub

Private Sub Form_Load()


loadcourse
End Sub

Private Sub LstCollege_Click()


Dim i As Integer
i = LstCollege.ListIndex
college = LstCollege.List(i)
DispCollDetails
End Sub

Private Sub LstCourse_Click()


Dim i As Integer
i = LstCourse.ListIndex
course = LstCourse.List(i)
LoadCollege
End Sub

Public Sub DispCollDetails()


query = "select * from college where course = '" & course & "' and CollegeCode= '" & college & "'"
Set rs = db.Execute(query)
TxtCollege = rs("CollegeName")
TxtSeats.Text = rs("NoOfseats")
txtavaSeats.Text = rs("AvailableSeats")
TxtFees.Text = rs("fees")
rs.Close
End Sub
OUTPUT:

FORM 1 FORM 2

FORM 3

Você também pode gostar