|
|
|
@ -288,20 +288,25 @@ namespace B3DealerClient.Windows.CarcassSaleOutWindow_ |
|
|
|
|
|
|
|
var targets = context.DmoList.Where(x => x.ID == context.Dmo.ID); |
|
|
|
var needConfirm = targets.Any(x => (x.AlreadyNumber ?? 0) == 0 || (x.SecondNumber ?? 0) == 0); |
|
|
|
bool isShow = false; |
|
|
|
if (needConfirm) |
|
|
|
{ |
|
|
|
var confirm = MessageBox.Show("存在未配货的明细,确认配货完成?", "配货完成确认", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
|
|
|
if (confirm != MessageBoxResult.OK) |
|
|
|
return; |
|
|
|
isShow = true; |
|
|
|
} |
|
|
|
var r = MessageBox.Show("确认配货完成?", "配货完成确认", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
|
|
|
if (r != MessageBoxResult.OK) |
|
|
|
return; |
|
|
|
if (!isShow) |
|
|
|
{ |
|
|
|
var r = MessageBox.Show("确认配货完成?", "配货完成确认", MessageBoxButton.OKCancel, MessageBoxImage.Question); |
|
|
|
if (r != MessageBoxResult.OK) |
|
|
|
return; |
|
|
|
} |
|
|
|
CarcassSaleOutBL.FinishAssign(context.Dmo.ID); |
|
|
|
foreach (var item in targets) |
|
|
|
item.AssignFinished = true; |
|
|
|
context.Dmo = context.Dmo; |
|
|
|
MessageBox.Show("配货完成"); |
|
|
|
//MessageBox.Show("配货完成");
|
|
|
|
} |
|
|
|
|
|
|
|
private void weightUnit_Click(object sender, RoutedEventArgs e) |
|
|
|
|