Search in sources :

Example 1 with ConfirmacaoConviteInstrutorForm

use of com.tomasio.projects.trainning.form.convites.ConfirmacaoConviteInstrutorForm in project trainning by fernandotomasio.

the class ConvitesInstrutoresController method initializeConfirmacaoConviteInstrutorForm.

public ConfirmacaoConviteInstrutorForm initializeConfirmacaoConviteInstrutorForm(Map pessoaMap, Map conviteMap) {
    Long conviteId = (Long) conviteMap.get("id");
    Long pessoaId = (Long) pessoaMap.get("id");
    PessoaDTO pessoa = organizationalService.findPessoa(pessoaId);
    ConfirmacaoConviteInstrutorForm form = new ConfirmacaoConviteInstrutorForm();
    form.setPessoaId(pessoa.getId());
    form.setConviteId(conviteId);
    form.setTargetaCompleta(pessoa.getTargetaCompleta());
    if (pessoa.getOrganizacao() != null) {
        form.setOMSigla(pessoa.getOrganizacao().getSigla());
    }
    return form;
}
Also used : PessoaDTO(com.tomasio.projects.trainning.dto.PessoaDTO) ConfirmacaoConviteInstrutorForm(com.tomasio.projects.trainning.form.convites.ConfirmacaoConviteInstrutorForm)

Aggregations

PessoaDTO (com.tomasio.projects.trainning.dto.PessoaDTO)1 ConfirmacaoConviteInstrutorForm (com.tomasio.projects.trainning.form.convites.ConfirmacaoConviteInstrutorForm)1