<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
Title="Archives - Recherche Avancée" Height="700" Width="1100"
Background="#F0F2F5" FontFamily="Segoe UI Variable Display" FontSize="14"
WindowStartupLocation="CenterScreen">
<Grid Margin="20">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"/> <!-- Filtres -->
<RowDefinition Height="*"/> <!-- Grille -->
<RowDefinition Height="Auto"/> <!-- Totaux -->
</Grid.RowDefinitions>
<!-- Zone de filtres moderne -->
<Border Grid.Row="0" Background="White" CornerRadius="8" Padding="15" Margin="0,0,0,15" BorderBrush="#CBD5E0" BorderThickness="1">
<WrapPanel Orientation="Horizontal">
<StackPanel Margin="5">
<TextBlock Text="Recherche libre" FontSize="11" FontWeight="Bold" Margin="0,0,0,3"/>
<TextBox x:Name="SearchBox" Width="220" Height="30" VerticalContentAlignment="Center" Padding="5,0"/>
</StackPanel>
<StackPanel Margin="5">
<TextBlock Text="Date Début" FontSize="11" FontWeight="Bold" Margin="0,0,0,3"/>
<DatePicker x:Name="StartDate" Width="140" Height="30"/>
</StackPanel>
<StackPanel Margin="5">
<TextBlock Text="Date Fin" FontSize="11" FontWeight="Bold" Margin="0,0,0,3"/>
<DatePicker x:Name="EndDate" Width="140" Height="30"/>
</StackPanel>
<StackPanel Margin="5">
<TextBlock Text="Type Acte" FontSize="11" FontWeight="Bold" Margin="0,0,0,3"/>
<ComboBox x:Name="TypeFilter" Width="140" Height="30" SelectedIndex="0">
<ComboBoxItem Content="(Tous)"/>
<ComboBoxItem Content="AVENANT"/>
<ComboBoxItem Content="NOUVELLE AFFAIRE"/>
<ComboBoxItem Content="TERME"/>
</ComboBox>
</StackPanel>
<StackPanel Margin="5">
<TextBlock Text="Paiement" FontSize="11" FontWeight="Bold" Margin="0,0,0,3"/>
<ComboBox x:Name="PaiementFilter" Width="120" Height="30" SelectedIndex="0">
<ComboBoxItem Content="(Tous)"/>
<ComboBoxItem Content="Chèque"/>
<ComboBoxItem Content="Espèce"/>
<ComboBoxItem Content="Virement"/>
<ComboBoxItem Content="TPE"/>
</ComboBox>
</StackPanel>
<Button x:Name="SearchBtn" Content="LANCER LE FILTRAGE" Width="150" Height="30" Margin="10,18,0,0"
Background="#2B6CB0" Foreground="White" FontWeight="Bold" Cursor="Hand"/>
</WrapPanel>
</Border>
<!-- Grille de résultats -->
<DataGrid x:Name="SearchGrid" Grid.Row="1" AutoGenerateColumns="False"
Background="White" BorderBrush="#CBD5E0" BorderThickness="1"
IsReadOnly="True" RowHeight="32" GridLinesVisibility="Horizontal">
<DataGrid.Columns>
<DataGridTextColumn Header="Fichier (Date)" Binding="{Binding SourceFile}" Width="110"/>
<DataGridTextColumn Header="Assuré" Binding="{Binding Assure}" Width="1.5*"/>
<DataGridTextColumn Header="Police" Binding="{Binding Police}" Width="*"/>
<DataGridTextColumn Header="Prime (€)" Binding="{Binding Prime}" Width="90"/>
<DataGridTextColumn Header="Modalité" Binding="{Binding ModalitePaiement}" Width="100"/>
<DataGridTextColumn Header="Type" Binding="{Binding Type}" Width="110"/>
</DataGrid.Columns>
</DataGrid>
<!-- Barre de statistiques en bas -->
<Border Grid.Row="2" Background="#2D3748" CornerRadius="0,0,8,8" Padding="15">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Right">
<TextBlock Text="Résultats :" Foreground="White" Margin="0,0,10,0"/>
<TextBlock x:Name="TxtCount" Text="0" Foreground="#63B3ED" FontWeight="Bold" Margin="0,0,30,0"/>
<TextBlock Text="MONTANT TOTAL :" Foreground="White" Margin="0,0,10,0"/>
<TextBlock x:Name="TxtTotal" Text="0.00 €" Foreground="#68D391" FontWeight="Bold" FontSize="16"/>
</StackPanel>
</Border>
</Grid>
</Window>