ProjetThe/ProjetTheAlone/View/FicRepasEncode.xaml

71 lines
4.2 KiB
Plaintext
Raw Normal View History

2019-01-19 11:04:17 +01:00
<Window x:Class="ProjetTheAlone.View.FicRepasEncode"
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-25 16:23:52 +01:00
Title="FicRepas" Height="491.666" Width="1137.834" WindowStartupLocation="CenterScreen" MouseDown="Window_MouseDown" WindowStyle="None">
2019-01-19 11:04:17 +01:00
<Grid>
2019-01-24 22:24:05 +01:00
<Grid.ColumnDefinitions>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
<ColumnDefinition Width="Auto"></ColumnDefinition>
<ColumnDefinition Width="*"></ColumnDefinition>
</Grid.ColumnDefinitions>
2019-01-19 22:29:09 +01:00
<Label Content="Repas" HorizontalAlignment="Left" Margin="51,30,0,0" VerticalAlignment="Top" FontFamily="Calibri" FontSize="20"/>
2019-01-24 22:24:05 +01:00
<Button x:Name="btnQuitter"
Content="Quitter" RenderTransformOrigin="0.017,0.519" Click="btnQuitter_Click" Grid.Column="0" Height="30" VerticalAlignment="Bottom" Width="100"/>
2019-01-20 11:46:45 +01:00
2019-01-24 22:24:05 +01:00
<Calendar x:Name="DateV" SelectedDate="{Binding DateSelection, Mode=TwoWay}"
HorizontalAlignment="Left" Margin="10,64,0,0" VerticalAlignment="Top" Height="338" Width="284" Grid.Column="0"
/>
<Grid Grid.Column="1">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"/>
<RowDefinition Height="auto" />
</Grid.RowDefinitions>
<TextBlock FontFamily="Calibri" FontSize="20" HorizontalAlignment="Center">Lisst des plats disponible</TextBlock>
<DataGrid x:Name="dgPlat" ItemsSource="{Binding BcpPlats}" VerticalScrollBarVisibility="Visible"
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Grid.Row="1" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Plat" Binding="{Binding P_nom}" Width="*" />
2019-01-25 14:20:43 +01:00
<DataGridTextColumn Header="Type de plat" Binding="{Binding ID_typePlat}" Width="auto" />
</DataGrid.Columns>
2019-01-24 22:24:05 +01:00
</DataGrid>
<Button x:Name="btnPlat"
Content="Gestion Plat" Click="btnPlat_Click" Height="30" Grid.Column="1" VerticalAlignment="Bottom" Grid.Row="1"/>
</Grid>
2019-01-25 14:25:33 +01:00
<StackPanel Orientation="Vertical" VerticalAlignment="Center" Grid.Column="2">
2019-01-24 22:24:05 +01:00
<Button x:Name="btnAddPlat"
2019-01-25 14:25:33 +01:00
Content="->" Click="btnAddPlat_Click" Height="30" Width="auto" VerticalAlignment="Center"
ToolTip="Ajouter aux plat sélectionné"/>
2019-01-24 22:24:05 +01:00
<Button x:Name="retirerPlat" Click="retirerPlat_Click"
2019-01-25 14:25:33 +01:00
Content="-" Height="30" Width="auto" VerticalAlignment="Center" Margin="0,3,0,0"
2019-01-25 14:20:43 +01:00
ToolTip="Suprimer des plats sélectionné"/>
2019-01-25 14:25:33 +01:00
</StackPanel>
2019-01-24 22:24:05 +01:00
<Grid Grid.Column="3">
<Grid.RowDefinitions>
<RowDefinition Height="Auto"></RowDefinition>
<RowDefinition Height="*"></RowDefinition>
</Grid.RowDefinitions>
<TextBlock FontFamily="Calibri" FontSize="20" HorizontalAlignment="Center">Lisst des plat selectionné</TextBlock>
2019-01-25 14:20:43 +01:00
2019-01-24 22:24:05 +01:00
<DataGrid x:Name="dgLPS" ItemsSource="{Binding BcpPLatJourSelectionne}" VerticalScrollBarVisibility="Visible"
2019-01-25 14:20:43 +01:00
IsReadOnly="True" AutoGenerateColumns="False" IsEnabled="{Binding ActiverBcpFiche, Mode=OneWay}"
2019-01-24 22:24:05 +01:00
SelectedItem="{Binding PlatSelectionnee, Mode=TwoWay}" Grid.Row="1" Height="auto">
<DataGrid.Columns>
<DataGridTextColumn Visibility="Hidden" Binding="{Binding ID_plat}" />
<DataGridTextColumn Header="Plat" Binding="{Binding P_nom}" Width="*" />
2019-01-25 14:20:43 +01:00
<DataGridTextColumn Header="Type de plat" Binding="{Binding ID_typePlat}" Width="auto" />
2019-01-24 22:24:05 +01:00
</DataGrid.Columns>
</DataGrid>
2019-01-19 11:04:17 +01:00
2019-01-24 22:24:05 +01:00
</Grid>
2019-01-19 11:04:17 +01:00
</Grid>
</Window>