Exam repetitions and rooms calculation and update
In the list page defined in #4 (closed) we need to add an option to calculate the resources. This should be a box here by selecting a YearExamSession
we can calculate the resources. This action will select all SubjecExam
entities for the provided session and will invoke the calculate method for them.
The calculate method should:
- totalStudents = select semester total students from
SubjectAllocationStats
- expectedNumber = (1.05 * previousYearAttendantsNumber/previousYearTotalStudents) * totalStudents || totalStudents (if any of previousYearAttendantsNumber or previousYearTotalStudents is null)
- numRepetitions = roundUp(expectedNumber / totalCapacity); // total capacity is sum of capacity of all lab Rooms
- rooms - if num repetitions is > 1 add all lab rooms. otherwise leave empty.
The table rows should be extended with a button that will allow editing of the SubjectExam
. Also there should be an option for in place update of the number of repetitions (example impl: https://raspredelba.finki.ukim.mk/admin/subject-allocation-stats)
Also there should be a button for recalculate (invokes the calculate service for the given row).