changement du nom de la variable nbpersonne par nbinvite dans la réservation
This commit is contained in:
parent
1cc7257f5f
commit
abad40c9f6
@ -13,7 +13,7 @@ public class Reservation
|
|||||||
|
|
||||||
public string? DemandeSpecifique { get; set; }
|
public string? DemandeSpecifique { get; set; }
|
||||||
|
|
||||||
public int NbPersonnes { get; set; }
|
public int NbInvite { get; set; }
|
||||||
|
|
||||||
public int ClientId { get; set; }
|
public int ClientId { get; set; }
|
||||||
public int ChambreId { get; set; }
|
public int ChambreId { get; set; }
|
||||||
|
@ -69,7 +69,7 @@ namespace HegreHotel.Views.Reservation
|
|||||||
{
|
{
|
||||||
ClientId = _clients[PickerClient.SelectedIndex].Id,
|
ClientId = _clients[PickerClient.SelectedIndex].Id,
|
||||||
ChambreId = _chambresDispo[PickerChambre.SelectedIndex].Id,
|
ChambreId = _chambresDispo[PickerChambre.SelectedIndex].Id,
|
||||||
NbPersonnes = int.TryParse(EntryNbPersonne.Text, out int nb) ? nb : 0,
|
NbInvite = int.TryParse(EntryNbPersonne.Text, out int nb) ? nb : 0,
|
||||||
DateDebut = DatePickerDebut.Date,
|
DateDebut = DatePickerDebut.Date,
|
||||||
DateFin = DatePickerFin.Date,
|
DateFin = DatePickerFin.Date,
|
||||||
DemandeSpecifique = EntryDemandeSpecifique.Text
|
DemandeSpecifique = EntryDemandeSpecifique.Text
|
||||||
|
@ -34,7 +34,7 @@ namespace HegreHotel.Views.Reservation
|
|||||||
PickerClient.SelectedIndex = _clients.FindIndex(c => c.Id == _reservation.ClientId);
|
PickerClient.SelectedIndex = _clients.FindIndex(c => c.Id == _reservation.ClientId);
|
||||||
PickerChambre.SelectedIndex = _chambres.FindIndex(ch => ch.Id == _reservation.ChambreId);
|
PickerChambre.SelectedIndex = _chambres.FindIndex(ch => ch.Id == _reservation.ChambreId);
|
||||||
|
|
||||||
EntryNbPersonne.Text = _reservation.NbPersonnes.ToString();
|
EntryNbPersonne.Text = _reservation.NbInvite.ToString();
|
||||||
DatePickerDebut.Date = _reservation.DateDebut;
|
DatePickerDebut.Date = _reservation.DateDebut;
|
||||||
DatePickerFin.Date = _reservation.DateFin;
|
DatePickerFin.Date = _reservation.DateFin;
|
||||||
EntryDemandeSpecifique.Text = _reservation.DemandeSpecifique;
|
EntryDemandeSpecifique.Text = _reservation.DemandeSpecifique;
|
||||||
@ -50,7 +50,7 @@ namespace HegreHotel.Views.Reservation
|
|||||||
|
|
||||||
_reservation.ClientId = _clients[PickerClient.SelectedIndex].Id;
|
_reservation.ClientId = _clients[PickerClient.SelectedIndex].Id;
|
||||||
_reservation.ChambreId = _chambres[PickerChambre.SelectedIndex].Id;
|
_reservation.ChambreId = _chambres[PickerChambre.SelectedIndex].Id;
|
||||||
_reservation.NbPersonnes = int.TryParse(EntryNbPersonne.Text, out int nb) ? nb : _reservation.NbPersonnes;
|
_reservation.NbInvite = int.TryParse(EntryNbPersonne.Text, out int nb) ? nb : _reservation.NbInvite;
|
||||||
_reservation.DateDebut = DatePickerDebut.Date;
|
_reservation.DateDebut = DatePickerDebut.Date;
|
||||||
_reservation.DateFin = DatePickerFin.Date;
|
_reservation.DateFin = DatePickerFin.Date;
|
||||||
_reservation.DemandeSpecifique = EntryDemandeSpecifique.Text;
|
_reservation.DemandeSpecifique = EntryDemandeSpecifique.Text;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user