|
|
|
@ -12,7 +12,8 @@
|
|
|
|
|
<Style x:Key="DataGridTextColumnCenterSytle" TargetType="{x:Type TextBlock}">
|
|
|
|
|
<!--<Setter Property="Height" Value="40"/>-->
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="VerticalAlignment" Value="Stretch" />
|
|
|
|
|
<Setter Property="HorizontalAlignment" Value="Left" />
|
|
|
|
|
</Style>
|
|
|
|
|
|
|
|
|
|
<Style TargetType="DataGrid">
|
|
|
|
@ -42,7 +43,7 @@
|
|
|
|
|
<Setter Property="HorizontalContentAlignment" Value="Center" />
|
|
|
|
|
<Setter Property="BorderBrush" Value="#dddddd" />
|
|
|
|
|
<Setter Property="Height" Value="50"/>
|
|
|
|
|
<Setter Property="FontSize" Value="18"/>
|
|
|
|
|
<Setter Property="FontSize" Value="16"/>
|
|
|
|
|
<Setter Property="Background" Value="#4285DE"/>
|
|
|
|
|
<Setter Property="Foreground" Value="White"/>
|
|
|
|
|
</Style>
|
|
|
|
@ -58,7 +59,7 @@
|
|
|
|
|
<Setter.Value>
|
|
|
|
|
<ControlTemplate TargetType="{x:Type DataGridCell}">
|
|
|
|
|
<Grid Background="{TemplateBinding Background}" >
|
|
|
|
|
<ContentPresenter HorizontalAlignment="Center" VerticalAlignment="Center" />
|
|
|
|
|
<ContentPresenter HorizontalAlignment="Left" VerticalAlignment="Center" />
|
|
|
|
|
</Grid>
|
|
|
|
|
</ControlTemplate>
|
|
|
|
|
</Setter.Value>
|
|
|
|
@ -172,7 +173,7 @@
|
|
|
|
|
HorizontalAlignment="Left" 不显示多余的空白列;
|
|
|
|
|
-->
|
|
|
|
|
<DataGrid x:Name="dgvMH" Height="{Binding Path=ActualHeight, ElementName=HeightPanel}"
|
|
|
|
|
HorizontalAlignment="Center" VerticalAlignment="Top" AlternationCount="2" RowHeaderWidth="0"
|
|
|
|
|
HorizontalAlignment="Left" VerticalAlignment="Top" AlternationCount="2" RowHeaderWidth="0"
|
|
|
|
|
ItemsSource="{Binding Datalist}" ColumnWidth="*" AutoGenerateColumns="False" IsReadOnly="True" CanUserAddRows="False" SelectionMode="Single"
|
|
|
|
|
SelectedItem="{Binding SelectedCells, Mode=OneWayToSource}">
|
|
|
|
|
<DataGrid.Columns>
|
|
|
|
@ -180,12 +181,13 @@
|
|
|
|
|
<DataGridTextColumn Width="1*" Binding="{Binding OrderCode}" Header="订单编号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="1*" Binding="{Binding ProductCode}" Header="产品编码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="2*" Binding="{Binding MaterialName}" Header="产品型号" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding LinerAmount}" Header="内胆码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding BoxAmount}" Header="箱体码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding PlanAmount}" Header="订单数量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding ErrorNum}" Header="异常量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding LinerAmount}" Header="内胆编码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding BoxAmount}" Header="箱体编码" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding PrintLinerAmount}" Header="内胆码
已打数量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding PrintBoxAmount}" Header="箱壳码
已打数量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding PrintBoxAmount}" Header="箱体码
已打数量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding ErrorNum}" Header="异常量" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}"/>
|
|
|
|
|
<DataGridTextColumn Width="*" Binding="{Binding CompleteAmount}" Header="剩余" ElementStyle="{StaticResource DataGridTextColumnCenterSytle}" Visibility="Collapsed" />
|
|
|
|
|
</DataGrid.Columns>
|
|
|
|
|
</DataGrid>
|
|
|
|
@ -246,7 +248,7 @@
|
|
|
|
|
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"/>
|
|
|
|
|
<Button
|
|
|
|
|
Background="#4285DE"
|
|
|
|
|
Content="追打" Margin="10 10 0 0" Width="100" Command="{Binding AppendPrintPrintCommand}" CommandParameter="{Binding ElementName=ProductNo,Path=Text}"
|
|
|
|
|
Content="追加" Margin="10 10 0 0" Width="100" Command="{Binding AppendPrintPrintCommand}" CommandParameter="{Binding ElementName=ProductNo,Path=Text}"
|
|
|
|
|
IsEnabled="{Binding DataContext.ControlsEnabled, RelativeSource={RelativeSource FindAncestor, AncestorType=Window}}"/>
|
|
|
|
|
<Button
|
|
|
|
|
Background="#4285DE"
|
|
|
|
|