Package cl.loso.melon.server.model

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


      Key k22 = KeyFactory.createKey(k11, ListaEventoLN.class
          .getSimpleName(), idListaEventoUsuarioResponsable);
      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);
      }

      if (solucion != null) {
        Date fechaCompromiso = solucion.getFechaCompromiso();
        Date fechaSolucion = solucion.getFechaSolucion();
        String fechaCompromisoTxt = "";
        String fechaSolucionTxt = "";
        if (fechaCompromiso != null) {
          fechaCompromisoTxt = sdf.format(fechaCompromiso);
        }
        if (fechaSolucion != null) {
          fechaSolucionTxt = sdf.format(fechaSolucion);
        }

        fueraServicioUsuario = new FueraServicioUsuario(sdf
            .format(evento.getFecha()), problema, String.valueOf(evento
            .getIdResponsable()), equipoTxt, evento.getEstado(), fechaCompromisoTxt,
            fechaSolucionTxt, solucion.getComentario());
      } else {
        fueraServicioUsuario = new FueraServicioUsuario(sdf
            .format(evento.getFecha()), problema, String.valueOf(evento
            .getIdResponsable()), equipoTxt, evento.getEstado(), "", "", "");
      }
View Full Code Here


      Key k2 = KeyFactory.createKey(k1, ListaEventoLN.class
          .getSimpleName(), Long.valueOf(idListaEvento));

      evento = pm.getObjectById(ListaEventoLN.class, k2);

      SolucionLN solucion = evento.getSolucion();

      if (solucion == null) {
        SolucionLN solu = new SolucionLN(fecha_compromiso,
            fecha_solucion, comentario);
        evento.setSolucion(solu);

        pm.makePersistent(evento);
      } else {
View Full Code Here

TOP

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

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.