// New Reservation Tab - Reciept Tab // 预订 - 生成订单 private void RecieptConfirmBtn_Click(object sender, RoutedEventArgs e) { if (ArrivalTimeHourCombo.Value == null) { MessageBox.Show("请填写最晚到店时间"); return; } facade.CreateBookings(selectedRoomList, (DateTime)StartDatePicker.SelectedDate, (DateTime)EndDatePicker.SelectedDate, string.Format("{0:HHmm}", ArrivalTimeHourCombo.Value), customer.ID, reservation.ID ); facade.ComfirmReservation(reservation, double.Parse(RecieptDownPaymentTbx.Text)); MessageBox.Show("预订成功!"); ClearReservationTab(sender, e); }