Package ecar.pojo

Examples of ecar.pojo.PopupPpp


      List popUps = new PopUpDao(null).getPopUpsApresentadasNoDia(Data.getDataAtual());
     
      if("true".equals(this.pageContext.getRequest().getParameter("mostrarPopUps"))){
        Iterator it = popUps.iterator();
        while(it.hasNext()){
          PopupPpp pp = (PopupPpp) it.next();
          UsuarioUsu usuario = ((ecar.login.SegurancaECAR)this.pageContext.getSession().getAttribute("seguranca")).getUsuario();
          StringBuffer nomeCookie = new StringBuffer("popUp_").append(usuario.getCodUsu()).append("_").append(pp.getCodPpp());
          writer.println("<script>");
          writer.println("if(getCookie('" + nomeCookie + "') == null){");
          writer.println("abreJanela('" + getPathEcar() "/popUp/popUpAvisoPadrao.jsp?codPpp=" +  pp.getCodPpp() + "', " + pp.getJanelaLarguraPpp() + "," +  pp.getJanelaAlturaPpp() + ",'" + pp.getCodPpp() + "');");
          if(pp.getPopupComportamentoPppc().getCodPppc().intValue() == PopUpDao.POPUP_COMPORTAMENTO_ABRIR_SOMENTE_UMA_VEZ){
            writer.println("setCookie('" + nomeCookie + "','1',null,'" + this.pathEcar + "',null,null);");           
          }
          writer.println("}");
          writer.println("</script>");
        }     
View Full Code Here

TOP

Related Classes of ecar.pojo.PopupPpp

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.