diff --git a/Sources/IHM/Desktop/Operations.xaml.cs b/Sources/IHM/Desktop/Operations.xaml.cs index 795b387..9782475 100644 --- a/Sources/IHM/Desktop/Operations.xaml.cs +++ b/Sources/IHM/Desktop/Operations.xaml.cs @@ -13,39 +13,13 @@ public partial class Operations : ContentView // Temporaire pour établir le binding de la vue operations = new List(); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); + operations.Add(new("op", 33.44, DateTime.Now, MethodePayement.CB, TagOperation.Divers, false)); + operations.Add(new("course", 45.20, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true)); + operations.Add(new("Orange", 50, DateTime.Now, MethodePayement.CB, TagOperation.Divers, true)); + operations.Add(new("EDF", 55.80, DateTime.Now, MethodePayement.Virement, TagOperation.Energie, true)); + + + BindingContext = operations; } diff --git a/Sources/Modele/MethodePayement.cs b/Sources/Modele/MethodePayement.cs index 489d19f..377f39a 100644 --- a/Sources/Modele/MethodePayement.cs +++ b/Sources/Modele/MethodePayement.cs @@ -9,10 +9,10 @@ namespace Model public enum MethodePayement { None, - Cb, - Esp, - Chq, - Vir, - Pre + CB, + Espece, + Cheque, + Virement, + Prevelement } } diff --git a/Sources/Modele/Stub.cs b/Sources/Modele/Stub.cs index 5936fbd..2f121f6 100644 --- a/Sources/Modele/Stub.cs +++ b/Sources/Modele/Stub.cs @@ -11,7 +11,7 @@ namespace Model public List Banques = new(); public List Inscrits = new(); public List Comptes = new(); - public List operations = new(); + // ajouter load all pour tout les inscrits @@ -40,14 +40,7 @@ namespace Model return Comptes; } - // Load les opĂ©rations - public List loadOperation() - { - operations.Add(new("course", "CB", "Alimentation", "12/12/2022", 22.45)); - operations.Add(new("essence", "cheque", "Carburant", "12/12/2022", 45.80)); - operations.Add(new("Orange", "Prelevement", "Facture", "12/12/2022", 48)); - return operations; - } + diff --git a/Sources/Modele/TagOperation.cs b/Sources/Modele/TagOperation.cs index 7d65332..1718c6e 100644 --- a/Sources/Modele/TagOperation.cs +++ b/Sources/Modele/TagOperation.cs @@ -8,6 +8,7 @@ namespace Model { public enum TagOperation { + None, Alimentaire, Carburant, Habitation,