|
|
|
@ -38,41 +38,43 @@
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Border Grid.Column="0" CornerRadius="10" Margin="3">
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<ImageBrush ImageSource="/Templates/image/left.png"/>
|
|
|
|
|
<ImageBrush ImageSource="/Templates/image/right.png"/>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Grid.Row="0" Text="条码信息" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="30,0,0,0"/>
|
|
|
|
|
<TextBox Text="{Binding TagCode}" FontSize="24" Grid.Row="1" Width="240" Height="70" Margin="10" VerticalContentAlignment="Center" HorizontalAlignment="Center" Padding="5">
|
|
|
|
|
<TextBox.Template>
|
|
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
|
|
<Border Background="White" BorderBrush="White" BorderThickness="1" CornerRadius="10">
|
|
|
|
|
<ScrollViewer x:Name="PART_ContentHost" />
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</TextBox.Template>
|
|
|
|
|
</TextBox>
|
|
|
|
|
<TextBlock Grid.Row="0" Text="条码总数" FontSize="18" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="30,0,0,0"/>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="{Binding TagAmount}" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="个" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
<Border Grid.Column="1" CornerRadius="10" Margin="3">
|
|
|
|
|
<Border.Background>
|
|
|
|
|
<ImageBrush ImageSource="/Templates/image/right.png"/>
|
|
|
|
|
<ImageBrush ImageSource="/Templates/image/left.png"/>
|
|
|
|
|
</Border.Background>
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
|
<RowDefinition Height="2*"/>
|
|
|
|
|
<RowDefinition Height="3*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<TextBlock Grid.Row="0" Text="条码总数" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="30,0,0,0"/>
|
|
|
|
|
<StackPanel Grid.Row="1" Orientation="Horizontal" HorizontalAlignment="Center" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="{Binding TagAmount}" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="个" FontSize="24" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</StackPanel>
|
|
|
|
|
<TextBlock Grid.Row="0" Text="条码信息" FontSize="18" Foreground="#31446E" VerticalAlignment="Center" HorizontalAlignment="Left" Margin="30,0,0,0"/>
|
|
|
|
|
<TextBox Text="{Binding TagCode}" FontSize="24" Grid.Row="1" Width="200" Height="70" Margin="10" VerticalContentAlignment="Center" HorizontalAlignment="Center">
|
|
|
|
|
<TextBox.Template>
|
|
|
|
|
<ControlTemplate TargetType="TextBox">
|
|
|
|
|
<Border Background="White" BorderBrush="White" BorderThickness="1" CornerRadius="10">
|
|
|
|
|
<ScrollViewer x:Name="PART_ContentHost" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</TextBox.Template>
|
|
|
|
|
</TextBox>
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
|
</Grid>
|
|
|
|
|
</Border>
|
|
|
|
|
|
|
|
|
@ -104,10 +106,16 @@
|
|
|
|
|
<Border Grid.Row="1" BorderBrush="Red" BorderThickness="0" Margin="10,5">
|
|
|
|
|
<lvc:CartesianChart Series="{Binding RecogEfficiency, UpdateSourceTrigger=PropertyChanged}">
|
|
|
|
|
<lvc:CartesianChart.AxisX>
|
|
|
|
|
<lvc:Axis Labels="{Binding AxisX}" FontSize="15" Foreground="#0288d1" MinValue="0"/>
|
|
|
|
|
<lvc:Axis Labels="{Binding AxisX}" FontSize="15" Foreground="#0288d1" MinValue="0" Title="小时"/>
|
|
|
|
|
</lvc:CartesianChart.AxisX>
|
|
|
|
|
<lvc:CartesianChart.AxisY>
|
|
|
|
|
<lvc:Axis FontSize="15" Foreground="#0288d1"/>
|
|
|
|
|
<lvc:Axis FontSize="15" Foreground="#0288d1" Title="数量" MinValue="0">
|
|
|
|
|
<!-- 自定义分割器以确保刻度为整数 -->
|
|
|
|
|
<lvc:Axis.Separator>
|
|
|
|
|
<lvc:Separator Step="20"/>
|
|
|
|
|
<!-- 设置刻度步长为整数 -->
|
|
|
|
|
</lvc:Axis.Separator>
|
|
|
|
|
</lvc:Axis>
|
|
|
|
|
</lvc:CartesianChart.AxisY>
|
|
|
|
|
|
|
|
|
|
</lvc:CartesianChart>
|
|
|
|
@ -142,7 +150,7 @@
|
|
|
|
|
</Grid.ColumnDefinitions>
|
|
|
|
|
<Border Grid.Column="0" CornerRadius="10" Background="#EBF4FD" Margin="10">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding ScanItems}" Background="Transparent"
|
|
|
|
|
FontSize="16" ColumnHeaderHeight="35"
|
|
|
|
|
FontSize="18" ColumnHeaderHeight="35"
|
|
|
|
|
RowHeight="31" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
|
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Hidden"
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" HorizontalAlignment="Center"
|
|
|
|
|