Rev 630 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 630 | Rev 631 | ||
|---|---|---|---|
| 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.NpsPosVendaDTO; |
|
| 25 | 26 | ||
| 26 | @Entity |
27 | @Entity |
| 27 | @Table(name="sec_nps_posvenda", schema="sc_sec") |
28 | @Table(name="sec_nps_posvenda", schema="sc_sec") |
| 28 | public class NpsPosVenda implements Serializable, Identidade { |
29 | public class NpsPosVenda implements Serializable, Identidade { |
| 29 | 30 | ||
| Line 104... | Line 105... | ||
| 104 | public String getObservacao() { |
105 | public String getObservacao() { |
| 105 | return observacao; |
106 | return observacao; |
| 106 | }
|
107 | }
|
| 107 | public void setObservacao(String observacao) { |
108 | public void setObservacao(String observacao) { |
| 108 | this.observacao = StringUtil.setarUpperCaseComTrim(observacao); |
109 | this.observacao = StringUtil.setarUpperCaseComTrim(observacao); |
| - | 110 | }
|
|
| - | 111 | ||
| - | 112 | @Transient |
|
| - | 113 | public void preencherDados(NpsPosVendaDTO npsPosVendaDTO) { |
|
| - | 114 | this.sequencial = npsPosVendaDTO.getSequencial(); |
|
| - | 115 | this.tipoNps = npsPosVendaDTO.getTipoNps(); |
|
| - | 116 | this.nota = npsPosVendaDTO.getNota(); |
|
| - | 117 | this.observacao = npsPosVendaDTO.getObservacao(); |
|
| - | 118 | this.dataFinalizacao = npsPosVendaDTO.getDataFinalizacao(); |
|
| 109 | }
|
119 | }
|
| 110 | 120 | ||
| 111 | }
|
121 | }
|