Bind nom planification
continuous-integration/drone/push Build was killed Details

pull/143/head
Hugo LIVET 2 years ago
parent 79964920a9
commit 517db9a0fe

@ -357,7 +357,7 @@ namespace Data
var dataBody = new Dictionary<string, string>
{
{ "compte", compte.Identifiant },
{ "nom", planification.IntituleOperation },
{ "nom", planification.Nom },
{ "montant", planification.Montant.ToString() },
{ "dateO", planification.DateOperation.ToString() },
{ "methodePayement", planification.ModePayement.ToString() },

@ -103,7 +103,7 @@ namespace Data
}
public async Task<bool> SupprimerPlanification(Compte compte, Planification planification)
{
return await ClientAPI.DeletePlanificationInscritAsync(compte.Identifiant, planification.IntituleOperation);
return await ClientAPI.DeletePlanificationInscritAsync(compte.Identifiant, planification.Nom);
}
public async Task<IList<Planification>> RecupererPlanification(Compte compte)
{

@ -84,7 +84,7 @@
<Label Grid.Column="0" Text="{Binding IntituleOperation}"
<Label Grid.Column="0" Text="{Binding Nom}"
TextColor="{StaticResource Secondary}"
FontAttributes="Bold" FontSize="Body"
HorizontalOptions="Center"

@ -12,7 +12,7 @@ namespace Model
public class Planification
{
public string IntituleOperation { get; private set; }
public string Nom { get; private set; }
public double Montant { get; private set; }
@ -24,9 +24,9 @@ namespace Model
public TagOperation Tag { get; private set; }
[JsonConstructor]
public Planification(string intituleOperation, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool isDebit = true)
public Planification(string nom, double montant, DateTime dateOperation, MethodePayement modePayement, TagOperation tag, bool isDebit = true)
{
IntituleOperation = intituleOperation;
Nom = nom;
Montant = montant;
DateOperation = dateOperation;
ModePayement = modePayement;
@ -36,7 +36,7 @@ namespace Model
public override string ToString()
{
return IntituleOperation + " " + DateOperation + " " + Montant + " " + ModePayement + " " + IsDebit + " " + Tag;
return Nom + " " + DateOperation + " " + Montant + " " + ModePayement + " " + IsDebit + " " + Tag;
}
}
}

Loading…
Cancel
Save