From 517db9a0fe6f83f0c0a199b7f0a7832fb1e3c33e Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Wed, 18 Jan 2023 14:27:28 +0100 Subject: [PATCH] Bind nom planification --- Sources/Data/ClientAPI.cs | 2 +- Sources/Data/PersAPI.cs | 2 +- Sources/IHM/Desktop/CV_Planification.xaml | 2 +- Sources/Modele/Planification.cs | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Sources/Data/ClientAPI.cs b/Sources/Data/ClientAPI.cs index e77bdcb..cbfc306 100644 --- a/Sources/Data/ClientAPI.cs +++ b/Sources/Data/ClientAPI.cs @@ -357,7 +357,7 @@ namespace Data var dataBody = new Dictionary { { "compte", compte.Identifiant }, - { "nom", planification.IntituleOperation }, + { "nom", planification.Nom }, { "montant", planification.Montant.ToString() }, { "dateO", planification.DateOperation.ToString() }, { "methodePayement", planification.ModePayement.ToString() }, diff --git a/Sources/Data/PersAPI.cs b/Sources/Data/PersAPI.cs index ee7c4d2..72af6ad 100644 --- a/Sources/Data/PersAPI.cs +++ b/Sources/Data/PersAPI.cs @@ -103,7 +103,7 @@ namespace Data } public async Task SupprimerPlanification(Compte compte, Planification planification) { - return await ClientAPI.DeletePlanificationInscritAsync(compte.Identifiant, planification.IntituleOperation); + return await ClientAPI.DeletePlanificationInscritAsync(compte.Identifiant, planification.Nom); } public async Task> RecupererPlanification(Compte compte) { diff --git a/Sources/IHM/Desktop/CV_Planification.xaml b/Sources/IHM/Desktop/CV_Planification.xaml index 67b74db..6a0f597 100644 --- a/Sources/IHM/Desktop/CV_Planification.xaml +++ b/Sources/IHM/Desktop/CV_Planification.xaml @@ -84,7 +84,7 @@ -