Package upc.iluminados.ws.modelo

Examples of upc.iluminados.ws.modelo.Cancha


                //Obtener locales del due�o
              listadoLocal = service.listar(usuario.getId());
            } catch (BaseExcepcion ex) {
            }
            request.getSession().setAttribute("listadoLocal", listadoLocal);
      request.setAttribute("cancha", new Cancha());
      request.getSession().removeAttribute("model");
      return new ModelAndView(VISTA_REGISTRAR_CANCHA);
    }
   
  }
View Full Code Here


  }

 
  private ModelAndView registrarCancha(HttpServletRequest request) {
    ModelAndView view = null;
    Cancha cancha = new Cancha();

        //Obtener atributos de la cancha
        String strLocal = request.getParameter("local");
        String nombre = request.getParameter("nombre");
        String tarifaDiurna = request.getParameter("tarifaDiurna");
        String tarifaNocturna = request.getParameter("tarifaNocturna");

        try {
          Local local = new Local();
          local.setId(Integer.valueOf(strLocal));
          cancha.setLocal(local);
        } catch (Exception ex) {
        }

        cancha.setNombre(nombre);

        try {
            cancha.setTarifaDiurna(Double.parseDouble(tarifaDiurna));
        } catch (Exception ex) {
        }
        try {
            cancha.setTarifaNocturna(Double.parseDouble(tarifaNocturna));
        } catch (Exception ex) {
        }

        //Obtener horario
        HorarioCancha hc = null;
View Full Code Here

TOP

Related Classes of upc.iluminados.ws.modelo.Cancha

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.