<UserControl x:Class="XHandler.View.MoveLiquidReport.MoveLiquidDetails"
|
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"
|
xmlns:local="clr-namespace:XHandler.View.MoveLiquidReport"
|
xmlns:str="clr-namespace:XHandler.Properties"
|
xmlns:page="clr-namespace:XHandler.View.Page"
|
mc:Ignorable="d"
|
d:DesignHeight="1050" d:DesignWidth="1880" Loaded="UserControl_Loaded">
|
<UserControl.Resources>
|
<Style x:Key="rowStyle" TargetType="DataGridRow">
|
<Setter Property="BorderThickness" Value="0"/>
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
<Setter Property="Background" Value="White" />
|
<Setter Property="Height" Value="40"/>
|
<Setter Property="FontSize" Value="16" />
|
<Setter Property="Foreground" Value="Black" />
|
<Style.Triggers>
|
<Trigger Property="IsMouseOver" Value="True">
|
<Setter Property="Background" Value="{DynamicResource lightBlueBrush}"/>
|
<Setter Property="Foreground" Value="Black"/>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
<!--单元格样式触发-->
|
<Style x:Key="cellStyle" TargetType="DataGridCell">
|
<Setter Property="BorderThickness" Value="0"/>
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="DataGridCell">
|
<TextBlock TextAlignment="Left" VerticalAlignment="Center" Foreground="Black" >
|
<ContentPresenter />
|
</TextBlock>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
<EventSetter Event="PreviewMouseDoubleClick" Handler="DataGridCell_PreviewMouseDoubleClick"/>
|
<Style.Triggers>
|
<Trigger Property="IsSelected" Value="True">
|
<Setter Property="Foreground" Value="Black"/>
|
</Trigger>
|
</Style.Triggers>
|
</Style>
|
|
<Style x:Key="headerStyle" TargetType="DataGridColumnHeader">
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="DataGridColumnHeader">
|
<Grid Margin="{TemplateBinding Padding}">
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="Auto" />
|
</Grid.ColumnDefinitions>
|
|
<ContentPresenter />
|
<Thumb x:Name="PART_RightHeaderGripper" Grid.Column="1" HorizontalAlignment="Right" Width="0.8" BorderThickness="0.08"
|
BorderBrush="{Binding VerticalGridLinesBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGrid}}}" Cursor="SizeWE"/>
|
</Grid>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
|
<Style x:Key="dataGridHeaderStyle" TargetType="DataGridColumnHeader">
|
<Setter Property="SnapsToDevicePixels" Value="True" />
|
<Setter Property="MinWidth" Value="0" />
|
<Setter Property="MinHeight" Value="28" />
|
<Setter Property="Foreground" Value="#323433" />
|
<Setter Property="FontSize" Value="16" />
|
<Setter Property="Cursor" Value="Hand" />
|
<Setter Property="Height" Value="40"/>
|
<Setter Property="Template">
|
<Setter.Value>
|
<ControlTemplate TargetType="DataGridColumnHeader">
|
<Border x:Name="BackgroundBorder" BorderThickness="0.8,0.8,0.8,0.8" BorderBrush="LightGray" Width="Auto" Background="{DynamicResource lightGrayBrush}">
|
<Grid >
|
<Grid.ColumnDefinitions>
|
<ColumnDefinition Width="*" />
|
<ColumnDefinition Width="Auto" />
|
</Grid.ColumnDefinitions>
|
<ContentPresenter Margin="0,0,0,0" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
<Thumb x:Name="PART_RightHeaderGripper" Grid.Column="1" HorizontalAlignment="Right" Width="0.8" BorderThickness="0.08"
|
BorderBrush="{Binding VerticalGridLinesBrush, RelativeSource={RelativeSource FindAncestor, AncestorType={x:Type DataGrid}}}" Cursor="SizeWE"/>
|
</Grid>
|
</Border>
|
</ControlTemplate>
|
</Setter.Value>
|
</Setter>
|
</Style>
|
|
<Style TargetType="{x:Type Button}">
|
<Setter Property="Width" Value="22"/>
|
<Setter Property="Height" Value="22"/>
|
</Style>
|
</UserControl.Resources>
|
<Grid>
|
<Border x:Name="border" Width="0" Visibility="Collapsed" HorizontalAlignment="Right" Background="White" BorderBrush="LightGray"
|
BorderThickness="1">
|
<Grid>
|
<Grid.RowDefinitions>
|
<RowDefinition Height="40"></RowDefinition>
|
<RowDefinition Height="*"></RowDefinition>
|
<RowDefinition Height="50"></RowDefinition>
|
<RowDefinition Height="20"></RowDefinition>
|
</Grid.RowDefinitions>
|
<TextBlock Grid.Row="0" Text="{x:Static str:Resources.strMoveLiquidDetail}" FontSize="18" FontWeight="Bold" Margin="10 0" />
|
<Button Grid.Row="0" Content="×" HorizontalAlignment="Right" VerticalAlignment="Center" VerticalContentAlignment="Center" Margin="10 0" FontSize="28" Width="40" Height="40"
|
FontWeight="Bold" Foreground="Black" Style="{DynamicResource BlueButtonStyle}" Background="White" Click="btnClose_Click"/>
|
<ScrollViewer Grid.Row="1" HorizontalScrollBarVisibility="Disabled" VerticalScrollBarVisibility="Auto" CanContentScroll="True">
|
<DataGrid x:Name="dgResult" AutoGenerateColumns="False" BorderThickness="0" FontSize="16" RowHeaderWidth="0"
|
BorderBrush="LightGray" CanUserResizeColumns="True" CanUserResizeRows="False" Margin="5 5" Background="White"
|
CanUserSortColumns="False" CanUserReorderColumns="False" CanUserAddRows="False" ColumnHeaderStyle="{DynamicResource dataGridHeaderStyle}"
|
GridLinesVisibility="None" IsReadOnly="True" RowStyle="{StaticResource rowStyle}" CellStyle="{StaticResource cellStyle}"
|
PreviewMouseDoubleClick="DataGridCell_PreviewMouseDoubleClick" Width="1880">
|
<DataGrid.Columns>
|
<!--编号-->
|
<DataGridTextColumn Width="60" Binding="{Binding StepIndex}" Header="{x:Static str:Resources.strNo}" />
|
<!--来源板-->
|
<DataGridTextColumn Width="*" Binding="{Binding SourcePosition}" Header="{x:Static str:Resources.strSrcboard}" />
|
<!--来源板码-->
|
<DataGridTextColumn Width="*" Binding="{Binding SourceBarcode}" Header="{x:Static str:Resources.strSrcBarcode}" />
|
<!--来源孔号-->
|
<DataGridTextColumn Width="200" Binding="{Binding SourceWell}" Header="{x:Static str:Resources.strSrcWell}" />
|
<!--目标板-->
|
<DataGridTextColumn Width="*" Binding="{Binding TargetPosition}" Header="{x:Static str:Resources.strTarBoard}" />
|
<!--目标板码-->
|
<DataGridTextColumn Width="100" Binding="{Binding TargetBarcode}" Header="{x:Static str:Resources.strTarBarcode}" />
|
<!--目标孔号-->
|
<DataGridTextColumn Width="*" Binding="{Binding TargetWell}" Header="{x:Static str:Resources.strTarWell}" />
|
<!--开始执行时间-->
|
<DataGridTextColumn Width="200" Binding="{Binding SourceStartTime,StringFormat='yyyy/MM/dd HH:mm:ss'}" Header="{x:Static str:Resources.strSrcStartTime}" />
|
<!--结束执行时间-->
|
<DataGridTextColumn Width="200" Binding="{Binding TargetEndTime,StringFormat='yyyy/MM/dd HH:mm:ss'}" Header="{x:Static str:Resources.strTarEndTime}" />
|
<!--执行结果-->
|
<DataGridTextColumn Width="100" Binding="{Binding ExecTargetResult,Converter={StaticResource execResultStringConvert}}" Header="{x:Static str:Resources.strExecResult}" />
|
</DataGrid.Columns>
|
</DataGrid>
|
</ScrollViewer>
|
<page:PagerToolsControl Grid.Row="2" x:Name="pagerToolsControl_paging" VerticalAlignment="Top" Margin="15,20,0,0"
|
PageCntChanged="pagerToolsControl_paging_PageCntChanged" OnePageRowCntChanged="pagerToolsControl_paging_OnePageRowCntChanged" />
|
|
</Grid>
|
</Border>
|
</Grid>
|
</UserControl>
|