Examples of Booking


Examples of com.liferay.faces.demos.dto.Booking

    if (allBookings == null) {
      allBookings = new ArrayList<Booking>();

      // Bookings for Brian Green
      long customerId = CustomerServiceMockImpl.ID_BRIAN_GREEN;
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_RENTAL_CAR, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_HOTEL, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_AIRFARE, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_THEME_PARK, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_PLAY, customerId));

      // Bookings for Elizabeth Kessler
      customerId = CustomerServiceMockImpl.ID_LIZ_KESSLER;
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_HOTEL, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_AIRFARE, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_THEME_PARK, customerId));

      // Bookings for Rich Shearer
      customerId = CustomerServiceMockImpl.ID_RICH_SHEARER;
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_AIRFARE, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_RENTAL_CAR, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_PLAY, customerId));
      allBookings.add(new Booking(BookingTypeServiceMockImpl.TYPE_ID_HOTEL, customerId));
    }

    return allBookings;
  }
View Full Code Here

Examples of com.tap5.hotelbooking.entities.Booking

        return current;
    }

    public void startBooking(Hotel hotel, User user)
    {
        Booking booking = new Booking(hotel, user, 1, 1);
        this.current = booking;
        notConfirmed.add(booking);
    }
View Full Code Here

Examples of com.tap5.hotelbooking.entities.Booking

        this.current = null;
    }

    public Booking restoreBooking(Long bookId)
    {
        Booking restoredBooking = null;

        for (Booking booking : notConfirmed)
        {
            if (bookId.equals(booking.getHotel().getId()))
            {
View Full Code Here

Examples of edu.ubb.warp.model.Booking

    ResourceDAO resourceDAO = df.getResourceDAO();
    ProjectDAO proDAO = df.getProjectDAO();
    ArrayList<Project> projectList = proDAO.getProjectsByUser(user);
    Resource userResource = resourceDAO.getResourceByUser(user);
    int min,max = 0;
    Booking bMinMax = bookDAO.getMinBookingByResource(userResource);
    min = bMinMax.getWeek();
    bMinMax = bookDAO.getMaxBookingByResource(userResource);
    max = bMinMax.getWeek();
   
    {
      jobs.addContainerProperty("Project", String.class, null);
      for(int i = min; i <= max; i++) {
        String s = "Week " + Integer.toString(i);
        jobs.addContainerProperty(s, String.class, null);
      }
     

     
      for(int j = 0; j < projectList.size(); j++) {
        String[] obj = new String[max - min + 2];
        obj[0] = projectList.get(j).getProjectName();
        int i = 1;
        for(int it = min; it <= max; it++) {
          Booking b = bookDAO.getBookingByResourceIDAndProjectIDAndWeek(userResource.getResourceID(),projectList.get(j).getProjectID(), i);
          obj[i] = Float.toString(b.getRatio());
          i++;
        }
        jobs.addItem(obj,j);
      }
    }
View Full Code Here

Examples of eja.ejb.entities.Booking

     * Nastavi parametry rezervace a ulozi ji. (3. krok rezervace)
     * @param parameter
     */
    @Override
    public void setBookingParamsAndSave(BookingParametersCrate parameter) {
        this._booking = new Booking();
        this._booking.setHotel(this._hotel);
        this._booking.setCustomer(_customer);
        this._booking.setBookingNo(parameter.bookingNo);
        this._booking.setDateFrom(parameter.dateFrom);
        this._booking.setDateTo(parameter.dateTo);
View Full Code Here

Examples of eja.ejb.entities.Booking

    public Collection<Hotel> getAllHotels() {
        return this._hotelDao.getAllHotels();
    }

    public String edit() {
        this._booking = (this.id != 0) ? this._bookingDao.getBookingById(this.id) : new Booking();
        this._booking.setHotel(this.hotel);
        this._booking.setCustomer(this.customer);
        this._booking.setBookingNo(this.bookingNo);
        this._booking.setDateFrom(this.dateFrom);
        this._booking.setDateTo(this.dateTo);
View Full Code Here

Examples of id.co.knt.airport.entity.Booking

    selectedPassenger = new Passenger();
    if(counter < passCount){
      counter++;
      result=null;
    }else{
      booking = new Booking();
      booking.setCode(getCode());
      booking.setBookingType(bookingType);
      booking.setDate(new Date());
      booking.setFare(selectedFlightFare.getFare());
      for(Passenger p:passengers){
View Full Code Here

Examples of it.hotel.model.booking.Booking

   */
  @Override
 
  public ModelAndView handleRequest(HttpServletRequest req,
      HttpServletResponse res) throws Exception {
    Booking booking=null;
   
    String idString = req.getParameter("id");
    int id=0;
    ArrayList<Booking> list= (ArrayList<Booking>) bookingManager.getAll();
    for(int i=0; i<list.size();i++){
     
      if(list.get(i).getType().compareTo("UNCONFIRMED")==0){
      if(list.get(i).getCode().compareTo(idString)==0)
      {
      id=list.get(i).getId();
      UnconfirmedBooking unconfirmed= (UnconfirmedBooking) bookingManager.get(id);
       booking= new Booking(unconfirmed);
      bookingManager.add(booking);
      bookingManager.remove(id);
   
      mail.sendMailPagamentoHotel(booking);
      mail.sendMailPagamentoCustomer(booking);
View Full Code Here

Examples of it.hotel.model.booking.Booking

  }



  private void setupExpectedBookings() {
     booking = new Booking();
       booking.setId(1);
     
       booking.setBeginDate(CalendarUtils.GetToday());
       booking.setFinishDate(CalendarUtils.GetTomorrow());
       Booking booking2 = new Booking();
       booking2.setId(2);
       booking2.setBeginDate(CalendarUtils.GetToday());
       booking2.setFinishDate(CalendarUtils.GetTomorrow());
       Booking booking3 = new Booking();
       booking3.setId(3);
       booking3.setBeginDate(CalendarUtils.GetToday());
       booking3.setFinishDate(CalendarUtils.GetTomorrow());
       expectedBookings.add(booking);
       expectedBookings.add(booking2);
       expectedBookings.add(booking3);
  }
View Full Code Here

Examples of it.hotel.model.booking.Booking

    
   }
 
   public void testCheckOut(){
    
     Booking book = (Booking) bookingRawManager.get(b2.getId());
     ConfirmedBooking confirmedBooking2= bookingRawManager.checkIn(book);
     bookingRawManager.checkOut(confirmedBooking2.getId());
     List<Booking> existingBookings1=(List<Booking>) bookingRawManager.getAllCompletedBookings();
     assertTrue(existingBookings1.size()==2);
         
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.