Package ecar.pojo

Examples of ecar.pojo.AtributoLivre


         * @param sisAtb
   * @return Atributo livre
   */
    public AtributoLivre buscaAtributo (SisAtributoSatb sisAtb)
    {
      AtributoLivre atribLivre = new AtributoLivre();
      Iterator itAtb = getSelecionados().iterator();
      while (itAtb.hasNext())
      {
        atribLivre = (AtributoLivre)itAtb.next();
        if(sisAtb.equals(atribLivre.getSisAtributoSatb()))
          return atribLivre;
      }
      return null;
    }
View Full Code Here


     * @return
     * @throws ECARException
     */
    public StringBuffer addInputValidacao() throws ECARException {
      if (atribLivre == null || atribLivre.equals(null)){
          atribLivre = new AtributoLivre();
          atribLivre.setSisAtributoSatb(sisAtributo);
        }
      if (telaFiltro.booleanValue() &&
        atribLivre != null &&
        !atribLivre.equals(null) &&
View Full Code Here

          } else {
            if (getDisabled() != null && "S".equals(getDisabled()))
                s.append(" disabled ");
                   
            if (atribLivre == null || atribLivre.equals(null)){
              atribLivre = new AtributoLivre();
              atribLivre.setSisAtributoSatb(sisAtributo);
            }
           
            String scriptValidacao="";
            if (atribLivre != null){
View Full Code Here

           
            if(regDemanda.getDemAtributoDemas() != null){
              Iterator itAtribLivres = regDemanda.getDemAtributoDemas().iterator();
              while(itAtribLivres.hasNext()){
                DemAtributoDema atributo = (DemAtributoDema) itAtribLivres.next();
                AtributoLivre atributoLivre = new AtributoLivre();
                atributoLivre.setInformacao(atributo.getInformacao());
                atributoLivre.setSisAtributoSatb(atributo.getSisAtributoSatb());
                aributosLivresSelecionados.add(atributoLivre);
              }
            }
           
            input.setSelecionados(aributosLivresSelecionados);
View Full Code Here

                        int tam = listaSisAtributosInformados.size();
                        int pos = 0;
                        Iterator itAtribLivres = item.getItemEstruturaSisAtributoIettSatbs().iterator();
                        while(itAtribLivres.hasNext()){
                          ItemEstruturaSisAtributoIettSatb atributo = (ItemEstruturaSisAtributoIettSatb) itAtribLivres.next();
                          AtributoLivre atributoLivre = new AtributoLivre();
                          atributoLivre.setSisAtributoSatb(atributo.getSisAtributoSatb());
                          atributoLivre.setInformacao(atributo.getInformacao());
                         
                          if(!atributoLivre.getSisAtributoSatb().getSisGrupoAtributoSga().equals(estruturaAtributo.iGetGrupoAtributosLivres()))
                            continue;
                         
                          if((atributoLivre.getSisAtributoSatb()
                              .getSisGrupoAtributoSga()
                              .getSisTipoExibicGrupoSteg()
                              .getCodSteg().intValue() != TEXT) &&
                            (atributoLivre.getSisAtributoSatb()
                                    .getSisGrupoAtributoSga()
                                    .getSisTipoExibicGrupoSteg()
                                    .getCodSteg().intValue() != TEXTAREA) &&
                            (atributoLivre.getSisAtributoSatb()
                                    .getSisGrupoAtributoSga()
                                    .getSisTipoExibicGrupoSteg()
                                    .getCodSteg().intValue() != VALIDACAO)) {
                         
                           
                            if(separador == null){
                              separador = new ConfiguracaoDao(request).getConfiguracao().getSeparadorCampoMultivalor();
                            }
                           
                           
                            if(atributoLivre.getSisAtributoSatb() != null) {
                              valor += atributoLivre.getSisAtributoSatb().getDescricaoSatb();
                              pos++;
                            } else {
                              valor += atributoLivre.getInformacao();
                            }
                           
                            if (pos < tam){
                              valor += separador;
                            }
                           
                          } else {
                            valor = atributoLivre.getInformacao();
                          }
                        }
                      }
            
                      valor = valor.trim();
View Full Code Here

        if (tagInput.getSelecionados() != null && !tagInput.getSelecionados().isEmpty())
        {
          Iterator iMulti = tagInput.getSelecionados().iterator();
          while (iMulti.hasNext())
          {
            AtributoLivre atribLivre = (AtributoLivre) iMulti.next();
            if(atribLivre.getSisAtributoSatb().equals(obj))
              s.append(" value=\"").append(atribLivre.getInformacao()).append("\"");
          }
        }
        if (tagInput.getDisabled() != null && "S".equals(tagInput.getDisabled()))   
               s.append(" disabled ");
        s.append("/>");
       
        s.append("</td></tr>");
       
        s.append("<input type=\"hidden\" name=\"hidden_").append(tagInput.getNome()).append("_").append(sValue).append("\"");
        if (tagInput.getSelecionados() != null && !tagInput.getSelecionados().isEmpty())
        {
          Iterator iMulti = tagInput.getSelecionados().iterator();
          while (iMulti.hasNext())
          {
            AtributoLivre atribLivre = (AtributoLivre) iMulti.next();
            if(atribLivre.getSisAtributoSatb().equals(obj))
              s.append(" value=\"").append(atribLivre.getInformacao()).append("\"");
          }
        } else {
          s.append(" value=\"\"");
        }
        s.append(">");
View Full Code Here

    if (getItemEstrutura().getItemEstruturaNivelIettns() != null) {
      Iterator itNiveis = getItemEstrutura()
          .getItemEstruturaNivelIettns().iterator();
      while (itNiveis.hasNext()) {
        SisAtributoSatb nivel = (SisAtributoSatb) itNiveis.next();
        AtributoLivre atributoLivre = new AtributoLivre();
        atributoLivre.setSisAtributoSatb(nivel);
        niveisSelecionados.add(atributoLivre);
      }
    } else {
     
      if(grupoAtributo.getSisAtributoSatbs() != null) {
        Iterator itNiveis = grupoAtributo.getSisAtributoSatbs().iterator();
        while (itNiveis.hasNext()) {
          SisAtributoSatb nivel = (SisAtributoSatb) itNiveis.next();
           
          String nomeHiddenNivelPlanejamento = codEstrutura + "_a" + grupoAtributo.getCodSga().toString();       
               String valorHiddenNivelPlanejamento[] = Pagina.getParamLista(request, nomeHiddenNivelPlanejamento);
         
               if(valorHiddenNivelPlanejamento != null && !(valorHiddenNivelPlanejamento.length==1 && valorHiddenNivelPlanejamento[0].equals(""))) {
                 for(int i=0; i< valorHiddenNivelPlanejamento.length; i++) {
                   if(valorHiddenNivelPlanejamento[i] != null && !valorHiddenNivelPlanejamento[i].equals("") &&
                       valorHiddenNivelPlanejamento[i].equals(nivel.getCodSatb().toString())) {
                     AtributoLivre atributoLivre = new AtributoLivre();
                     atributoLivre.setSisAtributoSatb(nivel);
                     niveisSelecionados.add(atributoLivre);
                  
                 } 
               } 
        }
View Full Code Here

          Iterator itAtribLivres = getItemEstrutura()
              .getItemEstruturaSisAtributoIettSatbs().iterator();
          while (itAtribLivres.hasNext()) {
            ItemEstruturaSisAtributoIettSatb atributo = (ItemEstruturaSisAtributoIettSatb) itAtribLivres
                .next();
            AtributoLivre atributoLivre = new AtributoLivre();
            atributoLivre.setInformacao(atributo
                .getInformacao());
            atributoLivre.setSisAtributoSatb(atributo
                .getSisAtributoSatb());
            aributosLivresSelecionados.add(atributoLivre);
           
          }
         
        } else {
     
          if (this.atributo.iGetGrupoAtributosLivres().getSisAtributoSatbs() != null) {
            Iterator itAtribLivres = atributo.iGetGrupoAtributosLivres().getSisAtributoSatbs().iterator();
            while (itAtribLivres.hasNext()) {
              SisAtributoSatb atributoSis = (SisAtributoSatb) itAtribLivres.next();
              AtributoLivre atributoLivre = new AtributoLivre();
              String atrib = "";
              if(tipoInput == Input.MULTITEXTO) {
                atrib = Pagina.getParamStr(request, codEstrutura + "_a"+ atributoSis.getSisGrupoAtributoSga().getCodSga().toString() +
                                        "_" + atributoSis.getCodSatb().toString());
               
                if(atrib != null && !atrib.equals("")) {
                  atributoLivre.setInformacao(atrib);
                  atributoLivre.setSisAtributoSatb(atributoSis);
                  aributosLivresSelecionados.add(atributoLivre);
                }
               
               
              } else
                String listaAtrib[] = Pagina.getParamLista(request, codEstrutura + "_a"+ atributoSis.getSisGrupoAtributoSga().getCodSga().toString());
               
                if(listaAtrib!= null && listaAtrib.length>0) {
                  for(int i=0; i < listaAtrib.length; i++) {
                    if(listaAtrib[i] != null && !listaAtrib[i].equals("") && listaAtrib[i].equals(atributoSis.getCodSatb().toString())) {
                      atributoLivre.setInformacao(listaAtrib[i]);
                      atributoLivre.setSisAtributoSatb(atributoSis);
                      aributosLivresSelecionados.add(atributoLivre);
                    }
                  }
                }
              }
            }
          } 
        }

     
        input.setSelecionados(aributosLivresSelecionados);
        input.setSisAtributo((SisAtributoSatb) grupoAtributo
            .getSisAtributoSatbs().iterator().next());
        if (atributo.iGetDica() != null)
          input.setDica(atributo.iGetDica());
       
        String atribInicio = Pagina.getParamStr(request, codEstrutura + "_a"
              + grupoAtributo.getCodSga().toString());
        if(atribInicio == null) {
          atribInicio = "";
        }
       
            AtributoLivre atributoLivreTeste = new AtributoLivre();
                atributoLivreTeste.setInformacao(atribInicio);
                if(tipoInput == Input.VALIDACAO){
                  Iterator it = atributo.iGetGrupoAtributosLivres().getSisAtributoSatbs().iterator();
                  atributoLivreTeste.setSisAtributoSatb((SisAtributoSatb)it.next());
                }
                input.setAtribLivre(atributoLivreTeste);
          input.setTransformarComboBoxListaChecks(transformarComboBoxListaChecks.booleanValue());
              
              
View Full Code Here

                        int tam = listaSisAtributosInformados.size();
                        int pos = 0;
                        Iterator itAtribLivres = item.getItemEstruturaSisAtributoIettSatbs().iterator();
                        while(itAtribLivres.hasNext()){
                          ItemEstruturaSisAtributoIettSatb atributo = (ItemEstruturaSisAtributoIettSatb) itAtribLivres.next();
                          AtributoLivre atributoLivre = new AtributoLivre();
                          atributoLivre.setSisAtributoSatb(atributo.getSisAtributoSatb());
                          atributoLivre.setInformacao(atributo.getInformacao());
                         
                             if(!atributoLivre.getSisAtributoSatb().getSisGrupoAtributoSga().equals(estruturaAtributo.iGetGrupoAtributosLivres()))
                            continue;
                         
                          if((atributoLivre.getSisAtributoSatb()
                              .getSisGrupoAtributoSga()
                              .getSisTipoExibicGrupoSteg()
                              .getCodSteg().intValue() != TEXT) &&
                            (atributoLivre.getSisAtributoSatb()
                                    .getSisGrupoAtributoSga()
                                    .getSisTipoExibicGrupoSteg()
                                    .getCodSteg().intValue() != TEXTAREA) &&
                            (atributoLivre.getSisAtributoSatb()
                                    .getSisGrupoAtributoSga()
                                    .getSisTipoExibicGrupoSteg()
                                    .getCodSteg().intValue() != VALIDACAO)) {
                         
                            if(separador == null){
                              separador = new ConfiguracaoDao(request).getConfiguracao().getSeparadorCampoMultivalor();
                            }
                           
                            if(atributoLivre.getSisAtributoSatb() != null) {
                              valor += atributoLivre.getSisAtributoSatb().getDescricaoSatb();
                              pos++;
                            } else {
                              valor += atributoLivre.getInformacao();
                            }
                           
                            if (pos < tam){
                              valor += separador;
                            }

                          } else {
                            valor = atributoLivre.getInformacao();
                          }
                        }
                      }
            
                      valor = valor.trim();
View Full Code Here

    input.setNome("codigoSgaPontoCritico"+codigo);
    input.setClassLabel("label");
    List satbSelecionado = new ArrayList();
    if (getPontoCriticoPtc().getSisAtributoTipo() != null) {
      SisAtributoSatb satb = getPontoCriticoPtc().getSisAtributoTipo();
      AtributoLivre atributoLivre = new AtributoLivre();
      atributoLivre.setSisAtributoSatb(satb);
      satbSelecionado.add(atributoLivre);
    }
    input.setSelecionados(satbSelecionado);
    input.setSisAtributo((SisAtributoSatb) grupoAtributo.getSisAtributoSatbs().iterator().next());
    // input.setPathRaiz();
View Full Code Here

TOP

Related Classes of ecar.pojo.AtributoLivre

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.