Rev 623 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 623 | Rev 625 | ||
|---|---|---|---|
| Line 20... | Line 20... | ||
| 20 | 20 | ||
| 21 | import br.com.ec.core.generic.identidade.Identidade; |
21 | import br.com.ec.core.generic.identidade.Identidade; |
| 22 | import br.com.ec.core.interfaces.Alterar; |
22 | import br.com.ec.core.interfaces.Alterar; |
| 23 | import br.com.ec.core.interfaces.Cadastrar; |
23 | import br.com.ec.core.interfaces.Cadastrar; |
| 24 | import br.com.ec.core.util.StringUtil; |
24 | import br.com.ec.core.util.StringUtil; |
| 25 | import br.com.ec.domain.dto.TransferenciaDTO; |
- | |
| 26 | 25 | ||
| 27 | @Entity |
26 | @Entity |
| 28 | @Table(name="sec_posvenda", schema="sc_sec") |
27 | @Table(name="sec_posvenda", schema="sc_sec") |
| 29 | public class PosVenda implements Serializable, Identidade { |
28 | public class PosVenda implements Serializable, Identidade { |
| 30 | 29 | ||
| Line 32... | Line 31... | ||
| 32 | 31 | ||
| 33 | private Long sequencial; |
32 | private Long sequencial; |
| 34 | private Venda venda; |
33 | private Venda venda; |
| 35 | private Cliente cliente; |
34 | private Cliente cliente; |
| 36 | private Date dataCadastro; |
35 | private Date dataCadastro; |
| - | 36 | private Date dataInicio; |
|
| 37 | private Date dataFinalizacao; |
37 | private Date dataFinalizacao; |
| 38 | private String observacao; |
38 | private String observacao; |
| 39 | private String tipoFinalizacao; // A - ATENDIMENTO ENCERRADO // V - NOVA VENDA |
39 | private String tipoFinalizacao; // A - ATENDIMENTO ENCERRADO // V - NOVA VENDA |
| 40 | 40 | ||
| 41 | // private List<PosVendaAtivacaoDTO> listaAtivacoes;
|
41 | // private List<PosVendaAtivacaoDTO> listaAtivacoes;
|
| 42 | 42 | ||
| 43 | public PosVenda() {} |
43 | public PosVenda() {} |
| 44 | 44 | ||
| 45 | public PosVenda(TransferenciaDTO transferenciaDTO) { |
- | |
| 46 | this.sequencial = transferenciaDTO.getSequencial(); |
- | |
| - | 45 | public PosVenda(Long sequencial) { |
|
| - | 46 | this.sequencial = sequencial; |
|
| 47 | }
|
47 | }
|
| 48 | 48 | ||
| 49 | @Override |
49 | @Override |
| 50 | @Transient |
50 | @Transient |
| 51 | public Object getId() { |
51 | public Object getId() { |
| Line 92... | Line 92... | ||
| 92 | public Date getDataCadastro() { |
92 | public Date getDataCadastro() { |
| 93 | return dataCadastro; |
93 | return dataCadastro; |
| 94 | }
|
94 | }
|
| 95 | public void setDataCadastro(Date dataCadastro) { |
95 | public void setDataCadastro(Date dataCadastro) { |
| 96 | this.dataCadastro = dataCadastro; |
96 | this.dataCadastro = dataCadastro; |
| - | 97 | }
|
|
| - | 98 | ||
| - | 99 | @Column(name="dth_inicio") |
|
| - | 100 | public Date getDataInicio() { |
|
| - | 101 | return dataInicio; |
|
| - | 102 | }
|
|
| - | 103 | public void setDataInicio(Date dataInicio) { |
|
| - | 104 | this.dataInicio = dataInicio; |
|
| 97 | }
|
105 | }
|
| 98 | 106 | ||
| 99 | @Column(name="dat_finalizacao") |
107 | @Column(name="dat_finalizacao") |
| 100 | public Date getDataFinalizacao() { |
108 | public Date getDataFinalizacao() { |
| 101 | return dataFinalizacao; |
109 | return dataFinalizacao; |