Package ecar.pojo

Examples of ecar.pojo.SisAtributoSatb


        List lista = new ArrayList();

        if (niveis != null) {
            for (int i = 0; i < niveis.length; i++) {
                SisAtributoSatb nivel =
                        (SisAtributoSatb) this.buscar(SisAtributoSatb.class,
                        Long.valueOf(niveis[i]));
                lista.add(nivel);
            }
        }
View Full Code Here


            throws NumberFormatException, ECARException {
        String[] niveis = request.getParameterValues("nivel");
        List lista = new ArrayList();

        for (int i = 0; i < niveis.length; i++) {
            SisAtributoSatb nivel = (SisAtributoSatb) this.buscar(SisAtributoSatb.class,
                    Long.valueOf(niveis[i]));
            lista.add(nivel);
        }

        return lista;
View Full Code Here

                (tipoAcomp.getSisAtributoSatbs().size() > 0)) {
            for (Iterator itPes = pesquisa.iterator(); itPes.hasNext();) {
                TipoAcompanhamentoTa tipoAcompPes = (TipoAcompanhamentoTa) itPes.next();

                for (Iterator itSisAt = tipoAcomp.getSisAtributoSatbs().iterator(); itSisAt.hasNext();) {
                    SisAtributoSatb sisAt = (SisAtributoSatb) itSisAt.next();

                    if (tipoAcompPes.getSisAtributoSatbs().contains(sisAt)) {
                        setResultadoParcial.add(tipoAcompPes);
                    }
                }
View Full Code Here

                seguranca.getGruposAcesso(),
                Dominios.SEPARAR_ORGAO_RESPONSABILIDADE)) {
            List listaCods = new ArrayList();

            for (Iterator it = seguranca.getGruposAcesso().iterator(); it.hasNext();) {
                SisAtributoSatb satb = (SisAtributoSatb) it.next();
                listaCods.add(satb.getCodSatb());
            }

            return this.getSession().createQuery("select orgao " + "from OrgaoOrg orgao " +
                    "join orgao.itemEstruturaIettsByCodOrgaoResponsavel1Iett iett " +
                    "join iett.itemEstrutUsuarioIettusesByCodIett iettus " +
View Full Code Here

     
      //verifica agora os que nao sao editaveis e ja pertenciam a lista
      if (estrutura.getSisAtributoSatbEttSuperior() != null) {
        Iterator itListaSisAtributoSatb = estrutura.getSisAtributoSatbEttSuperior().iterator();
        while (itListaSisAtributoSatb.hasNext()){
          SisAtributoSatb sisAtributoSatbSelecionado = (SisAtributoSatb) itListaSisAtributoSatb.next();
          if(this.existeSisAtributoSatbUsadoEstruturaSuperior(sisAtributoSatbSelecionado,estrutura)) {
            //vai adicionar todos os atributos nao editaveis
            listaSisAtributoSatb.add(sisAtributoSatbSelecionado);
          }
        }
View Full Code Here

          if(estrutura.getIndExibirEstruturaEtt().equals(Dominios.SIM)) {
            AtributosAtb atributo = estrutura.getAtributoAtbExibirEstruturaEtt();
            if( atributo.getSisGrupoAtributoSga().getCodSga().toString().equals(sisAtributoSatb.getSisGrupoAtributoSga().getCodSga().toString())) {
              Iterator<SisAtributoSatb> sisAtributosIt = estrutura.getSisAtributoSatbEttSuperior().iterator();
              while(sisAtributosIt.hasNext()) {
                SisAtributoSatb sisAtributo = sisAtributosIt.next();
                if(sisAtributo.getCodSatb().toString().equals(sisAtributoSatb.getCodSatb().toString())) {
                  achouSisGrupoAtributoRestritivo = true;
              break;
                }
              }
              if(achouSisGrupoAtributoRestritivo)
View Full Code Here

       
        //Verifica se o atributo possui grupo de atributo livre associado e se o grupo de atributo livre possui atributos livres associados.
        if (atributo.getSisGrupoAtributoSga() != null && !atributo.getSisGrupoAtributoSga().getSisAtributoSatbs().isEmpty()){

          //Obtem apenas o primeiro atributo livre associado ao grupo. Caso o grupo possua mais de um atributo livre associado est� errado. Foi incluido no cadastro de atributos livres uma restri��o para n�o permitir associar mais de um atributo livre ao grupo de atributo livre do tipo valida��o.
              SisAtributoSatb sisAtributo = (SisAtributoSatb) atributo.getSisGrupoAtributoSga().getSisAtributoSatbs().toArray()[0];
         
              //Verifica se o atributo livre � do tipo ID
              if (sisAtributo.isAtributoAutoIcremental() || sisAtributo.isAtributoContemMascara()){
                 
                //Pesquisa itens da estrutura
              List itensEstruturaAtual = new ItemEstruturaDao(request).getItensByEstrutura(estrutura.getCodEtt());
             
              //Caso a estrutura tenha itens incluidos. A inclus�o de um novo atributo livre do tipo ID n�o ser� permitida.
View Full Code Here

    public Set<SisAtributoSatb> getSetSisAtributoSatbEttSuperior(EstruturaEtt estrutura, String atributos[]) throws ECARException {
        Set<SisAtributoSatb> retorno = new HashSet<SisAtributoSatb>();
       
        if (atributos != null) {
            for (int i = 0; i < atributos.length; i++) {
              SisAtributoSatb sisAtributoSatb = (SisAtributoSatb) this.buscar(SisAtributoSatb.class, Long.valueOf(Long.valueOf(atributos[i])));
                retorno.add(sisAtributoSatb);
            }
        }
       
        return retorno;
View Full Code Here

        Iterator<SisAtributoSatb> itSisAtributos = estrutura.getSisAtributoSatbEttSuperior().iterator();
      Iterator<ItemEstruturaSisAtributoIettSatb> itIettSatbs =  itemEstruturaSelecionado.getItemEstruturaSisAtributoIettSatbs().iterator();
      while(itIettSatbs.hasNext()) {
        ItemEstruturaSisAtributoIettSatb itemEstruturaSisAtributoIettSatb = (ItemEstruturaSisAtributoIettSatb) itIettSatbs.next();
        if(itemEstruturaSisAtributoIettSatb.getSisAtributoSatb() != null) {
          SisAtributoSatb sisAtributoItem = itemEstruturaSisAtributoIettSatb.getSisAtributoSatb();
          while(itSisAtributos.hasNext()) {
            SisAtributoSatb sisAtributoItemConfigurado = (SisAtributoSatb)itSisAtributos.next();
            if(sisAtributoItemConfigurado.getCodSatb().equals(sisAtributoItem.getCodSatb())) {
              exibirEstrutura = true;
              break;
            }
          }
          if(exibirEstrutura) {
View Full Code Here

    public List getAtributosById(Set<SisAtributoSatb> atributos) {
        List lAtributos = new ArrayList();
        if (atributos != null) {
            Iterator it = atributos.iterator();
            while (it.hasNext()) {
              SisAtributoSatb atributo = (SisAtributoSatb) it.next();
                 lAtributos.add(atributo.getCodSatb());
            }
        }
        return lAtributos;
    }
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.