Search in sources :

Example 26 with HabilitacaoInstrutorEfetivaDTO

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";
    }
}
Also used : PessoaDTO(com.tomasio.projects.trainning.dto.PessoaDTO) HabilitacaoInstrutorEfetivaDTO(com.tomasio.projects.trainning.dto.HabilitacaoInstrutorEfetivaDTO) RequestMapping(org.springframework.web.bind.annotation.RequestMapping)

Aggregations

HabilitacaoInstrutorEfetivaDTO (com.tomasio.projects.trainning.dto.HabilitacaoInstrutorEfetivaDTO)26 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)12 PeriodoDTO (com.tomasio.projects.trainning.dto.PeriodoDTO)7 PessoaDTO (com.tomasio.projects.trainning.dto.PessoaDTO)7 ArrayList (java.util.ArrayList)7 CoreException (com.tomasio.projects.trainning.exeption.CoreException)6 HashMap (java.util.HashMap)6 DAOException (com.tomasio.projects.trainning.exception.DAOException)5 HabilitacaoInstrutorEfetiva (com.tomasio.projects.trainning.model.HabilitacaoInstrutorEfetiva)5 Date (java.util.Date)5 List (java.util.List)5 Map (java.util.Map)5 Transactional (org.springframework.transaction.annotation.Transactional)5 CursoDTO (com.tomasio.projects.trainning.dto.CursoDTO)4 SimpleDateFormat (java.text.SimpleDateFormat)4 EmailDTO (com.tomasio.projects.trainning.dto.EmailDTO)3 HabilitacaoInstrutorForm (com.tomasio.projects.trainning.form.instrutores.HabilitacaoInstrutorForm)3 ConclusaoDTO (com.tomasio.projects.trainning.dto.ConclusaoDTO)2 HabilitacaoInstrutorPropostaDTO (com.tomasio.projects.trainning.dto.HabilitacaoInstrutorPropostaDTO)2 MatriculaDTO (com.tomasio.projects.trainning.dto.MatriculaDTO)2