Package cl.loso.melon.server.model

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


      evento1 = pm.getObjectById(ListaEventoLN.class, k22);

      log.info("evento2 : " + evento1.getEstado());
      SolucionLN solucion = evento1.getSolucion();
     
      FallaLN falla=evento.getFalla();
     
      String problema="";
      if(falla!=null){
        problema=falla.getProblema();
      }
      Long equipo=null;
      String equipoTxt="";
     
      if(falla!=null){
        equipo=falla.getEquipo();
      }
      if(equipo!=null){
        equipoTxt=String.valueOf(equipo);
      }
View Full Code Here


  }

  public static FallaLN getFallaLNbyId(Long id) {
    PersistenceManager pm = PMF.get().getPersistenceManager();
    FallaLN falla, detached = null;
    try {
      falla = pm.getObjectById(FallaLN.class, id);
      detached = pm.detachCopy(falla);
    } catch (Exception e) {
      log.error(e.getMessage());
View Full Code Here

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

        while (iteFallas.hasNext()) {
          FallaLN falla = iteFallas.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, 8, Font.NORMAL)));
          cell1.setPhrase(new Phrase(falla.getEquipoNombre(),
              new Font(FontFamily.HELVETICA, 8, Font.NORMAL)));
          cell2.setPhrase(new Phrase(falla.getProblema(), new Font(
              FontFamily.HELVETICA, 8, Font.NORMAL)));
          tabla.addCell(cell0);
          tabla.addCell(cell1);
          tabla.addCell(cell2);
          tabla.completeRow();
View Full Code Here

        new Long(0), "P", responsable.getId());
    List<ListaEventoLN> eventos = new ArrayList<ListaEventoLN>();
    eventos.add(evento);
    usuario.setEventos(eventos);

    FallaLN falla = new FallaLN(fecha_ingreso,problema, equipo.getKey().getId(), equipo
        .getNombre());

    evento.setFalla(falla);

    FueraServicioLNDAO.guardar(usuario, evento, fecha_ingreso, responsable);
View Full Code Here

TOP

Related Classes of cl.loso.melon.server.model.FallaLN

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.