Package ecar.pojo

Examples of ecar.pojo.SisAtributoSatb


     * @param request
     * @throws ECARException
     */
    public void setArgPesquisa(HttpServletRequest request) throws ECARException{
      usuario = new UsuarioUsu();
      grupo = new SisAtributoSatb();
     
      String arg = Pagina.getParam(request, "hidArg");
        String[] pesquisarEm = request.getParameterValues("hidPesquisarEm");
       
        usuario.setIndAtivoUsu(Dominios.SIM);
View Full Code Here


      Set sisAtributosSatbs = acompRefItem.getAcompReferenciaAref().getTipoAcompanhamentoTa().getSisAtributoSatbs();
      List listAtributosConfig = new ArrayList();
      if(sisAtributosSatbs != null){
        Iterator itSatbs = sisAtributosSatbs.iterator();
        while(itSatbs.hasNext()) {
          SisAtributoSatb sisAtributoSatb = (SisAtributoSatb) itSatbs.next();
          if(sisAtributoSatb.getSisGrupoAtributoSga().equals(configuracao.getSisGrupoAtributoSgaByCodSgaGrAtrMetasFisicas())){
            listAtributosConfig.add(sisAtributoSatb);
          }
        }
      }
     
View Full Code Here

        List grupoMetaFisica = new ArrayList();
       
        if(tipoAcomp.getSisAtributoSatbs() != null && !tipoAcomp.getSisAtributoSatbs().isEmpty()){
          Iterator itSatb = tipoAcomp.getSisAtributoSatbs().iterator();
          while(itSatb.hasNext()){
            SisAtributoSatb satb = (SisAtributoSatb) itSatb.next();
            /*
            - N�vel do Planejamento
            */
            if(configuracao.getSisGrupoAtributoSgaByCodSgaGrAtrNvPlan() != null && configuracao.getSisGrupoAtributoSgaByCodSgaGrAtrNvPlan().equals(satb.getSisGrupoAtributoSga())){
              niveis.add(satb.getCodSatb());
            }
           
            /*
          - Grupo de Meta F�sica
            */
            if(configuracao.getSisGrupoAtributoSgaByCodSgaGrAtrMetasFisicas() != null && configuracao.getSisGrupoAtributoSgaByCodSgaGrAtrMetasFisicas().equals(satb.getSisGrupoAtributoSga())){
              grupoMetaFisica.add(satb.getCodSatb());
            }
          }
         
         
        }
View Full Code Here

                  link+="&";
                 
                  // monta as informa�oes complementares como Dica
                  String titulo = "";
          UsuarioUsu usu = null;
          SisAtributoSatb sisAtributoSatb = null;
          UsuarioDao usuDao = new UsuarioDao(null);

       
          if(arel != null) {           
           
           
            ItemEstUsutpfuacIettutfa itemEstUsu
              = itemEstUsuDao.buscar(acompReferenciaItem.getItemEstruturaIett().getCodIett(), arel.getTipoFuncAcompTpfa().getCodTpfa());
       
            titulo += "<table  cellpadding='0' cellspacing='0'>";
            if(itemEstUsu != null) {
              if (itemEstUsu.getUsuarioUsu() != null) {
                 
                if(itemEstUsu.getUsuarioUsu().getNomeUsu() != null) {
                  titulo += "<tr><td><b>Resp</b>: " + itemEstUsu.getUsuarioUsu().getNomeUsu() + ("</tr></td>");
                } else {
                  titulo += "<tr><td><b>Resp</b>: "+"</tr></td>";
                }
                   
                if(itemEstUsu.getUsuarioUsu().getComercTelefoneUsu() != null) {
                  titulo += "<tr><td><b>Tel</b>: " + itemEstUsu.getUsuarioUsu().getComercTelefoneUsu() + "</tr></td>";
                } else {
                  titulo += "<tr><td><b>Tel</b>: " + "</tr></td>";
                }
                   
                if(itemEstUsu.getUsuarioUsu().getEmail1UsuSent() != null) {    
                  titulo += "<tr><td><b>E-mail</b>: " + itemEstUsu.getUsuarioUsu().getEmail1UsuSent() + "</tr></td>";
                } else {
                  titulo += "<tr><td><b>E-mail</b>: " + "</tr></td>";
               
               
             
              } else if (itemEstUsu.getSisAtributoSatb() != null) {
               
                //Quando for grupo
                if (itemEstUsu.getSisAtributoSatb().getUsuarioAtributoUsuas() != null) {
                  titulo += "<tr><td><b>GRUPO</b>: "+itemEstUsu.getSisAtributoSatb().getDescricaoSatb()+"</tr></td>";
                  Iterator itUsuarios = itemEstUsu.getSisAtributoSatb().getUsuarioAtributoUsuas().iterator();
                }
             
              }
           
            } else {
               
              titulo += "<tr><td><b>Resp: </b>N�o existe usu�rio ou grupo associado.";
             
            }
           
            titulo +="</table>";
       
            liberado = false;
            srcImg = "";
                     
            if(arel.getIndLiberadoArel() != null && arel.getIndLiberadoArel().equals("S")){
              liberado = true;
              srcImg = Util.getURLImagemAcompanhamento(arel.getCor(), request, arel.getTipoFuncAcompTpfa());
            }
           
          } else {
            //if arel != null
            List funcoes = new ItemEstUsutpfuacDao(null).getFuacOrderByFuncAcomp(acompReferenciaItem.getItemEstruturaIett());
            for (Iterator itUsu = funcoes.iterator(); itUsu.hasNext();) {
              ItemEstUsutpfuacIettutfa fuac = (ItemEstUsutpfuacIettutfa) itUsu.next();
             
              if(fuac.getTipoFuncAcompTpfa().equals(tipoFuncaoAcomp)){
                if (fuac.getUsuarioUsu() != null){
                  usu = fuac.getUsuarioUsu();
                } else if (fuac.getSisAtributoSatb() != null){
                  sisAtributoSatb = fuac.getSisAtributoSatb();
                }
               
              }
            }
            if (usu != null){
              titulo += usu.getNomeUsuSent() + "Aguarda elabora��o do parecer <br>";
            } else if (sisAtributoSatb != null){
              titulo += sisAtributoSatb.getDescricaoSatb() + "Aguarda elabora��o do parecer <br>";
            }
           
          }
         
                  criaAbaFuncaoAcomp(situacaoAba, link, tipoFuncaoAcomp.getLabelPosicaoTpfa(), s, titulo, usu, sisAtributoSatb);
View Full Code Here

                          if(item.getItemEstruturaNivelIettns() != null){
                            int tam = item.getItemEstruturaNivelIettns().size();
                            int pos = 1;
                            Iterator niveis = item.getItemEstruturaNivelIettns().iterator();
                            while(niveis.hasNext()){
                              SisAtributoSatb nivel = (SisAtributoSatb) niveis.next();

                              if(separador == null){
                                separador = new ConfiguracaoDao(request).getConfiguracao().getSeparadorCampoMultivalor();
                              }

                              valor += nivel.getDescricaoSatb();
                              pos++;
                             
                              if (pos < tam){
                                valor += separador;
                              }
View Full Code Here

        try{           
            if(item.getItemEstruturaNivelIettns().size() > 0){
                boolean first = true;
                Iterator it = item.getItemEstruturaNivelIettns().iterator();       
                while(it.hasNext()){
                    SisAtributoSatb atributo = (SisAtributoSatb) it.next();
                    if(first){
                        builder.addNode("niveisPlanejamento");
                        first = false;
                    }
                    builder.addAndCloseNode("nivelPlanejamento", builder.normalize(Pagina.trocaNull(atributo.getDescricaoSatb())));
                }       
                builder.closeNode("niveisPlanejamento");                   
            }   
        } catch(Exception e){
          this.logger.error(e);
View Full Code Here

        try{
        Input tagInput = (Input) getParent();
          ConfiguracaoDao configuracaoDao = new ConfiguracaoDao(null);
          SisGrupoAtributoSga sgaNvPl = configuracaoDao.getConfiguracao().getSisGrupoAtributoSgaByCodSgaGrAtrNvPlan();
         
          SisAtributoSatb satb = (SisAtributoSatb) obj;
          if(sgaNvPl != null && satb.getSisGrupoAtributoSga().equals(sgaNvPl) ){
            s.append("<img src=\"").append(getImagem() + satb.getAtribInfCompSatb()).append("\">");           
          }
          s.append("<input type=\"checkbox\" class=\"form_check_radio\"  name=\"").append(tagInput.getNome())
                  .append("\" value=\"").append(sValue).append("\"");
          if (tagInput.getSelecionados() != null)
              if (tagInput.atributoSelecionado(satb))
View Full Code Here

        try{
          Input tagInput = (Input) getParent();
          ConfiguracaoDao configuracaoDao = new ConfiguracaoDao(null);
          SisGrupoAtributoSga sgaNvPl = configuracaoDao.getConfiguracao().getSisGrupoAtributoSgaByCodSgaGrAtrNvPlan();
         
          SisAtributoSatb satb = (SisAtributoSatb) obj;
          if(sgaNvPl != null && satb.getSisGrupoAtributoSga().equals(sgaNvPl) ){
            s.append("<img src=\"").append(getImagem() + satb.getAtribInfCompSatb()).append("\">");
          }
          s.append("<input type=\"radio\" class=\"form_check_radio\" name=\"").append(tagInput.getNome())
                  .append("\" value=\"").append(sValue).append("\"");
          if (tagInput.getSelecionados() != null)
              if (tagInput.atributoSelecionado((SisAtributoSatb)obj))
View Full Code Here

        } 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);
                    }
                  }
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);
                  
                 } 
               } 
        }
      }
    }

    input.setSelecionados(niveisSelecionados);
    input.setSisAtributo((SisAtributoSatb) grupoAtributo
        .getSisAtributoSatbs().iterator().next());
   
    if (atributo.iGetDica() != null)
      input.setDica(atributo.iGetDica());

   
    input.setTransformarComboBoxListaChecks(transformarComboBoxListaChecks.booleanValue());
   
    input.doStartTag();

    Options options = new Options(writer);
   
    options.setTransformarComboBoxListaChecks(transformarComboBoxListaChecks.booleanValue());
    options.setTransformarComboBoxListaChecks(transformarRadioListaChecks.booleanValue());
   
    List opcoes = new ArrayList();
    if (grupoAtributo.getCodSga() != null
        && grupoAtributo.getCodSga().longValue() != 1) {
      if (grupoAtributo.getSisTipoOrdenacaoSto() != null) {
        opcoes = new SisGrupoAtributoDao(null)
            .getAtributosOrdenados(grupoAtributo);
      }
    }

    List opcoesAtivos = new ArrayList();
    if (!opcoes.isEmpty()) {
      Iterator opcoesIt = opcoes.iterator();
      while (opcoesIt.hasNext()) {
        SisAtributoSatb sisAtributoSatb = (SisAtributoSatb) opcoesIt
            .next();
        if (sisAtributoSatb.getIndAtivoSatb().equals(Dominios.SIM)) {
          opcoesAtivos.add(sisAtributoSatb);
        }
      }
      options.setOptions(opcoesAtivos);
      options.setValor("codSatb");
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.