ManufacturingPanel.xaml 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. <UserControl x:Class="PRSDesktop.ManufacturingPanel"
  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. mc:Ignorable="d"
  7. d:DesignHeight="450" d:DesignWidth="1500">
  8. <!--<UserControl.Resources>
  9. <local:DateTimeToVisibilityConverter x:Key="DateTimeToVisibilityConverter" />
  10. <Style x:Key="DueDateStyle" TargetType="TextBlock">
  11. <Setter Property="Visibility" Value="{Binding Path=DueDate, Converter={StaticResource DateTimeToVisibilityConverter}}" />
  12. </Style>
  13. </UserControl.Resources>-->
  14. <Grid Margin="0,0,0,0">
  15. <Grid.ColumnDefinitions>
  16. <ColumnDefinition Width="Auto" />
  17. <ColumnDefinition Width="*" />
  18. </Grid.ColumnDefinitions>
  19. <Grid.RowDefinitions>
  20. <RowDefinition Height="Auto" />
  21. <RowDefinition Height="*" />
  22. </Grid.RowDefinitions>
  23. <Border CornerRadius="5,5,0,0" Grid.Column="0" Grid.Row="0" Margin="0,0,4,2" MinWidth="60" BorderBrush="Gray"
  24. BorderThickness="0.75" Background="WhiteSmoke">
  25. <Label Content="Factories" VerticalAlignment="Center" HorizontalAlignment="Center" />
  26. </Border>
  27. <Border Grid.Column="1" Grid.Row="0" CornerRadius="5,5,0,0" Padding="5" BorderBrush="Gray"
  28. BorderThickness="0.75" Margin="0,0,0,2" Background="WhiteSmoke">
  29. <DockPanel>
  30. <Label DockPanel.Dock="Left" Content="Job" Margin="0,0,5,0" />
  31. <ComboBox x:Name="Job" DockPanel.Dock="Left" Width="200" SelectionChanged="Job_SelectionChanged"
  32. SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value"
  33. SelectedValuePath="Key" />
  34. <!--<Label DockPanel.Dock="Left" Content="Level" Margin="0,0,5,0" Visibility="Collapsed"/>
  35. <ComboBox x:Name="Level" DockPanel.Dock="Left" Width="100" Visibility="Collapsed" SelectionChanged="Unit_SelectionChanged" SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Key" />
  36. <Label DockPanel.Dock="Left" Content="Zone" Margin="0,0,5,0" Visibility="Collapsed"/>
  37. <ComboBox x:Name="Zone" DockPanel.Dock="Left" Width="100" Visibility="Collapsed" SelectionChanged="Unit_SelectionChanged" SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Key" />-->
  38. <Label DockPanel.Dock="Left" Content="ITP" Margin="0,0,5,0" />
  39. <ComboBox x:Name="ITP" DockPanel.Dock="Left" Width="150" SelectionChanged="Unit_SelectionChanged"
  40. SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value"
  41. SelectedValuePath="Key" />
  42. <Button x:Name="Export" DockPanel.Dock="Right" Margin="5,0,0,0" Padding="10,0" Content="Export"
  43. Click="Export_Click" />
  44. <CheckBox x:Name="IncludeCompleted" DockPanel.Dock="Right" IsThreeState="False"
  45. VerticalAlignment="Center" Margin="5,0,0,0" Click="IncludeCompleted_Click"
  46. VerticalContentAlignment="Center" />
  47. <Label DockPanel.Dock="Right" Content="Include Completed?" VerticalAlignment="Center" />
  48. <ComboBox x:Name="FilterOrders" DockPanel.Dock="Right" SelectedIndex="2" Width="120" Margin="5,0,0,0"
  49. SelectionChanged="FilterOrders_SelectionChanged" VerticalContentAlignment="Center">
  50. <ComboBoxItem Content="Include Orders" />
  51. <ComboBoxItem Content="Orders Only" />
  52. <ComboBoxItem Content="Exclude Orders" />
  53. </ComboBox>
  54. <CheckBox x:Name="IncludeHeld" DockPanel.Dock="Right" IsThreeState="False" VerticalAlignment="Center"
  55. Margin="5,0,0,0" Click="IncludeHeld_Click" VerticalContentAlignment="Center" />
  56. <Label DockPanel.Dock="Right" Content="Include Held?" VerticalAlignment="Center" />
  57. <ComboBox x:Name="View" DockPanel.Dock="Right" SelectedIndex="0" Width="100"
  58. SelectionChanged="View_SelectionChanged" VerticalContentAlignment="Center">
  59. <ComboBoxItem Content="Full" />
  60. <ComboBoxItem Content="Compact" />
  61. <ComboBoxItem Content="By Job" />
  62. <!--<ComboBoxItem Content="Consolidated"/>-->
  63. </ComboBox>
  64. <Label Content="View" DockPanel.Dock="Right" Margin="0,0,5,0" />
  65. <ComboBox x:Name="SortBy" DockPanel.Dock="Right" SelectedIndex="1" Width="100"
  66. SelectionChanged="SortBy_SelectionChanged" VerticalContentAlignment="Center">
  67. <ComboBoxItem Content="Setout #" />
  68. <ComboBoxItem Content="Due Date" />
  69. </ComboBox>
  70. <Label Content="Sort By" DockPanel.Dock="Right" Margin="0,0,5,0" />
  71. <Label Content="Search" DockPanel.Dock="Left" Margin="0,0,5,0" />
  72. <TextBox x:Name="SearchBox" DockPanel.Dock="Left" Margin="0" VerticalContentAlignment="Center"
  73. KeyUp="SearchBox_KeyUp" />
  74. </DockPanel>
  75. </Border>
  76. <ListView x:Name="FactoryListBox" Grid.Column="0" Grid.Row="1" Margin="0,0,4,0" HorizontalAlignment="Stretch"
  77. SelectionChanged="Factories_SelectionChanged" BorderBrush="Gray" BorderThickness="0.75">
  78. <ListView.ItemTemplate>
  79. <DataTemplate>
  80. <Grid HorizontalAlignment="Stretch" Margin="5,10,5,5">
  81. <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
  82. <Border Width="64" Height="64" CornerRadius="15" BorderBrush="Black" BorderThickness="1"
  83. VerticalAlignment="Center" HorizontalAlignment="Center" Tag="{Binding Item3}">
  84. <Border.Background>
  85. <ImageBrush ImageSource="{Binding Path=Item2}" Stretch="UniformToFill" />
  86. </Border.Background>
  87. </Border>
  88. <TextBlock x:Name="PCName" Height="Auto" TextWrapping="Wrap" Width="80"
  89. TextAlignment="Center" Text="{Binding Item1}" />
  90. </StackPanel>
  91. </Grid>
  92. </DataTemplate>
  93. </ListView.ItemTemplate>
  94. </ListView>
  95. <Grid x:Name="Columns" Grid.Column="1" Grid.Row="1" />
  96. </Grid>
  97. </UserControl>