示例#1
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated NOT
  */
 public Booking_Bill findBill(int bookingID) {
   for (Hotel_Booking b : getHotel().getListOfBookings()) {
     if (bookingID == b.getBookingID()) {
       return b.getBill();
     }
   }
   return null;
 }
示例#2
0
 /**
  *
  * <!-- begin-user-doc -->
  * <!-- end-user-doc -->
  *
  * @generated NOT
  */
 public double getAmount(int bookingID) {
   double sum = 0;
   for (Hotel_Booking b : getHotel().getListOfBookings()) {
     if (bookingID == b.getBookingID()) {
       sum = b.getPrice() - b.getBill().getPaidAmount();
     }
   }
   return sum;
 }