Browse Source

需求单No.143247 、【仓库客户端】打开界面时,默认上次打开界面中勾选的片/头

master
wangshaoyang 6 years ago
parent
commit
3b0201b7ca
3 changed files with 10 additions and 1 deletions
  1. +2
    -0
      B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutConfig.cs
  2. +1
    -1
      B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml
  3. +7
    -0
      B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs

+ 2
- 0
B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutConfig.cs View File

@ -12,5 +12,7 @@ namespace B3DealerClient.Windows.CarcassSaleOutWindow_
public NameIDPair Store { get; set; } public NameIDPair Store { get; set; }
public decimal? HookWeight { get; set; } public decimal? HookWeight { get; set; }
public bool? IsPic { get; set; }
} }
} }

+ 1
- 1
B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml View File

@ -214,7 +214,7 @@
<TextBlock Text="扣钩重"/> <TextBlock Text="扣钩重"/>
<TextBox x:Name="hook" Text="{Binding HookWeight,StringFormat=\{0:0.######\}}" PreviewMouseDown="NumberBox_PreviewMouseDown"/> <TextBox x:Name="hook" Text="{Binding HookWeight,StringFormat=\{0:0.######\}}" PreviewMouseDown="NumberBox_PreviewMouseDown"/>
</WrapPanel> </WrapPanel>
<local:SwitchCheckBox x:Name="weightUnit" HorizontalAlignment="Right" Text="头" CheckedText="片" Width="120" Margin="10,0"/>
<local:SwitchCheckBox x:Name="weightUnit" HorizontalAlignment="Right" Text="头" CheckedText="片" Width="120" Margin="10,0" Checked="weightUnit_Checked"/>
</StackPanel> </StackPanel>
<StackPanel Grid.Row="2" Grid.Column="2"> <StackPanel Grid.Row="2" Grid.Column="2">


+ 7
- 0
B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs View File

@ -59,6 +59,7 @@ namespace B3DealerClient.Windows.CarcassSaleOutWindow_
if (config.Store != null) if (config.Store != null)
context.Store = config.Store; context.Store = config.Store;
context.HookWeight = config.HookWeight; context.HookWeight = config.HookWeight;
weightUnit.IsChecked = config.IsPic;
pageSize = (int)customerPanel.ActualHeight / 60; pageSize = (int)customerPanel.ActualHeight / 60;
} }
@ -302,5 +303,11 @@ namespace B3DealerClient.Windows.CarcassSaleOutWindow_
context.Dmo = context.Dmo; context.Dmo = context.Dmo;
MessageBox.Show("配货完成"); MessageBox.Show("配货完成");
} }
private void weightUnit_Checked(object sender, RoutedEventArgs e)
{
config.IsPic = weightUnit.IsChecked;
XmlUtil.SerializerObjToFile(config);
}
} }
} }

Loading…
Cancel
Save