Examples of UsuarioLN


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

    return ActionSupport.SUCCESS;
 
 
  public String editarFueraServicio() {
    try {
      UsuarioLN usuario=UsuarioLNBO.editarUsuarioLN(idUsuario);
      equipoList = EquipoLNBO.obtenerEquipoLN(String.valueOf(usuario.getIdNegocio()));
      usuarioList = UsuarioLNBO.obtenerUsuarioNegocioLN(String.valueOf(usuario.getIdNegocio()));
      fueraServicio=FueraServicioLNBO.editarFueraServicio(idUsuario, idListaEvento);
    } catch (Exception e) {
      log.error(e);
    }
    return ActionSupport.SUCCESS;
View Full Code Here

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

    return ActionSupport.SUCCESS;
 
 
  public String editarFueraServicioUsuario() {
    try {
      UsuarioLN usuario=UsuarioLNBO.editarUsuarioLN(idUsuario);
      equipoList = EquipoLNBO.obtenerEquipoLN(String.valueOf(usuario.getIdNegocio()));
      usuarioList = UsuarioLNBO.obtenerUsuarioNegocioLN(String.valueOf(usuario.getIdNegocio()));
      ListaEventoLN eventoPadre=FueraServicioLNBO.obtenerUsuarioPadre(idUsuario, idListaEvento);
     
      log.info("idUsuario Hijo" +  idUsuario);
      log.info("idListaEvento Hijo" +  idListaEvento);
     
View Full Code Here

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

    return ActionSupport.SUCCESS;
  }

  public String obtenerEquipos() {
    try {
      UsuarioLN usr = UsuarioLNBO.editarUsuarioLN(idUsuario);
      equipoList = EquipoLNBO.obtenerEquipoLN(String.valueOf(usr
          .getIdNegocio()));
    } catch (Exception e) {
      log.error(e);
    }
    return ActionSupport.SUCCESS;
View Full Code Here

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

        SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
        String fechadeayer = sdf.format(ayer);

        for (Entity entity : entities) {
          Key llave = (Key) entity.getKey();
          UsuarioLN usuario = UsuarioLNDAO.getUsuarioLNbyId(llave
              .getId());

          // Define message
          Message message = new MimeMessage(session);
          message.setFrom(new InternetAddress(from));
          message.addRecipient(Message.RecipientType.TO,
              new InternetAddress(usuario.getEmail()));
          message.setSubject("Novedades del " + fechadeayer);
          // Create the message part
          BodyPart messageBodyPart = new MimeBodyPart();
          // Fill the message
          messageBodyPart
View Full Code Here

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

      minutos = calendario.get(Calendar.MINUTE);
      fecha=fecha + " " + hora + ":" + minutos;
     
      DateFormat formato1 = new SimpleDateFormat("dd/MM/yyyy HH:mm");
      Date fecha_novedad = (Date) formato1.parse(fecha);
      UsuarioLN usuario = UsuarioLNBO.editarUsuarioLN(idUsuario);
      TipoLN turno = TipoLNBO.editarTipoLN(idTurno);
      NegocioLN negocio = NegocioLNBO.editarNegocioLN(String
          .valueOf(usuario.getIdNegocio()));
      NovedadLN novedad = new NovedadLN(fecha_novedad, negocio.getId(),
          negocio.getNombre(), usuario, turno.getId(), turno
              .getDescripcion(), empleado,turno.getOrden());

      long tiempoInicio = System.currentTimeMillis();

      List<NovedadLN> novedades = new ArrayList<NovedadLN>();
      novedades.add(novedad);
      usuario.setNovedades(novedades);
      List<BitacoraLN> comentarios = new ArrayList<BitacoraLN>();

      Enumeration<Long> e = ht.keys();
      while (e.hasMoreElements()) {
        Long idEquipo = e.nextElement();
        EquipoLN equipo = EquipoLNBO.editarEquipoLN(String
            .valueOf(((UsuarioLN) UsuarioLNBO
                .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);
      NovedadLNDAO.insertar(usuario, novedad);

      long totalTiempo = System.currentTimeMillis() - tiempoInicio;
View Full Code Here

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

    DateFormat formato = new SimpleDateFormat("dd/MM/yyyy");
    Date fecha_ingreso = (Date) formato.parse(fecha);
    log.info("idUsuario:" + idUsuario);
    log.info("idResponsable:" + idResponsable);
    UsuarioLN usuario = UsuarioLNBO.editarUsuarioLN(idUsuario);
    UsuarioLN responsable = UsuarioLNBO.editarUsuarioLN(idResponsable);
    EquipoLN equipo = EquipoLNBO.editarEquipoLN(idNegocio, idEquipo);
    ListaEventoLN evento = new ListaEventoLN(fecha_ingreso, new Long(0),
        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);
   
    enviarCorreo("prueba", usuario.getEmail(),responsable.getEmail());
  }
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.