Package org.talend.services.reservation.types

Examples of org.talend.services.reservation.types.RESCarType


                              , searcher.getCustomer()
                              , searcher.getCars().get(pos)
                              , pickupDate
                              , returnDate);

      RESCarType car = confirm.getCar();
      CustomerDetailsType customer = confirm.getCustomer();
     
      System.out.println(MessageFormat.format(CONFIRMATION
          , confirm.getDescription()
          , confirm.getReservationId()
          , customer.getName()
          , customer.getEmail()
          , customer.getCity()
          , customer.getStatus()
          , car.getBrand()
          , car.getDesignModel()
          , confirm.getFromDate()
          , confirm.getToDate()
          , padl(car.getRateDay(), 10)
          , padl(car.getRateWeekend(), 10)
          , padl(confirm.getCreditPoints().toString(), 7)));
    } else {
      System.out.println("Invalid selection: " + (pos+1)); //$NON-NLS-1$
    }
  } 
View Full Code Here


              , search.getCustomer()
              , search.getCars().get(pos)
              , tPickupDate.getText()
              , tReturnDate.getText());

          RESCarType car = confirm.getCar();
          CustomerDetailsType customer = confirm.getCustomer();

          lStatus.setText(confirm.getDescription());
          tReservationId.setText(confirm.getReservationId());
          tName.setText(customer.getName());
          tEMail.setText(customer.getEmail());
          tCity.setText(customer.getCity());
          tStatus.setText(customer.getStatus().name());
          tBrand.setText(car.getBrand());
          tModel.setText(car.getDesignModel());
          tPickup.setText(confirm.getFromDate());
          tReturn.setText(confirm.getToDate());
          tDaily.setText(car.getRateDay());
          tWeekEnd.setText(car.getRateWeekend());
          tCredits.setText(confirm.getCreditPoints().toString());
        }
        cardlist.show(content, CONFIRM);
      }
     
View Full Code Here

      public String getColumnName(int column) {
        return COL_NAMES[column];
      }
     
    public Object getValueAt(int rowIndex, int columnIndex) {
      RESCarType c = myCars.get(rowIndex);
     
      switch(columnIndex) {
        case 0: return c.getBrand();
        case 1: return c.getDesignModel();
        case 2: return c.getClazz();
        case 3: return c.getRateDay();
        case 4: return c.getRateWeekend();
        case 5: return c.getSecurityGuarantee();
      }
      return null;
    }
View Full Code Here

    if (reservation.getReservationId() != null) {
      status.setReservationId(reservation.getReservationId());
    }
   
    status.setDescription("Your reservation is booked!");
    RESCarType car = reservation.getCar();
    status.setCar(car);
   
    if (car != null) {
      // check design model
      String model = car.getDesignModel();

      if ((model != null) && (model.equalsIgnoreCase("GOLF"))) {
        //
        // status.setCode(RESStatucCodeType.FAILED);
        status.setDescription("Your reservation failed! This car is booked by an other customer already.");
View Full Code Here

    return status;
  }

  private RESCarType createCar(String id, String designModel, String clazz,
      String brand, String rateDay, String rateWeekend, String guarantee) {
    RESCarType car = resFactory.createRESCarType();
    car.setCarId(id);
    car.setBrand(brand);
    car.setClazz(clazz);
    car.setDesignModel(designModel);
    car.setRateDay(rateDay);
    car.setRateWeekend(rateWeekend);
    car.setSecurityGuarantee(guarantee);
    return car;
  }
View Full Code Here

    if (carIndex != null && carIndex >= 0) {
      List<RESCarType> cars = searchModel.getCars();
      if (carIndex < cars.size()) {
        CustomerDetailsType customerDetails = searchModel.getCustomer();
        RESCarType selectedCar = cars.get(carIndex);
        SearchRequestParameters requestParams = getSessionAttribute(
            session, SearchRequestParameters.class);

        RESStatusType resStatus = null;
View Full Code Here

    if (reservation.getReservationId() != null) {
      status.setReservationId(reservation.getReservationId());
    }
   
    status.setDescription("Your reservation is booked!");
    RESCarType car = reservation.getCar();
    status.setCar(car);
   
    if (car != null) {
      // check design model
      String model = car.getDesignModel();

      if ((model != null) && (model.equalsIgnoreCase("GOLF"))) {
        //
        // status.setCode(RESStatucCodeType.FAILED);
        status.setDescription("Your reservation failed! This car is booked by an other customer already.");
View Full Code Here

    return status;
  }

  private RESCarType createCar(String id, String designModel, String clazz,
      String brand, String rateDay, String rateWeekend, String guarantee) {
    RESCarType car = resFactory.createRESCarType();
    car.setCarId(id);
    car.setBrand(brand);
    car.setClazz(clazz);
    car.setDesignModel(designModel);
    car.setRateDay(rateDay);
    car.setRateWeekend(rateWeekend);
    car.setSecurityGuarantee(guarantee);
    return car;
  }
View Full Code Here

TOP

Related Classes of org.talend.services.reservation.types.RESCarType

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.