Rev 439 | Rev 648 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 439 | Rev 553 | ||
|---|---|---|---|
| Line 2... | Line 2... | ||
| 2 | 2 | ||
| 3 | import java.io.Serializable; |
3 | import java.io.Serializable; |
| - | 4 | import java.util.ArrayList; |
|
| 4 | import java.util.Date; |
5 | import java.util.Date; |
| - | 6 | import java.util.List; |
|
| 5 | 7 | ||
| 6 | import javax.faces.context.FacesContext; |
- | |
| 7 | import javax.inject.Inject; |
8 | import javax.inject.Inject; |
| 8 | import javax.inject.Named; |
9 | import javax.inject.Named; |
| 9 | import javax.servlet.ServletContext; |
- | |
| 10 | 10 | ||
| 11 | import org.primefaces.event.FileUploadEvent; |
11 | import org.primefaces.event.FileUploadEvent; |
| 12 | import org.primefaces.model.StreamedContent; |
12 | import org.primefaces.model.StreamedContent; |
| 13 | import org.primefaces.model.file.UploadedFile; |
13 | import org.primefaces.model.file.UploadedFile; |
| 14 | import org.springframework.context.annotation.Scope; |
14 | import org.springframework.context.annotation.Scope; |
| Line 18... | Line 18... | ||
| 18 | import br.com.ec.core.generic.GenericService; |
18 | import br.com.ec.core.generic.GenericService; |
| 19 | import br.com.ec.core.util.VerificadorUtil; |
19 | import br.com.ec.core.util.VerificadorUtil; |
| 20 | import br.com.ec.domain.dto.AvaliacaoDTO; |
20 | import br.com.ec.domain.dto.AvaliacaoDTO; |
| 21 | import br.com.ec.domain.dto.FolhaPagamentoDTO; |
21 | import br.com.ec.domain.dto.FolhaPagamentoDTO; |
| 22 | import br.com.ec.domain.dto.FolhaPagamentoFuncionarioDTO; |
22 | import br.com.ec.domain.dto.FolhaPagamentoFuncionarioDTO; |
| - | 23 | import br.com.ec.domain.dto.FolhaPagamentoFuncionarioExtraidoDTO; |
|
| 23 | import br.com.ec.domain.model.Avaliacao; |
24 | import br.com.ec.domain.model.Avaliacao; |
| 24 | import br.com.ec.domain.service.FolhaPagamentoService; |
25 | import br.com.ec.domain.service.FolhaPagamentoService; |
| 25 | import br.com.ec.domain.service.ParcelaService; |
26 | import br.com.ec.domain.service.ParcelaService; |
| 26 | import br.com.ec.web.exception.VerificadorLancamentoException; |
27 | import br.com.ec.web.exception.VerificadorLancamentoException; |
| 27 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
28 | import br.com.ec.web.exception.VerificadorLancamentoException.CommandBean; |
| Line 135... | Line 136... | ||
| 135 | public Date getDataPagamento() { |
136 | public Date getDataPagamento() { |
| 136 | return dataPagamento; |
137 | return dataPagamento; |
| 137 | }
|
138 | }
|
| 138 | public void setDataPagamento(Date dataPagamento) { |
139 | public void setDataPagamento(Date dataPagamento) { |
| 139 | this.dataPagamento = dataPagamento; |
140 | this.dataPagamento = dataPagamento; |
| - | 141 | }
|
|
| - | 142 | ||
| - | 143 | public List<FolhaPagamentoFuncionarioExtraidoDTO> funcionariosExtraidosForaDaAvaliacao() { |
|
| - | 144 | List<FolhaPagamentoFuncionarioExtraidoDTO> extraidosForaDaAvaliacao = new ArrayList<FolhaPagamentoFuncionarioExtraidoDTO>(); |
|
| - | 145 | if (VerificadorUtil.naoEstaNuloOuVazio(getFolhaPagamentoDTO().getFuncionariosExtraidos())) { |
|
| - | 146 | for (FolhaPagamentoFuncionarioExtraidoDTO extraido : getFolhaPagamentoDTO().getFuncionariosExtraidos()) { |
|
| - | 147 | if (!extraido.getAdicionado()) { |
|
| - | 148 | extraidosForaDaAvaliacao.add(extraido); |
|
| - | 149 | }
|
|
| - | 150 | }
|
|
| - | 151 | }
|
|
| - | 152 | return extraidosForaDaAvaliacao; |
|
| 140 | }
|
153 | }
|
| 141 | 154 | ||
| 142 | /**************************************************/
|
155 | /**************************************************/
|
| 143 | 156 | ||
| 144 | public void uploadArquivoEspacoCase() { |
157 | public void uploadArquivoEspacoCase() { |