Rev 375 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 375 | Rev 377 | ||
|---|---|---|---|
| Line 30... | Line 30... | ||
| 30 | 30 | ||
| 31 | private Long sequencial; |
31 | private Long sequencial; |
| 32 | private ContaBancaria contaBancaria; |
32 | private ContaBancaria contaBancaria; |
| 33 | private String tipoExtratoBanco; // D - Débitos e C - Créditos |
33 | private String tipoExtratoBanco; // D - Débitos e C - Créditos |
| 34 | private Date dataLancamento; |
34 | private Date dataLancamento; |
| - | 35 | private String descricao; |
|
| 35 | private Double valorTotal; |
36 | private Double valorTotal; |
| 36 | private String observacao; |
37 | private String observacao; |
| 37 | private Boolean indicadorConciliado; |
38 | private Boolean indicadorConciliado; |
| 38 | 39 | ||
| 39 | public ExtratoBanco() {} |
40 | public ExtratoBanco() {} |
| Line 78... | Line 79... | ||
| 78 | public Date getDataLancamento() { |
79 | public Date getDataLancamento() { |
| 79 | return dataLancamento; |
80 | return dataLancamento; |
| 80 | }
|
81 | }
|
| 81 | public void setDataLancamento(Date dataLancamento) { |
82 | public void setDataLancamento(Date dataLancamento) { |
| 82 | this.dataLancamento = dataLancamento; |
83 | this.dataLancamento = dataLancamento; |
| - | 84 | }
|
|
| - | 85 | ||
| - | 86 | @Column(name="dsc_extrato_banco") |
|
| - | 87 | public String getDescricao() { |
|
| - | 88 | return descricao; |
|
| - | 89 | }
|
|
| - | 90 | public void setDescricao(String descricao) { |
|
| - | 91 | this.descricao = descricao; |
|
| - | 92 | }
|
|
| - | 93 | ||
| - | 94 | @Column(name="val_total", nullable=false) |
|
| - | 95 | @NotNull(message="Obrigatório informar o valor total do extrato", groups={Cadastrar.class, Alterar.class}) |
|
| - | 96 | public Double getValorTotal() { |
|
| - | 97 | return valorTotal; |
|
| - | 98 | }
|
|
| - | 99 | public void setValorTotal(Double valorTotal) { |
|
| - | 100 | this.valorTotal = valorTotal; |
|
| 83 | }
|
101 | }
|
| 84 | 102 | ||
| 85 | @Column(name="dsc_observacao") |
103 | @Column(name="dsc_observacao") |
| 86 | public String getObservacao() { |
104 | public String getObservacao() { |
| 87 | return observacao; |
105 | return observacao; |
| Line 100... | Line 118... | ||
| 100 | }
|
118 | }
|
| 101 | 119 | ||
| 102 | @Transient |
120 | @Transient |
| 103 | public String getTipoExtratoBancoDescricao() { |
121 | public String getTipoExtratoBancoDescricao() { |
| 104 | return TipoExtratoBanco.parse(getTipoExtratoBanco()).getDescricao(); |
122 | return TipoExtratoBanco.parse(getTipoExtratoBanco()).getDescricao(); |
| 105 | }
|
- | |
| 106 | - | ||
| 107 | @Column(name="val_total", nullable=false) |
- | |
| 108 | @NotNull(message="Obrigatório informar o valor total do extrato", groups={Cadastrar.class, Alterar.class}) |
- | |
| 109 | public Double getValorTotal() { |
- | |
| 110 | return valorTotal; |
- | |
| 111 | }
|
- | |
| 112 | public void setValorTotal(Double valorTotal) { |
- | |
| 113 | this.valorTotal = valorTotal; |
- | |
| 114 | }
|
123 | }
|
| 115 | 124 | ||
| 116 | @Transient |
125 | @Transient |
| 117 | public static long getContaCaixa() { |
126 | public static long getContaCaixa() { |
| 118 | return CONTA_CAIXA; |
127 | return CONTA_CAIXA; |