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.

237 lines
19 KiB
XML

<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"
xmlns:local="clr-namespace:MaterialTraceabilityUI"
mc:Ignorable="d"
d:DesignHeight="452" d:DesignWidth="640" Background="Transparent" Loaded="UserControl_Loaded">
<Border CornerRadius="10" Background="White" Margin="0,10,0,0">
<Grid>
<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>
<Grid.RowDefinitions>
<RowDefinition Height="40"/>
<RowDefinition Height="40"/>
</Grid.RowDefinitions>
<StackPanel Margin="15,0" Grid.Row="0" Orientation="Horizontal" VerticalAlignment="Center">
<Label Content="开始时间" 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"/>-->
<Button x:Name="seach" Content="查询" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="Seach_Click"/>
<Button x:Name="ExceptionHand" Content="继续完工" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="ExceptionHand_Click"/>
<Button x:Name="GetMesEaValue" Content="同步EA值" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="GetMesEaValue_Click"/>
</StackPanel>
<StackPanel Margin="15,0" Grid.Row="1" Orientation="Horizontal" VerticalAlignment="Center">
<Label Content="结束时间" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<DatePicker x:Name="endTime" Width="150" HorizontalAlignment="Left" Height="30"/>
<Label Margin="20,0,0,0" Content="状态" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<ComboBox x:Name="productionStatusComboBox" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30">
<ComboBoxItem Content="正在生产"/>
<ComboBoxItem Content="正在完工"/>
<ComboBoxItem Content="正在下料中"/>
<ComboBoxItem Content="已完工"/>
<ComboBoxItem Content=""/>
</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"/>-->
<Label Margin="20,0,0,0" Content="膜长" Foreground="#007DFA" Height="30" VerticalAlignment="Center" HorizontalAlignment="Left"/>
<TextBox x:Name="membraneLength" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
<Label Margin="20,0,0,0" Content="系数" Foreground="#007DFA" Height="30" HorizontalAlignment="Left"/>
<TextBox x:Name="volumesNumber" Width="150" Foreground="#007DFA" HorizontalAlignment="Left" VerticalAlignment="Center" Height="30"/>
<Button x:Name="EaParamSet" Content="EA设置" Background="#007DFA" Foreground="White" Margin="20,0,0,0" Height="30" BorderBrush="DeepSkyBlue" BorderThickness="1" Width="80" Click="EaParamSet_Click"/>
</StackPanel>
</Grid>
</Border>
<Border Grid.Row="1" Margin="0,5,0,0" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="0" Background="Transparent">
<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>
<DataGridTextColumn Binding="{Binding Id}" Header="编号" 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"/>
<DataGridTextColumn Binding="{Binding ProductionFlag}" Header="是否生产" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding isFinish}" Header="完成状态" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding beginTime}" Header="开始时间" Width="*" IsReadOnly="True"/>
<DataGridTextColumn Binding="{Binding endTime}" Header="结束时间" Width="*" IsReadOnly="True"/>
</DataGrid.Columns>
</DataGrid>
</Border>
<Border Grid.Row="2" Margin="0,5,0,0" BorderBrush="#007DFA" BorderThickness="1" CornerRadius="0,0,10,10" Background="Transparent">
<Grid>
<Grid.RowDefinitions>
<RowDefinition Height="80"/>
<RowDefinition Height="*"/>
<RowDefinition Height="*"/>
</Grid.RowDefinitions>
<UniformGrid Columns="5" Grid.Row="0" Margin="0,5">
<Border x:Name="CancelSfc" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="100" MouseDown="CancelSfc_MouseDown" >
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="CancelSfcText" Text="注销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>
<Border x:Name="AdjustFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125" MouseDown="AdjustFaceA_MouseDown" >
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="AdjustFaceAText" Text="调整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>
<Border x:Name="BeginFaceA" BorderThickness="1,1,1,1" HorizontalAlignment="Center" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="1,0" Width="125" MouseDown="BeginFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="BeginFaceAText" Text="A面开始" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="1" Margin="0,5">
<Border x:Name="CollectFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="100" MouseDown="CollectFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="CollectFaceAText1" Text="A面收数" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="CollectFaceAText2" Text="物料消耗" 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>
<Border x:Name="FinishFaceA" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125" MouseDown="FinishFaceA_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="FinishFaceAText" Text="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>
<Border x:Name="BeginFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125" MouseDown="BeginFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="BeginFaceBText" Text="B面开始" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
<UniformGrid Columns="5" Grid.Row="2" Margin="0,5">
<Border x:Name="CollectFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="100" MouseDown="CollectFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="CollectFaceBText1" Text="B面收数" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
<TextBlock x:Name="CollectFaceBText2" Text="物料消耗" 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>
<Border x:Name="FinishFaceB" BorderThickness="1,1,1,1" BorderBrush="#DBE6FA" Background="#F0F7FF" Height="50" CornerRadius="5" Margin="5,0" Width="125" MouseDown="FinishFaceB_MouseDown">
<StackPanel Margin="5,5" VerticalAlignment="Center">
<TextBlock x:Name="FinishFaceBText" Text="B面完工" FontSize="15" Foreground="#666867" HorizontalAlignment="Center" VerticalAlignment="Center"/>
</StackPanel>
</Border>
</UniformGrid>
</Grid>
</Border>
</Grid>
</Border>
</UserControl>