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.

256 lines
21 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.firstPage"
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="50*"/>
</Grid.RowDefinitions>
<StackPanel Grid.Row="0" Margin="0,0,0,162.5" Grid.RowSpan="2">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="73*"/>
<ColumnDefinition Width="27*"/>
</Grid.ColumnDefinitions>
<StackPanel Grid.Column="0" Height="310" Orientation="Horizontal" HorizontalAlignment="Left" Background="AliceBlue">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="100"/>
<RowDefinition Height="100"/>
</Grid.RowDefinitions>
<UniformGrid Columns="4" Margin="0,5">
<Border x:Name="upMaterial" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="upMaterial_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="放卷位" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="upMaterial_SFC" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="upMaterial_RFID" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="upMaterial_EA" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border Margin="5,0" Width="170" MouseDown="upMaterial_MouseDown">
</Border>
<Border Margin="5,0" Width="170" MouseDown="upMaterial_MouseDown">
</Border>
</UniformGrid>
<UniformGrid Columns="4" Grid.Row="1" Margin="0,5">
<Border x:Name="down_1" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_1_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷1A轴内侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_1" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_1" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_1" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_2" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_2_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷1A轴外侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_2" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_2" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_2" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_3" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0,5,-0.333" Width="220" Height="91" VerticalAlignment="Bottom" MouseDown="down_3_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷2A轴内侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_3" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_3" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_3" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_4" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_4_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷2A轴外侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_4" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_4" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_4" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="4" Grid.Row="2" Margin="0,5">
<Border x:Name="down_5" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_5_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷1B轴内侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_5" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_5" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_5" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_6" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_6_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷1B轴外侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_6" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_6" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_6" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_7" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_7_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷2B轴内侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_7" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_7" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_7" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
<Border x:Name="down_8" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" CornerRadius="5" Margin="5,0" Width="220" MouseDown="down_8_MouseDown">
<StackPanel Margin="5,5">
<TextBlock Text="收卷2B轴外侧" FontSize="15" Foreground="#666867" HorizontalAlignment="Center"/>
<TextBlock x:Name="Down_SFC_8" Text="SFC" FontSize="13" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2" FontWeight="Bold"/>
<TextBlock x:Name="Down_RFID_8" Text="RFID" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
<TextBlock x:Name="Down_EA_8" Text="EA" TextWrapping="Wrap" Foreground="#5985EA" Margin="0,2"/>
</StackPanel>
</Border>
</UniformGrid>
</Grid>
</StackPanel>
<StackPanel Grid.Column="1" Height="310" Width="340" x:Name="rightLog" Orientation="Horizontal" HorizontalAlignment="Right" VerticalAlignment="Top">
<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" CommandParameter="OrderRecordControl" Command="{Binding RecordChangeContentCommand}"/>
</StackPanel>
<StackPanel Grid.Row="1">
<ListBox x:Name="MesLog" 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" Foreground="Gray" HorizontalAlignment="Left" Height="115" VerticalAlignment="Center" Width="340" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0"/>
</StackPanel>
</Grid>
</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="180"/>
</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 Height="180" Grid.Row="1" Margin="0,25,0,0" Orientation="Horizontal" VerticalAlignment="Center">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="309*"/>
<ColumnDefinition Width="41*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="50"/>
<RowDefinition Height="50"/>
</Grid.RowDefinitions>
<UniformGrid Columns="1" Margin="25,5,0,0" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Border Width="30" Height="30" CornerRadius="15">
<Border.Background>
<ImageBrush x:Name="TestBImage" ImageSource="Assets/Images/失败-01.png"/>
</Border.Background>
</Border>
<TextBlock x:Name="TestTB" Text="放卷位设备" VerticalAlignment="Center" Foreground="Red" FontSize="15" Margin="10,0"/>
</StackPanel>
</UniformGrid>
<UniformGrid Columns="1" Grid.Row="1" Margin="25,5,0,0" Grid.ColumnSpan="2">
<StackPanel Orientation="Horizontal" HorizontalAlignment="Left">
<Border Width="30" Height="30" CornerRadius="15">
<Border.Background>
<ImageBrush x:Name="TestCImage" ImageSource="Assets/Images/失败-01.png"/>
</Border.Background>
</Border>
<TextBlock x:Name="TestTC" Text="收卷位设备" VerticalAlignment="Center" Foreground="Red" FontSize="15" Margin="10,0"/>
</StackPanel>
</UniformGrid>
</Grid>
</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>