From 3fde5e7e9c8f3c2fc8b3391b97feeacef31d6e35 Mon Sep 17 00:00:00 2001 From: Kirill <117719052+KirillFirsof@users.noreply.github.com> Date: Wed, 29 May 2024 14:59:21 +0400 Subject: [PATCH] =?UTF-8?q?=D0=A7=D1=83=D1=82=20=D1=87=D1=83=D1=82=20?= =?UTF-8?q?=D0=BF=D0=BE=D0=BF=D1=80=D0=B0=D0=B2=D0=B8=D0=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Hotel/HotelView/FormReservation.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Hotel/HotelView/FormReservation.cs b/Hotel/HotelView/FormReservation.cs index 68994a6..1ee0260 100644 --- a/Hotel/HotelView/FormReservation.cs +++ b/Hotel/HotelView/FormReservation.cs @@ -84,7 +84,7 @@ namespace HotelView foreach (var reservation in reservations) { - dataGridView.Rows.Add(reservation.Id, reservation.GuestId, _guestLogic.Get(reservation.GuestId)?.FIO, reservation.RoomId, reservation.ArrivalDate, + dataGridView.Rows.Add(reservation.Id, reservation.GuestId, _guestLogic.Get(reservation.GuestId)?.FIO, reservation.RoomId, _roomLogic.Get(reservation.RoomId)?.Id, reservation.ArrivalDate, reservation.DepartureDate, reservation.Price); } } @@ -103,7 +103,7 @@ namespace HotelView RoomId = ((Room?)comboBoxRoom.SelectedItem)?.Id ?? 0, ArrivalDate = ToDateOnly(dateTimePickerArrival.Value), DepartureDate = ToDateOnly(dateTimePickerDeparture.Value), - Price = (int)numericUpDownPrice.Value, + Price = (double)numericUpDownPrice.Value, }; _reservationLogic.Update(updatedReservation);