Subversion Repositories Integrator Subversion

Rev

Rev 685 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 685 Rev 686
Line 4... Line 4...
4
4
5
import br.com.ec.core.util.StringUtil;
-
 
6
import br.com.ec.domain.model.Cliente;
5
import br.com.ec.domain.model.Cliente;
7
import br.com.ec.domain.model.Venda;
6
import br.com.ec.domain.model.Venda;
8
7
9
public class CashbackDTO {
8
public class CashbackDTO {
10
       
9
       
Line 15... Line 14...
15
        private Double valor;
14
        private Double valor;
16
        private String tipoCashback; // E - ENTRADA, S - SAÍDA
15
        private String tipoCashback; // E - ENTRADA, S - SAÍDA
17
        private String observacao;
16
        private String observacao;
18
        private Boolean ativo;
17
        private Boolean ativo;
19
       
18
       
20
        private Cliente clienteDTO;
-
 
21
        private Venda vendaDTO;
-
 
-
 
19
        private Cliente cliente;
-
 
20
        private Venda venda;
22
       
21
       
23
        public CashbackDTO() {}
22
        public CashbackDTO() {}
24
       
23
       
25
        /*
-
 
26
        public static String CONSULTA_DTO_COMPLETA = "e.sequencial, e.funcionario.sequencial, e.data, e.valor, e.observacao";
-
 
27
        public CashbackDTO(Long sequencial, Long sequencialFuncionario, Date data, Double valor, String observacao) {
-
 
-
 
24
        public static String CONSULTA_DTO_COMPLETA = "e.sequencial, e.dataHoraEmissao, e.prazoInicial, e.prazoFinal, e.valor, "
-
 
25
                        + "e.tipoCashback, e.observacao, e.ativo, e.cliente.sequencial";
-
 
26
        public CashbackDTO(Long sequencial, Date dataHoraEmissao, Date prazoInicial, Date prazoFinal, Double valor, String tipoCashback, String observacao,
-
 
27
                        Boolean ativo, Long sequencialCliente) {
28
                super();
28
                super();
29
                this.sequencial = sequencial;
29
                this.sequencial = sequencial;
30
                this.funcionarioDTO = new FuncionarioDTO(sequencialFuncionario, null, null);
-
 
31
                this.data = data;
-
 
-
 
30
                this.dataHoraEmissao = dataHoraEmissao;
-
 
31
                this.prazoInicial = prazoInicial;
-
 
32
                this.prazoFinal = prazoFinal;
32
                this.valor = valor;
33
                this.valor = valor;
-
 
34
                this.tipoCashback = tipoCashback;
33
                this.observacao = observacao;
35
                this.observacao = observacao;
-
 
36
                this.ativo = ativo;
-
 
37
                this.cliente = new Cliente(sequencialCliente);
34
        }
38
        }
35
        */
-
 
36
       
39
       
37
        public Long getSequencial() {return sequencial;}
40
        public Long getSequencial() {return sequencial;}
38
        public void setSequencial(Long sequencial) {this.sequencial = sequencial;}
41
        public void setSequencial(Long sequencial) {this.sequencial = sequencial;}
39
42
40
        public Date getDataHoraEmissao() {return dataHoraEmissao;}
43
        public Date getDataHoraEmissao() {return dataHoraEmissao;}
Line 80... Line 83...
80
        }
83
        }
81
        public void setAtivo(Boolean ativo) {
84
        public void setAtivo(Boolean ativo) {
82
                this.ativo = ativo;
85
                this.ativo = ativo;
83
        }
86
        }
84
       
87
       
85
        public Cliente getClienteDTO() {
-
 
86
                return clienteDTO;
-
 
-
 
88
        public Cliente getCliente() {
-
 
89
                return cliente;
87
        }
90
        }
88
        public void setClienteDTO(Cliente clienteDTO) {
-
 
89
                this.clienteDTO = clienteDTO;
-
 
-
 
91
        public void setCliente(Cliente cliente) {
-
 
92
                this.cliente = cliente;
90
        }
93
        }
91
       
94
       
92
        public Venda getVendaDTO() {
-
 
93
                return vendaDTO;
-
 
-
 
95
        public Venda getVenda() {
-
 
96
                return venda;
94
        }
97
        }
95
        public void setVendaDTO(Venda vendaDTO) {
-
 
96
                this.vendaDTO = vendaDTO;
-
 
-
 
98
        public void setVenda(Venda venda) {
-
 
99
                this.venda = venda;
97
        }
100
        }
98
101
99
        @Override
102
        @Override
100
        public int hashCode() {
103
        public int hashCode() {
101
                final int prime = 31;
104
                final int prime = 31;