StockLocationPanel.xaml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <UserControl x:Class="PRSDesktop.StockLocationPanel"
  2. xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  3. xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
  4. xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
  5. xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
  6. xmlns:local="clr-namespace:PRSDesktop"
  7. xmlns:dynamic="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  8. mc:Ignorable="d"
  9. d:DesignHeight="450" d:DesignWidth="800">
  10. <dynamic:DynamicSplitPanel MasterCaption="Stock Location List" DetailCaption="Location Summary" AnchorWidth="500" AllowableViews="Master,Combined"
  11. View="Combined" DetailHeight="400">
  12. <dynamic:DynamicSplitPanel.Header>
  13. <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  14. Background="WhiteSmoke">
  15. <Label Content="Stock Location List" HorizontalContentAlignment="Center" DockPanel.Dock="Left" />
  16. </Border>
  17. </dynamic:DynamicSplitPanel.Header>
  18. <dynamic:DynamicSplitPanel.Master>
  19. <local:StockLocationGrid x:Name="Locations" DockPanel.Dock="Top" Margin="0,2,0,0" />
  20. </dynamic:DynamicSplitPanel.Master>
  21. <dynamic:DynamicSplitPanel.DetailHeader>
  22. <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  23. Background="WhiteSmoke">
  24. <Label Content="Location Summary" HorizontalContentAlignment="Center" />
  25. </Border>
  26. </dynamic:DynamicSplitPanel.DetailHeader>
  27. <dynamic:DynamicSplitPanel.Detail>
  28. <local:StockHoldingGrid x:Name="Holdings" DockPanel.Dock="Top" Margin="0,2,0,0" OnSelectItem="Holdings_OnOnSelectItem" />
  29. </dynamic:DynamicSplitPanel.Detail>
  30. <dynamic:DynamicSplitPanel.SecondaryDetail>
  31. <DockPanel>
  32. <Border CornerRadius="0,0,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  33. Background="WhiteSmoke">
  34. <Grid>
  35. <Grid.ColumnDefinitions>
  36. <ColumnDefinition Width="150"/>
  37. <ColumnDefinition Width="*"/>
  38. <ColumnDefinition Width="150"/>
  39. </Grid.ColumnDefinitions>
  40. <DockPanel Grid.Column="0" Margin="5,0,0,0">
  41. <CheckBox x:Name="_syncMovements" DockPanel.Dock="Left" VerticalContentAlignment="Center" Checked="_syncMovements_OnChecked" Unchecked="_syncMovements_OnChecked" />
  42. <Label Content="Sync Movements?" DockPanel.Dock="Left" VerticalContentAlignment="Center" />
  43. </DockPanel>
  44. <Label
  45. Grid.Column="1"
  46. Content="Stock Movements"
  47. HorizontalContentAlignment="Center"
  48. VerticalContentAlignment="Center"/>
  49. </Grid>
  50. </Border>
  51. <local:ProductStockMovementGrid x:Name="Movements" Margin="0,2,0,0" DockPanel.Dock="Top" AllowNullLocation="False"
  52. AllowNullBatch="True" OnFilterRecord="Movements_OnOnFilterRecord" />
  53. </DockPanel>
  54. </dynamic:DynamicSplitPanel.SecondaryDetail>
  55. </dynamic:DynamicSplitPanel>
  56. <!--Grid>
  57. <Grid.ColumnDefinitions>
  58. <ColumnDefinition Width="0.3*" />
  59. <ColumnDefinition Width="0.7*" />
  60. </Grid.ColumnDefinitions>
  61. <Grid.RowDefinitions>
  62. <RowDefinition Height="0.4*" />
  63. <RowDefinition Height="0.6*" />
  64. </Grid.RowDefinitions>
  65. <DockPanel Grid.Column="0" Grid.Row="0" Grid.RowSpan="2">
  66. <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  67. Background="WhiteSmoke">
  68. <Label Content="Stock Location List" HorizontalContentAlignment="Center" />
  69. </Border>
  70. </DockPanel>
  71. <DockPanel Grid.Column="1" Grid.Row="0" Margin="2,0,0,0">
  72. <Border CornerRadius="5,5,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  73. Background="WhiteSmoke">
  74. <Label Content="Location Summary" HorizontalContentAlignment="Center" />
  75. </Border>
  76. <local:StockHoldingGrid x:Name="Holdings" DockPanel.Dock="Top" Margin="0,2,0,0" />
  77. </DockPanel>
  78. <DockPanel Grid.Column="1" Grid.Row="1" Margin="2,2,0,0">
  79. <Border CornerRadius="0,0,0,0" BorderBrush="Gray" BorderThickness="0.75" DockPanel.Dock="Top"
  80. Background="WhiteSmoke">
  81. <Label Content="Stock Movements" HorizontalContentAlignment="Center" />
  82. </Border>
  83. <local:StockMovementGrid x:Name="Movements" Margin="0,2,0,0" DockPanel.Dock="Top" AllowNullLocation="False"
  84. AllowNullBatch="True" />
  85. </DockPanel>
  86. </Grid-->
  87. </UserControl>