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.

242 lines
20 KiB
Plaintext

<UserControl x:Class="MaterialTraceabilityUI.TBAlarmRecord"
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"
4 months ago
xmlns:local="clr-namespace:MaterialTraceabilityUI.Resources"
mc:Ignorable="d"
4 months ago
d:DesignHeight="492" d:DesignWidth="940" Background="Transparent" Loaded="UserControl_Loaded">
<Border CornerRadius="10" Background="White" Margin="0,10,0,0">
<Grid>
<Grid.ColumnDefinitions>
<ColumnDefinition Width="445*"/>
<ColumnDefinition Width="131*"/>
<ColumnDefinition Width="64*"/>
</Grid.ColumnDefinitions>
<Grid.RowDefinitions>
<RowDefinition Height="100"/>
<RowDefinition Height="150"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<Border Grid.Row="0" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="10" Background="Transparent" Grid.ColumnSpan="3">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<StackPanel Margin="15,0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
4 months ago
<Label Content="{local:StringResource 开始时间,DefaultValue=开始时间}" 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"/>-->
4 months ago
<Button x:Name="seach" Content="{local:StringResource 查询,DefaultValue=查询}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Seach_Click"/>
4 months ago
<Button x:Name="ExceptionHand" Content="{local:StringResource 继续完工,DefaultValue=继续完工}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="175" Click="ExceptionHand_Click"/>
4 months ago
<Button x:Name="GetMesEaValue" Content="{local:StringResource 同步EA,DefaultValue=同步EA}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="140" Click="GetMesEaValue_Click"/>
</StackPanel>
<StackPanel Margin="15,0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center">
4 months ago
<Label Content="{local:StringResource 结束时间,DefaultValue=结束时间}" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<DatePicker x:Name="endTime" Width="150" HorizontalAlignment="Left" Height="30"/>
4 months ago
<Label Margin="20,0,0,0" Content="{local:StringResource tb_lb_State,DefaultValue=状态}" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<ComboBox x:Name="productionStatusComboBox" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30" SelectedIndex="4">
4 months ago
<ComboBoxItem Tag="0" Content="{local:StringResource 正在生产,DefaultValue=正在生产}"/>
<ComboBoxItem Tag="1" Content="{local:StringResource 正在完工,DefaultValue=正在完工}"/>
<ComboBoxItem Tag="2" Content="{local:StringResource 正在下料中,DefaultValue=正在下料中}"/>
<ComboBoxItem Tag="3" Content="{local:StringResource 已完工,DefaultValue=已完工}"/>
<ComboBoxItem Tag="4" Content="{local:StringResource 全部,DefaultValue=全部}"/>
</ComboBox>
<!--<Button x:Name="ForceDown" Content="强制下料" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="ForceDown_Click" Visibility="Hidden"/>-->
4 months ago
<Label Margin="20,0,0,0" Content="{local:StringResource tb_lb_MC,DefaultValue=膜长}" Foreground="#007DFA" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBox x:Name="membraneLength" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
4 months ago
<Label Margin="20,0,0,0" Content="{local:StringResource 系数,DefaultValue=系数}" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<TextBox x:Name="volumesNumber" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
4 months ago
<Button x:Name="EaParamSet" Content="{local:StringResource EA设置,DefaultValue=EA设置}" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="130" Click="EaParamSet_Click"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="0,5,0,0.4" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="0" Background="Transparent" Grid.ColumnSpan="3">
<DataGrid x:Name="AlarmInfoDataGrid" Style="{DynamicResource DataGridStyle}" ColumnHeaderHeight="22" RowHeight="20" AutoGenerateColumns="False" RowHeaderWidth="0" GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden" ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0">
<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>
4 months ago
<DataGridTextColumn Binding="{Binding Id}" Header="{local:StringResource 编号,DefaultValue=编号}" Width="30" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding Rfid}" Header="RFID" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding Sfc}" Header="SFC" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding eaValue}" Header="EA" Width="*" IsReadOnly="True"/>
4 months ago
<DataGridTextColumn Binding="{Binding ProductionFlag}" Header="{local:StringResource tb_lb_State,DefaultValue=状态}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding isFinish}" Header="{local:StringResource 完成状态,DefaultValue=完成状态}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding beginTime}" Header="{local:StringResource 开始时间,DefaultValue=开始时间}" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding endTime}" Header="{local:StringResource 结束时间,DefaultValue=结束时间}" Width="*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Border Grid.Row="2" Margin="0,4.6,0,0.4" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="0,0,10,10" Background="Transparent" Grid.ColumnSpan="3">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="5" Grid.Row="0" Margin="0,5">
4 months ago
<Border x:Name="CancelSfc" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="200" MouseDown="CancelSfc_MouseDown" >
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="CancelSfcText" Text="{local:StringResource 注销SFC,DefaultValue=注销SFC}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" 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>
4 months ago
<Border x:Name="AdjustFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="230" MouseDown="AdjustFaceA_MouseDown" >
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="AdjustFaceAText" Text="{local:StringResource 调整A面数量,DefaultValue=调整A面数量}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" 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>
4 months ago
<Border x:Name="BeginFaceA" BorderThickness="1,1,1,1" HorizontalAlignment="Center" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="1,0" Width="200" MouseDown="BeginFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="BeginFaceAText" Text="{local:StringResource A面开始,DefaultValue=A面开始}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="1" Margin="0,5">
4 months ago
<Border x:Name="CollectFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="200" MouseDown="CollectFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="CollectFaceAText1" Text="{local:StringResource A面收数,DefaultValue=A面收数}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="CollectFaceAText2" Text="{local:StringResource 物料消耗,DefaultValue=物料消耗}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" 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>
4 months ago
<Border x:Name="FinishFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="230" MouseDown="FinishFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="FinishFaceAText" Text="{local:StringResource A面完工,DefaultValue=A面完工}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" 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>
4 months ago
<Border x:Name="BeginFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="200" MouseDown="BeginFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="BeginFaceBText" Text="{local:StringResource B面开始,DefaultValue=B面开始}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="2" Margin="0,5">
4 months ago
<Border x:Name="CollectFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="200" MouseDown="CollectFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="CollectFaceBText1" Text="{local:StringResource B面收数,DefaultValue=B面收数}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="CollectFaceBText2" Text="{local:StringResource 物料消耗,DefaultValue=物料消耗}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
<Border BorderThickness="0" BorderBrush="#DBE6FA" 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>
4 months ago
<Border x:Name="FinishFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="230" MouseDown="FinishFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
4 months ago
<TextBlock x:Name="FinishFaceBText" Text="{local:StringResource B面完工,DefaultValue=B面完工}" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
</Grid>
</Border>
</Grid>
</Border>
</UserControl>