//======================================================= //Author: Hien //Function : ReportPaymentBookingR //======================================================= public List<InfoDetailPaymentEN> ReportPaymentBookingR(int IDBookingR) { PaymentEN aPaymentEN = new PaymentEN(); BookingRoomsBO aBookingRoomBO = new BookingRoomsBO(); List<BookingRooms> aListBookingRoom = new List<BookingRooms>(); ReceptionTaskBO aReceptionTaskBO = new ReceptionTaskBO(); aListBookingRoom = aBookingRoomBO.Select_ByIDBookingRs(IDBookingR); InfoDetailPaymentEN aInfoDetailPaymentEn; for (int i = 0; i < aListBookingRoom.Count; i++) { aInfoDetailPaymentEn = new InfoDetailPaymentEN(); aInfoDetailPaymentEn.aBookingRooms = aListBookingRoom[i]; aInfoDetailPaymentEn.aListService = aReceptionTaskBO.GetListService_ByIDBookingRoom(aListBookingRoom[i].ID); //aInfoDetailPaymentEn.DateInUse = aReceptionTaskBO.CaculateBooking(aListBookingRoom[i].ID,aListBookingRoom[i].CheckInActual, aListBookingRoom[i].CheckOutActual); aPaymentEN.aListInfoDetailPaymentEN.Add(aInfoDetailPaymentEn); } return aPaymentEN.aListInfoDetailPaymentEN; }