コード例 #1
0
 public CheckOutWindow(string bookingid)
 {
     booking = facade.GetBooking(bookingid);
     room    = facade.GetRoom(booking.RoomID);
     InitializeComponent();
     InitializeWindowContent();
 }
コード例 #2
0
        private void UpdateManageRoomGroup(string RoomID)
        {
            IRoom room = facade.GetRoom(RoomID);

            ManageRoomID.Content = room.ID;
            ManageRoomNum.Text   = room.RoomNum;
            ManageRoomTypeCombo.SelectedIndex = (int)room.RType;
        }
コード例 #3
0
        private void CheckInConfirmBtn_Click(object sender, RoutedEventArgs e)
        {
            SaveCustomerDetails();
            List <ICustomer> cusl = new List <ICustomer>();

            foreach (ICustomer cus in customerlist)
            {
                cus.RoomID = roomNum.SelectedValue.ToString();
                facade.UpdateCustomer(cus);
                cusl.Add(cus);
            }
            IRoom room = facade.GetRoom(roomNum.SelectedValue.ToString());

            room.RStatus = RoomStatus.Occupied;
            facade.UpdateRoom(room);
            booking.RoomID = room.ID;
            facade.UpdateBooking(booking);
            facade.Log_CheckIn(cusl, booking);
            this.Close();
        }