Ajout de 4 UC de la page opération, rectification du nom de planification
continuous-integration/drone/push Build is passing Details

Navigator
Raphael LACOTE 2 years ago
parent f16a771db5
commit 4cb8651c27

@ -24,7 +24,7 @@
<Button Click="Button_Click_Compte" Content="Compte" Style="{StaticResource BoutonMain}"/>
<Button Click="Button_Click_Operation" Content="Opérations" Style="{StaticResource BoutonMain}"/>
<Button Click="Button_Click_Echeancier" Content="Echéancier" Style="{StaticResource BoutonMain}"/>
<Button Click="Button_Click_Plannification" Content="Plannification" Style="{StaticResource BoutonMain}"/>
<Button Click="Button_Click_Planification" Content="Planification" Style="{StaticResource BoutonMain}"/>
</StackPanel>

@ -109,7 +109,7 @@ namespace IHM
}
private void Button_Click_Plannification(object sender, RoutedEventArgs e)
private void Button_Click_Planification(object sender, RoutedEventArgs e)
{
Button btn = (Button)sender;
if (btn == null) return;

@ -35,6 +35,11 @@ namespace IHM
public const string PART_AJOUTER_PLANIFICATION = "Ajouter une planification";
public const string PART_SUPPRIMER_PLANIFICATION = "Supprimer une planification";
public const string PART_EFFECTUER_CREDIT = "Effectuer un crédit";
public const string PART_EFFECTUER_DEBIT = "Effectuer un débit";
public const string PART_RETIRER_OPERATION = "Retirer une opération";
public const string PART_SUPPRIMER_OPERATION = "Supprimer une opération";
public ReadOnlyDictionary<string, Func<UserControl>> WindowPart { get; private set; }
Dictionary<string, Func<UserControl>> windowPart { get; set; } = new Dictionary<string, Func<UserControl>>
@ -44,7 +49,7 @@ namespace IHM
[PART_COMPTE] = () => new UCCompte(),
[PART_OPERATION] = () => new UCOperation(),
[PART_ECHEANCIER] = () => new UCEcheancier(),
[PART_PLANIFICATION] = () => new UCPlannification(),
[PART_PLANIFICATION] = () => new UCPlanification(),
[PART_INSCRIPTION] = () => new UCInscription(),
[PART_MODIFSOLDE] = () => new UCModifSolde(),
[PART_AJOUTER_BANQUE] = () => new UCAjouterBanque(),
@ -56,6 +61,10 @@ namespace IHM
[PART_AJOUTER_PLANIFICATION] = () => new UCAjouterPlanification(),
[PART_SUPPRIMER_PLANIFICATION] = () => new UCSupprimerPlanification(),
[PART_TABLEAU_DE_BORD] = () => new UCTableauDeBord(),
[PART_EFFECTUER_CREDIT] = () => new UCEffectuerCredit(),
[PART_EFFECTUER_DEBIT] = () => new UCEffectuerCredit(),
[PART_RETIRER_OPERATION] = () => new UCEffectuerCredit(),
[PART_SUPPRIMER_OPERATION] = () => new UCEffectuerCredit()
};

@ -0,0 +1,16 @@
<UserControl x:Class="IHM.UCEffectuerCredit"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IHM"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>
</UserControl>

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace IHM
{
/// <summary>
/// Logique d'interaction pour UserControl1.xaml
/// </summary>
public partial class UCEffectuerCredit : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCEffectuerCredit()
{
InitializeComponent();
}
private void Button_Click_Retour(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_OPERATION);
}
}
}

@ -0,0 +1,16 @@
<UserControl x:Class="IHM.UCEffectuerDebit"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IHM"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>
</UserControl>

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace IHM
{
/// <summary>
/// Logique d'interaction pour UserControl1.xaml
/// </summary>
public partial class UCEffectuerDebit : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCEffectuerDebit()
{
InitializeComponent();
}
private void Button_Click_Retour(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_OPERATION);
}
}
}

@ -22,10 +22,10 @@
<StackPanel Orientation="Vertical" HorizontalAlignment="Center">
<WrapPanel HorizontalAlignment="Center">
<Button Style="{StaticResource GreenButtonRessource}" Content="Effectuer un crédit"/>
<Button Style="{StaticResource GreenButtonRessource}" Content="Effectuer un débit"/>
<Button Style="{StaticResource GreenButtonRessource}" Content="Retirer une opération"/>
<Button Style="{StaticResource GreenButtonRessource}" Content="Supprimer une opération"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_EffectuerCredit" Content="Effectuer un crédit"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_EffectuerDebit" Content="Effectuer un débit"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_RetirerOperation" Content="Retirer une opération"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_SupprimerOperation" Content="Supprimer une opération"/>
</WrapPanel>
<WrapPanel HorizontalAlignment="Center">
<WrapPanel.Resources>

@ -20,9 +20,27 @@ namespace IHM
/// </summary>
public partial class UCOperation : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCOperation()
{
InitializeComponent();
}
private void Button_Click_EffectuerCredit(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_EFFECTUER_CREDIT);
}
private void Button_Click_EffectuerDebit(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_EFFECTUER_DEBIT);
}
private void Button_Click_RetirerOperation(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_RETIRER_OPERATION);
}
private void Button_Click_SupprimerOperation(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_SUPPRIMER_OPERATION);
}
}
}

@ -1,4 +1,4 @@
<UserControl x:Class="IHM.UCPlannification"
<UserControl x:Class="IHM.UCPlanification"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
@ -25,8 +25,8 @@
<WrapPanel HorizontalAlignment="Center">
<Button Style="{StaticResource GreenButtonRessource}" Content="Enregistrer une plannification"/>
<Button Style="{StaticResource GreenButtonRessource}" Content="supprimer une plannification"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_Ajouter_Planification" Content="Enregistrer une planification"/>
<Button Style="{StaticResource GreenButtonRessource}" Click="Button_Click_Supprimer_Planification" Content="supprimer une planification"/>
</WrapPanel>
<TextBlock Text="Basculement vers échéancier tous les premiers du mois" HorizontalAlignment="Center" FontStyle="Italic"/>
<WrapPanel HorizontalAlignment="Center">

@ -18,11 +18,11 @@ namespace IHM
/// <summary>
/// Logique d'interaction pour UCPlannification.xaml
/// </summary>
public partial class UCPlannification : UserControl
public partial class UCPlanification : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCPlannification()
public UCPlanification()
{
InitializeComponent();
}

@ -0,0 +1,16 @@
<UserControl x:Class="IHM.UCRetirerOperation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IHM"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>
</UserControl>

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace IHM
{
/// <summary>
/// Logique d'interaction pour UserControl2.xaml
/// </summary>
public partial class UCRetirerOperation : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCRetirerOperation()
{
InitializeComponent();
}
private void Button_Click_Retour(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_OPERATION);
}
}
}

@ -0,0 +1,16 @@
<UserControl x:Class="IHM.UCSupprimerOperation"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:local="clr-namespace:IHM"
mc:Ignorable="d"
d:DesignHeight="450" d:DesignWidth="800"
Style="{StaticResource ImageFondRessource}">
<DockPanel>
<TextBlock Text="A FAIRE" FontSize="40"/>
<Button Click="Button_Click_Retour" Style="{StaticResource GreenButtonRessource}">
<TextBlock Text="Retour"/>
</Button>
</DockPanel>
</UserControl>

@ -0,0 +1,34 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;
namespace IHM
{
/// <summary>
/// Logique d'interaction pour UserControl3.xaml
/// </summary>
public partial class UCSupprimerOperation : UserControl
{
public Navigator Nav => (App.Current as App).Navigator;
public UCSupprimerOperation()
{
InitializeComponent();
}
private void Button_Click_Retour(object sender, RoutedEventArgs e)
{
Nav.NavigateTo(Navigator.PART_OPERATION);
}
}
}
Loading…
Cancel
Save