Package ecar.bean

Examples of ecar.bean.IettArfBean


              q.setParameterList("grupoMetaFisica", grupoMetaFisica);
            }
            
            List arfs = q.list();
            if((item.equals(iett)) || (arfs != null && !arfs.isEmpty())){
              IettArfBean iaBean = new IettArfBean();
              iaBean.setItem(iett);
              iaBean.setArfs(arfs);
             
              retorno.add(iaBean);
            }
          }
        }
View Full Code Here


   
    //Agrupar descendentes por estrutura
   
    Collections.sort(descendentes, new Comparator(){
      public int compare(Object arg0, Object arg1) {
        IettArfBean ia1 = (IettArfBean) arg0;
        IettArfBean ia2 = (IettArfBean) arg1;
       
        ItemEstruturaIett i1 = ia1.getItem();
        ItemEstruturaIett i2 = ia2.getItem();
       
        String ord1 = i1.getEstruturaEtt().getNomeEtt() + " " + i1.getNomeIett();
        String ord2 = i2.getEstruturaEtt().getNomeEtt() + " " + i2.getNomeIett();
       
        //return i1.getEstruturaEtt().getNomeEtt().compareTo(i2.getEstruturaEtt().getNomeEtt());
        return ord1.compareTo(ord2);
      }
    });

    Iterator itDes = descendentes.iterator();
    long codEtt = -1;
        while(itDes.hasNext()){
            //ItemEstruturaIett item = (ItemEstruturaIett) itDes.next();
          IettArfBean iaBean = (IettArfBean) itDes.next();
          ItemEstruturaIett item = iaBean.getItem();
         
          if(item.equals(itemPai)){
            continue;
          }
           
View Full Code Here

TOP

Related Classes of ecar.bean.IettArfBean

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.