|
|
|
|
<UserControl x:Class="MaterialTraceabilityUI.SplitSfc"
|
|
|
|
|
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:MaterialTraceabilityUI"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800" Background="AliceBlue" Loaded="UserControl_Loaded">
|
|
|
|
|
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
<RowDefinition Height="40"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<StackPanel Margin="15,0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
|
|
|
|
|
<Label Content="开始时间" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
|
|
|
|
|
<DatePicker x:Name="beginTime" Width="150" HorizontalAlignment="Left" Height="30"/>
|
|
|
|
|
|
|
|
|
|
<Label Margin="20,0,0,0" Content="RFID" Foreground="#007DFA" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
|
|
<TextBox x:Name="rfidText" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
|
|
|
|
|
|
|
|
|
|
<Label Margin="20,0,0,0" Content="SFC" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
|
|
|
|
|
<TextBox x:Name="sfcText" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
|
|
|
|
|
|
|
|
|
|
<!--<RadioButton Content="查询" Style="{StaticResource NavRadioButtonStyle}" Background="Blue"/>-->
|
|
|
|
|
<Button x:Name="seach" Content="查询" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Seach_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<StackPanel Margin="15,0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center">
|
|
|
|
|
<Label Content="结束时间" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
|
|
|
|
|
<DatePicker x:Name="endTime" Width="150" HorizontalAlignment="Left" Height="30"/>
|
|
|
|
|
|
|
|
|
|
<Button x:Name="split" Content="手动拆分" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Split_Click"/>
|
|
|
|
|
|
|
|
|
|
<Button x:Name="complete" Content="手动完工" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Complete_Click"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
<DataGrid x:Name="DownMaterialDataGrid" Style="{DynamicResource DataGridStyle}" ColumnHeaderHeight="22" RowHeight="20" AutoGenerateColumns="False" RowHeaderWidth="0" GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" Margin="10,85,0,215">
|
|
|
|
|
<DataGrid.Resources>
|
|
|
|
|
<Style x:Key="DataGridStyle" TargetType="DataGrid">
|
|
|
|
|
<Setter Property="AlternationCount" Value="2"/>
|
|
|
|
|
<Setter Property="ColumnHeaderStyle" Value="{DynamicResource DataGridColumnHeaderStyle}"/>
|
|
|
|
|
<Setter Property="CellStyle" Value="{DynamicResource DataGridCellStyle}"/>
|
|
|
|
|
<Setter Property="RowStyle" Value="{DynamicResource DataGridRowStyle}"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DataGridColumnHeaderStyle" TargetType="DataGridColumnHeader">
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="Background" Value="White"/>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DataGridRowStyle" TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridRow}">
|
|
|
|
|
<Grid x:Name="DGR_Border" Background="{TemplateBinding Background}" SnapsToDevicePixels="True">
|
|
|
|
|
<Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="1"/>
|
|
|
|
|
<DataGridCellsPresenter Grid.Column="1" ItemsPanel="{TemplateBinding ItemsPanel}"/>
|
|
|
|
|
</Grid>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
|
<Setter Property="BorderBrush" Value="#00BCD4"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
<Trigger Property="AlternationIndex" Value="0">
|
|
|
|
|
<Setter Property="Background" Value="#E9F3FD"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
<Style.Triggers>
|
|
|
|
|
<Trigger Property="IsNewItem" Value="True">
|
|
|
|
|
<Setter Property="Margin" Value="{Binding NewItemMargin, RelativeSource={RelativeSource AncestorType={x:Type DataGrid}}}"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</Style.Triggers>
|
|
|
|
|
</Style>
|
|
|
|
|
<Style x:Key="DataGridCellStyle" TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Setter Property="Background" Value="Transparent"/>
|
|
|
|
|
<Setter Property="BorderBrush" Value="Transparent"/>
|
|
|
|
|
<Setter Property="BorderThickness" Value="0"/>
|
|
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
|
|
|
|
<Setter Property="Template">
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Border Background="{TemplateBinding Background}" BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}" SnapsToDevicePixels="True">
|
|
|
|
|
<ContentPresenter SnapsToDevicePixels="{TemplateBinding SnapsToDevicePixels}" HorizontalAlignment="{TemplateBinding HorizontalContentAlignment}" VerticalAlignment="{TemplateBinding VerticalContentAlignment}"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<ControlTemplate.Triggers>
|
|
|
|
|
<Trigger Property="IsSelected" Value="True">
|
|
|
|
|
<Setter Property="Foreground" Value="Gray"/>
|
|
|
|
|
</Trigger>
|
|
|
|
|
</ControlTemplate.Triggers>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
|
</Setter>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.Resources>
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding IsProduction}" Header="编号" Width="30"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Id}" Header="位置" Width="*"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Rfid}" Header="RFID" Width="*"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Sfc}" Header="SFC" Width="*"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding eaValue}" Header="EA" Width="*"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding beginTime}" Header="开始时间" Width="*"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding endTime}" Header="结束时间" Width="*"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
<Label Content="放卷SFC:" x:Name="lb_fjsfc" Height="35" FontSize="18" Foreground="#007DFA" Width="100" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="54,270,0,145"/>
|
|
|
|
|
<TextBox Height="26" FontSize="18" x:Name="sfcTextBox" HorizontalAlignment="Left" VerticalAlignment="Center" Width="145" Margin="155,275,0,149"/>
|
|
|
|
|
<Label Content="EA值:" x:Name="lb_eavalue" Height="35" FontSize="18" Foreground="#007DFA" Width="65" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="336,271,0,144"/>
|
|
|
|
|
<TextBox Height="26" FontSize="18" x:Name="eaTextBox" HorizontalAlignment="Left" VerticalAlignment="Center" Width="132" Margin="406,275,0,149"/>
|
|
|
|
|
<Label Content="CCD打标数:" x:Name="ccdLable" Height="35" FontSize="18" Foreground="#007DFA" Width="120" VerticalAlignment="Center" HorizontalAlignment="Left" RenderTransformOrigin="1.347,-4.605" Margin="41,340,0,75" Visibility="Hidden"/>
|
|
|
|
|
<TextBox Height="26" FontSize="18" x:Name="ccdTextBox" HorizontalAlignment="Left" VerticalAlignment="Center" Width="120" Margin="178,344,0,80" Visibility="Hidden"/>
|
|
|
|
|
|
|
|
|
|
<Label Content="是否最后一卷:" x:Name="endFlagLabel" Margin="573,268,0,146" Height="36" FontSize="18" Foreground="#007DFA" Width="130" VerticalAlignment="Center" HorizontalAlignment="Left"/>
|
|
|
|
|
<ComboBox x:Name="endFlagCombox" Width="88" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30" Margin="706,270,0,150" >
|
|
|
|
|
<ComboBoxItem Content="否"/>
|
|
|
|
|
<ComboBoxItem Content="是"/>
|
|
|
|
|
</ComboBox>
|
|
|
|
|
</Grid>
|
|
|
|
|
</UserControl>
|