Package it.hotel.controller.confirmedBooking.DTO

Examples of it.hotel.controller.confirmedBooking.DTO.ConfirmedBookingDTO


   */
  public ModelAndView view(HttpServletRequest req, HttpServletResponse resp){
    int id = Integer.parseInt(req.getParameter("id"));
    ConfirmedBooking confirmed = bookingManager.getConfirmedBooking(id);
    bookingManager.updateConfirmedBookingWithTodaysDateIfNecessary(confirmed);
    ConfirmedBookingDTO confirmedBookingDTO = new ConfirmedBookingDTO(confirmed);
    return new ModelAndView("hotel.confirmedBooking.view", "confirmedBooking", confirmedBookingDTO);
  }
View Full Code Here


    ServletContext context = session.getServletContext();
    String path = context.getRealPath("/");
    int id = Integer.parseInt(req.getParameter("id"));
    ConfirmedBooking confirmedBooking = bookingManager.getConfirmedBooking(id);
    bookingManager.updateConfirmedBookingWithTodaysDateIfNecessary(confirmedBooking);
    ConfirmedBookingDTO confirmedBookingDTO = new ConfirmedBookingDTO(confirmedBooking);
    ConfirmedBookingReportMaker report = new ConfirmedBookingReportMaker(confirmedBooking);
    OutputStream out = null;
    try {
      out = resp.getOutputStream();
      report.createReport(path, out);
View Full Code Here

    }
    catch (Exception e){
      saveError(req, "Amount must be a double");
    }
   
    ConfirmedBookingDTO confirmedBookingDTO = new ConfirmedBookingDTO(confirmedBooking);
   
    return new ModelAndView("hotel.confirmedBooking.view", "confirmedBooking", confirmedBookingDTO );
  }
View Full Code Here

TOP

Related Classes of it.hotel.controller.confirmedBooking.DTO.ConfirmedBookingDTO

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.