banque avec le manager a jour
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
3f6f1c4905
commit
6a363d2516
@ -1,59 +0,0 @@
|
|||||||
using Model;
|
|
||||||
using Microsoft.Maui.Controls;
|
|
||||||
using Microsoft.Maui.Controls.PlatformConfiguration.TizenSpecific;
|
|
||||||
using System.Diagnostics;
|
|
||||||
|
|
||||||
namespace IHM
|
|
||||||
{
|
|
||||||
|
|
||||||
public partial class DashBoard : ContentPage
|
|
||||||
{
|
|
||||||
public Manager Mgr => (App.Current as App).Manager;
|
|
||||||
public DashBoard()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
BindingContext = Mgr;
|
|
||||||
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
|
|
||||||
if (Mgr.User == null)
|
|
||||||
{
|
|
||||||
loadInscription();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
void OnClickedBanque(object sender, EventArgs args)
|
|
||||||
{
|
|
||||||
Button btn = (Button)sender;
|
|
||||||
ImgBanqueActuelle.Text = btn.Text;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
async void OnClickedGestionBanque(object sender, EventArgs args)
|
|
||||||
{
|
|
||||||
Bouton.BackgroundColor = Color.FromRgb(192, 192, 192);
|
|
||||||
await Bouton.TranslateTo(-130, 35, 50);
|
|
||||||
await Bouton.ScaleXTo(7.5, 50);
|
|
||||||
await Bouton.ScaleYTo(3, 50);
|
|
||||||
stackpannel.IsVisible = true;
|
|
||||||
BoutonRetour.IsVisible = true;
|
|
||||||
ImgBanqueActuelle.IsVisible = true;
|
|
||||||
|
|
||||||
//await Navigation.PushModalAsync(new GestionBanque());
|
|
||||||
}
|
|
||||||
|
|
||||||
async void OnClickedRetour(object sender, EventArgs args)
|
|
||||||
{
|
|
||||||
await Bouton.ScaleXTo(1, 50);
|
|
||||||
await Bouton.ScaleYTo(1, 50);
|
|
||||||
ImgBanqueActuelle.IsVisible = false;
|
|
||||||
stackpannel.IsVisible = false;
|
|
||||||
await Bouton.TranslateTo(0, 0, 50);
|
|
||||||
BoutonRetour.IsVisible = false;
|
|
||||||
}
|
|
||||||
|
|
||||||
public async void loadInscription()
|
|
||||||
{
|
|
||||||
await Navigation.PushModalAsync(new MainPage());
|
|
||||||
BindingContext=Mgr;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,14 +0,0 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
|
||||||
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
|
||||||
x:Class="IHM.GestionBanque"
|
|
||||||
MaximumWidthRequest="130"
|
|
||||||
HeightRequest="500"
|
|
||||||
Title="GestionBanque">
|
|
||||||
<VerticalStackLayout>
|
|
||||||
<Label
|
|
||||||
Text="Welcome to .NET MAUI!"
|
|
||||||
VerticalOptions="Center"
|
|
||||||
HorizontalOptions="Center" />
|
|
||||||
</VerticalStackLayout>
|
|
||||||
</ContentPage>
|
|
@ -1,9 +0,0 @@
|
|||||||
namespace IHM;
|
|
||||||
|
|
||||||
public partial class GestionBanque : ContentPage
|
|
||||||
{
|
|
||||||
public GestionBanque()
|
|
||||||
{
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,9 +1,38 @@
|
|||||||
|
using Model;
|
||||||
|
using System.Diagnostics;
|
||||||
|
|
||||||
namespace IHM.Mobile;
|
namespace IHM.Mobile;
|
||||||
|
|
||||||
public partial class AjoutBanques : ContentPage
|
public partial class AjoutBanques : ContentPage
|
||||||
{
|
{
|
||||||
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
public AjoutBanques()
|
public AjoutBanques()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
BindingContext = Mgr;
|
||||||
|
Mgr.importBanques();
|
||||||
|
}
|
||||||
|
|
||||||
|
private async void ImportOFX_Clicked(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
PickOptions options = new PickOptions();
|
||||||
|
options.PickerTitle = "Choisir un fichier OFX";
|
||||||
|
|
||||||
|
var result = await FilePicker.Default.PickAsync(options);
|
||||||
|
if (result != null)
|
||||||
|
{
|
||||||
|
if (result.FileName.EndsWith("ofx", StringComparison.OrdinalIgnoreCase))
|
||||||
|
{
|
||||||
|
string file = File.ReadAllText(result.FullPath).ToString();
|
||||||
|
//return file;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
throw new FileLoadException("Imposible de charger le fichier");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@ -1,9 +1,51 @@
|
|||||||
|
using Model;
|
||||||
|
|
||||||
namespace IHM.Mobile;
|
namespace IHM.Mobile;
|
||||||
|
|
||||||
public partial class Planification : ContentPage
|
public partial class Planification : ContentPage
|
||||||
{
|
{
|
||||||
|
public Manager Mgr => (App.Current as App).Manager;
|
||||||
public Planification()
|
public Planification()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
BindingContext = Mgr;
|
||||||
|
//Routing.RegisterRoute(nameof(DashBoard), typeof(DashBoard));
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void OnClickedBanque(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
Button btn = (Button)sender;
|
||||||
|
ImgBanqueActuelle.Text = btn.Text;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
async void OnClickedGestionBanque(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
Bouton.BackgroundColor = Color.FromRgb(192, 192, 192);
|
||||||
|
await Bouton.TranslateTo(-130, 35, 50);
|
||||||
|
await Bouton.ScaleXTo(7.5, 50);
|
||||||
|
await Bouton.ScaleYTo(3, 50);
|
||||||
|
stackpannel.IsVisible = true;
|
||||||
|
BoutonRetour.IsVisible = true;
|
||||||
|
ImgBanqueActuelle.IsVisible = true;
|
||||||
|
|
||||||
|
//await Navigation.PushModalAsync(new GestionBanque());
|
||||||
|
}
|
||||||
|
|
||||||
|
async void OnClickedRetour(object sender, EventArgs args)
|
||||||
|
{
|
||||||
|
await Bouton.ScaleXTo(1, 50);
|
||||||
|
await Bouton.ScaleYTo(1, 50);
|
||||||
|
ImgBanqueActuelle.IsVisible = false;
|
||||||
|
stackpannel.IsVisible = false;
|
||||||
|
await Bouton.TranslateTo(0, 0, 50);
|
||||||
|
BoutonRetour.IsVisible = false;
|
||||||
|
}
|
||||||
|
|
||||||
|
public async void loadInscription()
|
||||||
|
{
|
||||||
|
await Navigation.PushModalAsync(new MainPage());
|
||||||
|
BindingContext = Mgr;
|
||||||
}
|
}
|
||||||
}
|
}
|
After Width: | Height: | Size: 166 B |
After Width: | Height: | Size: 455 B |
File diff suppressed because it is too large
Load Diff
Loading…
Reference in new issue