Package ecar.pojo

Examples of ecar.pojo.PontocriticoCorPtccor


          else {
            List listPtcCor = this.ordenaSet(pontoCritico.getPontoCriticoCorPtccores(), "this.antecedenciaPrimEmailPtccor", "asc");
            Iterator itPtcCor = listPtcCor.iterator();
            boolean encontrouLimite = false;
            while ((itPtcCor.hasNext()) && (!encontrouLimite)) {
              PontocriticoCorPtccor ptcCor = (PontocriticoCorPtccor) itPtcCor.next();
              if (ptcCor.getAntecedenciaPrimEmailPtccor() == null)
                diasAntecedencia = 0;
              else
                diasAntecedencia = ptcCor.getAntecedenciaPrimEmailPtccor().intValue();
              Date dataComparacao = Data.addDias(diasAntecedencia, dataCorrente);
              String dataCompStr = Data.parseDate(dataComparacao);
              // Ap�s definir qual � a data que ser� comparada,
              // verifica-se
              // se esta se enquadra no PtcCor atual.O loop while
              // � interrompido quando isto � feito.
              if ((dataComparacao.after(dataLimitePtc)) || (dataCompStr.equals(dataLimiteStr))) {
                if (diasAntecedencia > 0) {
                  corRelogio = ptcCor.getCor().getNomeCor();
                  descRelogio = ptcCor.getCor().getSignificadoCor();
                  encontrouLimite = true;
                }
              }
            }// fim do while
          } // fim do if - else Preto
View Full Code Here


//            List listPtcCor = this.ordenaList(Util.converteParaList(pontoCritico.getPontoCriticoCorPtccores()), "this.antecedenciaPrimEmailPtccor");
            List listPtcCor = this.ordenaList(Util.converteParaList(pontoCritico.getPontoCriticoCorPtccores()), "antecedenciaPrimEmailPtccor");           
            Iterator itPtcCor = listPtcCor.iterator();
            boolean encontrouLimite = false;
            while ((itPtcCor.hasNext()) && (!encontrouLimite)) {
              PontocriticoCorPtccor ptcCor = (PontocriticoCorPtccor) itPtcCor.next();
              if (ptcCor.getAntecedenciaPrimEmailPtccor() == null)
                diasAntecedencia = 0;
              else
                diasAntecedencia = ptcCor.getAntecedenciaPrimEmailPtccor().intValue();
              Date dataComparacao = Data.addDias(diasAntecedencia, dataCorrente);
              String dataCompStr = Data.parseDate(dataComparacao);
              // Ap�s definir qual � a data que ser� comparada,
              // verifica-se
              // se esta se enquadra no PtcCor atual.O loop while
              // � interrompido quando isto � feito.
              if ((dataComparacao.after(dataLimitePtc)) || (dataCompStr.equals(dataLimiteStr))) {
                if (diasAntecedencia > 0) {
                  corRelogio = ptcCor.getCor().getNomeCor();
                  descRelogio = ptcCor.getCor().getSignificadoCor();
                  encontrouLimite = true;
                }
              }
            }// fim do while
          } // fim do if - else Preto
View Full Code Here

TOP

Related Classes of ecar.pojo.PontocriticoCorPtccor

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.