Rev 293 | Rev 349 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 293 | Rev 344 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | import br.com.ec.core.interfaces.Alterar; |
21 | import br.com.ec.core.interfaces.Alterar; |
| 22 | import br.com.ec.core.interfaces.Cadastrar; |
22 | import br.com.ec.core.interfaces.Cadastrar; |
| 23 | import br.com.ec.core.util.StringUtil; |
23 | import br.com.ec.core.util.StringUtil; |
| 24 | import br.com.ec.core.util.VerificadorUtil; |
24 | import br.com.ec.core.util.VerificadorUtil; |
| 25 | import br.com.ec.domain.model.tipos.TipoContaBancaria; |
25 | import br.com.ec.domain.model.tipos.TipoContaBancaria; |
| - | 26 | import br.com.ec.domain.shared.ConstantesSEC; |
|
| 26 | 27 | ||
| 27 | @Entity |
28 | @Entity |
| 28 | @Table(name="sec_conta_bancaria", schema="sc_sec") |
29 | @Table(name="sec_conta_bancaria", schema="sc_sec") |
| 29 | public class ContaBancaria implements Serializable { |
30 | public class ContaBancaria implements Serializable { |
| 30 | 31 | ||
| 31 | private static final long serialVersionUID = 1L; |
32 | private static final long serialVersionUID = 1L; |
| 32 | private static final long CONTA_CAIXA = 1L; |
- | |
| 33 | private static final long CONTA_PIX = 5L; |
- | |
| 34 | private static final long CONTA_CASA_DAS_CAPAS = 4L; |
- | |
| 35 | 33 | ||
| 36 | private Long sequencial; |
34 | private Long sequencial; |
| 37 | private String descricao; |
35 | private String descricao; |
| 38 | private Pessoa pessoa; |
36 | private Pessoa pessoa; |
| 39 | private String tipoContaBancaria; // C - CAIXA (RECEBIMENTO EM: DINHEIRO E CUPONS) e B - BANCO |
37 | private String tipoContaBancaria; // C - CAIXA (RECEBIMENTO EM: DINHEIRO E CUPONS) e B - BANCO |
| Line 100... | Line 98... | ||
| 100 | this.ativo = ativo; |
98 | this.ativo = ativo; |
| 101 | }
|
99 | }
|
| 102 | 100 | ||
| 103 | @Transient |
101 | @Transient |
| 104 | public static long getContaCaixa() { |
102 | public static long getContaCaixa() { |
| 105 | return CONTA_CAIXA; |
- | |
| - | 103 | return ConstantesSEC.ContaBancaria.CONTA_BANCARIA_CAIXA_1L; |
|
| 106 | }
|
104 | }
|
| 107 | 105 | ||
| 108 | @Transient |
106 | @Transient |
| 109 | public static long getContaPix() { |
107 | public static long getContaPix() { |
| 110 | return CONTA_PIX; |
- | |
| - | 108 | return ConstantesSEC.ContaBancaria.CONTA_BANCARIA_BRADESCO_ESPACOCASE_3L; |
|
| - | 109 | // return ConstantesSEC.ContaBancaria.CONTA_BANCARIA_ITAU_ESPACOCASE_7L;
|
|
| - | 110 | }
|
|
| - | 111 | ||
| - | 112 | @Transient |
|
| - | 113 | public static long getContaTransferencia() { |
|
| - | 114 | return ConstantesSEC.ContaBancaria.CONTA_BANCARIA_NUBANK_ESPACOCASE_5L; |
|
| 111 | }
|
115 | }
|
| 112 | 116 | ||
| 113 | @Transient |
117 | @Transient |
| 114 | public static long getContaCasaDasCapas() { |
118 | public static long getContaCasaDasCapas() { |
| 115 | return CONTA_CASA_DAS_CAPAS; |
- | |
| - | 119 | return ConstantesSEC.ContaBancaria.CONTA_BANCARIA_BRADESCO_CASADASCAPAS_4L; |
|
| 116 | }
|
120 | }
|
| 117 | 121 | ||
| 118 | @Transient |
122 | @Transient |
| 119 | public String getNomePessoa() { |
123 | public String getNomePessoa() { |
| 120 | return VerificadorUtil.naoEstaNulo(getPessoa())? getPessoa().getNome() : ""; |
124 | return VerificadorUtil.naoEstaNulo(getPessoa())? getPessoa().getNome() : ""; |