예제 #1
0
  public String imprimirEtiquetaTermica() {
    SocioCarteirinhaDao dbs = new SocioCarteirinhaDao();

    List<Etiquetas> listax = new ArrayList();
    for (int i = 0; i < listaSelecionado.size(); i++) {
      List l =
          (List)
              dbs.listaPesquisaEtiqueta((Integer) ((List) listaSelecionado.get(i)).get(0)).get(0);
      listax.add(
          new Etiquetas(
              String.valueOf(l.get(0)),
              String.valueOf(l.get(1)),
              String.valueOf(l.get(2)),
              String.valueOf(l.get(3)),
              String.valueOf(l.get(4)),
              String.valueOf(l.get(5)),
              String.valueOf(l.get(6)),
              String.valueOf(l.get(7)),
              String.valueOf(l.get(8))));
    }

    if (listax.isEmpty()) {
      return null;
    }

    Jasper.PART_NAME = "";
    Jasper.PATH = "etiquetas";
    Jasper.printReports(
        "/Relatorios/ETIQUETA_TERMICA_SOCIAL_RETRATO.jasper", "etiqueta_termica", listax);
    return null;
  }
예제 #2
0
 public CartaoSocialBean() {
   configuracaoSocial = (ConfiguracaoSocial) new Dao().find(new ConfiguracaoSocial(), 1);
   disabled = false;
   if (configuracaoSocial.getControlaCartaoFilial()) {
     disabled = true;
   }
   status = "nao_impressos";
   filter = "";
   query = "";
   somenteAutorizados = false;
   listOperador = new ArrayList();
   loadOperador();
   getListFilial();
   Jasper.load();
   printed = false;
   typeDate = "todos";
   startDate = "";
   finishDate = "";
   paginacao = true;
   resultadosPorPagina = 10;
   disabledImpressaoExterna = false;
   liberaReimpressao = null;
   GenericaSessao.remove("status");
   loadList();
 }
예제 #3
0
  public void printTest() {
    try {
      Collection<BeanWithList> coll = new ArrayList<BeanWithList>();

      BeanWithList bean = new BeanWithList(Arrays.asList("London", "Paris"), 1);

      coll.add(bean);

      bean = new BeanWithList(Arrays.asList("London", "Madrid", "Moscow"), 2);
      coll.add(bean);

      bean = new BeanWithList(Arrays.asList("Rome"), 3);
      coll.add(bean);

      Map<String, Object> params = new HashMap<>();
      Jasper.printReports("TESTE.jasper", "TESTE.jasper", coll);
    } catch (Exception e) {
      e.printStackTrace();
      System.out.println(e.getMessage());
    }
  }
 public void imprimir() {
   loadListaFrequenciaCatraca(true);
   Jasper.printReports(
       "/Relatorios/FREQUENCIA_CATRACA.jasper", "Frequência Catraca", listaFrequenciaCatraca);
 }