Subversion Repositories Integrator Subversion

Rev

Rev 585 | Rev 587 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 585 Rev 586
Line 77... Line 77...
77
                quantidadeTotalAlertas += getAlertasProdutosSemSubtipo().size();
77
                quantidadeTotalAlertas += getAlertasProdutosSemSubtipo().size();
78
                return quantidadeTotalAlertas;
78
                return quantidadeTotalAlertas;
79
        }
79
        }
80
       
80
       
81
        public Integer getQuantidadeTotalAlertasPossiveis() {
81
        public Integer getQuantidadeTotalAlertasPossiveis() {
82
                Integer quantidadeTotalAlertasPossiveis = 0;
-
 
83
                /*
-
 
84
                if (!getAlertasComprasGeralSubTipoDTO().isEmpty()) {
-
 
85
                        for (AlertasComprasGeralSubTipoDTO ranking : getAlertasComprasGeralSubTipoDTO()) {
-
 
86
                                quantidadeTotalAlertasPossiveis += ranking.getQuantidadeAlertasPossiveis();
-
 
87
                        }
-
 
88
                }
-
 
89
                */
-
 
90
                quantidadeTotalAlertasPossiveis += getQuantidadeAlertasPossiveis() + getQuantidadeAlertasPossiveisComSubtipo();
-
 
91
                return quantidadeTotalAlertasPossiveis;
-
 
-
 
82
                return getQuantidadeAlertasPossiveis() + getQuantidadeAlertasPossiveisComSubtipo();
92
        }
83
        }
93
       
84
       
94
        public Double percentualAlertas() {
85
        public Double percentualAlertas() {
95
                Double percentual = new Double(getQuantidadeTotalAlertas())/new Double(getQuantidadeTotalAlertasPossiveis());
86
                Double percentual = new Double(getQuantidadeTotalAlertas())/new Double(getQuantidadeTotalAlertasPossiveis());
96
                return 100 - (percentual * 100.0);
87
                return 100 - (percentual * 100.0);