ProjetThe/ProjetTheAlone/View/FicBeneficiaireEncode.xaml

77 lines
5.0 KiB
Plaintext
Raw Normal View History

2019-01-19 11:04:17 +01:00
<Window x:Class="ProjetTheAlone.View.FicBeneficiaireEncode"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:ProjetTheAlone.View"
2019-01-24 22:24:05 +01:00
xmlns:convert="clr-namespace:ProjetTheAlone.Converter"
2019-01-19 11:04:17 +01:00
mc:Ignorable="d"
2019-01-19 22:29:09 +01:00
Title="Bénéficiaire" Height="482.167" Width="955.5" WindowStartupLocation="CenterScreen" WindowStyle="None">
2019-01-24 22:24:05 +01:00
<Window.Resources>
<convert:BinaryImageConverter x:Key="imgConverter" />
</Window.Resources>
2019-01-19 22:29:09 +01:00
<Grid Margin="0,-3,2,2">
2019-01-19 11:04:17 +01:00
<Grid.RowDefinitions>
2019-01-19 22:29:09 +01:00
2019-01-19 11:04:17 +01:00
</Grid.RowDefinitions>
2019-01-19 22:29:09 +01:00
<Label Content="Bénéficiaire" HorizontalAlignment="Left" Margin="31,20,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
<Grid x:Name="UneFiche" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}" Margin="548,49,106,256" >
2019-01-19 11:04:17 +01:00
<Grid.RowDefinitions>
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
<RowDefinition Height="Auto" />
2019-01-19 22:29:09 +01:00
<RowDefinition Height="Auto" />
2019-01-19 11:04:17 +01:00
</Grid.RowDefinitions>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto" />
<ColumnDefinition Width="*" />
</Grid.ColumnDefinitions>
2019-01-19 22:29:09 +01:00
<TextBlock x:Name="tPre" Text="Prénom" Grid.Row="1" VerticalAlignment="Center" />
<TextBox x:Name="tbPre" Grid.Row="1" Grid.Column="1" Margin="3"
Text="{Binding UnBeneficiaire.Pre, Mode=TwoWay}" />
<TextBlock x:Name="tNom" Text="Nom" Grid.Row="2" VerticalAlignment="Center" />
<TextBox x:Name="tbNom" Grid.Row="2" Grid.Column="1" Margin="3"
Text="{Binding UnBeneficiaire.Nom, Mode=TwoWay}" />
2019-01-20 11:46:45 +01:00
<TextBlock x:Name="tAnnif" Text="Date Naissance" Grid.Row="3" VerticalAlignment="Center" />
<DatePicker x:Name="dpAnnif" Grid.Row="3" Grid.Column="1" Margin="3"
SelectedDate="{Binding UnBeneficiaire.Annif, Mode=TwoWay}" />
2019-01-19 22:29:09 +01:00
<TextBlock x:Name="tImg" Text="Photo" Grid.Row="4" VerticalAlignment="Center" Margin="0,56,0,10" />
<DockPanel Margin="10,10,10,10" Grid.Row="4" Grid.Column="1">
<WrapPanel HorizontalAlignment="Right" DockPanel.Dock="Top" >
2019-01-24 22:24:05 +01:00
<Image x:Name="ImageFile" Source="{Binding UnBeneficiaire.Img, Mode=TwoWay, Converter={StaticResource imgConverter}}" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" Width="90"/>
2019-01-19 22:29:09 +01:00
<Button x:Name="btnOpenFile" HorizontalAlignment="Right" Click="btnOpenFile_Click" Content="Open file"/>
</WrapPanel>
2019-01-24 22:24:05 +01:00
<TextBox x:Name="txtEditor" />
<!-- Text="{Binding UnBeneficiaire.Img, Mode=TwoWay}" -->
2019-01-19 22:29:09 +01:00
</DockPanel>
2019-01-19 11:04:17 +01:00
</Grid>
2019-01-19 22:29:09 +01:00
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="678,237,78,140" Width="190">
<Button x:Name="bConfirmer" Content="Confirmer" Margin="3" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cConfirmer}" />
<Button x:Name="bAnnuler" Content="Annuler" Margin="3,16,3,17" IsEnabled="{Binding ActiverUneFiche, Mode=OneWay}"
Command="{Binding cAnnuler}" />
2019-01-19 11:04:17 +01:00
</StackPanel>
2019-01-24 22:24:05 +01:00
<DataGrid ItemsSource="{Binding BcpBeneficiaires}" VerticalScrollBarVisibility="Visible"
2019-01-19 22:29:09 +01:00
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding BeneficiaireSelectionnee, Mode=TwoWay}" Margin="88,82,566,149" >
2019-01-19 11:04:17 +01:00
<DataGrid.Columns>
2019-01-24 22:24:05 +01:00
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_beneficiaire}" />
<DataGridTextColumn Header="Prénom" Binding="{Binding B_prenom}" Width="*" />
<DataGridTextColumn Header="Nom" Binding="{Binding B_nom}" Width="*" />
2019-01-19 11:04:17 +01:00
</DataGrid.Columns>
</DataGrid>
2019-01-19 22:29:09 +01:00
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center" Margin="88,331,576,46" Width="282">
<Button x:Name="bAjouter" Content="Ajouter" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
2019-01-24 22:24:05 +01:00
Command="{Binding cAjouter}" />
2019-01-19 22:29:09 +01:00
<Button x:Name="bModifier" Content="Modifier" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cModifier}" />
<Button x:Name="bSupprimer" Content="Supprimer" Margin="3" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
Command="{Binding cSupprimer}" />
2019-01-19 11:04:17 +01:00
</StackPanel>
2019-01-19 22:29:09 +01:00
<Button x:Name="BtnQuitter" Content="Quitter" HorizontalAlignment="Left" Margin="810,403,0,0" VerticalAlignment="Top" Width="92" Click="BtnQuitter_Click" Height="26"/>
2019-01-19 11:04:17 +01:00
</Grid>
</Window>