Package ecar.pojo

Examples of ecar.pojo.ServicoParametroSerPar


            Collections.sort( listParametros,
                              new Comparator(  )
                {
                    public int compare( Object o1, Object o2 )
                    {
                        ServicoParametroSerPar a1 = (ServicoParametroSerPar) o1;
                        ServicoParametroSerPar a2 = (ServicoParametroSerPar) o2;

                        return a1.getSequencia(  ).compareTo( a2.getSequencia(  ) );
                    }
                } );

            Iterator itParametros = listParametros.iterator(  );

            int countParametros = 0;

            parametros = new Object[listParametros.size(  )];

            while ( itParametros.hasNext(  ) )
            {
                ServicoParametroSerPar servicoParametroSerPar = (ServicoParametroSerPar) itParametros.next(  );

                if ( servicoParametroSerPar.getParametroPar(  ).getCodParametroPar(  )
                                               .equals( ParametroPar.IDENTIFICADOR_ITEM_ESTRUTURA ) )
                {
                    parametros[countParametros] = ari.getItemEstruturaIett(  ).getCodIett(  ).toString(  );
                    countParametros++;
                } else if ( servicoParametroSerPar.getParametroPar(  ).getCodParametroPar(  )
                                                      .equals( ParametroPar.DATA_ATUAL ) )
                {
                    Date dataAtual = Data.getDataAtual(  );
                    String dataAtualStr = Data.parseDate( dataAtual );
                    parametros[countParametros] = dataAtualStr;
                    countParametros++;
                } else if ( servicoParametroSerPar.getParametroPar(  ).getCodParametroPar(  )
                                                      .equals( ParametroPar.DATA_LIMITE_REALIZADO_FISICO ) )
                {
                    String dataLimiteRealizadoFisicoStr = Data.parseDate( ari.getDataLimiteAcompFisicoAri(  ) );
                    parametros[countParametros] = dataLimiteRealizadoFisicoStr;
                    countParametros++;
                } else if ( servicoParametroSerPar.getParametroPar(  ).getCodParametroPar(  )
                                                      .equals( ParametroPar.DATA_INICIO_ACOMPANHAMENTO ) )
                {
                    String dataInicioAcompanhamentoStr = Data.parseDate( ari.getDataInicioAri(  ) );
                    parametros[countParametros] = dataInicioAcompanhamentoStr;
                    countParametros++;
View Full Code Here

TOP

Related Classes of ecar.pojo.ServicoParametroSerPar

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.