Examples of BitacoraLN


Examples of cl.loso.melon.server.model.BitacoraLN

      List<Entity> entities = datastore.prepare(q).asList(fetchOptions);
      for (Entity entity : entities) {
        Text comentario = (Text) entity.getProperty("comentario");
        if (comentario.getValue() != null && comentario.getValue().trim().length()>0) {
          bitacoraList.add(new BitacoraLN(entity));
        }
      }

    } catch (Exception e) {
      log.error("DAO obtenerNovedades2:" + e.getMessage());
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

      List<Entity> entities = datastore.prepare(q).asList(fetchOptions);
      for (Entity entity : entities) {
        Text comentario = (Text) entity.getProperty("comentario");
        if (comentario.getValue() != null
            && comentario.getValue().trim().length() > 0) {
          bitacoraList.add(new BitacoraLN(entity));
        }

      }

    } catch (Exception e) {
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

      List<Entity> entities = datastore.prepare(q).asList(fetchOptions);
      for (Entity entity : entities) {
        Text comentario = (Text) entity.getProperty("comentario");
        if (comentario.getValue() != null
            && comentario.getValue().trim().length() > 0) {
          bitacoraList.add(new BitacoraLN(entity));
        }
      }
      if (bitacoraList.isEmpty())
        log.info("no hay novedades");
    } catch (Exception e) {
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

      for (Entity entity : entities) {
        Text comentario = (Text) entity.getProperty("comentario");
        if (comentario.getValue() != null
            && comentario.getValue().trim().length() > 0) {
          bitacoraList.add(new BitacoraLN(entity));
        }
      }
      if (bitacoraList.isEmpty())
        log.info("no hay novedades para el negocio " + idNegocio);
    } catch (Exception e) {
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

        Iterable<Entity> entidades=Util.listChildren("BitacoraLN",key);
        for (Entity entidad : entidades) {
          Text comentario = (Text) entidad.getProperty("comentario");
          if (comentario.getValue() != null
              && comentario.getValue().trim().length() > 0) {
            bitacoraList.add(new BitacoraLN(entidad));
          }       
        }
       
      }
      if (bitacoraList.isEmpty())
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

      List<BitacoraLN> comentarios = _novedad.getComentarios();
     
      Iterator<BitacoraLN> iter = comentarios.iterator();
      while (iter.hasNext()) {
        BitacoraLN it = (BitacoraLN) iter.next();
        it.setFecha(fecha);
        it.setTurno(idTurno);
        it.setTurnoNombre(_turnoNombre);
        it.setComentario(new Text(ht.get(it.getEquipo())));
      }
      tx.commit();
    } catch (Exception e) {
      log.error(e.getMessage());
    } finally {
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

          tabla.addCell(cell);
        }
        tabla.completeRow();
        while (iteNovedadesfallas.hasNext()) {

          BitacoraLN bitacora = iteNovedadesfallas.next();
          PdfPCell cell0 = new PdfPCell();
          PdfPCell cell1 = new PdfPCell();
          PdfPCell cell2 = new PdfPCell();
          PdfPCell cell3 = new PdfPCell();
          PdfPCell cell4 = new PdfPCell();
          SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
          String fecha = sdf.format(bitacora.getFecha());
          cell0.setPhrase(new Phrase(fecha, new Font(
              FontFamily.HELVETICA, 8, Font.NORMAL)));
          if (bitacora.getUsuarioNombre() != null) {
            cell1.setPhrase(new Phrase(bitacora.getUsuarioNombre(),
                new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
          } else {
            cell1.setPhrase(new Phrase("", new Font(
                FontFamily.HELVETICA, 8, Font.NORMAL)));
          }
          cell2.setPhrase(new Phrase(bitacora.getTurnoNombre(),
              new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
          cell3.setPhrase(new Phrase(bitacora.getEquipoNombre(),
              new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
          cell4.setPhrase(new Phrase(bitacora.getComentario().getValue(),
              new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
          tabla.addCell(cell0);
          tabla.addCell(cell1);
          tabla.addCell(cell2);
          tabla.addCell(cell3);
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

          tabla.addCell(cell);
        }
        tabla.completeRow();

        while (iteNovedades.hasNext()) {
          BitacoraLN falla = iteNovedades.next();
          PdfPCell cell0 = new PdfPCell();
          PdfPCell cell1 = new PdfPCell();
          PdfPCell cell2 = new PdfPCell();

          SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
          String fecha = sdf.format(falla.getFecha());
          cell0.setPhrase(new Phrase(fecha, new Font(
              FontFamily.HELVETICA, 10, Font.NORMAL)));
          cell1.setPhrase(new Phrase(falla.getEquipoNombre(),
              new Font(FontFamily.HELVETICA, 10, Font.NORMAL)));
          cell2.setPhrase(new Phrase(falla.getComentario().getValue(), new Font(
              FontFamily.HELVETICA, 10, Font.NORMAL)));
          tabla.addCell(cell0);
          tabla.addCell(cell1);
          tabla.addCell(cell2);
          tabla.completeRow();
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

            tabla.addCell(cell);
          }
          tabla.completeRow();
          while (iteNovedadesfallas.hasNext()) {

            BitacoraLN bitacora = iteNovedadesfallas.next();
            PdfPCell cell0 = new PdfPCell();
            PdfPCell cell1 = new PdfPCell();
            PdfPCell cell2 = new PdfPCell();
            PdfPCell cell3 = new PdfPCell();
            PdfPCell cell4 = new PdfPCell();
            SimpleDateFormat sdf = new SimpleDateFormat(
                "dd/MM/yyyy");
            String fecha = sdf.format(bitacora.getFecha());
            cell0.setPhrase(new Phrase(fecha, new Font(
                FontFamily.HELVETICA, 8, Font.NORMAL)));
            if (bitacora.getUsuarioNombre() != null) {
              cell1.setPhrase(new Phrase(bitacora
                  .getUsuarioNombre(), new Font(
                  FontFamily.HELVETICA, 8, Font.NORMAL)));
            } else {
              cell1.setPhrase(new Phrase("", new Font(
                  FontFamily.HELVETICA, 8, Font.NORMAL)));
            }
            cell2.setPhrase(new Phrase(bitacora.getTurnoNombre(),
                new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
            cell3.setPhrase(new Phrase(bitacora.getEquipoNombre(),
                new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
            cell4.setPhrase(new Phrase(bitacora.getComentario().getValue(),
                new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
            tabla.addCell(cell0);
            tabla.addCell(cell1);
            tabla.addCell(cell2);
            tabla.addCell(cell3);
View Full Code Here

Examples of cl.loso.melon.server.model.BitacoraLN

                .editarUsuarioLN(idUsuario)).getIdNegocio()),
            String.valueOf(idEquipo));
        String comentario = ht.get(idEquipo);
        Text texto=new Text(comentario);
       
        comentarios.add(new BitacoraLN(fecha_novedad, texto,
            idEquipo, equipo.getNombre(), turno.getId(), turno
                .getDescripcion(), negocio.getId(), negocio
                .getNombre(),usuario.getNombres() + " " + usuario.getApepa() + " " + usuario.getApema()));
      }
      novedad.setComentarios(comentarios);
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.