Rev 667 | Rev 671 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 667 | Rev 670 | ||
|---|---|---|---|
| Line 1... | Line 1... | ||
| 1 | package br.com.ec.domain.dto; |
1 | package br.com.ec.domain.dto; |
| 2 | - | ||
| 3 | import java.util.ArrayList; |
- | |
| 4 | import java.util.List; |
- | |
| 5 | - | ||
| 6 | import br.com.ec.core.util.VerificadorUtil; |
- | |
| 7 | 2 | ||
| 8 | public class AntecipacaoDTO { |
3 | public class AntecipacaoDTO { |
| 9 | 4 | ||
| 10 | private List<ExtratoAntecipacaoArquivoDTO> antecipacaoArquivoDTO; |
- | |
| - | 5 | private ExtratoAntecipacaoArquivoDTO extratoAntecipacaoArquivoDTO; |
|
| 11 | 6 | ||
| 12 | private VigenciaDTO vigenciaDTO; |
- | |
| 13 | private List<ExtratoBancarioArquivoDTO> arquivosExtratoBancarioDTO; |
- | |
| 14 | private List<ExtratoBancarioArquivoDTO> arquivosExtratoBancarioParaCadastrarDTO; |
- | |
| 15 | - | ||
| 16 | private List<ExtratoBancoResumoDTO> resumoExtratosBancariosDTO; |
- | |
| 17 | - | ||
| 18 | private List<ConciliacaoBancariaLancamentoDTO> lancamentosDTO; |
- | |
| 19 | - | ||
| 20 | public AntecipacaoDTO() { |
- | |
| 21 | setArquivosExtratoBancarioDTO(new ArrayList<ExtratoBancarioArquivoDTO>()); |
- | |
| 22 | setArquivosExtratoBancarioParaCadastrarDTO(new ArrayList<ExtratoBancarioArquivoDTO>()); |
- | |
| 23 | }
|
- | |
| 24 | - | ||
| 25 | public AntecipacaoDTO(VigenciaDTO vigenciaDTO, List<ConciliacaoBancariaLancamentoDTO> lancamentosDTO) { |
- | |
| 26 | super(); |
- | |
| 27 | this.vigenciaDTO = vigenciaDTO; |
- | |
| 28 | this.lancamentosDTO = lancamentosDTO; |
- | |
| 29 | }
|
- | |
| 30 | - | ||
| 31 | public AntecipacaoDTO(VigenciaDTO vigenciaDTO, List<ConciliacaoBancariaLancamentoDTO> lancamentosDTO, List<ExtratoBancoResumoDTO> resumoExtratosBancariosDTO) { |
- | |
| 32 | super(); |
- | |
| 33 | this.vigenciaDTO = vigenciaDTO; |
- | |
| 34 | this.lancamentosDTO = lancamentosDTO; |
- | |
| 35 | this.resumoExtratosBancariosDTO = resumoExtratosBancariosDTO; |
- | |
| 36 | }
|
- | |
| 37 | - | ||
| 38 | public VigenciaDTO getVigenciaDTO() { |
- | |
| 39 | return vigenciaDTO; |
- | |
| 40 | }
|
- | |
| 41 | - | ||
| 42 | public void setVigenciaDTO(VigenciaDTO vigenciaDTO) { |
- | |
| 43 | this.vigenciaDTO = vigenciaDTO; |
- | |
| 44 | }
|
- | |
| 45 | - | ||
| 46 | public List<ExtratoBancoResumoDTO> getResumoExtratosBancariosDTO() { |
- | |
| 47 | return resumoExtratosBancariosDTO; |
- | |
| 48 | }
|
- | |
| 49 | - | ||
| 50 | public void setResumoExtratosBancariosDTO(List<ExtratoBancoResumoDTO> resumoExtratosBancariosDTO) { |
- | |
| 51 | this.resumoExtratosBancariosDTO = resumoExtratosBancariosDTO; |
- | |
| 52 | }
|
- | |
| 53 | - | ||
| 54 | public List<ExtratoBancarioArquivoDTO> getArquivosExtratoBancarioDTO() { |
- | |
| 55 | return arquivosExtratoBancarioDTO; |
- | |
| 56 | }
|
- | |
| 57 | public void setArquivosExtratoBancarioDTO(List<ExtratoBancarioArquivoDTO> arquivosExtratoBancarioDTO) { |
- | |
| 58 | this.arquivosExtratoBancarioDTO = arquivosExtratoBancarioDTO; |
- | |
| 59 | }
|
- | |
| 60 | - | ||
| 61 | public List<ExtratoBancarioArquivoDTO> getArquivosExtratoBancarioParaCadastrarDTO() { |
- | |
| 62 | return arquivosExtratoBancarioParaCadastrarDTO; |
- | |
| 63 | }
|
- | |
| 64 | public void setArquivosExtratoBancarioParaCadastrarDTO(List<ExtratoBancarioArquivoDTO> arquivosExtratoBancarioParaCadastrarDTO) { |
- | |
| 65 | this.arquivosExtratoBancarioParaCadastrarDTO = arquivosExtratoBancarioParaCadastrarDTO; |
- | |
| 66 | }
|
- | |
| 67 | - | ||
| 68 | public List<ConciliacaoBancariaLancamentoDTO> getLancamentosDTO() { |
- | |
| 69 | return lancamentosDTO; |
- | |
| 70 | }
|
- | |
| 71 | - | ||
| 72 | public void setLancamentosDTO(List<ConciliacaoBancariaLancamentoDTO> lancamentosDTO) { |
- | |
| 73 | this.lancamentosDTO = lancamentosDTO; |
- | |
| 74 | }
|
- | |
| 75 | - | ||
| 76 | /***********************************************/
|
- | |
| 77 | - | ||
| 78 | public Double valorTotal() { |
- | |
| 79 | Double valorFinal = new Double(0.0); |
- | |
| 80 | if (VerificadorUtil.naoEstaNulo(getLancamentosDTO())) { |
- | |
| 81 | for (ConciliacaoBancariaLancamentoDTO lancamento : getLancamentosDTO()) { |
- | |
| 82 | valorFinal = valorFinal + lancamento.valorDiferencaTotal(); |
- | |
| 83 | }
|
- | |
| 84 | }
|
- | |
| 85 | return valorFinal; |
- | |
| 86 | }
|
- | |
| - | 7 | public ExtratoAntecipacaoArquivoDTO getExtratoAntecipacaoArquivoDTO() {return extratoAntecipacaoArquivoDTO;} |
|
| - | 8 | public void setExtratoAntecipacaoArquivoDTO(ExtratoAntecipacaoArquivoDTO extratoAntecipacaoArquivoDTO) {this.extratoAntecipacaoArquivoDTO = extratoAntecipacaoArquivoDTO;} |
|
| 87 | 9 | ||
| 88 | }
|
10 | }
|