修改已知问题

This commit is contained in:
2026-01-29 22:15:34 +08:00
parent b940170607
commit 88483b38ad
13 changed files with 860 additions and 378 deletions

View File

@@ -181,10 +181,33 @@
Margin="0,10,0,10"
AutoGenerateColumns="False"
CanUserAddRows="False"
FontSize="15"
FontSize="16"
IsReadOnly="True"
ItemsSource="{Binding Items}"
RowHeight="34">
<DataGrid.RowStyle>
<Style BasedOn="{StaticResource {x:Type DataGridRow}}" TargetType="DataGridRow">
<Setter Property="Background" Value="LimeGreen" />
<Style.Triggers>
<DataTrigger Binding="{Binding OutTime.Year}" Value="1970">
<Setter Property="Background" Value="White" />
</DataTrigger>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#FFBEE6FD" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.RowStyle>
<DataGrid.CellStyle>
<Style BasedOn="{StaticResource {x:Type DataGridCell}}" TargetType="DataGridCell">
<Setter Property="Background" Value="{Binding RelativeSource={RelativeSource AncestorType=DataGridRow}, Path=Background}" />
<Style.Triggers>
<Trigger Property="IsSelected" Value="True">
<Setter Property="Background" Value="#FFBEE6FD" />
</Trigger>
</Style.Triggers>
</Style>
</DataGrid.CellStyle>
<DataGrid.ColumnHeaderStyle>
<Style TargetType="DataGridColumnHeader">
<Setter Property="FontSize" Value="18" />
@@ -202,11 +225,11 @@
Binding="{Binding RawName}"
Header="原料名称" />
<DataGridTextColumn
Width="260"
Width="280"
Binding="{Binding InBagCode}"
Header="内袋二维码" />
<DataGridTextColumn
Width="260"
Width="300"
Binding="{Binding BoxCode}"
Header="外箱二维码" />
<DataGridTextColumn
@@ -216,19 +239,19 @@
<DataGridTextColumn
Width="100"
Binding="{Binding ShelfLife}"
Header="保质期()" />
Header="保质期()" />
<DataGridTextColumn
Width="100"
Width="120"
Binding="{Binding Weight}"
Header="称重重量(g)" />
<DataGridTextColumn
Width="100"
Binding="{Binding RemainWeight}"
Header="剩余重量(g)" />
<DataGridTextColumn
Width="120"
Binding="{Binding RemainWeight, StringFormat=F5}"
Header="剩余重量(Kg)" />
<DataGridTextColumn
Width="140"
Binding="{Binding StockWeight}"
Header="入库总重量(g)" />
Header="入库总重量(Kg)" />
<DataGridTextColumn
Width="160"
Binding="{Binding WeightTime, StringFormat=yyyy-MM-dd HH:mm:ss}"
@@ -245,10 +268,10 @@
Width="160"
Binding="{Binding OutTime, StringFormat=yyyy-MM-dd HH:mm:ss}"
Header="出库时间" />
<DataGridTextColumn
<!--<DataGridTextColumn
Width="160"
Binding="{Binding CreateTime, StringFormat=yyyy-MM-dd HH:mm:ss}"
Header="创建时间" />
Header="创建时间" />-->
</DataGrid.Columns>
</DataGrid>