123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 |
- <UserControl x:Class="PRSDesktop.StockLocationPanel"
- 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:dynamic="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="800">
- <dynamic:DynamicSplitPanel MasterCaption="Stock Location List" DetailCaption="Location Summary" AnchorWidth="500" AllowableViews="Master,Combined"
- View="Combined" DetailHeight="400">
- <dynamic:DynamicSplitPanel.Header>
- <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Label Content="Stock Location List" HorizontalContentAlignment="Center" DockPanel.Dock="Left" />
- </Border>
- </dynamic:DynamicSplitPanel.Header>
- <dynamic:DynamicSplitPanel.Master>
- <local:StockLocationGrid x:Name="Locations" DockPanel.Dock="Top" Margin="0,2,0,0" />
- </dynamic:DynamicSplitPanel.Master>
- <dynamic:DynamicSplitPanel.DetailHeader>
- <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Label Content="Location Summary" HorizontalContentAlignment="Center" />
- </Border>
- </dynamic:DynamicSplitPanel.DetailHeader>
- <dynamic:DynamicSplitPanel.Detail>
- <local:StockHoldingGrid x:Name="Holdings" DockPanel.Dock="Top" Margin="0,2,0,0" OnSelectItem="Holdings_OnOnSelectItem" />
- </dynamic:DynamicSplitPanel.Detail>
- <dynamic:DynamicSplitPanel.SecondaryDetail>
- <DockPanel>
- <Border CornerRadius="0,0,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="150"/>
- <ColumnDefinition Width="*"/>
- <ColumnDefinition Width="150"/>
- </Grid.ColumnDefinitions>
- <DockPanel Grid.Column="0" Margin="5,0,0,0">
- <CheckBox x:Name="_syncMovements" DockPanel.Dock="Left" VerticalContentAlignment="Center" Checked="_syncMovements_OnChecked" Unchecked="_syncMovements_OnChecked" />
- <Label Content="Sync Movements?" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
- </DockPanel>
- <Label
- Grid.Column="1"
- Content="Stock Movements"
- HorizontalContentAlignment="Center"
- VerticalContentAlignment="Center"/>
- </Grid>
- </Border>
- <local:ProductStockMovementGrid x:Name="Movements" Margin="0,2,0,0" DockPanel.Dock="Top" AllowNullLocation="False"
- AllowNullBatch="True" OnFilterRecord="Movements_OnOnFilterRecord" />
- </DockPanel>
- </dynamic:DynamicSplitPanel.SecondaryDetail>
- </dynamic:DynamicSplitPanel>
- <!--Grid>
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="0.3*" />
- <ColumnDefinition Width="0.7*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="0.4*" />
- <RowDefinition Height="0.6*" />
- </Grid.RowDefinitions>
- <DockPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
- <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Label Content="Stock Location List" HorizontalContentAlignment="Center" />
- </Border>
- </DockPanel>
- <DockPanel Grid.Column="1" Grid.Row="0" Margin="2,0,0,0">
- <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Label Content="Location Summary" HorizontalContentAlignment="Center" />
- </Border>
- <local:StockHoldingGrid x:Name="Holdings" DockPanel.Dock="Top" Margin="0,2,0,0" />
- </DockPanel>
- <DockPanel Grid.Column="1" Grid.Row="1" Margin="2,2,0,0">
- <Border CornerRadius="0,0,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
- Background="WhiteSmoke">
- <Label Content="Stock Movements" HorizontalContentAlignment="Center" />
- </Border>
- <local:StockMovementGrid x:Name="Movements" Margin="0,2,0,0" DockPanel.Dock="Top" AllowNullLocation="False"
- AllowNullBatch="True" />
- </DockPanel>
- </Grid-->
- </UserControl>
|