Search in sources :

Example 1 with ClassService

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));
}
Also used : ClassService(com.cas.sim.tis.services.ClassService)

Example 2 with ClassService

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);
}
Also used : ClassService(com.cas.sim.tis.services.ClassService)

Example 3 with ClassService

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);
}
Also used : ClassService(com.cas.sim.tis.services.ClassService) Class(com.cas.sim.tis.entity.Class)

Aggregations

ClassService (com.cas.sim.tis.services.ClassService)3 Class (com.cas.sim.tis.entity.Class)1