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.
261 lines
14 KiB
XML
261 lines
14 KiB
XML
<UserControl x:Class="Aucma.Core.Palletiz.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.Palletiz.Views"
|
|
mc:Ignorable="d"
|
|
d:DesignHeight="800" FontFamily="Microsoft YaHei"
|
|
d:DesignWidth="1000" >
|
|
<UserControl.Resources>
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
<Setter Property="FontSize" Value="30" />
|
|
</Style>
|
|
|
|
<Style TargetType="DataGrid">
|
|
<!--网格线颜色-->
|
|
<Setter Property="CanUserResizeColumns" Value="false"/>
|
|
<Setter Property="Background" Value="#1152AC" />
|
|
<Setter Property="BorderBrush" Value="#4285DE" />
|
|
<Setter Property="Foreground" Value="White"/>
|
|
<Setter Property="HorizontalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#4285DE"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Setter Property="VerticalGridLinesBrush">
|
|
<Setter.Value>
|
|
<SolidColorBrush Color="#1152AC"/>
|
|
</Setter.Value>
|
|
</Setter>
|
|
</Style>
|
|
<!--列头标题栏样式-->
|
|
<Style TargetType="DataGridColumnHeader">
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
<Setter Property="BorderBrush" Value="#dddddd" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="14"/>
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<Setter Property="Foreground" Value="White"/>
|
|
</Style>
|
|
|
|
<!--单元格样式-->
|
|
<Style TargetType="DataGridCell">
|
|
<Setter Property="FocusVisualStyle" Value="{x:Null}" />
|
|
<Setter Property="BorderThickness" Value="0" />
|
|
<Setter Property="BorderBrush" Value="Gray" />
|
|
<Setter Property="Height" Value="40"/>
|
|
<Setter Property="FontSize" Value="12"/>
|
|
<Setter Property="Template">
|
|
<Setter.Value>
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
</Grid>
|
|
</ControlTemplate>
|
|
</Setter.Value>
|
|
</Setter>
|
|
<Style.Triggers>
|
|
<Trigger Property="IsSelected" Value="True">
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
<Setter Property="Foreground" Value="#dddddd"/>
|
|
</Trigger>
|
|
</Style.Triggers>
|
|
|
|
</Style>
|
|
|
|
<Style TargetType="{x:Type DatePickerTextBox}">
|
|
<Setter Property="Background" Value="#0288d1" />
|
|
</Style>
|
|
</UserControl.Resources>
|
|
|
|
<Grid Margin="5 15 5 5">
|
|
<Grid.Resources>
|
|
<Style TargetType="TextBlock">
|
|
<Setter Property="VerticalAlignment" Value="Center"/>
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
<Setter Property="FontSize" Value="16"/>
|
|
<Setter Property="FontFamily" Value="Microsoft YaHei"/>
|
|
</Style>
|
|
<Style TargetType="Border">
|
|
<Setter Property="BorderBrush" Value="#0288d1"/>
|
|
<Setter Property="BorderThickness" Value="1"/>
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="0.5*"/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0">
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
<RowDefinition/>
|
|
</Grid.RowDefinitions>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Row="0" Grid.Column="0" Background="#1157b9">
|
|
<TextBlock Text="当前工位" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.RowSpan="3" Grid.Column="0" Background="#1157b9">
|
|
<TextBlock Text="产品分垛" Foreground="White" FontWeight="Bold" FontSize="30"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="1" Background="#1157b9">
|
|
<TextBlock Text="产品条码" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="1" Background="#1157b9">
|
|
<TextBlock Text="产品型号" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="2" Grid.Column="1" Background="#1157b9">
|
|
<TextBlock Text="订单数量" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="3" Grid.Column="1" Background="#1157b9">
|
|
<TextBlock Text="提示信息" Foreground="White" FontSize="20" />
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="2">
|
|
<TextBlock Text="312799000093D8U0050" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="2">
|
|
<TextBlock Text="SC-279,C,特许" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="2" Grid.Column="2">
|
|
<TextBlock Text="76" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="3" Grid.Column="2" Grid.ColumnSpan="3">
|
|
<TextBlock Text="获取信息成功3127991000093D8U0050 返回值 : Y.上传条码失败E,条码重复,上传条码失败E,条码重复上传" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="3" Background="#1157b9">
|
|
<TextBlock Text="扫描时间" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="3" Background="#1157b9">
|
|
<TextBlock Text="订单编号" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="2" Grid.Column="3" Background="#1157b9">
|
|
<TextBlock Text="订单已上传" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="4">
|
|
<TextBlock Text="2023-08-29 13:10:53" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.Column="4">
|
|
<TextBlock Text="000011203687" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="2" Grid.Column="4">
|
|
<TextBlock Text="48" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="0" Grid.Column="5" Background="#1157b9">
|
|
<TextBlock Text="入库数量" Foreground="White" FontSize="20"/>
|
|
</Border>
|
|
<Border Grid.Row="1" Grid.RowSpan="2" Grid.Column="5">
|
|
<TextBlock Text="255" Foreground="White" FontSize="40" FontWeight="Bold"/>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="1">
|
|
<Grid>
|
|
<Grid.Resources>
|
|
<Style TargetType="Border">
|
|
<Setter Property="BorderBrush" Value="#0288d1"/>
|
|
<Setter Property="BorderThickness" Value="1 0 0 1"/>
|
|
</Style>
|
|
</Grid.Resources>
|
|
<Grid.ColumnDefinitions>
|
|
<ColumnDefinition/>
|
|
<ColumnDefinition/>
|
|
</Grid.ColumnDefinitions>
|
|
<Border Grid.Column="0" >
|
|
<Grid >
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0 0 0 1" CornerRadius="0" Margin="1,1,5,5" Background="#1157b9" >
|
|
<TextBlock Text="当日小时产量统计" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" >
|
|
<lvc:CartesianChart Series="{Binding Achievement, UpdateSourceTrigger=PropertyChanged}">
|
|
<lvc:CartesianChart.AxisX>
|
|
<lvc:Axis Labels="{Binding ProductionHourList}" FontSize="15">
|
|
<lvc:Axis.Separator>
|
|
<lvc:Separator Visibility="Hidden" StrokeThickness="1.5" StrokeDashArray="0" Stroke="#404F56" >
|
|
</lvc:Separator>
|
|
</lvc:Axis.Separator>
|
|
</lvc:Axis>
|
|
</lvc:CartesianChart.AxisX>
|
|
<lvc:CartesianChart.AxisY>
|
|
<lvc:Axis FontSize="15">
|
|
<lvc:Axis.Separator>
|
|
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" Step="1" >
|
|
</lvc:Separator>
|
|
</lvc:Axis.Separator>
|
|
</lvc:Axis>
|
|
</lvc:CartesianChart.AxisY>
|
|
</lvc:CartesianChart>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Column="1" >
|
|
<Grid>
|
|
<Grid.RowDefinitions>
|
|
<RowDefinition Height="1*"/>
|
|
<RowDefinition Height="9*"/>
|
|
</Grid.RowDefinitions>
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0 0 0 1" CornerRadius="0" Background="#1157b9" Margin="1,1,5,5" >
|
|
<TextBlock Text="当日型号产量统计" FontSize="20" FontWeight="Bold" Foreground="White" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
</Border>
|
|
<Border Grid.Row="1" >
|
|
<lvc:CartesianChart Series="{Binding ModelStatistics, UpdateSourceTrigger=PropertyChanged}" Margin="5">
|
|
<lvc:CartesianChart.AxisX>
|
|
<lvc:Axis Labels="{Binding MaterialNameList}" FontSize="15">
|
|
<lvc:Axis.Separator>
|
|
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="0" Stroke="#404F56" >
|
|
</lvc:Separator>
|
|
</lvc:Axis.Separator>
|
|
</lvc:Axis>
|
|
</lvc:CartesianChart.AxisX>
|
|
<lvc:CartesianChart.AxisY>
|
|
<lvc:Axis FontSize="15">
|
|
<lvc:Axis.Separator>
|
|
<lvc:Separator Visibility="Hidden" StrokeThickness="1" StrokeDashArray="3" Stroke="#404F56" Step="1">
|
|
</lvc:Separator>
|
|
</lvc:Axis.Separator>
|
|
</lvc:Axis>
|
|
</lvc:CartesianChart.AxisY>
|
|
</lvc:CartesianChart>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
</Grid>
|
|
</Border>
|
|
<Border Grid.Row="2">
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding PlanInfoDataGrid}"
|
|
ColumnHeaderHeight="35" Height="{Binding Path=ActualHeight, ElementName=ScanPanel}"
|
|
RowHeight="50" AutoGenerateColumns="False" RowHeaderWidth="0"
|
|
GridLinesVisibility="None" ScrollViewer.HorizontalScrollBarVisibility="Auto"
|
|
ScrollViewer.VerticalScrollBarVisibility="Auto" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
Foreground="White" >
|
|
<!--修改选中字体颜色-->
|
|
<DataGrid.Columns>
|
|
<DataGridTextColumn Binding="{Binding PlanCode}" Header="产品条码" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding MaterialBarCode}" Header="产品型号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding MaterialCode}" Header="产品编码" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
<DataGridTextColumn Binding="{Binding MaterialName}" Header="订单号" Width="2*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
<DataGridTextColumn Binding="{Binding EnterSpace}" Header="特征信息" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
<DataGridTextColumn Binding="{Binding Status,StringFormat=\{0:yyyy-MM-dd HH:mm\}}" Header="扫描时间" Width="*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
</DataGrid.Columns>
|
|
</DataGrid>
|
|
</Border>
|
|
</Grid>
|
|
</UserControl>
|