You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
220 lines
19 KiB
220 lines
19 KiB
<UserControl x:Class="Gumming.JobView"
|
|
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"
|
|
xmlns:local="clr-namespace:Gumming"
|
|
xmlns:tool="clr-namespace:GummingCommon;assembly=GummingCommon"
|
|
xmlns:i="clr-namespace:System.Windows.Interactivity;assembly=System.Windows.Interactivity"
|
|
d:DesignHeight="700" d:DesignWidth="1000"
|
|
Background="Transparent"
|
|
x:Name="rootControl">
|
|
<UserControl.Resources>
|
|
<tool:RadioButtonConverter x:Key="RadioConverter"/>
|
|
<tool:BooleanToOpacityConverter x:Key="OpacityConverter"/>
|
|
<tool:EditorTextConverter x:Key="TextBrushConverter"/>
|
|
<tool:EditorBorderConverter x:Key="BorderBrushConverter"/>
|
|
<tool:PathTypeToThemeConverter x:Key="PathTypeConverter"/>
|
|
<tool:StepStyleConverter x:Key="StepStyleConverter"/>
|
|
<tool:BooleanToOOrderIconConverter x:Key="BooleanToOOrderIconConverter"/>
|
|
|
|
<DataTemplate x:Key="PortFieldMapping">
|
|
<Border Name="ItemBorder" Height="30" BorderThickness="0" BorderBrush="Black">
|
|
<Grid>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="180"></ColumnDefinition>
|
|
<ColumnDefinition Width="150"></ColumnDefinition>
|
|
<ColumnDefinition Width="0"></ColumnDefinition>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="0"></ColumnDefinition>
|
|
<ColumnDefinition Width="160"></ColumnDefinition>
|
|
<ColumnDefinition Width="160"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding LogCode, Mode=TwoWay}" ToolTip="{Binding LogCode}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}">
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding LogName, Mode=TwoWay}" ToolTip="{Binding LogName}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="2" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding LogTypeText, Mode=TwoWay}" ToolTip="{Binding LogTypeText}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="3" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding Pieces, Mode=TwoWay}" ToolTip="{Binding Pieces}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="4" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding LogStatusText, Mode=TwoWay}" ToolTip="{Binding LogStatusText}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="5" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding LogDetail, Mode=TwoWay}" ToolTip="{Binding LogDetail}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="6" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding StartTime, Mode=TwoWay,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}" ToolTip="{Binding StartTime}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="7" BorderThickness="1,0,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" >
|
|
<TextBlock Padding="2,0,0,0" Text="{Binding EndTimeStr, Mode=TwoWay,StringFormat='{}{0:yyyy-MM-dd HH:mm:ss}'}" ToolTip="{Binding EndTime}" HorizontalAlignment="Stretch" VerticalAlignment="Center" FontSize="14" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="8" BorderThickness="1,0,1,1" BorderBrush="{DynamicResource DefaultBorderBrush}"></Border>
|
|
</Grid>
|
|
</Border>
|
|
<DataTemplate.Triggers>
|
|
<DataTrigger Binding="{Binding RelativeSource={RelativeSource Mode=FindAncestor,
|
|
AncestorType={x:Type ListViewItem}}, Path=IsSelected}" Value="True">
|
|
<Setter TargetName="ItemBorder" Property="Background" Value="#DDD"/>
|
|
</DataTrigger>
|
|
</DataTemplate.Triggers>
|
|
</DataTemplate>
|
|
</UserControl.Resources>
|
|
<Grid>
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0"></RowDefinition>
|
|
<RowDefinition Height="30"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="160"></RowDefinition>
|
|
<RowDefinition Height="30"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="auto"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Grid Grid.Row="1">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="180"></ColumnDefinition>
|
|
<ColumnDefinition Width="150"></ColumnDefinition>
|
|
<ColumnDefinition Width="50"></ColumnDefinition>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="80"></ColumnDefinition>
|
|
<ColumnDefinition Width="160"></ColumnDefinition>
|
|
<ColumnDefinition Width="160"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="作业编号" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="1" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="批配方" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="2" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="批次" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="3" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="片数" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="4" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="状态" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="5" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="作业员" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
<Border Grid.Column="6" BorderThickness="1,1,0,1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<Button Grid.Column="0" Margin="2" IsEnabled="{Binding IsLogin}" Style="{DynamicResource CommonTopImageButton}" FontSize="16" Command="{Binding TimeOrderCommand}" Tag="{Binding TimeOrderTag, Converter={StaticResource BooleanToOOrderIconConverter}}" Content="开始时间"></Button>
|
|
</Border>
|
|
<Border Grid.Column="7" BorderThickness="1" BorderBrush="{DynamicResource DefaultBorderBrush}" Background="Transparent" >
|
|
<TextBlock Padding="2,0,0,0" Text="结束时间" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2" FontSize="12" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Border>
|
|
</Grid>
|
|
<ListView x:Name="FieldMappingView" tool:TouchScrolling.IsEnabled="True" Grid.Row="2" ItemTemplate="{DynamicResource PortFieldMapping}" ItemsSource="{Binding SysLogLogs}"
|
|
Template="{DynamicResource ListViewItemMapping}" ItemContainerStyle="{DynamicResource ListViewItemContainerStyle}" BorderThickness="0"
|
|
SelectedValue="{Binding SelectedLog}" SelectionMode="Single" Foreground="{DynamicResource FontBrush4}">
|
|
<ItemsControl.ItemsPanel>
|
|
<ItemsPanelTemplate>
|
|
<StackPanel></StackPanel>
|
|
</ItemsPanelTemplate>
|
|
</ItemsControl.ItemsPanel>
|
|
<i:Interaction.Triggers>
|
|
<i:EventTrigger EventName="SelectionChanged">
|
|
<tool:ExecuteCommandAction CommandParameter="{Binding SelectedItems, ElementName=FieldMappingView}"/>
|
|
</i:EventTrigger>
|
|
</i:Interaction.Triggers>
|
|
</ListView>
|
|
<Grid Grid.Row="4" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="300"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
<ColumnDefinition Width="360"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Margin="3" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="10,0,10,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="2" Text="查找" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="从" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="到" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<DatePicker Grid.Row="2" Grid.Column="2" SelectedDate="{Binding StartDate}" VerticalAlignment="Stretch" VerticalContentAlignment="Center"></DatePicker>
|
|
<DatePicker Grid.Row="4" Grid.Column="2" SelectedDate="{Binding EndDate}" VerticalAlignment="Stretch" VerticalContentAlignment="Center"></DatePicker>
|
|
<Grid Grid.Row="6" Grid.ColumnSpan="3">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<Button Grid.Column="1" Margin="2" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding QueryCommand}" Content="查找"></Button>
|
|
<Button Grid.Column="2" Margin="2" FontSize="15" Style="{DynamicResource CommonIconButton}" Command="{Binding ExportCommand}" Content="导出"></Button>
|
|
</Grid>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="2" Margin="3" BorderThickness="1" BorderBrush="{DynamicResource BlackBrushNormal}">
|
|
<Grid Margin="10,0,10,0">
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
<RowDefinition Height="5"></RowDefinition>
|
|
<RowDefinition Height="*"></RowDefinition>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="90"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
<ColumnDefinition Width="90"></ColumnDefinition>
|
|
<ColumnDefinition Width="5"></ColumnDefinition>
|
|
<ColumnDefinition Width="60"></ColumnDefinition>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<TextBlock Grid.Column="0" Grid.ColumnSpan="2" Text="统计" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="2" FontSize="15" FontWeight="Bold" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="0" Text="总批次:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="0" Text="正常批次:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="6" Grid.Column="0" Text="完成晶圆数:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="2" Text="{Binding TotalBats}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="2" Text="{Binding NormalBats}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="6" Grid.Column="2" Text="{Binding FinishedSlots}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="4" Text="空闲时间:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="4" Text="作业时间:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="6" Grid.Column="4" Text="设备空闲率:" Padding="10,0,0,0" HorizontalAlignment="Left" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="2" Grid.Column="6" Text="{Binding SpaceTime}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="4" Grid.Column="6" Text="{Binding WorkTime}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
<TextBlock Grid.Row="6" Grid.Column="6" Text="{Binding TimeScale}" HorizontalAlignment="Center" VerticalAlignment="Center" FontSize="14" Foreground="{DynamicResource FontBrush1}" ></TextBlock>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
<Grid Grid.Row="5" Grid.ColumnSpan="2">
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition Width="*"></ColumnDefinition>
|
|
<ColumnDefinition Width="500"></ColumnDefinition>
|
|
</Grid.ColumnDefinitions>
|
|
<ContentControl Grid.Column="1" Content="{Binding PagerControlViewer.View}"></ContentControl>
|
|
</Grid>
|
|
</Grid>
|
|
</Grid>
|
|
</UserControl>
|