Package ecar.pojo

Examples of ecar.pojo.FuncaoSisAtributo


               
                //Para cada atributo livre do �tem, verifica-se se este corresponde
                //ao atributo que esta sendo tratado
                while(itAtribLivres.hasNext()){
                 
                  FuncaoSisAtributo atributoLivreObjetoNegocio = (FuncaoSisAtributo) itAtribLivres.next();
                  //Iterator com os atributos livres associados ao atributo em quest�o
                  Iterator<SisAtributoSatb> sisAtributosSatbIt = atributo.iGetGrupoAtributosLivres().getSisAtributoSatbs().iterator();
                 
                  String tipoCampo = grupoAtributoLivre.getSisTipoExibicGrupoSteg().getCodSteg().toString();
                 
                  while (sisAtributosSatbIt.hasNext()) {
                    SisAtributoSatb sisAtributo = (SisAtributoSatb) sisAtributosSatbIt.next();
                   
                    if( (sisAtributo).equals(atributoLivreObjetoNegocio.getSisAtributoSatb()) ) {
                      //Caso seja um atributo tipo texto
                      if(atributoLivreObjetoNegocio.getInformacao() != null) {
                        if (relatorioTipoMonitoramento.equals(Dominios.NAO)){
                         
                          //Verifica se o grupo � do tipo imagem, se for obtem apenas o nome do arquivo.
                          if (tipoCampo.equals(SisTipoExibicGrupoDao.IMAGEM)){
                           
                            String arquivo = atributoLivreObjetoNegocio.getInformacao();
                            String nomeArquivo = "";
                           
                            if(arquivo.lastIndexOf("\\") != -1) {
                                     nomeArquivo = arquivo.substring(arquivo.lastIndexOf("\\") + 1);
                                   } else if (arquivo.lastIndexOf("/") != -1){    
                                          nomeArquivo = arquivo.substring(arquivo.lastIndexOf("/") + 1);
                                   }
                           
                            valorAtributoStr = retirarCaracteresControle(FileUpload.getNomeArquivoOriginal(nomeArquivo));
                          } else {
                            valorAtributoStr = retirarCaracteresControle(atributoLivreObjetoNegocio.getInformacao());
                          }
                          objetoNegocioStr.append(separadorParaCamposMulti);
                          objetoNegocioStr.append(valorAtributoStr);
                          separadorParaCamposMulti = separadorMultivalor;
                        }
                      //Caso seja atributo tipo check, radio ou select
                      } else if(atributoLivreObjetoNegocio.getSisAtributoSatb().getDescricaoSatb() != null) {
                        if (relatorioTipoMonitoramento.equals(Dominios.NAO)){
                          valorAtributoStr = retirarCaracteresControle(atributoLivreObjetoNegocio.getSisAtributoSatb().getDescricaoSatb());
                          objetoNegocioStr.append(separadorParaCamposCheck);
                          objetoNegocioStr.append(valorAtributoStr);
                          separadorParaCamposCheck = separadorMultivalor;
                        }
                       
View Full Code Here

TOP

Related Classes of ecar.pojo.FuncaoSisAtributo

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.