Search in sources :

Example 1 with PreparationResourceService

use of com.cas.sim.tis.services.PreparationResourceService in project TeachingInSimulation by ScOrPiOzzy.

the class PreparationResourceAction method detele.

public void detele(Integer rid) {
    PreparationResourceService service = getService();
    PreparationResource resource = service.findById(rid);
    resource.setDel(true);
    resource.setUpdater(Session.get(Session.KEY_LOGIN_ID));
    service.update(resource);
}
Also used : PreparationResourceService(com.cas.sim.tis.services.PreparationResourceService) PreparationResource(com.cas.sim.tis.entity.PreparationResource)

Example 2 with PreparationResourceService

use of com.cas.sim.tis.services.PreparationResourceService in project TeachingInSimulation by ScOrPiOzzy.

the class PreparationResourceAction method addResource.

public void addResource(PreparationResource resource) {
    PreparationResourceService service = getService();
    resource.setCreator(Session.get(Session.KEY_LOGIN_ID));
    service.save(resource);
}
Also used : PreparationResourceService(com.cas.sim.tis.services.PreparationResourceService)

Aggregations

PreparationResourceService (com.cas.sim.tis.services.PreparationResourceService)2 PreparationResource (com.cas.sim.tis.entity.PreparationResource)1