StockSummaryControl.xaml 4.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182
  1. <UserControl x:Class="PRSDesktop.StockSummaryControl"
  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:stk="clr-namespace:PRSDesktop.Panels.StockSummary"
  8. xmlns:dynamicGrid="clr-namespace:InABox.DynamicGrid;assembly=InABox.Wpf"
  9. mc:Ignorable="d"
  10. d:DesignHeight="900" d:DesignWidth="1000">
  11. <dynamicGrid:DynamicSplitPanel x:Name="SplitPanel"
  12. MasterCaption="Product Groups" DetailCaption="Stock Summary"
  13. View="Combined" AllowableViews="Master,Combined"
  14. Anchor="Master" AnchorWidth="350"
  15. OnChanged="SplitPanel_OnOnChanged">
  16. <dynamicGrid:DynamicSplitPanel.Header>
  17. <Border BorderBrush="DimGray" BorderThickness="0.75">
  18. <Label Content="Product Groups" HorizontalContentAlignment="Center"/>
  19. </Border>
  20. </dynamicGrid:DynamicSplitPanel.Header>
  21. <dynamicGrid:DynamicSplitPanel.Master>
  22. <local:StockSummaryProductGroupTree x:Name="ProductGroups"
  23. SelectionChanged="ProductGroups_GroupSelectionChanged"
  24. AfterRefresh="ProductGroups_AfterRefresh"/>
  25. </dynamicGrid:DynamicSplitPanel.Master>
  26. <dynamicGrid:DynamicSplitPanel.Detail>
  27. <dynamicGrid:DynamicSplitPanel x:Name="DetailSplitPanel"
  28. DetailCaption="Suppliers"
  29. View="Combined" AllowableViews="Master,Combined"
  30. Anchor="Detail" AnchorWidth="350" DetailHeight="500"
  31. OnChanged="DetailSplitPanel_OnChanged">
  32. <dynamicGrid:DynamicSplitPanel.Header>
  33. <Border BorderBrush="DimGray" BorderThickness="0.75">
  34. <Label Content="Stock Summary" HorizontalContentAlignment="Center"/>
  35. </Border>
  36. </dynamicGrid:DynamicSplitPanel.Header>
  37. <dynamicGrid:DynamicSplitPanel.Master>
  38. <local:StockSummaryGrid x:Name="SummaryGrid" BeforeRefresh="SummaryGrid_OnBeforeRefresh" AfterRefresh="SummaryGrid_OnAfterRefresh" />
  39. </dynamicGrid:DynamicSplitPanel.Master>
  40. <dynamicGrid:DynamicSplitPanel.Detail>
  41. <Grid>
  42. <Grid.RowDefinitions>
  43. <RowDefinition Height="Auto"/>
  44. <RowDefinition Height="*"/>
  45. </Grid.RowDefinitions>
  46. <Border BorderBrush="DimGray" BorderThickness="0.75"
  47. Grid.Row="0" Margin="0,0,0,2">
  48. <Label Content="Suppliers" HorizontalContentAlignment="Center"/>
  49. </Border>
  50. <stk:StockSummarySupplierGrid x:Name="SupplierGrid"
  51. Grid.Row="1"
  52. SelectionChanged="SupplierGrid_SelectionChanged"/>
  53. </Grid>
  54. </dynamicGrid:DynamicSplitPanel.Detail>
  55. <dynamicGrid:DynamicSplitPanel.SecondaryDetail>
  56. <Grid>
  57. <Grid.RowDefinitions>
  58. <RowDefinition Height="Auto"/>
  59. <RowDefinition Height="*"/>
  60. </Grid.RowDefinitions>
  61. <Border BorderBrush="DimGray" BorderThickness="0.75"
  62. Grid.Row="0" Margin="0,0,0,2">
  63. <Label Content="Jobs" HorizontalContentAlignment="Center"/>
  64. </Border>
  65. <stk:StockSummaryJobGrid x:Name="JobGrid"
  66. Grid.Row="1"
  67. SelectionChanged="JobGrid_SelectionChanged"/>
  68. </Grid>
  69. </dynamicGrid:DynamicSplitPanel.SecondaryDetail>
  70. </dynamicGrid:DynamicSplitPanel>
  71. </dynamicGrid:DynamicSplitPanel.Detail>
  72. </dynamicGrid:DynamicSplitPanel>
  73. </UserControl>