Package ecar.pojo

Examples of ecar.pojo.SisAtributoSatb


    private boolean temAtributosAtivos(Set<SisAtributoSatb> setSisAtributoSatb) {
      boolean retorno = false;
      if(setSisAtributoSatb != null && !setSisAtributoSatb.isEmpty()) {
        Iterator<SisAtributoSatb> itSisAtributoSatb = setSisAtributoSatb.iterator();
        while(itSisAtributoSatb.hasNext()) {
          SisAtributoSatb sisAtributoAtb = (SisAtributoSatb)itSisAtributoSatb.next()
          if(sisAtributoAtb.isAtivo()) {
            retorno = true;
            break;
          }
        }
      }
View Full Code Here


                    {
                        Iterator itNiveis = item.getItemEstruturaNivelIettns(  ).iterator(  );

                        while ( itNiveis.hasNext(  ) )
                        {
                            SisAtributoSatb nivel = (SisAtributoSatb) itNiveis.next(  );
                            niveis += ( nivel.getDescricaoSatb(  ) + config.getSeparadorCampoMultivalor() );
                        }

                        niveis =
                            niveis.substring( 0,
                                              niveis.lastIndexOf( config.getSeparadorCampoMultivalor() ) );
View Full Code Here

      SegurancaECAR seguranca = ((ecar.login.SegurancaECAR) session.getAttribute("seguranca"));     
       
      if(seguranca != null){
        Iterator gruposAcessoIt = seguranca.getGruposAcesso().iterator();
        while (gruposAcessoIt.hasNext()) {
          SisAtributoSatb grpAcesso = (SisAtributoSatb)gruposAcessoIt.next();
          demandasGrpAcesso = (DemandasGrpAcesso) demandasGrpAcessoDao.getDemandasGrpAcesso(grpAcesso);
          if(demandasGrpAcesso != null && demandasGrpAcesso.getAcessoDemanda().equals(Dominios.SIM)) {
            break;
          } else {
            demandasGrpAcesso = null;
          }
        }
        // se � administrador de demandas
        if(demandasGrpAcesso != null){
          retorno = true;
        }
        // se n�o � administrador de demandas,
        // verifica se a demanda foi cadastrada por algum usuario que perten�a a seu grupo de acesso
        else {
          Set gruposAcessoUsuarioLogado = seguranca.getGruposAcesso();
          Iterator gruposAcessoUsuarioInclusaoIt;
          gruposAcessoUsuarioInclusaoIt = regDemanda.getUsuarioUsuByCodUsuInclusaoRegd().getUsuarioAtributoUsuas().iterator();                   
          while (gruposAcessoUsuarioInclusaoIt.hasNext()) {
            SisAtributoSatb grpAcesso = ((UsuarioAtributoUsua) gruposAcessoUsuarioInclusaoIt.next()).getSisAtributoSatb();
            if(gruposAcessoUsuarioLogado.contains(grpAcesso)){
              retorno = true;
              break;
            }
          }         
View Full Code Here

//      if (!administradorDemandas){
     
      List<Long> listCodGruposAcesso = new ArrayList<Long>();
      if (gruposAcesso != null){
            for (Iterator iter = gruposAcesso.iterator(); iter.hasNext();) {
              SisAtributoSatb grupoAcesso = (SisAtributoSatb) iter.next();
              listCodGruposAcesso.add(grupoAcesso.getCodSatb());
            }
      }
         
          if(listCodGruposAcesso != null && listCodGruposAcesso.size() > 0){
            query.setParameterList("gruposAcesso", listCodGruposAcesso);
View Full Code Here

                   valores = (String[])parametrosFiltroDemanda.get(nomeCampo);
                 }
                 if(parametrosFiltroDemanda.get(nomeCampo) != null && valores[0]!=null &&
                     !"".equals(Pagina.trocaNull(valores[0]))){
                   String codSisAtrib = nomeCampo.substring(nomeCampo.lastIndexOf("_") + 1);
                   SisAtributoSatb sisAtributoSatb = (SisAtributoSatb) this.buscar(SisAtributoSatb.class, Long.valueOf(codSisAtrib));
                   List atributosMultiText = getRegDemandaSisAtributoRegdSatbsRegd(regDemandaRegd, grupoAtributo.getCodSga());
                   if (atributosMultiText.size() == 0 || !getSisAtributosRegDem(regDemandaRegd, grupoAtributo.getCodSga()).contains(sisAtributoSatb)){

                     itRegDemandas.remove();
                               filtrarAtributoLivre = false;
View Full Code Here

     
      try{
           
      List<Long> listCodGruposAcesso = new ArrayList<Long>();
          for (Iterator iter = gruposAcesso.iterator(); iter.hasNext();) {
            SisAtributoSatb grupoAcesso = (SisAtributoSatb) iter.next();
            listCodGruposAcesso.add(grupoAcesso.getCodSatb());
          }
   
      Set usuarioAtributos = regDemandaRegd.getUsuarioUsuByCodUsuInclusaoRegd().getUsuarioAtributoUsuas();
     
      Iterator itUsuarioAtributos = usuarioAtributos.iterator();
View Full Code Here

            {
                script.append( "if(" );

                for ( int i = 0; i < grupoAtributo.getSisAtributoSatbs(  ).size(  ); i++ )
                {
                    SisAtributoSatb sisAtributoSatb =
                        (SisAtributoSatb) grupoAtributo.getSisAtributoSatbs(  ).toArray(  )[i];

                    if ( i > 0 )
                    {
                        script.append( " || " );
                    }

                    script.append( " Trim(form.a" ).append( grupoAtributo.getCodSga(  ) ).append( "_" )
                          .append( sisAtributoSatb.getCodSatb(  ).toString(  ) ).append( ".value)==\"\"" );
                }

                script.append( "){\n" ).append( "alert(\"Obrigat�rio o preenchimento de todas as linhas do campo " )
                      .append( labelAtributo ).append( "\");\n" ).append( "return false;\n" ).append( "}" );
            }
View Full Code Here

            {
                script.append( "if(" );

                for ( int i = 0; i < grupoAtributo.getSisAtributoSatbs(  ).size(  ); i++ )
                {
                    SisAtributoSatb sisAtributoSatb =
                        (SisAtributoSatb) grupoAtributo.getSisAtributoSatbs(  ).toArray(  )[i];

                    if ( i > 0 )
                    {
                        script.append( " || " );
                    }

                    script.append( " Trim(form.a" ).append( grupoAtributo.getCodSga(  ) ).append( "_" )
                          .append( sisAtributoSatb.getCodSatb(  ).toString(  ) ).append( ".value)==\"\"" );
                }

                script.append( "){\n" ).append( "alert(\"Obrigat�rio o preenchimento de todas as linhas do campo " )
                      .append( novoLabelGrupo ).append( "\");\n" ).append( "return false;\n" ).append( "}" );
            }
View Full Code Here

        Iterator<SisAtributoSatb> it = sisAtributoSatbs.iterator(  );
        int i = 0;

        while ( it.hasNext(  ) )
        {
            SisAtributoSatb type = (SisAtributoSatb) it.next(  );

            if ( ( type.getIndAtivoSatb(  ) != null ) && type.getIndAtivoSatb(  ).equals( "S" ) )
            {
                sisAtributoSatbsAtivos.add( type );
            }
        }
View Full Code Here

                    DemAtributoDema atributoDema = (DemAtributoDema) itAtribLivres.next();
                    //Iterador com os atributos livres associados ao atributo em quest�o
                    Iterator<SisAtributoSatb> sisAtributosSatbIt = atributo.iGetGrupoAtributosLivres().getSisAtributoSatbs().iterator();
                   
                    while (sisAtributosSatbIt.hasNext()) {
                      SisAtributoSatb sisAtributo = (SisAtributoSatb) sisAtributosSatbIt.next();
                      if( (sisAtributo).equals(atributoDema.getSisAtributoSatb()) ) {
                        //Caso seja um atributo tipo texto
                        if(atributoDema.getInformacao() != null) {
                         
                          String conteudoAtributoDemanda = atributoDema.getInformacao().replaceAll("\n", " ").replaceAll("\r"," ");
                         
                          if (sisAtributo.getSisGrupoAtributoSga().getSisTipoExibicGrupoSteg().getCodSteg().intValue() == Input.IMAGEM){
                            if (conteudoAtributoDemanda.indexOf("/") != -1){
                              conteudoAtributoDemanda = conteudoAtributoDemanda.substring(conteudoAtributoDemanda.lastIndexOf("/")+1);
                              if (conteudoAtributoDemanda.indexOf("--") != -1){
                                conteudoAtributoDemanda = conteudoAtributoDemanda.substring(conteudoAtributoDemanda.lastIndexOf("--")+3);
                              }
View Full Code Here

TOP

Related Classes of ecar.pojo.SisAtributoSatb

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.