commit
3f6f1c4905
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -0,0 +1,57 @@
|
|||||||
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
|
<ViewCell xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
||||||
|
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
|
||||||
|
x:Class="IHM.Composant.VC_Operation_Dashboard">
|
||||||
|
<StackLayout Orientation="Vertical">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</ViewCell>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace IHM.Composant;
|
||||||
|
|
||||||
|
public partial class VC_Operation_Dashboard : ViewCell
|
||||||
|
{
|
||||||
|
public VC_Operation_Dashboard()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
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;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
<?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>
|
@ -0,0 +1,9 @@
|
|||||||
|
namespace IHM;
|
||||||
|
|
||||||
|
public partial class GestionBanque : ContentPage
|
||||||
|
{
|
||||||
|
public GestionBanque()
|
||||||
|
{
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
}
|
@ -1,11 +1,135 @@
|
|||||||
<?xml version="1.0" encoding="utf-8" ?>
|
<?xml version="1.0" encoding="utf-8" ?>
|
||||||
<ContentPage xmlns="http://schemas.microsoft.com/dotnet/2021/maui"
|
<ContentPage 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"
|
||||||
x:Class="IHM.Mobile.Planification">
|
xmlns:local="clr-namespace:IHM.Composant"
|
||||||
<VerticalStackLayout>
|
x:Class="IHM.DashBoard"
|
||||||
<Label
|
BackgroundColor="#A00EE8">
|
||||||
Text="Planification"
|
<ScrollView VerticalOptions="FillAndExpand">
|
||||||
|
<VerticalStackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label
|
||||||
|
Text="Bienvenue"
|
||||||
VerticalOptions="Center"
|
VerticalOptions="Center"
|
||||||
HorizontalOptions="Center" />
|
HorizontalOptions="Start"
|
||||||
|
Margin="10,10,10,20"
|
||||||
|
FontSize="25"
|
||||||
|
/>
|
||||||
|
<Label
|
||||||
|
FontAttributes="Bold"
|
||||||
|
Margin="0,10,0,0"
|
||||||
|
Text="{Binding User.Prenom}"
|
||||||
|
FontSize="25"
|
||||||
|
/>
|
||||||
|
</StackLayout>
|
||||||
|
<Button
|
||||||
|
BackgroundColor="Red"
|
||||||
|
x:Name="Bouton"
|
||||||
|
WidthRequest="50"
|
||||||
|
HeightRequest="50"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Margin="0,0,40,0"
|
||||||
|
Clicked="OnClickedGestionBanque"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
IsVisible="False"
|
||||||
|
IsEnabled="False"
|
||||||
|
WidthRequest="175"
|
||||||
|
HeightRequest="50"
|
||||||
|
Margin="0,-50,0,0"
|
||||||
|
x:Name="ImgBanqueActuelle"
|
||||||
|
BackgroundColor="AliceBlue"
|
||||||
|
Text="{Binding selectedBanque}"
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
IsVisible="false"
|
||||||
|
BackgroundColor="Black"
|
||||||
|
x:Name="BoutonRetour"
|
||||||
|
WidthRequest="50"
|
||||||
|
HeightRequest="50"
|
||||||
|
HorizontalOptions="End"
|
||||||
|
Margin="0,-50,40,0"
|
||||||
|
Clicked="OnClickedRetour"
|
||||||
|
/>
|
||||||
|
<StackLayout IsVisible="false" x:Name="stackpannel">
|
||||||
|
<CollectionView x:Name="listeBanque" ItemsSource="{Binding User.LesBanques}" ItemsUpdatingScrollMode="KeepScrollOffset" Margin="22,0,22,0" ItemsLayout="HorizontalList">
|
||||||
|
<CollectionView.ItemTemplate>
|
||||||
|
<DataTemplate>
|
||||||
|
<StackLayout Margin="0,35,0,0">
|
||||||
|
<Button Clicked="OnClickedBanque" Text="{Binding Nom}"/>
|
||||||
|
</StackLayout>
|
||||||
|
</DataTemplate>
|
||||||
|
</CollectionView.ItemTemplate>
|
||||||
|
</CollectionView>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Margin="0,20,0,0" Orientation="Horizontal">
|
||||||
|
<Label Margin="20,0,0,0" FontSize="25">Solde total :</Label>
|
||||||
|
<Label FontSize="25" Margin="8,0,0,0" x:Name="soldetotal">0</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<Border Stroke="Black" StrokeThickness="5" Margin="0,70,0,0">
|
||||||
|
<StackLayout BackgroundColor="Cyan" Padding="0,0,0,20">
|
||||||
|
<Label HorizontalTextAlignment="Center" FontSize="20">Listes des dernières opérations</Label>
|
||||||
|
<StackLayout Orientation="Vertical">
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
<StackLayout Orientation="Horizontal">
|
||||||
|
<Label>Nom de l'opération</Label>
|
||||||
|
<Label>Date de l'opération</Label>
|
||||||
|
<Label>Type d'opération</Label>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</Border>
|
||||||
|
<Border Stroke="Black" StrokeThickness="5" Margin="0,70,0,30">
|
||||||
|
<StackLayout Margin="0,10,0,0">
|
||||||
|
<Label HorizontalTextAlignment="Center" FontSize="20">Pour vous</Label>
|
||||||
|
<StackLayout BackgroundColor="RosyBrown" Margin="0,0,0,20" HeightRequest="200" WidthRequest="310">
|
||||||
|
<Label HorizontalOptions="Center" FontSize="20">Aide à la gestion personnalisée</Label>
|
||||||
|
</StackLayout>
|
||||||
|
</StackLayout>
|
||||||
|
</Border>
|
||||||
</VerticalStackLayout>
|
</VerticalStackLayout>
|
||||||
|
</ScrollView>
|
||||||
</ContentPage>
|
</ContentPage>
|
After Width: | Height: | Size: 748 B |
Loading…
Reference in new issue