Changes between Version 8 and Version 9 of UseCase2001Implementation


Ignore:
Timestamp:
09/10/26 12:18:36 (8 hours ago)
Author:
216009
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • UseCase2001Implementation

    v8 v9  
    11== UC2001 – Assign Grade to Student Implementation ==
    22
    3 '''Initiating actor:''' Professor
    4 '''Other actors:''' None
     3'''Initiating actor:''' Administrator
     4'''Other actors:''' Professor
    55
    66'''Description:'''
    7 Professor inputs and records final grades for students enrolled in specific subject course instances using the console interface.
     7Administrator updates an existing student subject enrollment record via the Web UI dashboard to record and persist the final grade assigned by the professor.
    88
    99'''Scenario:'''
    10 1. System displays the Professor Menu interface.
    11 2. Professor selects the option to "Assign Grade to Student".
    12 3. System prompts the professor to input their unique Professor ID.
    13 4. System retrieves and lists all unique subjects where this professor has active student enrollments:
     101. Administrator navigates to the "Student Subject Enrollments" overview page from the Admin dashboard.
     112. System queries the database and displays the list of active student enrollments:
    1412{{{
    15 SELECT DISTINCT s.Id, s.Name
    16 FROM Subject s
    17 JOIN Student_Subject ss ON s.Id = ss.Subject_Id
    18 WHERE ss.Professor_Id = ?;
     13SELECT Ss_Id AS ID, Student_Id, Subject_Id, Enrollment_Date, Status, Final_Grade AS Grade, Absences_Count AS Absences
     14FROM Student_Subject;
    1915}}}
    20 Professor inputs a target Subject ID from the displayed list.
     16[[Image(enrollment_table.png, 800px)]]
    2117
    22 5. System lists all students currently enrolled in that chosen subject under this professor's instruction (including the Ss_Id discriminator):
    23 {{{
    24 SELECT ss.Ss_Id, st.Id AS Student_Id, st.Name, st.Surname
    25 FROM Student st
    26 JOIN Student_Subject ss ON st.Id = ss.Student_Id
    27 WHERE ss.Subject_Id = ? AND ss.Professor_Id = ?;
    28 }}}
    29 Professor inputs the target Student ID and Ss_Id.
     183. Administrator locates the target enrollment record and clicks the "Edit" button next to it.
     194. System presents the "Enroll Student / Edit Enrollment" web form pre-filled with the existing enrollment details.
    3020
    31 6. System prompts the professor to provide a valid final grade value (constrained between 6 and 10).
    32 7. System executes the parameterized SQL statement to persist the final grade using the full composite primary key and correct ENUM value:
     21[[Image(edit_enrollment_form.png, 800px)]]
     22
     235. Administrator inputs or updates the "Final Grade" field (valid values between 6 and 10) and updates the "Status" dropdown to 'Passed' (or 'Completed').
     246. Administrator clicks the "Save Record" button.
     257. System executes the parameterized SQL update statement to persist the updated grade and status:
    3326{{{
    3427UPDATE Student_Subject
    3528SET Final_Grade = ?, Status = 'Passed'
    36 WHERE Student_Id = ? AND Subject_Id = ? AND Ss_Id = ?;
     29WHERE Ss_Id = ?;
    3730}}}
    38 8. System displays a confirmation text message indicating that the grade was successfully assigned.
    3931
    40 == Implementation Screenshots ==
    41 [[Image(assignGrade1.png, 800px)]]
    42 [[Image(assignGrade2.png, 800px)]]
    43 [[Image(assignGrade3.png, 800px)]]
    44 [[Image(assignGrade4.png, 800px)]]
     328. System redirects back to the "Student Subject Enrollments" page showing the updated grade and status in the table.
     33
     34[[Image(enrollment_table.png, 800px)]]