use of com.cas.sim.tis.services.ClassService in project TeachingInSimulation by ScOrPiOzzy.
the class ClassAction method addClasses.
public void addClasses(List<ClassInfo> infos) {
ClassService service = getService();
service.saveClasses(infos, Session.get(Session.KEY_LOGIN_ID));
}
use of com.cas.sim.tis.services.ClassService in project TeachingInSimulation by ScOrPiOzzy.
the class ClassAction method modifyClass.
public void modifyClass(Class clazz) {
ClassService service = getService();
clazz.setUpdater(Session.get(Session.KEY_LOGIN_ID));
service.modifyClass(clazz);
}
use of com.cas.sim.tis.services.ClassService in project TeachingInSimulation by ScOrPiOzzy.
the class ClassAction method deleteClass.
public void deleteClass(int id) {
ClassService service = getService();
Class clazz = service.findById(id);
clazz.setDel(1);
clazz.setUpdater(Session.get(Session.KEY_LOGIN_ID));
service.update(clazz);
}
Aggregations