Rev 584 | Rev 586 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 584 | Rev 585 | ||
|---|---|---|---|
| Line 67... | Line 67... | ||
| 67 | 67 | ||
| 68 | /******************************************************/
|
68 | /******************************************************/
|
| 69 | 69 | ||
| 70 | public Integer getQuantidadeTotalAlertas() { |
70 | public Integer getQuantidadeTotalAlertas() { |
| 71 | Integer quantidadeTotalAlertas = 0; |
71 | Integer quantidadeTotalAlertas = 0; |
| 72 | /*
|
- | |
| 73 | if (!getAlertasComprasGeralSubTipoDTO().isEmpty()) {
|
72 | if (!getAlertasComprasGeralSubTipoDTO().isEmpty()) { |
| 74 | for (AlertasComprasGeralSubTipoDTO ranking : getAlertasComprasGeralSubTipoDTO()) {
|
73 | for (AlertasComprasGeralSubTipoDTO ranking : getAlertasComprasGeralSubTipoDTO()) { |
| 75 | quantidadeTotalAlertas += ranking.getAlertas().size();
|
- | |
| - | 74 | quantidadeTotalAlertas += ranking.getRankingProdutosDTO().size(); |
|
| 76 | }
|
75 | }
|
| 77 | }
|
76 | }
|
| 78 | */
|
- | |
| - | 77 | quantidadeTotalAlertas += getAlertasProdutosSemSubtipo().size(); |
|
| 79 | return quantidadeTotalAlertas; |
78 | return quantidadeTotalAlertas; |
| 80 | }
|
79 | }
|
| 81 | 80 | ||
| 82 | public Integer getQuantidadeTotalAlertasPossiveis() { |
81 | public Integer getQuantidadeTotalAlertasPossiveis() { |
| 83 | Integer quantidadeTotalAlertasPossiveis = 0; |
82 | Integer quantidadeTotalAlertasPossiveis = 0; |
| - | 83 | /*
|
|
| 84 | if (!getAlertasComprasGeralSubTipoDTO().isEmpty()) { |
84 | if (!getAlertasComprasGeralSubTipoDTO().isEmpty()) {
|
| 85 | for (AlertasComprasGeralSubTipoDTO ranking : getAlertasComprasGeralSubTipoDTO()) { |
85 | for (AlertasComprasGeralSubTipoDTO ranking : getAlertasComprasGeralSubTipoDTO()) {
|
| 86 | quantidadeTotalAlertasPossiveis += ranking.getQuantidadeAlertasPossiveis(); |
86 | quantidadeTotalAlertasPossiveis += ranking.getQuantidadeAlertasPossiveis();
|
| 87 | }
|
87 | }
|
| 88 | }
|
88 | }
|
| 89 | return quantidadeTotalAlertasPossiveis + getQuantidadeTotalAlertas(); |
- | |
| - | 89 | */
|
|
| - | 90 | quantidadeTotalAlertasPossiveis += getQuantidadeAlertasPossiveis() + getQuantidadeAlertasPossiveisComSubtipo(); |
|
| - | 91 | return quantidadeTotalAlertasPossiveis; |
|
| 90 | }
|
92 | }
|
| 91 | 93 | ||
| 92 | public Double percentualAlertas() { |
94 | public Double percentualAlertas() { |
| 93 | Double percentual = new Double(getQuantidadeTotalAlertas())/new Double(getQuantidadeTotalAlertasPossiveis()); |
95 | Double percentual = new Double(getQuantidadeTotalAlertas())/new Double(getQuantidadeTotalAlertasPossiveis()); |
| 94 | return 100 - (percentual * 100.0); |
96 | return 100 - (percentual * 100.0); |