Rev 567 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 567 | Rev 568 | ||
|---|---|---|---|
| Line 10... | Line 10... | ||
| 10 | 10 | ||
| 11 | import org.springframework.context.annotation.Scope; |
11 | import org.springframework.context.annotation.Scope; |
| 12 | 12 | ||
| 13 | import br.com.ec.core.generic.GenericService; |
13 | import br.com.ec.core.generic.GenericService; |
| 14 | import br.com.ec.core.util.DataUtils; |
14 | import br.com.ec.core.util.DataUtils; |
| 15 | import br.com.ec.domain.dto.AlertasLogisticaDTO; |
- | |
| - | 15 | import br.com.ec.domain.dto.AlertasLogisticaComprasDTO; |
|
| 16 | import br.com.ec.domain.dto.RankingComprasTransferenciasDTO; |
16 | import br.com.ec.domain.dto.RankingComprasTransferenciasDTO; |
| 17 | import br.com.ec.domain.dto.RankingModeloDTO; |
17 | import br.com.ec.domain.dto.RankingModeloDTO; |
| 18 | import br.com.ec.domain.dto.consulta.ParametrosConsultaModelosMaisVendidosDTO; |
18 | import br.com.ec.domain.dto.consulta.ParametrosConsultaModelosMaisVendidosDTO; |
| 19 | import br.com.ec.domain.service.VendaService; |
19 | import br.com.ec.domain.service.VendaService; |
| 20 | import br.com.ec.web.generic.AbstractBean; |
20 | import br.com.ec.web.generic.AbstractBean; |
| 21 | 21 | ||
| 22 | @Named |
22 | @Named |
| 23 | @Scope("view") |
23 | @Scope("view") |
| 24 | public class AlertasLogisticaBean extends AbstractBean<AlertasLogisticaDTO> implements Serializable { |
- | |
| - | 24 | public class AlertasLogisticaBean extends AbstractBean<AlertasLogisticaComprasDTO> implements Serializable { |
|
| 25 | 25 | ||
| 26 | private static final long serialVersionUID = 1L; |
26 | private static final long serialVersionUID = 1L; |
| 27 | 27 | ||
| 28 | private Boolean adicionarModelosFavoritosSemVendas; |
28 | private Boolean adicionarModelosFavoritosSemVendas; |
| 29 | private Integer quantidadeDiasVendas = 0; |
29 | private Integer quantidadeDiasVendas = 0; |
| Line 34... | Line 34... | ||
| 34 | public AlertasLogisticaBean(VendaService vendaService) { |
34 | public AlertasLogisticaBean(VendaService vendaService) { |
| 35 | this.vendaService = vendaService; |
35 | this.vendaService = vendaService; |
| 36 | }
|
36 | }
|
| 37 | 37 | ||
| 38 | @Override |
38 | @Override |
| 39 | public GenericService<AlertasLogisticaDTO> getService() { |
- | |
| - | 39 | public GenericService<AlertasLogisticaComprasDTO> getService() { |
|
| 40 | return null; |
40 | return null; |
| 41 | }
|
41 | }
|
| 42 | 42 | ||
| 43 | @Override |
43 | @Override |
| 44 | public AlertasLogisticaDTO getId() { |
- | |
| - | 44 | public AlertasLogisticaComprasDTO getId() { |
|
| 45 | return null; |
45 | return null; |
| 46 | }
|
46 | }
|
| 47 | 47 | ||
| 48 | @Override |
48 | @Override |
| 49 | public void limparEntidade() { |
49 | public void limparEntidade() { |
| 50 | setEntidade(new AlertasLogisticaDTO()); |
- | |
| - | 50 | setEntidade(new AlertasLogisticaComprasDTO()); |
|
| 51 | setQuantidadeDiasVendas(30); |
51 | setQuantidadeDiasVendas(30); |
| 52 | setQuantidadeDiasParaAlerta(10); |
52 | setQuantidadeDiasParaAlerta(10); |
| 53 | setAdicionarModelosFavoritosSemVendas(false); |
53 | setAdicionarModelosFavoritosSemVendas(false); |
| 54 | }
|
54 | }
|
| 55 | 55 | ||