Compare commits
45 Commits
PatchDeser
...
master
After Width: | Height: | Size: 52 KiB |
@ -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,42 +1,42 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
|
||||||
x:Class="IHM.Desktop.CV_EnregistrerEcheance">
|
x:Class="IHM.Desktop.CV_EnregistrerEcheance">
|
||||||
|
|
||||||
<Grid BackgroundColor="{StaticResource Secondary}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
<Grid BackgroundColor="{StaticResource Tertiary}">
|
||||||
<RowDefinition Height="1*"/>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
</Grid.RowDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<Grid.ColumnDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
</Grid.RowDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
<Label Text="Enregistrer une échéance" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
|
|
||||||
<Label Text="Nom" Grid.Column="1" Grid.Row="2" Style="{StaticResource TitreWindows}" Margin="20"/>
|
<Label Text="Enregistrer une échéance" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Label Text="Montant" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Type" Grid.Column="1" Grid.Row="4" Style="{StaticResource TitreWindows}" Margin="20"/>
|
<Label Text="Selectionner l'échéance" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Label Text="Date" Grid.Column="1" Grid.Row="5" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
|
|
||||||
|
<inputs:SfComboBox HeightRequest="50" ItemsSource="{Binding SelectedCompte.LesEch}" Grid.Column="3" Grid.Row="3" x:Name="recup"/>
|
||||||
<Entry Placeholder="Entrez un nom" Grid.Column="3" Grid.Row="2" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<Entry Placeholder="Entrez un montant" Grid.Column="3" Grid.Row="3" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
<Button Text="ANNULER" Clicked="Button_Annuler" Grid.Column="1" Grid.Row="5" Style="{StaticResource WindowsButton2}"/>
|
||||||
<Entry Placeholder="Entrez un type de transaction" Grid.Column="3" Grid.Row="4" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
<Button Text="VALIDER" Clicked="Button_Valider" Grid.Column="3" Grid.Row="5" Style="{StaticResource WindowsButton}"/>
|
||||||
<DatePicker Grid.Column="3" Grid.Row="5" BackgroundColor="{StaticResource Secondary}" Margin="20"/>
|
|
||||||
|
|
||||||
<Button Text="ANNULER" Clicked="Button_Clicked" Grid.Column="1" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
<Button Text="VALIDER" Clicked="Button_Clicked_1" Grid.Column="3" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,19 +1,35 @@
|
|||||||
|
|
||||||
|
|
||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_EnregistrerEcheance : ContentView
|
public partial class CV_EnregistrerEcheance : ContentView
|
||||||
{
|
{
|
||||||
public CV_EnregistrerEcheance()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_EnregistrerEcheance()
|
||||||
{
|
{
|
||||||
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;
|
||||||
|
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,9 +1,30 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_HomePage : ContentView
|
public partial class CV_HomePage : ContentView
|
||||||
{
|
{
|
||||||
public CV_HomePage()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_HomePage()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
|
||||||
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
Mgr.LoadBanqueDispo();
|
||||||
|
BindingContext = Mgr;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void ImportOFX_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
private void AddBanque_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,9 +1,21 @@
|
|||||||
|
|
||||||
|
using Model;
|
||||||
|
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_Log : ContentView
|
public partial class CV_Log : ContentView
|
||||||
{
|
{
|
||||||
public CV_Log()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_Log()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
|
||||||
|
BindingContext = Mgr.User;
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Button_Quitter(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Microsoft.Maui.Controls.Application.Current?.CloseWindow(Microsoft.Maui.Controls.Application.Current.MainPage.Window);
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,9 +1,16 @@
|
|||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
using Model;
|
||||||
|
|
||||||
public partial class CV_Statistiques : ContentView
|
public partial class CV_Statistiques : ContentView
|
||||||
{
|
{
|
||||||
public CV_Statistiques()
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
public CV_Statistiques()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
|
||||||
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
|
BindingContext = Mgr;
|
||||||
|
}
|
||||||
}
|
}
|
@ -1,42 +1,46 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
|
||||||
x:Class="IHM.Desktop.CV_SupprimerEcheance">
|
x:Class="IHM.Desktop.CV_SupprimerEcheance">
|
||||||
|
|
||||||
<Grid BackgroundColor="{StaticResource Secondary}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
<Grid BackgroundColor="{StaticResource Tertiary}">
|
||||||
<RowDefinition Height="2*"/>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
</Grid.RowDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<Grid.ColumnDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<ColumnDefinition Width="2*"/>
|
</Grid.RowDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
</Grid.ColumnDefinitions>
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
<Label Text="Supprimer une échéance" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
|
</Grid.ColumnDefinitions>
|
||||||
<Label Text="Nom" Grid.Column="1" Grid.Row="2" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Montant" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Margin="20"/>
|
<Label Text="Supprimer une échéance" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Label Text="Type" Grid.Column="1" Grid.Row="4" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Date" Grid.Column="1" Grid.Row="5" Style="{StaticResource TitreWindows}" Margin="20"/>
|
<Label Text="Selectionner l'échéance" Grid.ColumnSpan="3" Grid.Column="0" Grid.Row="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
|
|
||||||
|
|
||||||
<Entry Placeholder="Entrez un nom" Grid.Column="3" Grid.Row="2" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<Entry Placeholder="Entrez un montant" Grid.Column="3" Grid.Row="3" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<Entry Placeholder="Entrez un type de transaction" Grid.Column="3" Grid.Row="4" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
<inputs:SfComboBox HeightRequest="50" ItemsSource="{Binding SelectedCompte.LesEch}" Grid.Column="3" Grid.Row="3" x:Name="recup"/>
|
||||||
<DatePicker Grid.Column="3" Grid.Row="5" BackgroundColor="{StaticResource Secondary}" Margin="20"/>
|
|
||||||
|
|
||||||
<Button Text="ANNULER" Clicked="Button_Clicked" Grid.Column="1" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
<Button Text="VALIDER" Clicked="Button_Clicked_1" Grid.Column="3" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
|
<Button Text="ANNULER" Clicked="Button_Annuler" Grid.Column="1" Grid.Row="5" Style="{StaticResource WindowsButton2}"/>
|
||||||
</Grid>
|
<Button Text="VALIDER" Clicked="Button_Valider" Grid.Column="3" Grid.Row="5" Style="{StaticResource WindowsButton}"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -1,19 +1,34 @@
|
|||||||
|
|
||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Desktop;
|
namespace IHM.Desktop;
|
||||||
|
|
||||||
public partial class CV_SupprimerEcheance : ContentView
|
public partial class CV_SupprimerEcheance : ContentView
|
||||||
{
|
{
|
||||||
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
|
|
||||||
public CV_SupprimerEcheance()
|
public CV_SupprimerEcheance()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
|
||||||
|
|
||||||
private void Button_Clicked(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
|
|
||||||
}
|
Mgr.LoadBanque();
|
||||||
|
Mgr.LoadCompte();
|
||||||
|
|
||||||
|
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;
|
||||||
|
Echeance echeance = (Echeance)s;
|
||||||
|
Mgr.supprimerEcheance(Mgr.SelectedCompte, echeance);
|
||||||
|
Navigation.PushAsync(new Dashboard());
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -1,19 +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();
|
||||||
|
|
||||||
|
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_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, 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,43 +1,42 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
|
||||||
x:Class="IHM.Desktop.CV_retirer">
|
x:Class="IHM.Desktop.CV_retirer">
|
||||||
|
|
||||||
<Grid BackgroundColor="{StaticResource Secondary}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
<Grid BackgroundColor="{StaticResource Tertiary}">
|
||||||
<RowDefinition Height="1*"/>
|
<Grid.RowDefinitions>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="1*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
<RowDefinition Height="2*"/>
|
<RowDefinition Height="2*"/>
|
||||||
</Grid.RowDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<Grid.ColumnDefinitions>
|
<RowDefinition Height="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
</Grid.RowDefinitions>
|
||||||
<ColumnDefinition Width="2*"/>
|
<Grid.ColumnDefinitions>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
<ColumnDefinition Width="2*"/>
|
<ColumnDefinition Width="2*"/>
|
||||||
<ColumnDefinition Width="1*"/>
|
<ColumnDefinition Width="1*"/>
|
||||||
</Grid.ColumnDefinitions>
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
<Label Text="Retirer une opération" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
|
|
||||||
<Label Text="Nom" Grid.Column="1" Grid.Row="2" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Montant" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Margin="20"/>
|
<Label Text="Retirer une opération" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Label Text="Type" Grid.Column="1" Grid.Row="4" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Date" Grid.Column="1" Grid.Row="5" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
|
|
||||||
|
<Label Text="Selectionner l'opération" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Entry Placeholder="Entrez un nom" Grid.Column="3" Grid.Row="2" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<Entry Placeholder="Entrez un montant" Grid.Column="3" Grid.Row="3" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
<inputs:SfComboBox HeightRequest="50" ItemsSource="{Binding SelectedCompte.LesOpe}" Grid.Column="3" Grid.Row="3" x:Name="recup"/>
|
||||||
<Entry Placeholder="Entrez un type de transaction" Grid.Column="3" Grid.Row="4" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<DatePicker Grid.Column="3" Grid.Row="5" BackgroundColor="{StaticResource Secondary}" Margin="20"/>
|
<Button Text="ANNULER" Clicked="Button_Annuler" Grid.Column="1" Grid.Row="5" Style="{StaticResource WindowsButton2}"/>
|
||||||
|
<Button Text="VALIDER" Clicked="Button_Valider" Grid.Column="3" Grid.Row="5" Style="{StaticResource WindowsButton}"/>
|
||||||
<Button Text="ANNULER" Clicked="Button_Clicked" Grid.Column="1" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
<Button Text="VALIDER" Clicked="Button_Clicked_1" Grid.Column="3" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
</Grid>
|
||||||
|
|
||||||
</Grid>
|
|
||||||
|
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -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,41 +1,39 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentView xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
xmlns:inputs="clr-namespace:Syncfusion.Maui.Inputs;assembly=Syncfusion.Maui.Inputs"
|
||||||
x:Class="IHM.Desktop.CV_supprimerOp">
|
x:Class="IHM.Desktop.CV_supprimerOp">
|
||||||
|
|
||||||
<Grid BackgroundColor="{StaticResource Secondary}">
|
|
||||||
<Grid.RowDefinitions>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="1*"/>
|
|
||||||
<RowDefinition Height="2*"/>
|
|
||||||
<RowDefinition Height="2*"/>
|
|
||||||
<RowDefinition Height="2*"/>
|
|
||||||
<RowDefinition Height="2*"/>
|
|
||||||
<RowDefinition Height="2*"/>
|
|
||||||
</Grid.RowDefinitions>
|
|
||||||
<Grid.ColumnDefinitions>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="2*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
<ColumnDefinition Width="2*"/>
|
|
||||||
<ColumnDefinition Width="1*"/>
|
|
||||||
</Grid.ColumnDefinitions>
|
|
||||||
|
|
||||||
|
|
||||||
|
<Grid BackgroundColor="{StaticResource Tertiary}">
|
||||||
|
<Grid.RowDefinitions>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="1*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
<RowDefinition Height="2*"/>
|
||||||
|
</Grid.RowDefinitions>
|
||||||
|
<Grid.ColumnDefinitions>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
<ColumnDefinition Width="2*"/>
|
||||||
|
<ColumnDefinition Width="1*"/>
|
||||||
|
</Grid.ColumnDefinitions>
|
||||||
|
|
||||||
<Label Text="Supprimer une opération" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}"/>
|
<Label Text="Supprimer une opération" Grid.Column="1" Grid.Row="0" Grid.ColumnSpan="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
<Label Text="Nom" Grid.Column="1" Grid.Row="2" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Montant" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Type" Grid.Column="1" Grid.Row="4" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
<Label Text="Date" Grid.Column="1" Grid.Row="5" Style="{StaticResource TitreWindows}" Margin="20"/>
|
|
||||||
|
|
||||||
|
<Label Text="Selectionner l'opération" Grid.ColumnSpan="2" Grid.Column="1" Grid.Row="3" Style="{StaticResource TitreWindows}" VerticalOptions="Center"/>
|
||||||
|
|
||||||
<Entry Placeholder="Entrez un nom" Grid.Column="3" Grid.Row="2" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<Entry Placeholder="Entrez un montant" Grid.Column="3" Grid.Row="3" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
<inputs:SfComboBox HeightRequest="50" ItemsSource="{Binding SelectedCompte.LesOpe}" Grid.Column="3" Grid.Row="3" x:Name="recup"/>
|
||||||
<Entry Placeholder="Entrez un type de transaction" Grid.Column="3" Grid.Row="4" Style="{StaticResource zoneDeTexte}" Margin="20"/>
|
|
||||||
<DatePicker Grid.Column="3" Grid.Row="5" BackgroundColor="{StaticResource Secondary}" Margin="20"/>
|
|
||||||
|
|
||||||
<Button Text="ANNULER" Clicked="Button_Clicked" Grid.Column="1" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
<Button Text="VALIDER" Clicked="Button_Clicked_1" Grid.Column="3" Grid.Row="6" Style="{StaticResource WindowsButton}"/>
|
|
||||||
|
|
||||||
</Grid>
|
<Button Text="ANNULER" Clicked="Button_Annuler" Grid.Column="1" Grid.Row="5" Style="{StaticResource WindowsButton2}"/>
|
||||||
|
<Button Text="VALIDER" Clicked="Button_Valider" Grid.Column="3" Grid.Row="5" Style="{StaticResource WindowsButton}"/>
|
||||||
|
|
||||||
|
</Grid>
|
||||||
|
|
||||||
</ContentView>
|
</ContentView>
|
||||||
|
@ -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());
|
||||||
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 548 B |
After Width: | Height: | Size: 566 B |
After Width: | Height: | Size: 668 B |
Before Width: | Height: | Size: 963 B After Width: | Height: | Size: 511 B |
After Width: | Height: | Size: 744 B |
After Width: | Height: | Size: 156 KiB |
After Width: | Height: | Size: 211 KiB |
After Width: | Height: | Size: 240 KiB |