|
|
<UserControl
|
|
|
x:Class="XGL.Views.LanJu_Operator"
|
|
|
x:Name="UCOperator"
|
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
|
|
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
|
|
|
xmlns:local="XGL.Views"
|
|
|
xmlns:convert="clr-namespace:XGL.Tools"
|
|
|
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
|
|
|
Width="1920"
|
|
|
Height="800"
|
|
|
mc:Ignorable="d" Loaded="UCOperator_Loaded">
|
|
|
<UserControl.Resources>
|
|
|
<convert:MyValueConverter x:Key="MyConverter"/>
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
<Grid Background="#F2F3F5"
|
|
|
Width="1920"
|
|
|
Height="800"
|
|
|
Margin="0">
|
|
|
<Grid.RowDefinitions>
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="auto" />
|
|
|
<RowDefinition Height="270" />
|
|
|
<RowDefinition Height="80" />
|
|
|
<RowDefinition Height="330" />
|
|
|
</Grid.RowDefinitions>
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="220" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="1*" />
|
|
|
<ColumnDefinition Width="220" />
|
|
|
</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"
|
|
|
Width="140"
|
|
|
Height="25"
|
|
|
HorizontalContentAlignment="Center"
|
|
|
Background="#70B603" Content="正常" Foreground="White" FontSize="14">
|
|
|
|
|
|
</Label>
|
|
|
</StackPanel>
|
|
|
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="0"
|
|
|
Width="220"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="25,5"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="开始" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="1"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="完成" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="2"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="注销" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="3"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="首检确认" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="4"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
x:Name="btnPause"
|
|
|
Click="btnPause_Click"
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="暂停生产" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="5"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="恢复生产" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="6"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Flow_Click">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看工艺" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="7"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="10,5"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6"
|
|
|
Click="Material_Click">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看物料" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
<StackPanel
|
|
|
Grid.Row="1"
|
|
|
Grid.Column="8"
|
|
|
Width="220"
|
|
|
Height="90">
|
|
|
<Button
|
|
|
Width="170"
|
|
|
Height="80"
|
|
|
Margin="25,5"
|
|
|
HorizontalAlignment="Right"
|
|
|
VerticalAlignment="Center"
|
|
|
Background="#2B7EE6">
|
|
|
<Button.Content>
|
|
|
<TextBlock
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="20"
|
|
|
Foreground="White"
|
|
|
Text="查看SOP" />
|
|
|
</Button.Content>
|
|
|
</Button>
|
|
|
</StackPanel>
|
|
|
|
|
|
<DataGrid
|
|
|
x:Name="dgWorkOrderInfo"
|
|
|
Grid.Row="2"
|
|
|
Grid.ColumnSpan="9"
|
|
|
Width="1870"
|
|
|
Height="220"
|
|
|
Margin="0,20"
|
|
|
FontSize="18" Foreground="Black"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Top"
|
|
|
AutoGenerateColumns="False">
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
<Setter Property="Height" Value="48" />
|
|
|
<Setter Property="FontSize" Value="24" />
|
|
|
<Setter Property="Foreground" Value="White" />
|
|
|
<Setter Property="Background" Value="#2B7EE6" />
|
|
|
</Style>
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
<DataGrid.Columns>
|
|
|
<DataGridTemplateColumn Header=" 序号" Width="160" MinWidth="10" IsReadOnly="True">
|
|
|
<DataGridTemplateColumn.CellTemplate>
|
|
|
<DataTemplate>
|
|
|
<TextBlock Text="{Binding RelativeSource={RelativeSource Mode=FindAncestor,AncestorType={x:Type DataGridRow}}, Path=Header}" HorizontalAlignment="Left" VerticalAlignment="Center" Margin="10,0,0,0"></TextBlock>
|
|
|
</DataTemplate>
|
|
|
</DataGridTemplateColumn.CellTemplate>
|
|
|
</DataGridTemplateColumn>
|
|
|
<DataGridTextColumn Width="250" Header="工单/SFC" Binding="{Binding workorder_code}" />
|
|
|
<DataGridTextColumn Width="250" Header="产品名称" Binding="{Binding product_name}" />
|
|
|
<DataGridTextColumn Width="250" Header="产品型号" Binding="{Binding product_code}" />
|
|
|
<DataGridTextColumn Width="250" Header="工单数量" Binding="{Binding car_num}" />
|
|
|
<DataGridTextColumn Width="250" Header="开始时间" Binding="{Binding begin}" />
|
|
|
<DataGridTextColumn Width="*" Header="工单状态" Binding="{Binding status,Converter={StaticResource MyConverter}}" />
|
|
|
</DataGrid.Columns>
|
|
|
</DataGrid>
|
|
|
|
|
|
<StackPanel
|
|
|
Grid.Row="3"
|
|
|
Grid.ColumnSpan="5"
|
|
|
Width="1000"
|
|
|
Height="69"
|
|
|
Margin="25,10,0,0"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Center"
|
|
|
Orientation="Horizontal">
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="InOut_Click">
|
|
|
<TextBlock
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center"
|
|
|
FontSize="28"
|
|
|
Text="出入记录" />
|
|
|
</Button>
|
|
|
<Button
|
|
|
Width="196"
|
|
|
Height="69"
|
|
|
HorizontalAlignment="Left"
|
|
|
VerticalAlignment="Bottom"
|
|
|
Background="White"
|
|
|
Click="Complete_Click">
|
|
|
<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"
|
|
|
Click="Paused_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="4"
|
|
|
Grid.ColumnSpan="9"
|
|
|
Width="1920"
|
|
|
Height="330"
|
|
|
Margin="0"
|
|
|
HorizontalAlignment="Center"
|
|
|
VerticalAlignment="Center">
|
|
|
<Grid.ColumnDefinitions>
|
|
|
<ColumnDefinition Width="407*" />
|
|
|
<ColumnDefinition Width="1513*" />
|
|
|
</Grid.ColumnDefinitions>
|
|
|
<ContentControl
|
|
|
x:Name="Window1"
|
|
|
Grid.ColumnSpan="2"
|
|
|
Width="1920"
|
|
|
Height="330" />
|
|
|
|
|
|
</Grid>
|
|
|
|
|
|
<ContentControl
|
|
|
x:Name="Window2"
|
|
|
Grid.Row="0"
|
|
|
Grid.RowSpan="5"
|
|
|
Grid.Column="0"
|
|
|
Grid.ColumnSpan="9"
|
|
|
Width="1920"
|
|
|
Height="800" />
|
|
|
</Grid>
|
|
|
</UserControl> |