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"
|
|
|
|
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">
|
|
|
|
<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}" />
|
|
|
|
<TextBlock x:Name="tNai" Text="Date Naissance" Grid.Row="3" VerticalAlignment="Center" />
|
|
|
|
<DatePicker x:Name="dpNai" Grid.Row="3" Grid.Column="1" Margin="3"
|
|
|
|
Text="{Binding UnBeneficiaire.Nai, Mode=TwoWay}"
|
|
|
|
DisplayDate="{Binding UnBeneficiaire.Nai, Mode=TwoWay}" />
|
|
|
|
<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" >
|
|
|
|
<Image x:Name="ImageFile" Height="40" HorizontalAlignment="Right" VerticalAlignment="Top" Width="90"/>
|
|
|
|
<Button x:Name="btnOpenFile" HorizontalAlignment="Right" Click="btnOpenFile_Click" Content="Open file"/>
|
|
|
|
</WrapPanel>
|
|
|
|
<TextBox x:Name="txtEditor" />
|
|
|
|
|
|
|
|
</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-19 22:29:09 +01:00
|
|
|
<DataGrid ItemsSource="{Binding BcpBeneficiaire}" VerticalScrollBarVisibility="Visible"
|
|
|
|
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-19 22:29:09 +01:00
|
|
|
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID}" />
|
|
|
|
<DataGridTextColumn Header="Prénom" Binding="{Binding Pre}" Width="*" />
|
|
|
|
<DataGridTextColumn Header="Nom" Binding="{Binding 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}"
|
|
|
|
Command="{Binding cAjouter}" />
|
|
|
|
<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>
|