Subversion Repositories Integrator Subversion

Rev

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

Rev 585 Rev 587
Line 12... Line 12...
12
        private Boolean adicionarModelosFavoritosSemVendas;
12
        private Boolean adicionarModelosFavoritosSemVendas;
13
       
13
       
14
        private List<TipoProduto> tiposProdutoSelecionados;
14
        private List<TipoProduto> tiposProdutoSelecionados;
15
       
15
       
16
        // ALERTAS COMPRAS (CAPAS)
16
        // ALERTAS COMPRAS (CAPAS)
17
        // ALERTAS COMPRAS (EXCETO CAPAS)
-
 
-
 
17
       
-
 
18
        // ALERTAS COMPRAS (GERAL)
18
        private List<AlertasComprasGeralDTO> alertasComprasGeralDTO;
19
        private List<AlertasComprasGeralDTO> alertasComprasGeralDTO;
19
       
20
       
20
        // ALERTAS LOGÍSTICA (CAPAS)
21
        // ALERTAS LOGÍSTICA (CAPAS)
21
        // ALERTAS LOGÍSTICA (EXCETO CAPAS)
22
        // ALERTAS LOGÍSTICA (EXCETO CAPAS)
22
       
23
       
Line 77... Line 78...
77
                Integer quantidadeTotalAlertasPossiveis = 0;
78
                Integer quantidadeTotalAlertasPossiveis = 0;
78
                for (AlertasComprasGeralDTO alertasComprasGeralDTO : getAlertasComprasGeralDTO()) {
79
                for (AlertasComprasGeralDTO alertasComprasGeralDTO : getAlertasComprasGeralDTO()) {
79
                        quantidadeTotalAlertasPossiveis += alertasComprasGeralDTO.getQuantidadeTotalAlertasPossiveis();
80
                        quantidadeTotalAlertasPossiveis += alertasComprasGeralDTO.getQuantidadeTotalAlertasPossiveis();
80
                }
81
                }
81
                return quantidadeTotalAlertasPossiveis;
82
                return quantidadeTotalAlertasPossiveis;
-
 
83
        }
-
 
84
       
-
 
85
        public Integer getQuantidadeTotalAlertasCriticos() {
-
 
86
                Integer quantidadeTotalAlertasCriticos = 0;
-
 
87
                for (AlertasComprasGeralDTO alertasComprasGeralDTO : getAlertasComprasGeralDTO()) {
-
 
88
                        quantidadeTotalAlertasCriticos += alertasComprasGeralDTO.getQuantidadeAlertasCriticos();
-
 
89
                }
-
 
90
                return quantidadeTotalAlertasCriticos;
82
        }
91
        }
83
       
92
       
84
        public Double percentualAlertasComprasGeral() {
93
        public Double percentualAlertasComprasGeral() {
85
                Double percentual = new Double(getQuantidadeTotalAlertasComprasGeral())/new Double(getQuantidadeTotalAlertasPossiveisComprasGeral());
94
                Double percentual = new Double(getQuantidadeTotalAlertasComprasGeral())/new Double(getQuantidadeTotalAlertasPossiveisComprasGeral());
86
                return 100 - (percentual * 100.0);
95
                return 100 - (percentual * 100.0);