123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- <UserControl x:Class="PRSDesktop.ManufacturingPanel"
- 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"
- mc:Ignorable="d"
- d:DesignHeight="450" d:DesignWidth="1500">
- <!--<UserControl.Resources>
- <local:DateTimeToVisibilityConverter x:Key="DateTimeToVisibilityConverter" />
- <Style x:Key="DueDateStyle" TargetType="TextBlock">
- <Setter Property="Visibility" Value="{Binding Path=DueDate, Converter={StaticResource DateTimeToVisibilityConverter}}" />
- </Style>
- </UserControl.Resources>-->
- <Grid Margin="0,0,0,0">
- <Grid.ColumnDefinitions>
- <ColumnDefinition Width="Auto" />
- <ColumnDefinition Width="*" />
- </Grid.ColumnDefinitions>
- <Grid.RowDefinitions>
- <RowDefinition Height="Auto" />
- <RowDefinition Height="*" />
- </Grid.RowDefinitions>
- <Border CornerRadius="5,5,0,0" Grid.Column="0" Grid.Row="0" Margin="0,0,4,2" MinWidth="60" BorderBrush="Gray"
- BorderThickness="0.75" Background="WhiteSmoke">
- <Label Content="Factories" VerticalAlignment="Center" HorizontalAlignment="Center" />
- </Border>
- <Border Grid.Column="1" Grid.Row="0" CornerRadius="5,5,0,0" Padding="5" BorderBrush="Gray"
- BorderThickness="0.75" Margin="0,0,0,2" Background="WhiteSmoke">
- <DockPanel>
- <Label DockPanel.Dock="Left" Content="Job" Margin="0,0,5,0" />
- <ComboBox x:Name="Job" DockPanel.Dock="Left" Width="200" SelectionChanged="Job_SelectionChanged"
- SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value"
- SelectedValuePath="Key" />
- <!--<Label DockPanel.Dock="Left" Content="Level" Margin="0,0,5,0" Visibility="Collapsed"/>
- <ComboBox x:Name="Level" DockPanel.Dock="Left" Width="100" Visibility="Collapsed" SelectionChanged="Unit_SelectionChanged" SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Key" />
-
- <Label DockPanel.Dock="Left" Content="Zone" Margin="0,0,5,0" Visibility="Collapsed"/>
- <ComboBox x:Name="Zone" DockPanel.Dock="Left" Width="100" Visibility="Collapsed" SelectionChanged="Unit_SelectionChanged" SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value" SelectedValuePath="Key" />-->
- <Label DockPanel.Dock="Left" Content="ITP" Margin="0,0,5,0" />
- <ComboBox x:Name="ITP" DockPanel.Dock="Left" Width="150" SelectionChanged="Unit_SelectionChanged"
- SelectedIndex="0" VerticalContentAlignment="Center" DisplayMemberPath="Value"
- SelectedValuePath="Key" />
- <Button x:Name="Export" DockPanel.Dock="Right" Margin="5,0,0,0" Padding="10,0" Content="Export"
- Click="Export_Click" />
- <CheckBox x:Name="IncludeCompleted" DockPanel.Dock="Right" IsThreeState="False"
- VerticalAlignment="Center" Margin="5,0,0,0" Click="IncludeCompleted_Click"
- VerticalContentAlignment="Center" />
- <Label DockPanel.Dock="Right" Content="Include Completed?" VerticalAlignment="Center" />
- <ComboBox x:Name="FilterOrders" DockPanel.Dock="Right" SelectedIndex="2" Width="120" Margin="5,0,0,0"
- SelectionChanged="FilterOrders_SelectionChanged" VerticalContentAlignment="Center">
- <ComboBoxItem Content="Include Orders" />
- <ComboBoxItem Content="Orders Only" />
- <ComboBoxItem Content="Exclude Orders" />
- </ComboBox>
- <CheckBox x:Name="IncludeHeld" DockPanel.Dock="Right" IsThreeState="False" VerticalAlignment="Center"
- Margin="5,0,0,0" Click="IncludeHeld_Click" VerticalContentAlignment="Center" />
- <Label DockPanel.Dock="Right" Content="Include Held?" VerticalAlignment="Center" />
- <ComboBox x:Name="View" DockPanel.Dock="Right" SelectedIndex="0" Width="100"
- SelectionChanged="View_SelectionChanged" VerticalContentAlignment="Center">
- <ComboBoxItem Content="Full" />
- <ComboBoxItem Content="Compact" />
- <ComboBoxItem Content="By Job" />
- <!--<ComboBoxItem Content="Consolidated"/>-->
- </ComboBox>
- <Label Content="View" DockPanel.Dock="Right" Margin="0,0,5,0" />
- <ComboBox x:Name="SortBy" DockPanel.Dock="Right" SelectedIndex="1" Width="100"
- SelectionChanged="SortBy_SelectionChanged" VerticalContentAlignment="Center">
- <ComboBoxItem Content="Setout #" />
- <ComboBoxItem Content="Due Date" />
- </ComboBox>
- <Label Content="Sort By" DockPanel.Dock="Right" Margin="0,0,5,0" />
- <Label Content="Search" DockPanel.Dock="Left" Margin="0,0,5,0" />
- <TextBox x:Name="SearchBox" DockPanel.Dock="Left" Margin="0" VerticalContentAlignment="Center"
- KeyUp="SearchBox_KeyUp" />
- </DockPanel>
- </Border>
- <ListView x:Name="FactoryListBox" Grid.Column="0" Grid.Row="1" Margin="0,0,4,0" HorizontalAlignment="Stretch"
- SelectionChanged="Factories_SelectionChanged" BorderBrush="Gray" BorderThickness="0.75">
- <ListView.ItemTemplate>
- <DataTemplate>
- <Grid HorizontalAlignment="Stretch" Margin="5,10,5,5">
- <StackPanel Orientation="Vertical" HorizontalAlignment="Stretch">
- <Border Width="64" Height="64" CornerRadius="15" BorderBrush="Black" BorderThickness="1"
- VerticalAlignment="Center" HorizontalAlignment="Center" Tag="{Binding Item3}">
- <Border.Background>
- <ImageBrush ImageSource="{Binding Path=Item2}" Stretch="UniformToFill" />
- </Border.Background>
- </Border>
- <TextBlock x:Name="PCName" Height="Auto" TextWrapping="Wrap" Width="80"
- TextAlignment="Center" Text="{Binding Item1}" />
- </StackPanel>
- </Grid>
- </DataTemplate>
- </ListView.ItemTemplate>
- </ListView>
- <Grid x:Name="Columns" Grid.Column="1" Grid.Row="1" />
- </Grid>
- </UserControl>
|