use of org.olat.ims.qti21.ui.assessment.model.CorrectionIdentityRow in project OpenOLAT by OpenOLAT.
the class CorrectionIdentityListController method doConfirmSaveTests.
private void doConfirmSaveTests(UserRequest ureq) {
int notCorrectedQuestions = 0;
List<CorrectionIdentityRow> rows = tableModel.getObjects();
for (CorrectionIdentityRow row : rows) {
notCorrectedQuestions += row.getNumNotCorrected();
}
confirmSaveTestCtrl = new ConfirmSaveTestsController(ureq, getWindowControl(), notCorrectedQuestions > 0);
listenTo(confirmSaveTestCtrl);
cmc = new CloseableModalController(getWindowControl(), "close", confirmSaveTestCtrl.getInitialComponent(), true, translate("save.tests"));
cmc.activate();
listenTo(cmc);
cmc.activate();
}
use of org.olat.ims.qti21.ui.assessment.model.CorrectionIdentityRow in project OpenOLAT by OpenOLAT.
the class CorrectionIdentityListController method doSaveTests.
private void doSaveTests(UserRequest ureq) {
Set<Integer> selections = tableEl.getMultiSelectedIndex();
List<AssessmentTestSession> rows = new ArrayList<>(selections.size());
for (Integer i : selections) {
CorrectionIdentityRow row = tableModel.getObject(i.intValue());
if (row != null) {
rows.add(row.getCandidateSession());
}
}
AssessmentTest assessmentTest = model.getResolvedAssessmentTest().getRootNodeLookup().extractIfSuccessful();
fireEvent(ureq, new CompleteAssessmentTestSessionEvent(rows, assessmentTest, AssessmentEntryStatus.done));
}
use of org.olat.ims.qti21.ui.assessment.model.CorrectionIdentityRow in project openolat by klemens.
the class CorrectionIdentityListController method doConfirmSaveTests.
private void doConfirmSaveTests(UserRequest ureq) {
int notCorrectedQuestions = 0;
List<CorrectionIdentityRow> rows = tableModel.getObjects();
for (CorrectionIdentityRow row : rows) {
notCorrectedQuestions += row.getNumNotCorrected();
}
confirmSaveTestCtrl = new ConfirmSaveTestsController(ureq, getWindowControl(), notCorrectedQuestions > 0);
listenTo(confirmSaveTestCtrl);
cmc = new CloseableModalController(getWindowControl(), "close", confirmSaveTestCtrl.getInitialComponent(), true, translate("save.tests"));
cmc.activate();
listenTo(cmc);
cmc.activate();
}
Aggregations