use of com.cas.sim.tis.vo.PreparationInfo in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationDetail method loadResources.
private void loadResources() {
if (preparation == null) {
return;
}
List<PreparationInfo> resources = SpringUtil.getBean(PreparationResourceAction.class).findResourcesByPreparationId(preparation.getId());
JSONArray array = new JSONArray();
array.addAll(resources);
this.resces.setItems(array);
this.resces.build();
}
use of com.cas.sim.tis.vo.PreparationInfo in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationDetail method loadQuizs.
private void loadQuizs() {
if (preparation == null) {
return;
}
List<PreparationInfo> quizs = SpringUtil.getBean(PreparationQuizAction.class).findQuizsByPreparationId(preparation.getId());
JSONArray array = new JSONArray();
array.addAll(quizs);
this.quizs.setItems(array);
this.quizs.build();
}
use of com.cas.sim.tis.vo.PreparationInfo in project TeachingInSimulation by ScOrPiOzzy.
the class PreparationQuizServiceImpl method findQuizsByPreparationId.
@Override
public List<PreparationInfo> findQuizsByPreparationId(Integer pid) {
PreparationQuizMapper mapper = (PreparationQuizMapper) this.mapper;
List<PreparationInfo> tests = mapper.findQuizsByPreparationId(pid);
if (tests == null) {
return new ArrayList<>();
} else {
return tests;
}
}
Aggregations