From 8cc21d15fdcc068d968b4f0fe85498c6cab551c9 Mon Sep 17 00:00:00 2001 From: hulivet1 Date: Mon, 17 Oct 2022 09:05:19 +0200 Subject: [PATCH] Ajout et mise a jour de classe sur Model --- Code/Model/Compte.cs | 34 +++++++++++- Code/Model/Echeance.cs | 12 +++++ Code/Model/Operation.cs | 12 +++++ Code/Model/Planification.cs | 12 +++++ .../diagrammes/diag de classes.mdj | 54 +++---------------- 5 files changed, 77 insertions(+), 47 deletions(-) create mode 100644 Code/Model/Echeance.cs create mode 100644 Code/Model/Operation.cs create mode 100644 Code/Model/Planification.cs diff --git a/Code/Model/Compte.cs b/Code/Model/Compte.cs index 2229a29..701ffad 100644 --- a/Code/Model/Compte.cs +++ b/Code/Model/Compte.cs @@ -4,11 +4,43 @@ { public string Nom { get; private set; } public double Solde { get; private set; } - + public List LesOpe { get; private set; } = new List(); + public List LesPla { get; private set; } = new List(); + public List LesEch { get; private set; } = new List(); public Compte(string nom, double solde) { Nom = nom; Solde = solde; + LesOpe = new List(); + LesPla = new List(); + LesEch = new List(); + } + public Compte(string nom, double solde, List lesOpe) + { + Nom = nom; + Solde = solde; + LesOpe = lesOpe; + } + public Compte(string nom, double solde, List lesOpe, List lesPla) + { + Nom = nom; + Solde = solde; + LesOpe = lesOpe; + LesPla = lesPla; } + public Compte(string nom, double solde, List lesOpe, List lesPla, List lesEch) + { + Nom = nom; + Solde = solde; + LesOpe = lesOpe; + LesPla = lesPla; + LesEch = lesEch; + } + public void modifierSolde(double s) + { + Solde = s; + } + + } } \ No newline at end of file diff --git a/Code/Model/Echeance.cs b/Code/Model/Echeance.cs new file mode 100644 index 0000000..ac722dd --- /dev/null +++ b/Code/Model/Echeance.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Echeance + { + } +} diff --git a/Code/Model/Operation.cs b/Code/Model/Operation.cs new file mode 100644 index 0000000..c97cca3 --- /dev/null +++ b/Code/Model/Operation.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Operation + { + } +} diff --git a/Code/Model/Planification.cs b/Code/Model/Planification.cs new file mode 100644 index 0000000..dd1ac0d --- /dev/null +++ b/Code/Model/Planification.cs @@ -0,0 +1,12 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace Model +{ + public class Planification + { + } +} diff --git a/Documentation_En_Cours/diagrammes/diag de classes.mdj b/Documentation_En_Cours/diagrammes/diag de classes.mdj index f2028f2..6905452 100644 --- a/Documentation_En_Cours/diagrammes/diag de classes.mdj +++ b/Documentation_En_Cours/diagrammes/diag de classes.mdj @@ -1637,7 +1637,7 @@ "top": 947, "width": 228.693359375, "height": 13, - "text": "+opeCredit(o: Opérations)", + "text": "+ajouterOpe(o: Opérations)", "horizontalAlignment": 0 }, { @@ -1657,23 +1657,6 @@ "text": "+cacheOpe(o: Opérations)", "horizontalAlignment": 0 }, - { - "_type": "UMLOperationView", - "_id": "AAAAAAGDq+z2UNsiEcY=", - "_parent": { - "$ref": "AAAAAAGDnMbyVhA/fnM=" - }, - "model": { - "$ref": "AAAAAAGDq+z2SdsZ2jw=" - }, - "font": "Arial;13;0", - "left": 1325, - "top": 977, - "width": 228.693359375, - "height": 13, - "text": "+opeDebit(o: Opérations)", - "horizontalAlignment": 0 - }, { "_type": "UMLOperationView", "_id": "AAAAAAGDq+z5ydvcHm4=", @@ -1685,7 +1668,7 @@ }, "font": "Arial;13;0", "left": 1325, - "top": 992, + "top": 977, "width": 228.693359375, "height": 13, "text": "+delOpe(o: Opérations)", @@ -1702,7 +1685,7 @@ }, "font": "Arial;13;0", "left": 1325, - "top": 1007, + "top": 992, "width": 228.693359375, "height": 13, "text": "+ajoutEcheance(e: Echeancier)", @@ -1719,7 +1702,7 @@ }, "font": "Arial;13;0", "left": 1325, - "top": 1022, + "top": 1007, "width": 228.693359375, "height": 13, "text": "+supprimerEcheance(e: Echeancier)", @@ -1736,7 +1719,7 @@ }, "font": "Arial;13;0", "left": 1325, - "top": 1037, + "top": 1022, "width": 228.693359375, "height": 13, "text": "+ajoutPlanification(p: Planification)", @@ -1753,7 +1736,7 @@ }, "font": "Arial;13;0", "left": 1325, - "top": 1052, + "top": 1037, "width": 228.693359375, "height": 13, "text": "+supprimerPlanification(p: Planification)", @@ -1764,7 +1747,7 @@ "left": 1320, "top": 927, "width": 238.693359375, - "height": 143 + "height": 128 }, { "_type": "UMLReceptionCompartmentView", @@ -9132,7 +9115,7 @@ "_parent": { "$ref": "AAAAAAGDnMbyVhA2ArI=" }, - "name": "opeCredit", + "name": "ajouterOpe", "parameters": [ { "_type": "UMLParameter", @@ -9168,27 +9151,6 @@ } ] }, - { - "_type": "UMLOperation", - "_id": "AAAAAAGDq+z2SdsZ2jw=", - "_parent": { - "$ref": "AAAAAAGDnMbyVhA2ArI=" - }, - "name": "opeDebit", - "parameters": [ - { - "_type": "UMLParameter", - "_id": "AAAAAAGDq+8z1eKDTrE=", - "_parent": { - "$ref": "AAAAAAGDq+z2SdsZ2jw=" - }, - "name": "o", - "type": { - "$ref": "AAAAAAGDobAQFE79l/8=" - } - } - ] - }, { "_type": "UMLOperation", "_id": "AAAAAAGDq+z5wdvT+JU=",