Merge branch 'Binding' of https://codefirst.iut.uca.fr/git/ConsEcoTeam/ConsEco into Binding
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
commit
6db964aafb
@ -1,17 +1,58 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_AddPlanification : ContentView
|
public partial class CV_AddPlanification : ContentView
|
||||||
{
|
{
|
||||||
public CV_AddPlanification()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_AddPlanification()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
private void annuler_button(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
|
|
||||||
}
|
BindingContext = Mgr;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
string nom = name.Text;
|
||||||
|
double Montant = Double.Parse(montant.Text);
|
||||||
|
string Type = type.Text;
|
||||||
|
string Tag = tag.Text;
|
||||||
|
DateTime Date = date.Date;
|
||||||
|
TagOperation to2 = new TagOperation();
|
||||||
|
MethodePayement mp2 = new MethodePayement();
|
||||||
|
|
||||||
|
|
||||||
|
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||||
|
{
|
||||||
|
if (Equals(Type, mp))
|
||||||
|
{
|
||||||
|
mp2 = (MethodePayement)Enum.Parse(typeof(MethodePayement), Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||||
|
{
|
||||||
|
if (Equals(Tag, to))
|
||||||
|
{
|
||||||
|
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
Model.Planification planification = new(nom, Montant, Date, mp2, to2,false);
|
||||||
|
|
||||||
|
Mgr.ajouterPlanification(Mgr.SelectedCompte, planification);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,19 +1,29 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_DeletePlanification : ContentView
|
public partial class CV_DeletePlanification : ContentView
|
||||||
{
|
{
|
||||||
public CV_DeletePlanification()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_DeletePlanification()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
BindingContext = Mgr;
|
||||||
|
}
|
||||||
|
|
||||||
private void Button_Clicked_1(object sender, EventArgs e)
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var s = recup.SelectedItem;
|
||||||
|
Model.Planification planification = (Model.Planification)s;
|
||||||
|
Mgr.supprimerPlanification(Mgr.SelectedCompte, planification);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,24 +1,35 @@
|
|||||||
|
|
||||||
|
|
||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_EnregistrerEcheance : ContentView
|
public partial class CV_EnregistrerEcheance : ContentView
|
||||||
{
|
{
|
||||||
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
public CV_EnregistrerEcheance()
|
public CV_EnregistrerEcheance()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
|
BindingContext = Mgr;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
|
|
||||||
private void Button_Clicked_1(object sender, EventArgs e)
|
|
||||||
{
|
{
|
||||||
|
var s = recup.SelectedItem;
|
||||||
|
Echeance ech = (Echeance)s;
|
||||||
|
Operation operation = new Operation(ech.Nom, ech.Montant, ech.DateOperation, ech.ModePayement,ech.Tag,ech.IsDebit);
|
||||||
|
|
||||||
}
|
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||||
|
Mgr.supprimerEcheance(Mgr.SelectedCompte, ech);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,20 +1,64 @@
|
|||||||
|
|
||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_credit : ContentView
|
public partial class CV_credit : ContentView
|
||||||
{
|
{
|
||||||
public CV_credit()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_credit()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
private async void Button_Annuler(object sender, EventArgs e)
|
BindingContext = Mgr;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private void Button_Valider(object sender, EventArgs e)
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
string nom = name.Text;
|
||||||
|
double Montant = Double.Parse(montant.Text);
|
||||||
|
string Type = type.Text;
|
||||||
|
string Tag = tag.Text;
|
||||||
|
DateTime Date = date.Date;
|
||||||
|
TagOperation to2 = new TagOperation();
|
||||||
|
MethodePayement mp2 = new MethodePayement();
|
||||||
|
|
||||||
|
|
||||||
|
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||||
|
{
|
||||||
|
if (Equals(Type, mp))
|
||||||
|
{
|
||||||
|
mp2 = (MethodePayement) Enum.Parse(typeof(MethodePayement), Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||||
|
{
|
||||||
|
if (Equals(Tag, to))
|
||||||
|
{
|
||||||
|
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Operation operation = new Operation(nom, Montant, Date, mp2, to2, false, false) ;
|
||||||
|
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||||
|
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -1,19 +1,56 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_debit : ContentView
|
public partial class CV_debit : ContentView
|
||||||
{
|
{
|
||||||
public CV_debit()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_debit()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
BindingContext = Mgr;
|
||||||
{
|
}
|
||||||
|
|
||||||
}
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
private void Button_Clicked_1(object sender, EventArgs e)
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
string nom = name.Text;
|
||||||
|
double Montant = Double.Parse(montant.Text);
|
||||||
|
string Type = type.Text;
|
||||||
|
string Tag = tag.Text;
|
||||||
|
DateTime Date = date.Date;
|
||||||
|
TagOperation to2 = new TagOperation();
|
||||||
|
MethodePayement mp2 = new MethodePayement();
|
||||||
|
|
||||||
|
|
||||||
|
foreach (string mp in Enum.GetNames(typeof(MethodePayement)))
|
||||||
|
{
|
||||||
|
if (Equals(Type, mp))
|
||||||
|
{
|
||||||
|
mp2 = (MethodePayement)Enum.Parse(typeof(MethodePayement), Type);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
foreach (string to in Enum.GetNames(typeof(TagOperation)))
|
||||||
|
{
|
||||||
|
if (Equals(Tag, to))
|
||||||
|
{
|
||||||
|
to2 = (TagOperation)Enum.Parse(typeof(TagOperation), Tag);
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
Operation operation = new Operation(nom, Montant, Date, mp2, to2, false, true);
|
||||||
|
Mgr.effectuerOperation(Mgr.SelectedCompte, operation);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,19 +1,30 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_retirer : ContentView
|
public partial class CV_retirer : ContentView
|
||||||
{
|
{
|
||||||
public CV_retirer()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_retirer()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
BindingContext = Mgr;
|
||||||
{
|
}
|
||||||
|
|
||||||
}
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
private void Button_Clicked_1(object sender, EventArgs e)
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
var s = recup.SelectedItem;
|
||||||
|
Operation operation = (Operation)s;
|
||||||
|
Mgr.supprimerOperation(Mgr.SelectedCompte, operation);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,19 +1,29 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_supprimerOp : ContentView
|
public partial class CV_supprimerOp : ContentView
|
||||||
{
|
{
|
||||||
public CV_supprimerOp()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_supprimerOp()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
BindingContext = Mgr;
|
||||||
|
}
|
||||||
|
|
||||||
private void Button_Clicked_1(object sender, EventArgs e)
|
private void Button_Annuler(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
|
|
||||||
}
|
private void Button_Valider(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
var s = recup.SelectedItem;
|
||||||
|
Operation operation = (Operation)s;
|
||||||
|
Mgr.supprimerOperation(Mgr.SelectedCompte,operation);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in new issue