Rev 668 | Go to most recent revision | Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 667 | blopes | 1 | package br.com.ec.domain.dto; |
| 2 | |||
| 3 | import java.util.Date; |
||
| 4 | |||
| 5 | import br.com.ec.core.util.StringUtil; |
||
| 6 | import br.com.ec.domain.model.tipos.TipoExtratoBanco; |
||
| 7 | |||
| 8 | public class ExtratoAntecipacaoDTO { |
||
| 9 | |||
| 10 | private Long sequencial; |
||
| 11 | |||
| 12 | private Date dataVencimento; |
||
| 13 | private Double valorLiquido; |
||
| 14 | |||
| 15 | private ContaBancariaDTO contaBancariaDTO; |
||
| 16 | private String tipoExtratoBanco; // D - Débitos e C - Créditos e T - Transferências/PIX e P - Pagamento |
||
| 17 | private Date dataLancamento; |
||
| 18 | private String descricao; |
||
| 19 | private Double valorTotal; |
||
| 20 | private String observacao; |
||
| 21 | private Boolean indicadorConciliado; |
||
| 22 | |||
| 23 | private Boolean indicadorCadastrar = false; |
||
| 24 | private Boolean indicadorConciliar = false; |
||
| 25 | |||
| 26 | public ExtratoAntecipacaoDTO() {} |
||
| 27 | |||
| 28 | public ExtratoAntecipacaoDTO(Long sequencial, Long sequencialContaBancaria, String descricaoContaBancaria, |
||
| 29 | String tipoContaBancaria, Boolean ativoContaBancaria, String tipoExtratoBanco, |
||
| 30 | Date dataLancamento, String descricao, Double valorTotal, String observacao) { |
||
| 31 | super(); |
||
| 32 | this.sequencial = sequencial; |
||
| 33 | this.contaBancariaDTO = new ContaBancariaDTO(sequencialContaBancaria, descricaoContaBancaria, tipoContaBancaria, ativoContaBancaria); |
||
| 34 | this.tipoExtratoBanco = tipoExtratoBanco; |
||
| 35 | this.dataLancamento = dataLancamento; |
||
| 36 | this.descricao = descricao; |
||
| 37 | this.valorTotal = valorTotal; |
||
| 38 | this.observacao = observacao; |
||
| 39 | } |
||
| 40 | |||
| 41 | public ExtratoAntecipacaoDTO(Long sequencial, Long sequencialContaBancaria, String descricaoContaBancaria, |
||
| 42 | String tipoContaBancaria, Boolean ativoContaBancaria, String tipoExtratoBanco, |
||
| 43 | Date dataLancamento, Double valorTotal, String observacao) { |
||
| 44 | super(); |
||
| 45 | this.sequencial = sequencial; |
||
| 46 | this.contaBancariaDTO = new ContaBancariaDTO(sequencialContaBancaria, descricaoContaBancaria, tipoContaBancaria, ativoContaBancaria); |
||
| 47 | this.tipoExtratoBanco = tipoExtratoBanco; |
||
| 48 | this.dataLancamento = dataLancamento; |
||
| 49 | this.valorTotal = valorTotal; |
||
| 50 | this.observacao = observacao; |
||
| 51 | } |
||
| 52 | |||
| 53 | public ExtratoAntecipacaoDTO(Long sequencial, Long sequencialContaBancaria, String descricaoContaBancaria, |
||
| 54 | String tipoContaBancaria, Boolean ativoContaBancaria, String tipoExtratoBanco, |
||
| 55 | Date dataLancamento, Double valorTotal, String descricao, String observacao, Boolean indicadorConciliado) { |
||
| 56 | super(); |
||
| 57 | this.sequencial = sequencial; |
||
| 58 | this.contaBancariaDTO = new ContaBancariaDTO(sequencialContaBancaria, descricaoContaBancaria, tipoContaBancaria, ativoContaBancaria); |
||
| 59 | this.tipoExtratoBanco = tipoExtratoBanco; |
||
| 60 | this.dataLancamento = dataLancamento; |
||
| 61 | this.valorTotal = valorTotal; |
||
| 62 | this.descricao = descricao; |
||
| 63 | this.observacao = observacao; |
||
| 64 | this.indicadorConciliado = indicadorConciliado; |
||
| 65 | } |
||
| 66 | |||
| 67 | public ExtratoAntecipacaoDTO(Long sequencial, ContaBancariaDTO contaBancariaDTO, String tipoExtratoBanco, |
||
| 68 | Date dataLancamento, Double valorTotal) { |
||
| 69 | super(); |
||
| 70 | this.sequencial = sequencial; |
||
| 71 | this.contaBancariaDTO = contaBancariaDTO; |
||
| 72 | this.tipoExtratoBanco = tipoExtratoBanco; |
||
| 73 | this.dataLancamento = dataLancamento; |
||
| 74 | this.valorTotal = valorTotal; |
||
| 75 | } |
||
| 76 | |||
| 77 | public Long getSequencial() { |
||
| 78 | return sequencial; |
||
| 79 | } |
||
| 80 | public void setSequencial(Long sequencial) { |
||
| 81 | this.sequencial = sequencial; |
||
| 82 | } |
||
| 83 | |||
| 84 | public Date getDataVencimento() {return dataVencimento;} |
||
| 85 | public void setDataVencimento(Date dataVencimento) {this.dataVencimento = dataVencimento;} |
||
| 86 | |||
| 87 | public Double getValorLiquido() {return valorLiquido;} |
||
| 88 | public void setValorLiquido(Double valorLiquido) {this.valorLiquido = valorLiquido;} |
||
| 89 | |||
| 90 | public ContaBancariaDTO getContaBancariaDTO() { |
||
| 91 | return contaBancariaDTO; |
||
| 92 | } |
||
| 93 | public void setContaBancariaDTO(ContaBancariaDTO contaBancariaDTO) { |
||
| 94 | this.contaBancariaDTO = contaBancariaDTO; |
||
| 95 | } |
||
| 96 | |||
| 97 | public String getTipoExtratoBanco() { |
||
| 98 | return tipoExtratoBanco; |
||
| 99 | } |
||
| 100 | public void setTipoExtratoBanco(String tipoExtratoBanco) { |
||
| 101 | this.tipoExtratoBanco = tipoExtratoBanco; |
||
| 102 | } |
||
| 103 | public String getTipoExtratoBancoDescricao() { |
||
| 104 | return TipoExtratoBanco.parse(getTipoExtratoBanco()).getDescricao(); |
||
| 105 | } |
||
| 106 | public String getTipoExtratoBancoCor() { |
||
| 107 | return TipoExtratoBanco.parse(getTipoExtratoBanco()).getCor(); |
||
| 108 | } |
||
| 109 | |||
| 110 | public Date getDataLancamento() { |
||
| 111 | return dataLancamento; |
||
| 112 | } |
||
| 113 | public void setDataLancamento(Date dataLancamento) { |
||
| 114 | this.dataLancamento = dataLancamento; |
||
| 115 | } |
||
| 116 | |||
| 117 | public String getDescricao() { |
||
| 118 | return descricao; |
||
| 119 | } |
||
| 120 | public void setDescricao(String descricao) { |
||
| 121 | this.descricao = StringUtil.setarUpperCaseComTrim(descricao); |
||
| 122 | } |
||
| 123 | |||
| 124 | public Double getValorTotal() { |
||
| 125 | return valorTotal; |
||
| 126 | } |
||
| 127 | public void setValorTotal(Double valorTotal) { |
||
| 128 | this.valorTotal = valorTotal; |
||
| 129 | } |
||
| 130 | |||
| 131 | public String getObservacao() { |
||
| 132 | return observacao; |
||
| 133 | } |
||
| 134 | public void setObservacao(String observacao) { |
||
| 135 | this.observacao = StringUtil.setarUpperCaseComTrim(observacao); |
||
| 136 | } |
||
| 137 | |||
| 138 | public Boolean getIndicadorConciliado() { |
||
| 139 | return indicadorConciliado; |
||
| 140 | } |
||
| 141 | public void setIndicadorConciliado(Boolean indicadorConciliado) { |
||
| 142 | this.indicadorConciliado = indicadorConciliado; |
||
| 143 | } |
||
| 144 | |||
| 145 | public Boolean getIndicadorCadastrar() { |
||
| 146 | return indicadorCadastrar; |
||
| 147 | } |
||
| 148 | public void setIndicadorCadastrar(Boolean indicadorCadastrar) { |
||
| 149 | this.indicadorCadastrar = indicadorCadastrar; |
||
| 150 | } |
||
| 151 | |||
| 152 | public Boolean getIndicadorConciliar() { |
||
| 153 | return indicadorConciliar; |
||
| 154 | } |
||
| 155 | public void setIndicadorConciliar(Boolean indicadorConciliar) { |
||
| 156 | this.indicadorConciliar = indicadorConciliar; |
||
| 157 | } |
||
| 158 | |||
| 159 | } |