Search in sources :

Example 6 with Appraisal

use of com.axelor.apps.talent.db.Appraisal in project axelor-open-suite by axelor.

the class AppraisalController method send.

public void send(ActionRequest request, ActionResponse response) {
    Appraisal appraisal = request.getContext().asType(Appraisal.class);
    try {
        appraisal = Beans.get(AppraisalRepository.class).find(appraisal.getId());
        Beans.get(AppraisalService.class).send(appraisal);
        response.setReload(true);
    } catch (Exception e) {
        TraceBackService.trace(response, e);
    }
}
Also used : Appraisal(com.axelor.apps.talent.db.Appraisal) AppraisalService(com.axelor.apps.talent.service.AppraisalService)

Aggregations

Appraisal (com.axelor.apps.talent.db.Appraisal)6 AppraisalService (com.axelor.apps.talent.service.AppraisalService)5 Employee (com.axelor.apps.hr.db.Employee)2 HashSet (java.util.HashSet)2 EmploymentContract (com.axelor.apps.hr.db.EmploymentContract)1 EmployeeRepository (com.axelor.apps.hr.db.repo.EmployeeRepository)1 AppraisalRepository (com.axelor.apps.talent.db.repo.AppraisalRepository)1 Context (com.axelor.rpc.Context)1 Transactional (com.google.inject.persist.Transactional)1 Map (java.util.Map)1