use of com.tomasio.projects.trainning.form.IndicadorForm in project trainning by fernandotomasio.
the class IndicadoresController method initializeIndicadorForm.
public IndicadorForm initializeIndicadorForm(Long indicadorId) {
IndicadorForm form = new IndicadorForm();
IndicadorDTO dto = planningService.findIndicador(indicadorId);
form.setCursoId(dto.getCurso().getId());
form.setId(dto.getId());
form.setIdeal(dto.getIdeal());
form.setMinimo(dto.getMinimo());
form.setObservacoes(dto.getObservacoes());
form.setOrganizacaoId(dto.getOrganizacao().getId());
return form;
}
Aggregations