123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106 |
- <UserControl x:Class="PRSDesktop.StockMovementPanel"
- xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
- xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
- xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
- xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
- xmlns:local="clr-namespace:PRSDesktop"
- xmlns:syncfusion="http://schemas.syncfusion.com/wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <UserControl.Resources>
- <ControlTemplate x:Key="VerticalSplitter">
- <Grid Background="{TemplateBinding Background}" Width="4">
- <Button x:Name="PART_Left" Visibility="Collapsed" />
- <Button x:Name="PART_Right" Visibility="Collapsed" />
- <StackPanel Margin="0" Orientation="Vertical" VerticalAlignment="Center" HorizontalAlignment="Center">
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- <Ellipse Fill="Silver" HorizontalAlignment="Center" Height="2" Width="2" Opacity="1"
- Margin="0,2,0,0" />
- </StackPanel>
- </Grid>
- </ControlTemplate>
- </UserControl.Resources>
- <Grid x:Name="Grid">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0" />
- <ColumnDefinition Width="0" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border Grid.Row="0" Grid.Column="0" Grid.ColumnSpan="3" CornerRadius="5,5,0,0" Padding="5"
- Background="WhiteSmoke" BorderBrush="Gray" BorderThickness="0.75" Margin="0,0,0,3">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- <ColumnDefinition Width="Auto" />
- </Grid.ColumnDefinitions>
- <Label Grid.Column="0" Content="Date Range" VerticalContentAlignment="Center" />
- <ComboBox x:Name="View" Grid.Column="1" MinWidth="100" VerticalContentAlignment="Center"
- SelectedIndex="0" SelectionChanged="View_SelectionChanged">
- <ComboBoxItem Content="Today" />
- <ComboBoxItem Content="Yesterday" />
- <ComboBoxItem Content="This Week" />
- <ComboBoxItem Content="Last Week" />
- <ComboBoxItem Content="This Month" />
- <ComboBoxItem Content="Last Month" />
- <ComboBoxItem Content="This Year" />
- <ComboBoxItem Content="Last Year" />
- <ComboBoxItem Content="Custom" />
- </ComboBox>
- <Label x:Name="StartLabel" Grid.Column="2" Content="Starting" VerticalContentAlignment="Center" />
- <DatePicker x:Name="StartPicker" Grid.Column="3" MinWidth="100" VerticalContentAlignment="Center"
- IsEnabled="False" SelectedDateChanged="SelectedDateChanged" />
- <Label x:Name="EndLabel" Grid.Column="4" Content="Ending" VerticalContentAlignment="Center" />
- <DatePicker x:Name="EndPicker" Grid.Column="5" MinWidth="100" VerticalContentAlignment="Center"
- SelectedDateChanged="SelectedDateChanged" />
- <DockPanel Grid.Column="7">
- <CheckBox x:Name="ShowBatches" VerticalContentAlignment="Center" DockPanel.Dock="Right"
- Checked="ShowBatches_Checked" Unchecked="ShowBatches_Checked" />
- <Label Content="Show Batches?" VerticalContentAlignment="Center" DockPanel.Dock="Left" />
- </DockPanel>
- </Grid>
- </Border>
- <local:StockBatchGrid x:Name="Batches" Grid.Row="1" Grid.Column="0" />
- <syncfusion:SfGridSplitter Grid.Row="1" Grid.Column="1" ResizeBehavior="PreviousAndNext" Width="4"
- Background="Transparent" Template="{StaticResource VerticalSplitter}">
- <syncfusion:SfGridSplitter.PreviewStyle>
- <Style TargetType="Control">
- <Setter Property="Background" Value="Gray" />
- <Setter Property="Template">
- <Setter.Value>
- <ControlTemplate TargetType="Control">
- <Grid x:Name="Root" Opacity="0.5">
- <Rectangle Fill="{TemplateBinding Background}" />
- </Grid>
- </ControlTemplate>
- </Setter.Value>
- </Setter>
- </Style>
- </syncfusion:SfGridSplitter.PreviewStyle>
- </syncfusion:SfGridSplitter>
- <local:ProductStockMovementGrid x:Name="Movements" AllowNullLocation="True" AllowNullBatch="True" Grid.Row="1"
- Grid.Column="2" OnReconfigure="Movements_OnReconfigure"/>
- </Grid>
- </UserControl>
|