Rev 195 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 195 | Rev 324 | ||
|---|---|---|---|
| Line 514... | Line 514... | ||
| 514 | }
|
514 | }
|
| 515 | 515 | ||
| 516 | public Funcionario consultarFuncionarioPorPessoa(Pessoa pessoa) { |
516 | public Funcionario consultarFuncionarioPorPessoa(Pessoa pessoa) { |
| 517 | return funcionarioService.consultarFuncionarioPorPessoa(pessoa); |
517 | return funcionarioService.consultarFuncionarioPorPessoa(pessoa); |
| 518 | }
|
518 | }
|
| - | 519 | ||
| 519 | 520 | ||
| 520 | public StreamedContent emitirFichaColaboradorEsocial() throws Exception { |
521 | public StreamedContent emitirFichaColaboradorEsocial() throws Exception { |
| 521 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirFichaColaboradorEsocial((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
522 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirFichaColaboradorEsocial((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
| 522 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("doc"), "formulario_esocial.doc"); |
523 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("doc"), "formulario_esocial.doc"); |
| 523 | }
|
524 | }
|
| 524 | 525 | ||
| 525 | public StreamedContent emitirExameAdmissional() throws Exception { |
- | |
| 526 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirTermoAdmissional((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
- | |
| - | 526 | public StreamedContent emitirSolicitacaoExameAdmissional() throws Exception { |
|
| - | 527 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirSolicitacaoExameAdmissional((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
|
| 527 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "exameAdmissional.docx"); |
528 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "exameAdmissional.docx"); |
| 528 | }
|
529 | }
|
| 529 | 530 | ||
| 530 | public StreamedContent emitirExameDemissional() throws Exception { |
- | |
| 531 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirTermoDemissional((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
- | |
| - | 531 | public StreamedContent emitirSolicitacaoExameDemissional() throws Exception { |
|
| - | 532 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirSolicitacaoExameDemissional((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
|
| 532 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "exameDemissional.docx"); |
533 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "exameDemissional.docx"); |
| - | 534 | }
|
|
| - | 535 | ||
| - | 536 | public StreamedContent emitirSolicitacaoExamePeriodico() throws Exception { |
|
| - | 537 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirSolicitacaoExamePeriodico((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
|
| - | 538 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "examePeriodico.docx"); |
|
| - | 539 | }
|
|
| - | 540 | ||
| - | 541 | public StreamedContent emitirSolicitacaoAberturaContaBancaria() throws Exception { |
|
| - | 542 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirSolicitacaoAberturaContaBancaria((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
|
| - | 543 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "aberturaContaBancaria.docx"); |
|
| - | 544 | }
|
|
| - | 545 | ||
| - | 546 | public StreamedContent emitirAdesaoValeTransporte() throws Exception { |
|
| - | 547 | ByteArrayInputStream input = new ByteArrayInputStream(pessoaService.emitirAdesaoValeTransporte((ServletContext)FacesContext.getCurrentInstance().getExternalContext().getContext(), getEntidade())); |
|
| - | 548 | return new DefaultStreamedContent(input, ArquivoUtil.retornarContentTypeArquivo("docx"), "adesaoValeTransporte.docx"); |
|
| 533 | }
|
549 | }
|
| 534 | 550 | ||
| 535 | }
|
551 | }
|