Examples of SecaoBean


Examples of ecar.portal.bean.SecaoBean

  private void carregarSuperDestaqueArtigos() throws ECARException {
    SegmentoItemSgti seg = this.getSegmentoItemDao().getSegmentoItemSuperDestaque(
        this.getRequest().getSession().getServletContext());
   
    if(seg != null) {
      SecaoBean secaoBean = new SecaoBean();
     
      secaoBean.setId(ID_SECAO_SUPER_DESTAQUE);
      secaoBean.setTitulo(seg.getTituloSgti());
     
      ArrayList list = new ArrayList();
     
      InformacaoBean info = new InformacaoBean();
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
      info.setDescricao(seg.getLinhaApoioSgti());
      info.setImagem(new ecar.dao.ConfiguracaoDao(null).getConfiguracao().getRaizUpload() + seg.getImagemCapaSgti());
      info.setLink(seg.getSegmentoItemLeiauteSgtil().getLinkSgtil());
      info.setLinkMais("ctrl_artigos.jsp");
      info.setTitulo(seg.getLegendaImagCapaSgti());
      info.setCodSgti(seg.getCodSgti());
      info.setFonte(seg.getSegmentoItemFonteSgtif().getDescricaoSgtif());
     
      list.add(info);
     
      secaoBean.setInformacaoBean(list);

      this.portalBean.adicionarElementoNoSecaoBean(secaoBean);
    }
  }
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

    List list = this.getSegmentoItemDao().getSegmentoItemMaisArtigos(
        this.getRequest().getSession().getServletContext(),((ecar.login.SegurancaECAR)this.getRequest().getSession().getAttribute("seguranca")).getUsuario());
   
    Iterator it = list.iterator();
   
    SecaoBean secaoBean = new SecaoBean();   
    secaoBean.setId(ID_SECAO_MAIS_ARTIGOS);
   
    ArrayList aList = new ArrayList();
   
    while(it.hasNext()) {
      SegmentoItemSgti seg = (SegmentoItemSgti)it.next();
           
      InformacaoBean info = new InformacaoBean();
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
     
      String linha = seg.getLinhaApoioSgti();
     
      if (linha.length() >= 50){
        for (int i = 50; i > 0; i--) {
          if (linha.charAt(i)==' ') {
            linha = Util.substring(linha, 0, i)+"...";
            break;
          }
        }       
      }           
      info.setDescricao(linha);     
      info.setTitulo(seg.getTituloSgti());
      info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
      info.setCodSgti(seg.getCodSgti());
      info.setLink(seg.getSegmentoItemLeiauteSgtil().getLinkSgtil());
     
      aList.add(info);     
    }
    secaoBean.setInformacaoBean(aList);

    this.portalBean.adicionarElementoNoSecaoBean(secaoBean);
  }
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

   
    List list = agendaOcorrenciaDao.pesquisar(this.getRequest());
    Iterator it = list.iterator();

    ArrayList aList = new ArrayList();
    SecaoBean secaoBean = new SecaoBean();
    secaoBean.setId(ID_SECAO_AGENDA);
   
    while(it.hasNext()) {
      AgendaOcorrenciaAgeo agendaOc = (AgendaOcorrenciaAgeo)it.next();
           
      InformacaoBean info = new InformacaoBean();
           
      String sHora = String.valueOf(agendaOc.getHoraEventoAgeo());
      if (sHora.length()==1) sHora = "0"+sHora;
     
      String sMin = String.valueOf(agendaOc.getMinutoEventoAgeo());
      if (sMin.length()==1) sMin = "0"+sMin;
     
      info.setDataHora(Data.parseDate(agendaOc.getDataEventoAgeo())+" - "+sHora+":"+sMin);
      info.setTitulo(agendaOc.getAgendaAge().getEventoAge());
      info.setCodSgti(agendaOc.getCodAgeo());
      info.setLink("ctrl_agenda.jsp")//TODO: link?     
     
      aList.add(info);     
    }   
    secaoBean.setInformacaoBean(aList);
    this.portalBean.adicionarElementoNoSecaoBean(secaoBean);
  }
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

      List list = this.getSegmentoItemDao().getTaxacaoClip(
          this.getRequest().getSession().getServletContext());
     
      Iterator it = list.iterator();
     
      SecaoBean secaoBean = new SecaoBean();     
      secaoBean.setId(ID_SECAO_TAXACAO_CLIP);
     
      ArrayList aList = new ArrayList();
     
      while(it.hasNext()) {
        SegmentoItemSgti seg = (SegmentoItemSgti)it.next();
             
        InformacaoBean info = new InformacaoBean();
        info.setDataHora(Data.parseDate(seg.getDataItemSgti()));
        info.setDescricao(seg.getSegmentoItemFonteSgtif().getDescricaoSgtif());
        info.setTitulo(seg.getTituloSgti());
        SegmentoItemLeiauteSgtil leiaute = seg.getSegmentoItemLeiauteSgtil();
        info.setLink(leiaute!=null?leiaute.getLinkSgtil():"ctrl_taxacao.jsp"); //TODO: retirar ctrl_taxacao.jsp
        info.setCodSgti(seg.getCodSgti());
       
        aList.add(info);     
      }     
      secaoBean.setInformacaoBean(aList);

      this.portalBean.adicionarElementoNoSecaoBean(secaoBean);
  }
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

   
    DestaqueSubAreaDao dDAO = new DestaqueSubAreaDao(this.getRequest());
   
    List list = dDAO.getSubAreaCapa();
   
    SecaoBean secaoBean = new SecaoBean();   
    secaoBean.setId(ID_SECAO_SUB_AREA_DESTAQUE);
   
    List aList = new ArrayList();
   
    if ((list != null)&&(list.size()>0)){     
      Iterator it = list.iterator();     
      while(it.hasNext()) {
        DestaqueSubAreaDtqsa destDtqsa = (DestaqueSubAreaDtqsa)it.next();
       
        InformacaoBean info = new InformacaoBean();
        info.setDataHora(Data.parseDate(destDtqsa.getDestaqueAreaDtqa().getDataInclusaoDtqa()));
        info.setDescricao(destDtqsa.getDestaqueAreaDtqa().getDescricaoDtqa());
        info.setTitulo(destDtqsa.getDestaqueAreaDtqa().getIdentificacaoDtqa());
       
        aList.add(info);
      }     
    }
    secaoBean.setInformacaoBean(aList);
  }
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

  public SecaoBean getSuperDestaqueArtigos() throws ECARException {
    if(this.getPortalBean().getSecaoBean() != null) {
      Iterator it = this.getPortalBean().getSecaoBean().iterator();
 
      while(it.hasNext()) {
        SecaoBean secao = (SecaoBean)it.next();
       
        if(ID_SECAO_SUPER_DESTAQUE.equals(secao.getId())) {
          return secao;
        }
      }
    }
    return null;
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

  public SecaoBean getMaisArtigos() throws ECARException {
    if(this.getPortalBean().getSecaoBean() != null) {
      Iterator it = this.getPortalBean().getSecaoBean().iterator();
 
      while(it.hasNext()) {
        SecaoBean secao = (SecaoBean)it.next();
       
        if(ID_SECAO_MAIS_ARTIGOS.equals(secao.getId())) {
          return secao;
        }
      }
    }
    return null;
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

  public SecaoBean getAgenda() throws ECARException {
    if(this.getPortalBean().getSecaoBean() != null) {
      Iterator it = this.getPortalBean().getSecaoBean().iterator();
 
      while(it.hasNext()) {
        SecaoBean secao = (SecaoBean)it.next();
       
        if(ID_SECAO_AGENDA.equals(secao.getId())) {
          return secao;
        }
      }
    }
    return null;
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

  public SecaoBean getTaxacaoClips() throws ECARException {
    if(this.getPortalBean().getSecaoBean() != null) {
      Iterator it = this.getPortalBean().getSecaoBean().iterator();
 
      while(it.hasNext()) {
        SecaoBean secao = (SecaoBean)it.next();
       
        if(ID_SECAO_TAXACAO_CLIP.equals(secao.getId())) {
          return secao;
        }
      }
    }
    return null;
View Full Code Here

Examples of ecar.portal.bean.SecaoBean

  public SecaoBean getSubAreaDestaque() throws ECARException {
    if(this.getPortalBean().getSecaoBean() != null) {
      Iterator it = this.getPortalBean().getSecaoBean().iterator();
 
      while(it.hasNext()) {
        SecaoBean secao = (SecaoBean)it.next();
       
        if(ID_SECAO_SUB_AREA_DESTAQUE.equals(secao.getId())) {
          return secao;
        }
      }
    }
    return null;
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.