You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

307 lines
24 KiB
XML

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

<UserControl x:Class="MaterialTraceabilityUI.CoatingProcess"
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="560" d:DesignWidth="1280"
Background="#F0F7FF" Loaded="UserControl_Loaded">
<Border CornerRadius="15">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="70*"/>
<RowDefinition Height="40*"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,5,0,0" Width="920" Orientation="Horizontal" HorizontalAlignment="Left">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="1*"/>
<RowDefinition Height="1*"/>
<RowDefinition Height="0.9*"/>
<RowDefinition Height="0.9*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="4" Grid.Row="0" Margin="0,0">
<Border BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="FJ_A_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="放卷位" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="SFC_Position1" Text="SFC" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="RFID_Position1" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="EA_Position1" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="FJ_B_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="放卷位" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="SFC_Position2" Text="SFC" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="RFID_Position2" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="EA_Position2" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="Border_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="A轴收卷位" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="SFC_Position" Text="SFC" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="RFID_Position" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="EA_Position" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220">
<StackPanel Margin="5,5" MouseDown="StackPanel_MouseDown">
<TextBlock Text="B轴收卷位" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="SFC_Finish" Text="SFC" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="RFID_Finish" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="EA_Finish" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="4" Grid.Row="1" Margin="0,0">
<Border Background="#F0F7FF" Height="90" CornerRadius="5" Margin="15,5,0,0" Width="150">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="35"/>
<RowDefinition Height="55"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" >
<TextBlock Text="结束流程SFC" FontSize="14" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="EndSfc" Text="" FontSize="14" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
<StackPanel Grid.Row="1" VerticalAlignment="Center">
<Border BorderThickness="1,1,1,1" Width="100" Height="40" BorderBrush="#DBE6FA" CornerRadius="5">
<RadioButton Content="结束复位" Width="100" Height="40" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="Red" IsChecked="True" VerticalAlignment="Center" Click="Init_End" RenderTransformOrigin="0.502,0.5"/>
</Border>
</StackPanel>
</Grid>
</Border>
<Border BorderThickness="0" BorderBrush="Gray" CornerRadius="5" Height="90" Width="165">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="25"/>
<RowDefinition Height="30"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Orientation="Horizontal">
<Label Content="工单" FontSize="13" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBox x:Name="shopOrderText" FontSize="13" Foreground="Gray" Height="22" Width="122" TextWrapping="Wrap" BorderThickness="1" BorderBrush="Gray" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBox>
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal">
<Label Content="预警数量" FontSize="13" Foreground="Gray" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBox x:Name="orderAlarmAmountText" FontSize="13" Foreground="Gray" Height="22" Width="96" TextWrapping="Wrap" BorderThickness="1" BorderBrush="Gray" VerticalAlignment="Center" HorizontalAlignment="Right"></TextBox>
</StackPanel>
<StackPanel Grid.Row="2" VerticalAlignment="Center" HorizontalAlignment="Center">
<Border Height="30" Width="90" BorderThickness="1,1,1,1" BorderBrush="CornflowerBlue" CornerRadius="5" Background="CornflowerBlue" HorizontalAlignment="Center" VerticalAlignment="Center">
<TextBlock Text="设置工单预警" FontSize="13" Foreground="White" Margin="5,5" MouseDown="TextBlock_MouseDown"/>
<!--<Button Content="设置工单预警" Foreground="White" BorderBrush="CornflowerBlue" BorderThickness="0" Background="Transparent" Margin="1,1" Height="29" Width="90"/>-->
</Border>
</StackPanel>
</Grid>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="2" Margin="0,5" Width="730">
<Border x:Name="CancelSfc" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="100">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="CancelSfcText" Text="工单下达" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="50">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock Text="=>" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border x:Name="BeginAdjustNumberByA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="BeginAdjustNumberByAText" Text="开始调整" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="BeginAdjustNumberByATexts" Text="A面数量" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="50">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock Text="=>" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="1,1,1,1" HorizontalAlignment="Center" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="1,0" Width="125">
<StackPanel x:Name="CollectA" Margin="5,5" VerticalAlignment="Center" >
<RadioButton Width="123" Height="50" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="#666867" IsChecked="True" VerticalAlignment="Center" RenderTransformOrigin="0.502,0.5" Click="Btn_Click_A">
<StackPanel VerticalAlignment="Center">
<TextBlock x:Name="ADataCollect" Text="A面数据采集" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="ADataCollect2" Text="A面物料消耗" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</RadioButton>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="3" Margin="0,0" Width="730" >
<Border x:Name="EndAdjustNumberByA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="BeginBdjustNumberByBText2" Text="A面调整完成" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="BeginAdjustNumberByBText" Text="开始调整B面" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="50">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock Text="=>" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border x:Name="CollectB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<RadioButton Width="123" Height="50" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="#666867" IsChecked="True" VerticalAlignment="Center" Click="Btn_Click_B" RenderTransformOrigin="0.502,0.5">
<StackPanel>
<TextBlock Text="B面数据采集" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock Text="B面物料消耗" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</RadioButton>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="50">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock Text="=>" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border x:Name="EndAdjustNumberByB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="120">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="EndAdjustNumberByBText" Text="B面调整完成" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
</Grid>
</StackPanel>
<StackPanel Margin="0,5,0,0" Width="340" Orientation="Horizontal" HorizontalAlignment="Right">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="160"/>
<RowDefinition Height="160"/>
</Grid.RowDefinitions>
<StackPanel>
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="130"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,5,0,0" Width="340" Orientation="Horizontal" HorizontalAlignment="Left" Background="#007dfa">
<RadioButton Content="MES日志" Margin="5,0" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" Command="{Binding RecordChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1">
<ListBox x:Name="MesLog" FontSize="12" Foreground="Gray" HorizontalAlignment="Left" Height="120" VerticalAlignment="Center" Width="340" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0"/>
</StackPanel>
</Grid>
</StackPanel>
<StackPanel Grid.Row="1" Margin="0,0,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="17*"/>
<ColumnDefinition Width="53*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="130"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,5,0,0" Width="340" Orientation="Horizontal" HorizontalAlignment="Left" Background="#007dfa" Grid.ColumnSpan="2">
<RadioButton Content="PLC日志" Margin="5,0" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" CommandParameter="MesLogControl" Command="{Binding LogChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1" Grid.ColumnSpan="2">
<ListBox x:Name="PlcLog" FontSize="12" Foreground="Gray" HorizontalAlignment="Left" Height="115" VerticalAlignment="Center" Width="340" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0"/>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Bottom">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="20*"/>
<ColumnDefinition Width="55*"/>
<ColumnDefinition Width="450"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Height="210" Background="White" Margin="0,5,0,10" Orientation="Horizontal" HorizontalAlignment="Left" >
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="170"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,0" Width="275" Orientation="Horizontal" HorizontalAlignment="Left" Background="#007dfa">
<RadioButton Content="设备状态" Margin="5,0" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" CommandParameter="MesLogControl" Command="{Binding LogChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1" Orientation="Vertical" HorizontalAlignment="Center" VerticalAlignment="Center">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Border Width="30" Height="30" CornerRadius="15">
<Border.Background>
<ImageBrush x:Name="EquipStatusImage2" ImageSource="Assets/Images/失败-01.png"/>
</Border.Background>
</Border>
<TextBlock x:Name="TestTC2" Text="连接失败" VerticalAlignment="Center" FontSize="15" Margin="10,0"/>
</StackPanel>
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left" Margin="0,10,0,0">
<Border Width="30" Height="30" CornerRadius="15">
<Border.Background>
<ImageBrush x:Name="EquipStatusImage" ImageSource="Assets/Images/失败-01.png"/>
</Border.Background>
</Border>
<TextBlock x:Name="TestTC" Text="连接失败" VerticalAlignment="Center" FontSize="15" Margin="10,0"/>
</StackPanel>
</StackPanel>
</Grid>
</StackPanel>
<StackPanel Grid.Column="1" Height="210" Background="White" Margin="5,5,5,10" HorizontalAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="180"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,0" Width="555" Orientation="Horizontal" HorizontalAlignment="Left" Background="#007dfa">
<RadioButton Content="RFID日志" Margin="5,0" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" CommandParameter="MesLogControl" Command="{Binding LogChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1" x:Name="listbox">
<ListBox x:Name="RfidLog" Foreground="Gray" HorizontalAlignment="Left" Height="{Binding Path=ActualHeight,ElementName=listbox}" VerticalAlignment="Center" Width="555" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0"/>
</StackPanel>
</Grid>
</StackPanel>
<StackPanel Grid.Column="2" Width="450" Height="210" Background="White" Margin="5,5,0,10" HorizontalAlignment="Center">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="30"/>
<RowDefinition Height="180"/>
</Grid.RowDefinitions>
<StackPanel Margin="0,0,0,0" Width="450" Orientation="Horizontal" HorizontalAlignment="Left" Background="#007dfa">
<RadioButton Content="报警日志" Margin="5,0" Style="{StaticResource NavRadioButtonStyle}" FontSize="15" Foreground="White" IsChecked="True" VerticalAlignment="Center" CommandParameter="MesLogControl" Command="{Binding LogChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1">
<ListBox x:Name="AlarmLog" Foreground="Red" HorizontalAlignment="Left" Height="{Binding Path=ActualHeight,ElementName=listbox}" VerticalAlignment="Center" Width="450" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0"/>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</StackPanel>
</Grid>
</Border>
</UserControl>