Package controleEstoque.entidades

Examples of controleEstoque.entidades.Estatisticas


            BufferedReader reader = new BufferedReader(new FileReader(leArquivo()));
            String strReader = reader.readLine();
            int i = 0;
            Produto produto = new Produto();
            Estoque estoque = new Estoque();
            Estatisticas estatistica = new Estatisticas();                   
            while(strReader != null){
               
                switch (i){
                        case 0:                           
                            produto.setId(Integer.parseInt(strReader));                          
                        break;
                           
                        case 1:                           
                            produto.setNome(strReader);                          
                        break;
                           
                        case 2:
                           produto.setDescricao(strReader);                                                  
                        break;
                           
                        case 3:
                            produto.setValorUnitario(Double.parseDouble(strReader));
                        break;
                           
                        case 5:
                            estatistica.setVendaMediaMensal(Double.parseDouble(strReader));
                        break;  
                           
                        case 6:
                            estatistica.setTempoCobertura(Double.parseDouble(strReader));
                        break;  
                           
                        case 7:
                            estatistica.setEstoqueMinimo(Integer.parseInt(strReader));
                        break;  
                           
                        case 8:
                            estatistica.setEstoqueMaximo(Integer.parseInt(strReader));                                                      
                        break;                              
                           
                       case 4:
                            estoque.setQuantidade(Integer.parseInt(strReader));
                        break;       
View Full Code Here


                BufferedReader bufReader = new BufferedReader(new FileReader(file));
                String strReader = bufReader.readLine();
                int i = 0;               
                Produto produto = new Produto();
                Estoque estoque = new Estoque();
                Estatisticas estatistica = new Estatisticas();
               
                while(strReader != null){
                    switch (i){
                        case 0:                           
                            produto.setId(Integer.parseInt(strReader));                          
                        break;
                           
                        case 1:                           
                            produto.setNome(strReader);                          
                        break;
                           
                        case 2:
                           produto.setDescricao(strReader);                                                  
                        break;
                           
                        case 3:
                            produto.setValorUnitario(Double.parseDouble(strReader));
                        break;
                           
                        case 4:
                            estatistica.setVendaMediaMensal(Double.parseDouble(strReader));
                        break;  
                           
                        case 5:
                            estatistica.setTempoCobertura(Double.parseDouble(strReader));
                        break;  
                           
                        case 6:
                            estatistica.setEstoqueMinimo(Integer.parseInt(strReader));
                        break;  
                           
                        case 7:
                            estatistica.setEstoqueMaximo(Integer.parseInt(strReader));                                                      
                        break;                              
                           
                       case 8:
                            estoque.setQuantidade(Integer.parseInt(strReader));
                        break;       
View Full Code Here

TOP

Related Classes of controleEstoque.entidades.Estatisticas

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.