Rev 629 | Rev 631 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 629 | Rev 630 | ||
|---|---|---|---|
| Line 21... | Line 21... | ||
| 21 | private Date dataFinalizacao; |
21 | private Date dataFinalizacao; |
| 22 | private String tipoFinalizacao; // A - ATENDIMENTO ENCERRADO // V - NOVA VENDA |
22 | private String tipoFinalizacao; // A - ATENDIMENTO ENCERRADO // V - NOVA VENDA |
| 23 | private String observacao; |
23 | private String observacao; |
| 24 | private String scriptAtivacaoAgradecimento; |
24 | private String scriptAtivacaoAgradecimento; |
| 25 | 25 | ||
| 26 | private NpsPosVendaDTO npsPosVendaAtendimento; |
- | |
| - | 26 | private NpsPosVendaDTO npsPosVendaAgradecimento; |
|
| 27 | private NpsPosVendaDTO npsPosVendaProduto; |
27 | private NpsPosVendaDTO npsPosVendaProduto; |
| 28 | 28 | ||
| 29 | private List<PosVendaAtivacaoDTO> listaAtivacoes; |
29 | private List<PosVendaAtivacaoDTO> listaAtivacoes; |
| 30 | 30 | ||
| 31 | public PosVendaDTO() {} |
31 | public PosVendaDTO() {} |
| Line 105... | Line 105... | ||
| 105 | }
|
105 | }
|
| 106 | public void setTipoFinalizacao(String tipoFinalizacao) { |
106 | public void setTipoFinalizacao(String tipoFinalizacao) { |
| 107 | this.tipoFinalizacao = tipoFinalizacao; |
107 | this.tipoFinalizacao = tipoFinalizacao; |
| 108 | }
|
108 | }
|
| 109 | 109 | ||
| 110 | public NpsPosVendaDTO getNpsPosVendaAtendimento() { |
- | |
| 111 | return npsPosVendaAtendimento; |
- | |
| - | 110 | public NpsPosVendaDTO getNpsPosVendaAgradecimento() { |
|
| - | 111 | return npsPosVendaAgradecimento; |
|
| 112 | }
|
112 | }
|
| 113 | public void setNpsPosVendaAtendimento(NpsPosVendaDTO npsPosVendaAtendimento) { |
- | |
| 114 | this.npsPosVendaAtendimento = npsPosVendaAtendimento; |
- | |
| - | 113 | public void setNpsPosVendaAgradecimento(NpsPosVendaDTO npsPosVendaAgradecimento) { |
|
| - | 114 | this.npsPosVendaAgradecimento = npsPosVendaAgradecimento; |
|
| 115 | }
|
115 | }
|
| 116 | 116 | ||
| 117 | public NpsPosVendaDTO getNpsPosVendaProduto() { |
117 | public NpsPosVendaDTO getNpsPosVendaProduto() { |
| 118 | return npsPosVendaProduto; |
118 | return npsPosVendaProduto; |
| 119 | }
|
119 | }
|
| Line 150... | Line 150... | ||
| 150 | 150 | ||
| 151 | public String linkNpsAtendimento() { |
151 | public String linkNpsAtendimento() { |
| 152 | return "https://espacocase.net/novo/sistema/comercial/nps_atendimento.xhtml?sq=" + getSequencial(); |
152 | return "https://espacocase.net/novo/sistema/comercial/nps_atendimento.xhtml?sq=" + getSequencial(); |
| 153 | }
|
153 | }
|
| 154 | 154 | ||
| 155 | public String corDaSituacao() { |
- | |
| 156 | return VerificadorUtil.estaNulo(getDataInicio())? "danger" : "warning"; |
- | |
| - | 155 | public String corDaSituacaoAgradecimento() { |
|
| - | 156 | return VerificadorUtil.estaNulo(getDataInicio())? "danger" : VerificadorUtil.naoEstaNulo(getNpsPosVendaAgradecimento())? VerificadorUtil.naoEstaNulo(getNpsPosVendaAgradecimento().getDataFinalizacao())? "success" : "warning" : "warning"; |
|
| 157 | }
|
157 | }
|
| 158 | 158 | ||
| 159 | public String notaNpsPosVendaAtendimento() { |
159 | public String notaNpsPosVendaAtendimento() { |
| 160 | return VerificadorUtil.naoEstaNulo(getNpsPosVendaAtendimento())? "" + getNpsPosVendaAtendimento().getNota() : "SEM NOTA!"; |
- | |
| - | 160 | return VerificadorUtil.naoEstaNulo(getNpsPosVendaAgradecimento())? "" + getNpsPosVendaAgradecimento().getNota() : "SEM NOTA!"; |
|
| 161 | }
|
161 | }
|
| 162 | 162 | ||
| 163 | }
|
163 | }
|