49 lines
2.8 KiB
Plaintext
49 lines
2.8 KiB
Plaintext
|
|
<UserControl x:Class="YY.Admin.Views.RawMaterialEntry.TareStrategyPickerDialogView"
|
||
|
|
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
|
||
|
|
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
|
||
|
|
xmlns:hc="https://handyorg.github.io/handycontrol"
|
||
|
|
xmlns:prism="http://prismlibrary.com/"
|
||
|
|
prism:ViewModelLocator.AutoWireViewModel="True"
|
||
|
|
Width="820" MinHeight="420">
|
||
|
|
|
||
|
|
<Grid Background="{DynamicResource ThirdlyRegionBrush}">
|
||
|
|
<Grid.RowDefinitions>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
<RowDefinition Height="*"/>
|
||
|
|
<RowDefinition Height="Auto"/>
|
||
|
|
</Grid.RowDefinitions>
|
||
|
|
|
||
|
|
<TextBlock Margin="20,16,20,8" Text="选择皮重策略"
|
||
|
|
FontSize="16" FontWeight="SemiBold"
|
||
|
|
Foreground="{DynamicResource PrimaryTextBrush}"/>
|
||
|
|
|
||
|
|
<DataGrid Grid.Row="1" Margin="16,0"
|
||
|
|
ItemsSource="{Binding Records}"
|
||
|
|
SelectedItem="{Binding SelectedStrategy}"
|
||
|
|
AutoGenerateColumns="False"
|
||
|
|
IsReadOnly="True"
|
||
|
|
CanUserAddRows="False"
|
||
|
|
HeadersVisibility="Column">
|
||
|
|
<DataGrid.Columns>
|
||
|
|
<DataGridTextColumn Header="物料规格" Binding="{Binding MaterialSpec}" Width="100"/>
|
||
|
|
<DataGridTextColumn Header="包装物重量" Binding="{Binding TareWeight}" Width="100"/>
|
||
|
|
<DataGridTextColumn Header="托盘重量" Binding="{Binding PalletWeight}" Width="100"/>
|
||
|
|
<DataGridTextColumn Header="单位" Binding="{Binding UnitName}" Width="80"/>
|
||
|
|
<DataGridTextColumn Header="生效开始" Binding="{Binding EffectiveStartDate, StringFormat=yyyy-MM-dd}" Width="110"/>
|
||
|
|
<DataGridTextColumn Header="生效截止" Binding="{Binding EffectiveEndDate, StringFormat=yyyy-MM-dd}" Width="110"/>
|
||
|
|
</DataGrid.Columns>
|
||
|
|
</DataGrid>
|
||
|
|
|
||
|
|
<StackPanel Grid.Row="2" Margin="16,12">
|
||
|
|
<TextBlock Text="{Binding SelectedStrategyDisplay}"
|
||
|
|
Foreground="{DynamicResource SecondaryTextBrush}"
|
||
|
|
TextWrapping="Wrap" Margin="0,0,0,10"/>
|
||
|
|
<StackPanel Orientation="Horizontal" HorizontalAlignment="Center">
|
||
|
|
<Button Content="取消" Command="{Binding CancelCommand}" Style="{StaticResource ButtonDefault}" Width="100" Margin="0,0,10,0"/>
|
||
|
|
<Button Content="使用自动匹配" Command="{Binding UseAutoMatchCommand}" Style="{StaticResource ButtonDefault}" Width="120" Margin="0,0,10,0"/>
|
||
|
|
<Button Content="确认选择" Command="{Binding ConfirmCommand}" Style="{StaticResource ButtonPrimary}" Width="100"/>
|
||
|
|
</StackPanel>
|
||
|
|
</StackPanel>
|
||
|
|
</Grid>
|
||
|
|
</UserControl>
|