|
|
<UserControl
|
|
|
x:Class="XGLFinishPro.Views.LanJu_Operator"
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:convert="clr-namespace:XGLFinishPro.Tools"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:dxe="http://schemas.devexpress.com/winfx/2008/xaml/editors"
|
|
|
xmlns:dxg="http://schemas.devexpress.com/winfx/2008/xaml/grid"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
x:Name="UCOperator"
|
|
|
Width="1920"
|
|
|
Height="800"
|
|
|
Loaded="UCOperator_Loaded"
|
|
|
mc:Ignorable="d">
|
|
|
<UserControl.Resources>
|
|
|
<convert:MyValueConverter x:Key="MyConverter" />
|
|
|
<convert:BatchStatusValueConverter x:Key="BatchStatusConverter" />
|
|
|
<convert:OrderInOutConverter x:Key="TaskCodeConverter" />
|
|
|
<convert:BtnBackGroundColorConverter x:Key="ButtonContentToBackgroundColorConverter" />
|
|
|
<convert:ParentOrderConverter x:Key="ParentOrderConverter" />
|
|
|
<convert:ShiftConvert x:Key="ShiftValueConvert" />
|
|
|
<Style x:Key="CustomCellStyle" TargetType="DataGridCell">
|
|
|
<Setter Property="Foreground" Value="Black" />
|
|
|
<Setter Property="TextBlock.TextAlignment" Value="Center" />
|
|
|
<Setter Property="TextBlock.FontSize" Value="22" />
|
|
|
</Style>
|
|
|
<SolidColorBrush x:Key="EvenRowBackground" Color="#E0E0E0" />
|
|
|
<SolidColorBrush x:Key="OddRowBackground" Color="#FFFFFF" />
|
|
|
<Style x:Key="DataGridRowStyle" TargetType="DataGridRow">
|
|
|
<Setter Property="VerticalContentAlignment" Value="Center" />
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
<Setter Property="Background" Value="{StaticResource EvenRowBackground}" />
|
|
|
<Style.Triggers>
|
|
|
<Trigger Property="ItemsControl.AlternationIndex" Value="1">
|
|
|
<Setter Property="Background" Value="{StaticResource OddRowBackground}" />
|
|
|
</Trigger>
|
|
|
</Style.Triggers>
|
|
|
</Style>
|
|
|
<Style x:Key="btnKey" TargetType="Button">
|
|
|
<Setter Property="Width" Value="130" />
|
|
|
<Setter Property="Height" Value="60" />
|
|
|
<Setter Property="Margin" Value="3" />
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Template">
|
|
|
<Setter.Value>
|
|
|
<ControlTemplate TargetType="Button">
|
|
|
<Border
|
|
|
Background="#2B7EE6"
|
|
|
BorderThickness="2"
|
|
|
CornerRadius="10">
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
</Border>
|
|
|
</ControlTemplate>
|
|
|
|
|
|
</Setter.Value>
|
|
|
</Setter>
|
|
|
</Style>
|
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
<Grid Background="LightGray">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="auto" />
|
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<!--<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="3"
|
|
|
Width="450"
|
|
|
Height="30"
|
|
|
Margin="50,5"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Orientation="Horizontal">
|
|
|
<TextBlock
|
|
|
Margin="0,5"
|
|
|
FontSize="16"
|
|
|
Text="设备编码:" />
|
|
|
<TextBox
|
|
|
Width="350"
|
|
|
Height="25"
|
|
|
Margin="0"
|
|
|
Padding="5,0,0,0"
|
|
|
VerticalContentAlignment="Center"
|
|
|
FontSize="13"
|
|
|
Foreground="Gray"
|
|
|
Text="请输入内容" />
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="3"
|
|
|
Grid.ColumnSpan="3"
|
|
|
Width="480"
|
|
|
Height="30"
|
|
|
Margin="50,5"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Orientation="Horizontal">
|
|
|
<TextBlock
|
|
|
Margin="0,5"
|
|
|
FontSize="16"
|
|
|
Text="工单/SFC编码:" />
|
|
|
<TextBox
|
|
|
Width="350"
|
|
|
Height="25"
|
|
|
Margin="0"
|
|
|
Padding="5,0,0,0"
|
|
|
VerticalContentAlignment="Center"
|
|
|
FontSize="13"
|
|
|
Foreground="Gray"
|
|
|
Text="请输入内容" />
|
|
|
</StackPanel>-->
|
|
|
|
|
|
<!--<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="6"
|
|
|
Grid.ColumnSpan="2"
|
|
|
Width="300"
|
|
|
Height="30"
|
|
|
Margin="5,5"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Orientation="Horizontal">
|
|
|
<TextBlock
|
|
|
Margin="0,5"
|
|
|
FontSize="16"
|
|
|
Text="设备状态:" />
|
|
|
<Label
|
|
|
x:Name="LbDeviceState"
|
|
|
Background="{Binding RelativeSource={RelativeSource Mode=Self},Path=Content, Converter={StaticResource ButtonContentToBackgroundColorConverter}}"
|
|
|
Width="40"
|
|
|
Height="25"
|
|
|
HorizontalContentAlignment="Center" HorizontalAlignment="Center"
|
|
|
VerticalContentAlignment="Center" VerticalAlignment="Center"
|
|
|
Foreground="White" FontSize="14" FontWeight="Bold">
|
|
|
|
|
|
</Label>
|
|
|
|
|
|
</StackPanel>-->
|
|
|
<!-- #70B603Background="{Binding RelativeSource={RelativeSource Mode=Self},Path=Content, Converter={StaticResource ButtonContentToBackgroundColorConverter}}" -->
|
|
|
|
|
|
|
|
|
|
|
|
<ScrollViewer
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="11"
|
|
|
Width="Auto"
|
|
|
Background="#F2F3F5"
|
|
|
HorizontalScrollBarVisibility="Auto"
|
|
|
VerticalScrollBarVisibility="Auto">
|
|
|
<StackPanel Orientation="Horizontal">
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="2"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5"
|
|
|
Visibility="Collapsed">
|
|
|
<Button
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="注销" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="0"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnPause1"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnPause1_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="开始工单" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="1"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnPause"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnPause_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="暂停生产" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="2"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnRecover"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnRecover_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="恢复生产" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="3"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Flow_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看工艺" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="4"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Material_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看物料" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="5"
|
|
|
Background="#F2F3F5"
|
|
|
Visibility="Visible">
|
|
|
<Button
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Button_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看SOP" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="6"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnSalaryCal"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnSalaryCal_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="计件薪酬" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="7"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnCheckLog"
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="5"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnCheckLog_Click"
|
|
|
Content="查看接口日志"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}"
|
|
|
Visibility="Collapsed" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="8"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnViewPlcvalue"
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="5"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnViewPlcvalue_Click"
|
|
|
Content="查看Plc值"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}"
|
|
|
Visibility="Collapsed" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="HFPlcvalue"
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="5"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="HFPlcvalue_Click"
|
|
|
Content="查看烘房值"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}"
|
|
|
Visibility="Collapsed" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="6"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5"
|
|
|
Visibility="Visible">
|
|
|
<Button
|
|
|
x:Name="btnComplete"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnComplete_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="报工" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="8"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5"
|
|
|
Visibility="Collapsed">
|
|
|
<Button
|
|
|
x:Name="btnCallMaterial"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnCallMaterial_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="叫料" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="7"
|
|
|
Height="90"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnFirstCheck"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnFirstCheck_Click"
|
|
|
Style="{StaticResource btnKey}">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="首检确认" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="8"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnMachineRepair"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnMachineRepair_Click"
|
|
|
Content="报修"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnRefresh"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnRefresh_Click"
|
|
|
Content="刷新"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="weigh"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="weigh_Click"
|
|
|
Content="打卡"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="report_Click"
|
|
|
Content="查看报表"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="auxiliary_personnel"
|
|
|
Content="辅助人员"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Style="{StaticResource btnKey}"
|
|
|
Visibility="Collapsed" />
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="0"
|
|
|
Grid.Column="9"
|
|
|
Background="#F2F3F5">
|
|
|
<Button
|
|
|
x:Name="btnCallMaterialRequest"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="btnCallMaterialRequest_Click"
|
|
|
Content="叫料"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Visibility="Visible"
|
|
|
Style="{StaticResource btnKey}" />
|
|
|
</StackPanel>
|
|
|
</StackPanel>
|
|
|
|
|
|
</ScrollViewer>
|
|
|
|
|
|
<DataGrid
|
|
|
x:Name="dgWorkOrderInfo"
|
|
|
Grid.Row="1"
|
|
|
Grid.ColumnSpan="11"
|
|
|
MinWidth="1900"
|
|
|
MinHeight="340"
|
|
|
MaxHeight="400"
|
|
|
Margin="10,0,0,5"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
VerticalContentAlignment="Center"
|
|
|
AlternatingRowBackground="{StaticResource OddRowBackground}"
|
|
|
AlternationCount="2"
|
|
|
AutoGenerateColumns="False"
|
|
|
CanUserAddRows="False"
|
|
|
CellStyle="{StaticResource CustomCellStyle}"
|
|
|
HeadersVisibility="Column"
|
|
|
IsReadOnly="True"
|
|
|
LoadingRow="dgWorkOrderInfo_LoadingRow"
|
|
|
RowStyle="{StaticResource DataGridRowStyle}"
|
|
|
SelectedIndex="0"
|
|
|
SelectionChanged="dgWorkOrderInfo_SelectionChanged">
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Height" Value="48" />
|
|
|
<Setter Property="FontSize" Value="20" />
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
<Setter Property="Background" Value="#2B7EE6" />
|
|
|
</Style>
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
<DataGrid.Columns>
|
|
|
<DataGridTemplateColumn
|
|
|
Width="50"
|
|
|
MinWidth="10"
|
|
|
Header=" 序号"
|
|
|
IsReadOnly="True">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
<TextBlock
|
|
|
Margin="10,0,0,0"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor, AncestorType={x:Type DataGridRow}}, Path=Header}" />
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
</DataGridTemplateColumn>
|
|
|
<!--<DataGridTextColumn Width="60" Header="母单" Binding="{Binding parent_order,Converter={StaticResource ParentOrderConverter}}"/>-->
|
|
|
<DataGridTemplateColumn Width="80" Header="状态">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
<Grid>
|
|
|
<Button
|
|
|
Width="75"
|
|
|
Height="35"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Button_Click_3"
|
|
|
Content="{Binding BtnTest}"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
IsEnabled="{Binding IsEnabled}"
|
|
|
Tag="{Binding batchId}" />
|
|
|
</Grid>
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
</DataGridTemplateColumn>
|
|
|
<DataGridTextColumn
|
|
|
Width="170"
|
|
|
Binding="{Binding workorder_code_sap}"
|
|
|
Header="SAP工单" />
|
|
|
<!--<DataGridTextColumn Width="120" Header="RFID" Binding="{Binding rfid}"/>-->
|
|
|
<DataGridTextColumn
|
|
|
Width="400"
|
|
|
Binding="{Binding product_name}"
|
|
|
Header="产品名称" />
|
|
|
<DataGridTextColumn
|
|
|
Width="340"
|
|
|
Binding="{Binding batch_code}"
|
|
|
Header="批次号" />
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding quantity_split}"
|
|
|
Header="订单数量" />
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
Width="80"
|
|
|
Binding="{Binding status, Converter={StaticResource MyConverter}}"
|
|
|
Header="工单状态">
|
|
|
<!--<DataGridTextColumn.ElementStyle>
|
|
|
<Style TargetType="TextBlock">
|
|
|
<Setter Property="Foreground" Value="{Binding status, Converter={StaticResource SyncFlagColorConvert}}" />
|
|
|
</Style>
|
|
|
</DataGridTextColumn.ElementStyle>-->
|
|
|
</DataGridTextColumn>
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding batch_quantity}"
|
|
|
Header="批次数量" />
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding batchQty}"
|
|
|
Header="报工数量" />
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding diffQty}"
|
|
|
Header="剩余数量" />
|
|
|
<DataGridTextColumn
|
|
|
Width="80"
|
|
|
Binding="{Binding use_man}"
|
|
|
Header="标准用人"/>
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding batchStatus, Converter={StaticResource BatchStatusConverter}}"
|
|
|
Header="批次状态" />
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding qc_status, Converter={StaticResource MyConverter}}"
|
|
|
Header="质检状态" />
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding qc_result, Converter={StaticResource MyConverter}}"
|
|
|
Header="质检结果" />
|
|
|
<!--<DataGridTextColumn Width="140" Header="工单完成数" Binding="{Binding attr1}" />
|
|
|
<DataGridTextColumn Width="180" Header="当前机台完成数" Binding="{Binding totalCount}" />-->
|
|
|
<DataGridTextColumn
|
|
|
Width="180"
|
|
|
Binding="{Binding shift_desc}"
|
|
|
Header="班次" />
|
|
|
<DataGridTextColumn
|
|
|
Width="250"
|
|
|
Binding="{Binding product_code}"
|
|
|
Header="产品编码" />
|
|
|
|
|
|
<DataGridTextColumn
|
|
|
Width="200"
|
|
|
Binding="{Binding workorder_code}"
|
|
|
Header="工单/SFC" />
|
|
|
<DataGridTextColumn
|
|
|
Width="180"
|
|
|
Binding="{Binding workorder_id}"
|
|
|
Header="工单code"
|
|
|
Visibility="Hidden" />
|
|
|
<DataGridTextColumn
|
|
|
Width="100"
|
|
|
Binding="{Binding sort_no}"
|
|
|
Header="生产顺序" />
|
|
|
<DataGridTextColumn
|
|
|
Width="250"
|
|
|
Binding="{Binding plan_time, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
|
|
Header="计划时间" />
|
|
|
<DataGridTextColumn
|
|
|
Width="250"
|
|
|
Binding="{Binding unit}"
|
|
|
Header="单位" />
|
|
|
<DataGridTextColumn
|
|
|
Width="200"
|
|
|
Binding="{Binding create_time, StringFormat={}{0:yyyy-MM-dd HH:mm:ss}}"
|
|
|
Header="创建批次成品检验时间" />
|
|
|
<DataGridTextColumn
|
|
|
Width="200"
|
|
|
Binding="{Binding check_status, Converter={StaticResource ShiftValueConvert}}"
|
|
|
Header="批次成品检验结果" />
|
|
|
<!--<DataGridTextColumn Width="340" Header="流转码" Binding="{Binding work_batch_code}" />-->
|
|
|
<!--<DataGridTextColumn Width="60" Header="出入" Binding="{Binding taskcode,Converter={StaticResource TaskCodeConverter}}"/>-->
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
</DataGrid>
|
|
|
|
|
|
<StackPanel
|
|
|
Grid.Row="2"
|
|
|
Grid.ColumnSpan="11"
|
|
|
Width="1905"
|
|
|
Height="69"
|
|
|
Margin="0,10,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#F2F3F5"
|
|
|
Orientation="Horizontal">
|
|
|
<!--<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
BorderThickness="0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="InOut_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="出入记录" />
|
|
|
</Button>-->
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
Margin="10,0,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="GetQitaolv_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="领料单" />
|
|
|
</Button>
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
Margin="10,0,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="Complete_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="完成记录" />
|
|
|
</Button>
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
Margin="10,0,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="Paused_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="暂停记录" />
|
|
|
</Button>
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
Margin="10,0,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="Button_Click_2">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="首检记录" />
|
|
|
</Button>
|
|
|
<!--<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="DeviceItems_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="设备当前物料" />
|
|
|
</Button>
|
|
|
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="工单信息" />
|
|
|
</Button>-->
|
|
|
</StackPanel>
|
|
|
|
|
|
<Grid
|
|
|
Grid.Row="3"
|
|
|
Grid.ColumnSpan="11"
|
|
|
Margin="-30,0,0,0"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Top"
|
|
|
Background="LightGray">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="63*"/>
|
|
|
<ColumnDefinition Width="577*"/>
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<ContentControl
|
|
|
x:Name="Window1"
|
|
|
Grid.ColumnSpan="2"
|
|
|
Width="1920"
|
|
|
Height="300" />
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<!--<ContentControl
|
|
|
x:Name="Window2"
|
|
|
Grid.Row="0"
|
|
|
Grid.RowSpan="5"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="9"
|
|
|
MinWidth="1000"
|
|
|
MinHeight="340"/>-->
|
|
|
</Grid>
|
|
|
</UserControl> |