Examples of AlquilerCancha


Examples of upc.iluminados.ws.modelo.AlquilerCancha

            request.setAttribute("hora", hora);
      return new ModelAndView(VISTA_BUSCAR_CANCHA);
    }
    else if(esAccionAlquilar(request))
    {
      AlquilerCancha alquilerCancha = new AlquilerCancha();
      int horarioId = Integer.parseInt(request.getParameter("horarioId"));
      String fecha = (String)request.getSession().getAttribute("dia");
      List<HorarioCancha> listado = (List<HorarioCancha>) request.getSession().getAttribute("listado");
      for(HorarioCancha hc: listado){

        if(hc.getId().intValue() == horarioId){
          alquilerCancha.setHorarioCancha(hc);
          alquilerCancha.setHoraInicio(hc.getHora());
          alquilerCancha.setFecha(fecha);
          alquilerCancha.setHoraFin(getHoraFin(hc.getHora()));
          alquilerCancha.setMonto(esNocturno(hc.getHora())?hc.getCancha().getTarifaNocturna():hc.getCancha().getTarifaDiurna());
          request.getSession().setAttribute("alquilerCancha", alquilerCancha);
          break;
        }
       
       
View Full Code Here

Examples of upc.iluminados.ws.modelo.AlquilerCancha

  public void pagar(HttpServletRequest request) throws BaseExcepcion{
    String nroTarjeta = request.getParameter("nroTarjeta");
    String tipoPago = request.getParameter("tipoPago");
    double monto = Double.parseDouble(request.getParameter("monto"));
    //AlquilerCancha alquilerCancha = (AlquilerCancha) getModel(request).get("alquilerCancha");
    AlquilerCancha alquilerCancha = (AlquilerCancha) request.getSession().getAttribute("alquilerCancha");
    alquilerCancha.setNroTarjeta(nroTarjeta);
    alquilerCancha.setTipoPago(tipoPago);
    alquilerCancha.setMonto(monto);
    alquilerCancha.setCliente((Usuario)request.getSession().getAttribute(Constante.SESION_USUARIO));
    service.alquilar(alquilerCancha);
  }
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.