Search in sources :

Example 36 with ConclusaoDTO

use of com.tomasio.projects.trainning.dto.ConclusaoDTO in project trainning by fernandotomasio.

the class Conclusao method createDTO.

public ConclusaoDTO createDTO() {
    ConclusaoDTO dto = new ConclusaoDTO();
    dto.setAno(ano);
    dto.setGrau(grau);
    dto.setId(id);
    dto.setLocal(local);
    dto.setComAproveitamento(this.comAproveitamento);
    dto.setJustificado(isJustificado());
    dto.setObservacao(this.observacao);
    dto.setParecer(this.parecer);
    dto.setOperador(this.operador);
    dto.setDataOperacao(this.dataOperacao);
    if (periodo != null) {
        dto.setPeriodo(periodo.createDTO());
    }
    if (pessoa != null) {
        dto.setPessoa(pessoa.createDTO());
    }
    if (capacitacao != null) {
        dto.setCapacitacao(capacitacao.createDTOWithoutDependencies());
    }
    if (matricula != null) {
        dto.setMatricula(matricula.createDTOMinimal());
    }
    return dto;
}
Also used : ConclusaoDTO(com.tomasio.projects.trainning.dto.ConclusaoDTO)

Aggregations

ConclusaoDTO (com.tomasio.projects.trainning.dto.ConclusaoDTO)36 ArrayList (java.util.ArrayList)20 CertificadoConclusaoDTO (com.tomasio.projects.trainning.dto.CertificadoConclusaoDTO)18 RequestMapping (org.springframework.web.bind.annotation.RequestMapping)18 CoreException (com.tomasio.projects.trainning.exeption.CoreException)12 HashMap (java.util.HashMap)11 Map (java.util.Map)11 MatriculaDTO (com.tomasio.projects.trainning.dto.MatriculaDTO)10 CancelamentoMatriculaDTO (com.tomasio.projects.trainning.dto.CancelamentoMatriculaDTO)9 OrganizacaoDTO (com.tomasio.projects.trainning.dto.OrganizacaoDTO)9 SimpleDateFormat (java.text.SimpleDateFormat)9 CertificadoConclusaoDAO (com.tomasio.projects.trainning.dao.CertificadoConclusaoDAO)7 ConclusaoDAO (com.tomasio.projects.trainning.dao.ConclusaoDAO)7 PreMatriculaDTO (com.tomasio.projects.trainning.dto.PreMatriculaDTO)7 DAOException (com.tomasio.projects.trainning.exception.DAOException)7 CertificadoConclusao (com.tomasio.projects.trainning.model.CertificadoConclusao)7 Conclusao (com.tomasio.projects.trainning.model.Conclusao)7 Transactional (org.springframework.transaction.annotation.Transactional)7 NotificacaoMatriculaDTO (com.tomasio.projects.trainning.dto.NotificacaoMatriculaDTO)6 List (java.util.List)6