modification classe pour accueillir le format OFX
continuous-integration/drone/push Build is failing Details

UI_Mobile
Lucas EVARD 2 years ago
parent eeb0e5b4e2
commit 502335e9a8

@ -36,8 +36,8 @@ public partial class DashBoard : ContentPage
{ {
await Bouton.ScaleXTo(1, 50); await Bouton.ScaleXTo(1, 50);
await Bouton.ScaleYTo(1, 50); await Bouton.ScaleYTo(1, 50);
await Bouton.TranslateTo(0,0,50);
ImgBanqueActuelle.IsVisible = false; ImgBanqueActuelle.IsVisible = false;
await Bouton.TranslateTo(0,0,50);
BoutonRetour.IsVisible = false; BoutonRetour.IsVisible = false;
Bouton.IsEnabled = true; Bouton.IsEnabled = true;
} }

@ -20,7 +20,7 @@ namespace Model
UrlLogo = urlLogo; UrlLogo = urlLogo;
} }
public Banque(string nom, string urlSite, string urlLogo, List<Compte>lescomptes) public Banque(string nom, string urlSite, string urlLogo, List<Compte> lescomptes)
{ {
Nom = nom; Nom = nom;
UrlSite = urlSite; UrlSite = urlSite;
@ -52,10 +52,10 @@ namespace Model
foreach (Compte compte in ListeDesComptes) foreach (Compte compte in ListeDesComptes)
{ {
if (compte.Nom.Equals(s)) if (compte.Nom.Equals(s))
return compte; return compte;
} }
throw new KeyNotFoundException(); throw new KeyNotFoundException();
} }
} }
} }

@ -2,34 +2,39 @@
{ {
public class Compte public class Compte
{ {
public string Identifiant { get; private set; }
public string Nom { get; private set; } public string Nom { get; private set; }
public double Solde { get; private set; } public double Solde { get; private set; }
public List<Operation> LesOpe { get; private set; } = new List<Operation>(); public List<Operation> LesOpe { get; private set; } = new List<Operation>();
public List<Planification> LesPla { get; private set; } = new List<Planification>(); public List<Planification> LesPla { get; private set; } = new List<Planification>();
public List<Echeance> LesEch { get; private set; } = new List<Echeance>(); public List<Echeance> LesEch { get; private set; } = new List<Echeance>();
public Compte(string nom, double solde) public Compte(string id, string nom, double solde)
{ {
Identifiant = id;
Nom = nom; Nom = nom;
Solde = solde; Solde = solde;
LesOpe = new List<Operation>(); LesOpe = new List<Operation>();
LesPla = new List<Planification>(); LesPla = new List<Planification>();
LesEch = new List<Echeance>(); LesEch = new List<Echeance>();
} }
public Compte(string nom, double solde, List<Operation> lesOpe) public Compte(string id, string nom, double solde, List<Operation> lesOpe)
{ {
Identifiant = id;
Nom = nom; Nom = nom;
Solde = solde; Solde = solde;
LesOpe = lesOpe; LesOpe = lesOpe;
} }
public Compte(string nom, double solde, List<Operation> lesOpe, List<Planification> lesPla) public Compte(string id, string nom, double solde, List<Operation> lesOpe, List<Planification> lesPla)
{ {
Identifiant = id;
Nom = nom; Nom = nom;
Solde = solde; Solde = solde;
LesOpe = lesOpe; LesOpe = lesOpe;
LesPla = lesPla; LesPla = lesPla;
} }
public Compte(string nom, double solde, List<Operation> lesOpe, List<Planification> lesPla, List<Echeance> lesEch) public Compte(string id, string nom, double solde, List<Operation> lesOpe, List<Planification> lesPla, List<Echeance> lesEch)
{ {
Identifiant = id;
Nom = nom; Nom = nom;
Solde = solde; Solde = solde;
LesOpe = lesOpe; LesOpe = lesOpe;
@ -59,7 +64,7 @@
public void ajoutEcheance(Echeance e) public void ajoutEcheance(Echeance e)
{ {
if(e == null) throw new NullReferenceException(); if (e == null) throw new NullReferenceException();
LesEch.Add(e); LesEch.Add(e);
} }
@ -70,7 +75,7 @@
public void ajoutPlannification(Planification p) public void ajoutPlannification(Planification p)
{ {
if(p == null) throw new NullReferenceException(); if (p == null) throw new NullReferenceException();
LesPla.Add(p); LesPla.Add(p);
} }

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Model
{
public enum MethodePayement
{
None,
Cb,
Esp,
Chq,
Vir
}
}

@ -8,5 +8,27 @@ namespace Model
{ {
public class Operation public class Operation
{ {
public string IntituleOperation { get; private set; }
public double Montant { get; private set; }
public DateTime DateOperation { get; private set; }
public MethodePayement ModePayement { get; private set; }
public bool IsDebit { get; private set; }
public string IdCompte { get; private set; }
public Operation(string intituleOperation, string idCompte, double montant, DateTime dateOperation, MethodePayement modePayement, bool isDebit = true)
{
IntituleOperation = intituleOperation;
IdCompte = idCompte;
Montant = montant;
DateOperation = dateOperation;
ModePayement = modePayement;
IsDebit = isDebit;
}
} }
} }

@ -16,7 +16,7 @@ namespace Model
// ajouter load all pour tout les inscrits // ajouter load all pour tout les inscrits
public List<Inscrit> LoadInscrit() /* public List<Inscrit> LoadInscrit()
{ {
Inscrits.Add(new("00001", "Evard", "lucasevard@gmail.com","Lucas","test",10,LoadBanques())); Inscrits.Add(new("00001", "Evard", "lucasevard@gmail.com","Lucas","test",10,LoadBanques()));
Inscrits.Add(new("00002", "Livet", "hugolivet@gmail.com", "Hugo", "test", 280,LoadBanques())); Inscrits.Add(new("00002", "Livet", "hugolivet@gmail.com", "Hugo", "test", 280,LoadBanques()));
@ -38,7 +38,7 @@ namespace Model
Comptes.Add(new("Compte Courant", 2000)); Comptes.Add(new("Compte Courant", 2000));
Comptes.Add(new("PEL", 22000)); Comptes.Add(new("PEL", 22000));
return Comptes; return Comptes;
} }*/
} }

Loading…
Cancel
Save