use of com.tomasio.projects.trainning.dto.HabilitacaoInstrutorEfetivaDTO in project trainning by fernandotomasio.
the class ConvitesInstrutoresController method detailInstrutor.
@RequestMapping("/detail")
public String detailInstrutor(Model model, WebRequest request) {
String mode = request.getParameter("mode");
String instrutorId = request.getParameter("instrutorId");
HabilitacaoInstrutorEfetivaDTO dto = (HabilitacaoInstrutorEfetivaDTO) instructorsService.findHabilitacaoInstrutor(Long.parseLong(instrutorId));
PessoaDTO pessoa = organizationalService.findPessoa(dto.getPessoa().getId());
model.addAttribute("emails", pessoa.getEmails());
model.addAttribute("telefones", pessoa.getTelefones());
model.addAttribute("instrutor", dto);
if (mode == null || !mode.equals("box")) {
return "convites_instrutores/detail";
} else {
model.addAttribute("mode", "box");
return "convites_instrutores/detail_box";
}
}
Aggregations