Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 106 | espaco | 1 | package br.com.ec.domain.dto; |
| 2 | |||
| 3 | import java.util.ArrayList; |
||
| 4 | import java.util.Date; |
||
| 5 | import java.util.List; |
||
| 6 | |||
| 7 | public class VendasDTO { |
||
| 8 | |||
| 9 | private Long sequencial; |
||
| 10 | private String descricaoLoja; |
||
| 11 | private Date dataVenda; |
||
| 12 | private Double valorVenda; |
||
| 13 | private String tipoSituacao; |
||
| 14 | private String nomeUsuario; |
||
| 15 | private String observacao; |
||
| 16 | |||
| 17 | public List<VendasLancamentoDTO> lancamentos = new ArrayList<VendasLancamentoDTO>(); |
||
| 18 | |||
| 19 | public Long getSequencial() { |
||
| 20 | return sequencial; |
||
| 21 | } |
||
| 22 | public void setSequencial(Long sequencial) { |
||
| 23 | this.sequencial = sequencial; |
||
| 24 | } |
||
| 25 | |||
| 26 | public String getDescricaoLoja() { |
||
| 27 | return descricaoLoja; |
||
| 28 | } |
||
| 29 | public void setDescricaoLoja(String descricaoLoja) { |
||
| 30 | this.descricaoLoja = descricaoLoja; |
||
| 31 | } |
||
| 32 | |||
| 33 | public Date getDataVenda() { |
||
| 34 | return dataVenda; |
||
| 35 | } |
||
| 36 | public void setDataVenda(Date dataVenda) { |
||
| 37 | this.dataVenda = dataVenda; |
||
| 38 | } |
||
| 39 | |||
| 40 | public Double getValorVenda() { |
||
| 41 | return valorVenda; |
||
| 42 | } |
||
| 43 | public void setValorVenda(Double valorVenda) { |
||
| 44 | this.valorVenda = valorVenda; |
||
| 45 | } |
||
| 46 | |||
| 47 | public String getTipoSituacao() { |
||
| 48 | return tipoSituacao; |
||
| 49 | } |
||
| 50 | public void setTipoSituacao(String tipoSituacao) { |
||
| 51 | this.tipoSituacao = tipoSituacao; |
||
| 52 | } |
||
| 53 | |||
| 54 | public String getNomeUsuario() { |
||
| 55 | return nomeUsuario; |
||
| 56 | } |
||
| 57 | public void setNomeUsuario(String nomeUsuario) { |
||
| 58 | this.nomeUsuario = nomeUsuario; |
||
| 59 | } |
||
| 60 | |||
| 61 | public String getObservacao() { |
||
| 62 | return observacao; |
||
| 63 | } |
||
| 64 | public void setObservacao(String observacao) { |
||
| 65 | this.observacao = observacao; |
||
| 66 | } |
||
| 67 | |||
| 68 | public List<VendasLancamentoDTO> getLancamentos() { |
||
| 69 | return lancamentos; |
||
| 70 | } |
||
| 71 | public void setLancamentos(List<VendasLancamentoDTO> lancamentos) { |
||
| 72 | this.lancamentos = lancamentos; |
||
| 73 | } |
||
| 74 | |||
| 75 | @Override |
||
| 76 | public int hashCode() { |
||
| 77 | final int prime = 31; |
||
| 78 | int result = 1; |
||
| 79 | result = prime * result + ((sequencial == null) ? 0 : sequencial.hashCode()); |
||
| 80 | return result; |
||
| 81 | } |
||
| 82 | |||
| 83 | @Override |
||
| 84 | public boolean equals(Object obj) { |
||
| 85 | if (this == obj) |
||
| 86 | return true; |
||
| 87 | if (obj == null) |
||
| 88 | return false; |
||
| 89 | if (getClass() != obj.getClass()) |
||
| 90 | return false; |
||
| 91 | VendasDTO other = (VendasDTO) obj; |
||
| 92 | if (sequencial == null) { |
||
| 93 | if (other.sequencial != null) |
||
| 94 | return false; |
||
| 95 | } else if (!sequencial.equals(other.sequencial)) |
||
| 96 | return false; |
||
| 97 | return true; |
||
| 98 | } |
||
| 99 | |||
| 100 | } |