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.
133 lines
8.4 KiB
Plaintext
133 lines
8.4 KiB
Plaintext
1 year ago
|
<UserControl x:Class="Aucma.Core.CodeBinding.Views.IndexPageView"
|
||
|
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:lvc="clr-namespace:LiveCharts.Wpf;assembly=LiveCharts.Wpf"
|
||
|
xmlns:local="clr-namespace:Aucma.Core.CodeBinding.Views"
|
||
|
mc:Ignorable="d"
|
||
|
d:DesignHeight="800"
|
||
|
d:DesignWidth="1000" >
|
||
|
|
||
|
<UserControl.Resources>
|
||
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
||
|
<Setter Property="VerticalAlignment" Value="Center" />
|
||
|
</Style>
|
||
|
<Style x:Key="ColumnHeaderStyle" TargetType="DataGridColumnHeader">
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center"/>
|
||
|
<Setter Property="Background" Value="#dddddd"/>
|
||
|
</Style>
|
||
|
</UserControl.Resources>
|
||
|
<Grid Margin="1 5 1 0" >
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<!--扫描信息-->
|
||
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="3,1,5,5">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="0.3*"/>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderThickness="1" BorderBrush="#0288d1" CornerRadius="4" Background="Transparent" Width="100" Height="30" VerticalAlignment="Top" HorizontalAlignment="Center">
|
||
|
<TextBlock Text="扫描信息" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||
|
</Border>
|
||
|
<Grid Grid.Row="1" >
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition/>
|
||
|
<RowDefinition/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="2*"/>
|
||
|
<ColumnDefinition Width="5*"/>
|
||
|
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Label Content="条码信息" HorizontalAlignment="Right" Margin="139,0,0,0" VerticalAlignment="Center" Width="67"/>
|
||
|
<Label Content="SN码信息" HorizontalAlignment="Right" Margin="139,0,0,0" Grid.Row="1" VerticalAlignment="Center" Width="67"/>
|
||
|
<Border Grid.Column="1" HorizontalAlignment="Left" BorderBrush="#0288d1" BorderThickness="1" Height="23" Width="208" Grid.ColumnSpan="2">
|
||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Code1}" VerticalAlignment="Center" Height="23" Width="194"/>
|
||
|
</Border>
|
||
|
<Border Margin="208 0 0 0" BorderBrush="#0288d1" BorderThickness="1" Height="23" Width="208" Grid.ColumnSpan="2" >
|
||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Left" TextWrapping="Wrap" Text="{Binding Code1Time}" VerticalAlignment="Top" Height="23" Width="194"/>
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" BorderBrush="#0288d1" BorderThickness="1" Height="23" Width="208" Grid.ColumnSpan="2" >
|
||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Center" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Code2}" VerticalAlignment="Center" Width="188"/>
|
||
|
</Border>
|
||
|
<Border Grid.Row="1" Margin="208 0 0 0" BorderBrush="#0288d1" BorderThickness="1" Height="23" Width="208" Grid.ColumnSpan="2" >
|
||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Left" Grid.Row="1" TextWrapping="Wrap" Text="{Binding Code2Time}" VerticalAlignment="Top" Width="173"/>
|
||
|
</Border>
|
||
|
|
||
|
</Grid>
|
||
|
<Grid Grid.Row="2">
|
||
|
<Grid.ColumnDefinitions>
|
||
|
<ColumnDefinition Width="2*"/>
|
||
|
<ColumnDefinition Width="5*"/>
|
||
|
|
||
|
</Grid.ColumnDefinitions>
|
||
|
<Label Content="绑定信息" HorizontalAlignment="Right" Margin="153,30,0,0" VerticalAlignment="Top" Width="63"/>
|
||
|
<Border Grid.Row="1" Grid.Column="1" HorizontalAlignment="Left" Margin="0,30,0,0" Height="80" Width="460" BorderBrush="#0288d1" BorderThickness="1" Grid.ColumnSpan="2" >
|
||
|
<TextBlock Grid.Column="1" HorizontalAlignment="Left" Margin="0,0,0,0" Text="{Binding BindingInfo}" TextWrapping="Wrap" Height="93" Width="392"/>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Grid>
|
||
|
|
||
|
|
||
|
|
||
|
</Border>
|
||
|
|
||
|
<!--日志信息-->
|
||
|
<Border Grid.Row="0" Grid.Column="1" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="3,1,3,5">
|
||
|
|
||
|
|
||
|
</Border>
|
||
|
|
||
|
<!--扫描记录-->
|
||
|
<Border Grid.Row="1" Grid.ColumnSpan="2" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="3,1,3,5">
|
||
|
<Grid>
|
||
|
<Grid.RowDefinitions>
|
||
|
<RowDefinition Height="1*"/>
|
||
|
<RowDefinition Height="9*"/>
|
||
|
</Grid.RowDefinitions>
|
||
|
<Border Grid.Row="0" BorderBrush="#0288d1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
||
|
<TextBlock Text="扫描纪录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
||
|
</Border>
|
||
|
<!--扫描纪录-->
|
||
|
<Border x:Name="ScanPanel" Grid.Row="1" Grid.Column="0" BorderBrush="#0288d1" BorderThickness="0" CornerRadius="5" Background="Transparent" Margin="1,1,5,5">
|
||
|
<DataGrid Grid.Row="0" ItemsSource="{Binding ListItems}" Background="#00000000"
|
||
|
ColumnHeaderHeight="35"
|
||
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
||
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
||
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
||
|
Foreground="Gray" >
|
||
|
|
||
|
<!-- 表头剧中-->
|
||
|
<DataGrid.ColumnHeaderStyle>
|
||
|
<Style TargetType="DataGridColumnHeader">
|
||
|
<Setter Property="HorizontalContentAlignment" Value="Center">
|
||
|
</Setter>
|
||
|
</Style>
|
||
|
</DataGrid.ColumnHeaderStyle>
|
||
|
<DataGrid.CellStyle>
|
||
|
|
||
|
<Style TargetType="DataGridCell">
|
||
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
||
|
</Style>
|
||
|
</DataGrid.CellStyle>
|
||
|
<!--修改选中字体颜色-->
|
||
|
<DataGrid.Columns>
|
||
|
<DataGridTextColumn Binding="{Binding No}" Header="序号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
||
|
<DataGridTextColumn Binding="{Binding BoxCode}" Header="箱体条码" Width="4*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding ProductCode}" Header="成品码" Width="4*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding BindingResult}" Header="绑定结果" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
<DataGridTextColumn Binding="{Binding RecordTime,StringFormat=\{0:yyyy-MM-dd HH:mm\}}" Header="记录时间" Width="4*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
||
|
</DataGrid.Columns>
|
||
|
</DataGrid>
|
||
|
</Border>
|
||
|
</Grid>
|
||
|
</Border>
|
||
|
|
||
|
</Grid>
|
||
|
</UserControl>
|