//Hiennv        31/08/2014           Thanh toan le cho phong
        public void SplitPaymentForBookingR(NewPaymentEN aNewPaymentEN, List<BookingRoomUsedEN> aListRooms, List<ServiceUsedEN> aListServicesR)
        {
            try
            {

                foreach (ServiceUsedEN aServicesEN in aListServicesR)
                {

                    aServicesEN.StatusPay = 8;
                    aServicesEN.Save(1);
                }
                BookingRoomsBO aBookingRoomsBO = new BookingRoomsBO();
                foreach (BookingRoomUsedEN aBookingRoomUsedEN in aListRooms)
                {

                    aBookingRoomUsedEN.Status = 8;//da thanh toan
                    aBookingRoomUsedEN.CheckOutActual = DateTime.Now;
                    aBookingRoomUsedEN.Save();
                }
                BookingRsBO aBookingRsBO = new BookingRsBO();
                BookingRs aBookingRs = aBookingRsBO.Select_ByID(Convert.ToInt32(aNewPaymentEN.IDBookingR));
                List<BookingRooms> aListBookingRooms = aBookingRoomsBO.Select_ByIDBookingR_ByStatus(Convert.ToInt32(aNewPaymentEN.IDBookingR), 8);
                if (aListBookingRooms.Count < 1)
                {
                    aBookingRs.ID = Convert.ToInt32(aNewPaymentEN.IDBookingR);
                    aBookingRs.PayMenthod = aNewPaymentEN.PayMenthodR;
                    aBookingRs.StatusPay = 3;
                    aBookingRs.Status = 8;
                    aBookingRs.DatePay = DateTime.Now;
                }
                aBookingRs.BookingMoney = aNewPaymentEN.BookingRMoney;
                aBookingRsBO.Update(aBookingRs);
            }
            catch (Exception ex)
            {
                throw new Exception("ReceptionTaskBO.SplitPaymentForBookingR \n" + ex.ToString());
            }
        }