Sie sind auf Seite 1von 18

USE CASE DIAGRAM

ENTER REG NO.

VERIFY

LIST COURSES

B SELECT COURSE

LIST COLLEGE

STUDENT SELECT COLLEGE SYSTEM

ENTER STUDENT DETAILS

STORE AND DISPLAY


SEQUENCE DIAGRAM

STUDENT SYSTEM

1. ENTER REG NO.

2. VERIFY

3. DISPLAY COURSES

4. SELECT COURSE

5. DISPLAY COLLEGE

6. SELECT COLLEGE

R 7. ENTER STUDENT DETAILS

8. ALLOT SEAT

CLASS DIAGRAM

STUDENT SYSTEM
* 1
NAME 1 COURSE
CONTACT NO.
ADDRSSS COLLEGE
EMAIL-ID
QUALIFICATION
REG NO. DISPLAY COURSE
DISPLAY COLLEGE
SELECT COURSE
SELECT COLLEGE DISPLAY
ENTER STUDENT DETAILS
COMPONENT DIAGRAM

STUDENT SYSTEM

COLLABORATION DIAGRAM

7. ENTER STUDENT DETAILS

8. ALLOT SEAT
6. SELECT COLLEGE
5. DISPLAY COLLEGES

4. SELECT COURSE
R 3. DISPLAY COURSES

1. ENTER REG NO.


2.2. VERIFY

STUDENT SYSTEM 1
COURSE REGISTRATION SYSTEM
Ex. No: Name: R Shiva

Date: Reg. No.: 30707104090

Student Class(stu.cls)
Option Explicit

'##ModelId=4C9AFB0E02BF

Private name As Variant

'##ModelId=4C9AFB1100FA

Private address As Variant

'##ModelId=4C9AFB1302CE

Private contact_no As Variant

'##ModelId=4C9AFB1801F4

Private mail_id As Variant

'##ModelId=4C9AFB1D0000

Private qualification As Variant

'##ModelId=4C9AFB240109

Public reg_no As Variant

'##ModelId=4C9AFB8E03B9

Public NewProperty As Collection

'##ModelId=4C9AFB3403B9

Public Sub select_college()

Form2.Label5.Visible = True

Form2.Combo1.Visible = True

End Sub

'##ModelId=4C9AFB3E0148

Public Sub select_course()


Form2.Label4.Visible = True

Form2.List2.Visible = True

End Sub

'##ModelId=4C9AFB4A037A

Public Sub enter_student_details()

Form5.Show

End Sub

System Class(sys.cls)
Option Explicit

'##ModelId=4C9AFB58034B

Private course As Variant

'##ModelId=4C9AFB600261

Private college As Variant

'##ModelId=4C9AFB640261

Private no_of_seats As Variant

'##ModelId=4C9AFB72033C

Public Sub display_courses()

If Form2.List1.Text = "Engineering" Then

Form2.Label4.Caption = "ENGINEERING Courses"

Form2.List2.AddItem "ECE"

Form2.List2.AddItem "CSE"

Form2.List2.AddItem "IT"

Form2.List2.AddItem "EEE"

Form2.List2.AddItem "Bio Medical"

Form2.List2.AddItem "Civil"

Form2.List2.AddItem "Mechanical"
Form2.List2.AddItem "Aeronautical"

ElseIf Form2.List1.Text = "Arts & Science" Then

Form2.Label4.Caption = "ARTS and SCIENCE Courses"

Form2.List2.AddItem "Microbiology"

Form2.List2.AddItem "Biotechnology"

Form2.List2.AddItem "Biochemistry"

Form2.List2.AddItem "Physics"

Form2.List2.AddItem "Chemistry"

Form2.List2.AddItem "Maths"

End If

End Sub

'##ModelId=4C9AFB79033C

Public Sub display_colleges()

Form2.Label5.Caption = Form2.Label5.Caption + Form2.List2.Text

course = Form2.List2.Text

If Form2.List1.Text = "Engineering" Then

Form2.Combo1.AddItem "Jeppiar College Of Engineering"

Form2.Combo1.AddItem "SSN College Of Engineering"

Form2.Combo1.AddItem "Jerusalem College Of Engineering"

Form2.Combo1.AddItem "Tagore College Of Engineering"

Form2.Combo1.AddItem "Padmavathi College Of Engineering"

Form2.Combo1.AddItem "Ramanujar College Of Engineering"

Else

Form2.Combo1.AddItem "Prince Shri Venkateshwara Arts & Science College"

Form2.Combo1.AddItem "Kumara Rani Meena Muthaiyah Arts and Science College"

Form2.Combo1.AddItem "Thanapalan"

Form2.Combo1.AddItem "Prince Shri Venkateshwara Arts & Science College"


Form2.Combo1.AddItem "GuruNanak"

Form2.Combo1.AddItem "SIET"

End If

End Sub

'##ModelId=4C9AFB83033C

Public Sub display()

Form3.Label2.Caption = Form3.Label2.Caption + Form5.Text1.Text

If Form2.Option1.Value = True Then

Form3.Label3.Caption = Form3.Label3.Caption + Form2.List2.Text + "/" + Form2.Option1.Caption

ElseIf Form2.Option2.Value = True Then

Form3.Label3.Caption = Form3.Label3.Caption + Form2.List2.Text + "/" + Form2.Option2.Caption

End If

Form3.Label4.Caption = Form3.Label4.Caption + Form2.Combo1.Text

Form3.Label5.Caption = Form3.Label5.Caption + Form1.Text1.Text

Form3.Label6.Caption = Form3.Label6.Caption + Form5.Text3.Text

Form3.Label7.Caption = Form3.Label7.Caption + Form5.Text4.Text

Form3.Label8.Caption = Form3.Label8.Caption + Form5.Text5.Text

Form3.Show

End Sub

Code for Form1

Private Sub Command1_Click()

Adodc1.Recordset.MoveFirst

c: If Not Adodc1.Recordset.EOF Then

If Text1.Text = Adodc1.Recordset.Fields("Reg No") Then

If Adodc1.Recordset.Fields("Course") = 0 Then
If Val(Text3.Text) >= 140 Then

MsgBox ("YOU ARE ELIGIBLE")

Form2.Show

ElseIf Val(Text3.Text) = 0 Then

MsgBox ("Please enter Cut off marks")

Else

MsgBox ("Canditate not elligible")

End If

Else

MsgBox ("Course allotted already")

End If

Else

Adodc1.Recordset.MoveNext

GoTo c

End If

Else

MsgBox ("Canditate not registered")

End If

End Sub

Code for Form2


Dim sy As New sys

Dim st As New stu

Private Sub Command1_Click()

st.enter_student_details

End Sub

Private Sub List1_Click()


List2.Clear

If Option1.Value = False And Option2.Value = False Then

MsgBox ("Select UG/PG")

ElseIf Option1.Value = True Or Option2.Value = True Then

sy.display_courses

st.select_course

End If

End Sub

Private Sub List2_Click()

sy.display_colleges

st.select_college

End Sub

Code for Form3

Private Sub Command1_Click()

Unload Form1

Unload Form2

Unload Form5

Unload Me

End Sub

Code for Form5


Dim sy As New sys

Private Sub Command1_Click()

c: If Not Form1.Adodc1.Recordset.EOF Then


If Form1.Adodc1.Recordset.Fields("Reg No") = Form1.Text1.Text Then

Form1.Adodc1.Recordset.Fields("Student name") = Text1.Text

Form1.Adodc1.Recordset.Fields("Contact No") = Text3.Text

Form1.Adodc1.Recordset.Fields("E mail id") = Text4.Text

Form1.Adodc1.Recordset.Fields("Address") = Text5.Text

Form1.Adodc1.Recordset.Fields("DOB") = Text6.Text

Form1.Adodc1.Recordset.Fields("Father Name") = Text7.Text

Form1.Adodc1.Recordset.Fields("Course") = Form2.List2.Text

Form1.Adodc1.Recordset.Fields("College") = Form2.Combo1.Text

Form1.Adodc1.Recordset.Update

MsgBox ("Database Updated")

Else

Form1.Adodc1.Recordset.MoveNext

GoTo c

End If

Else

MsgBox ("Student not registered")

End If

MsgBox ("Seat alloted")

sy.display

End Sub

Private Sub Form_Load()

Form1.Adodc1.Recordset.MoveFirst

End Sub
Snapshots:
Database(Before Alloting Seats):

Database(After Alloting Seats):

Das könnte Ihnen auch gefallen