|
|
|
@ -6,12 +6,33 @@
|
|
|
|
|
xmlns:materialDesign="http://materialdesigninxaml.net/winfx/xaml/themes"
|
|
|
|
|
xmlns:local="clr-namespace:Aucma.Core.ProductOffLine.Views"
|
|
|
|
|
xmlns:cvt="clr-namespace:Aucma.Core.ProductOffLine.ConvertTo"
|
|
|
|
|
mc:Ignorable="d"
|
|
|
|
|
mc:Ignorable="d" FontFamily="Microsoft YaHei" Background="#1152AC"
|
|
|
|
|
d:DesignHeight="450" d:DesignWidth="800">
|
|
|
|
|
|
|
|
|
|
<UserControl.Resources>
|
|
|
|
|
<cvt:MultiBindingConverter x:Key="QueryConvert"></cvt:MultiBindingConverter>
|
|
|
|
|
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
</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"/>
|
|
|
|
@ -19,12 +40,40 @@
|
|
|
|
|
<!--<Setter Property="Background" Value="#dddddd"/>
|
|
|
|
|
<Setter Property="Foreground" Value="Black"/>-->
|
|
|
|
|
<!--<Setter Property="BorderThickness" Value="1" />-->
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#dddddd" />
|
|
|
|
|
<Setter Property="Height" Value="30"/>
|
|
|
|
|
<Setter Property="FontSize" Value="14"/>
|
|
|
|
|
<Setter Property="Height" Value="40"/>
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
<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="#4285DE" />
|
|
|
|
|
<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>
|
|
|
|
|
</UserControl.Resources>
|
|
|
|
|
|
|
|
|
|
<Border Grid.Row="1" Grid.Column="1" BorderBrush="#0288d1" BorderThickness="2" CornerRadius="5" Background="Transparent" Margin="5">
|
|
|
|
|
<Grid>
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
@ -35,8 +84,8 @@
|
|
|
|
|
<Border Grid.Row="0" BorderBrush="#0288d1" BorderThickness="0,0,0,1" CornerRadius="0" Background="Transparent" Margin="1,1,5,5" >
|
|
|
|
|
<TextBlock Text="扫描记录" FontSize="20" FontWeight="Bold" Foreground="#0288d1" VerticalAlignment="Center" HorizontalAlignment="Center"/>
|
|
|
|
|
</Border>
|
|
|
|
|
<Button x:Name="btn1" Content="入库记录" HorizontalAlignment="Left" Margin="37,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF1752E1" Click="btn1_Click" />
|
|
|
|
|
<Button x:Name="btn2" Content="型号汇总" HorizontalAlignment="Left" Margin="135,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF384E83" Click="btn2_Click" />
|
|
|
|
|
<Button x:Name="btn1" Content="入库记录" HorizontalAlignment="Left" Margin="37,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF1752E1" Click="btn1_Click" FontSize="20"/>
|
|
|
|
|
<Button x:Name="btn2" Content="型号汇总" HorizontalAlignment="Left" Margin="170,13,0,0" Grid.Row="1" VerticalAlignment="Top" RenderTransformOrigin="0.204,0.551" Background="#FF384E83" Click="btn2_Click" FontSize="20"/>
|
|
|
|
|
<Border x:Name="border1" Grid.Row="1" Visibility="Visible" BorderBrush="#0288d1" BorderThickness="1" CornerRadius="5" Background="Transparent" Margin="1,50,5,5">
|
|
|
|
|
<Grid Margin="10,5">
|
|
|
|
|
<Grid.RowDefinitions>
|
|
|
|
@ -44,12 +93,11 @@
|
|
|
|
|
<RowDefinition Height="8*"/>
|
|
|
|
|
</Grid.RowDefinitions>
|
|
|
|
|
<WrapPanel Grid.Row="0" HorizontalAlignment="Left" VerticalAlignment="Center">
|
|
|
|
|
<TextBlock Text="开始时间" Margin="10 0" Foreground="White" FontSize="15" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="开始时间" Margin="10 0" Foreground="White" FontSize="20" VerticalAlignment="Center"/>
|
|
|
|
|
<DatePicker
|
|
|
|
|
x:Name="BeginTime" Foreground="DarkBlue"
|
|
|
|
|
Width="200" Margin="10 0" Text="2023-10-09"
|
|
|
|
|
materialDesign:CalendarAssist.IsHeaderVisible="False"
|
|
|
|
|
materialDesign:HintAssist.Hint="开始日期">
|
|
|
|
|
x:Name="BeginTime" FontSize="16"
|
|
|
|
|
Width="200" Margin="10 0" BorderBrush="White"
|
|
|
|
|
materialDesign:CalendarAssist.IsHeaderVisible="False">
|
|
|
|
|
<DatePicker.SelectedDate>
|
|
|
|
|
<Binding
|
|
|
|
|
Path="FutureValidatingDate"
|
|
|
|
@ -60,12 +108,11 @@
|
|
|
|
|
</DatePicker.SelectedDate>
|
|
|
|
|
</DatePicker>
|
|
|
|
|
|
|
|
|
|
<TextBlock Text="结束时间" Margin="10 0" Foreground="White" FontSize="15" VerticalAlignment="Center"/>
|
|
|
|
|
<TextBlock Text="结束时间" Margin="10 0" Foreground="White" FontSize="20" VerticalAlignment="Center"/>
|
|
|
|
|
<DatePicker
|
|
|
|
|
x:Name="EndTime" Margin="10 0" Text="2023-10-09"
|
|
|
|
|
Width="200" Foreground="DarkBlue"
|
|
|
|
|
materialDesign:CalendarAssist.IsHeaderVisible="False"
|
|
|
|
|
materialDesign:HintAssist.Hint="结束日期">
|
|
|
|
|
x:Name="EndTime" Margin="10 0"
|
|
|
|
|
Width="200" BorderBrush="White" FontSize="16"
|
|
|
|
|
materialDesign:CalendarAssist.IsHeaderVisible="False">
|
|
|
|
|
<DatePicker.SelectedDate>
|
|
|
|
|
<Binding
|
|
|
|
|
Path="FutureValidatingDate"
|
|
|
|
@ -89,35 +136,20 @@
|
|
|
|
|
</Button>
|
|
|
|
|
</WrapPanel>
|
|
|
|
|
<UniformGrid Grid.Row="1">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding ListItems}" Background="Transparent"
|
|
|
|
|
<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="White" >
|
|
|
|
|
<!-- 表头剧中-->
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center">
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
|
</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*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductOrderNo}" Header="订单编号" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductSNCode}" Header="产品条码" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductModel}" Header="产品型号" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductRemark}" Header="特征信息" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductScanTime,StringFormat=\{0:yyyy-MM-dd HH:mm\}}" Header="扫描时间" Width="3*"/>
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
Foreground="White" >
|
|
|
|
|
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="序号" Width="1*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductOrderNo}" Header="订单编号" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductSNCode}" Header="产品条码" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductModel}" Header="产品型号" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductRemark}" Header="特征信息" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductScanTime,StringFormat=\{0:yyyy-MM-dd HH:mm\}}" Header="扫描时间" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|
</UniformGrid>
|
|
|
|
@ -130,32 +162,18 @@
|
|
|
|
|
</Grid.RowDefinitions>-->
|
|
|
|
|
|
|
|
|
|
<UniformGrid Grid.Row="1">
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding TotalItem}" Background="Transparent"
|
|
|
|
|
<DataGrid Grid.Row="0" ItemsSource="{Binding TotalItem}" 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="White" >
|
|
|
|
|
<!-- 表头剧中-->
|
|
|
|
|
<DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<Style TargetType="DataGridColumnHeader">
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center">
|
|
|
|
|
</Setter>
|
|
|
|
|
<Setter Property="Background" Value="Transparent" />
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.ColumnHeaderStyle>
|
|
|
|
|
<DataGrid.CellStyle>
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGridCell">
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Center"/>
|
|
|
|
|
</Style>
|
|
|
|
|
</DataGrid.CellStyle>
|
|
|
|
|
ScrollViewer.VerticalScrollBarVisibility="Hidden" BorderThickness="0" CanUserAddRows="False" SelectionMode="Single" IsReadOnly="True"
|
|
|
|
|
Foreground="White" >
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="序号" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductCode}" Header="物料编码" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductModel}" Header="产品型号" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductRemark}" Header="标签特征" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Count}" Header="产品数量" Width="3*" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding No}" Header="序号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductCode}" Header="物料编码" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductModel}" Header="产品型号" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding ProductRemark}" Header="标签特征" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
<DataGridTextColumn Binding="{Binding Count}" Header="产品数量" Width="3*" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" />
|
|
|
|
|
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
|