diff --git a/B3DealerClient/BL/CarcassSaleOutBL.cs b/B3DealerClient/BL/CarcassSaleOutBL.cs index 2db0038..03a685e 100644 --- a/B3DealerClient/BL/CarcassSaleOutBL.cs +++ b/B3DealerClient/BL/CarcassSaleOutBL.cs @@ -29,7 +29,7 @@ namespace B3DealerClient.BL if (list.Count == 0) return; var query = new DQueryDom(new JoinAlias(typeof(CarcassSaleOut_Record))); - query.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("DetailID"), list.Select(x => DQExpression.Value(x.ID)).ToArray())); + query.Where.Conditions.Add(DQCondition.InList(DQExpression.Field("DetailID"), list.Select(x => DQExpression.Value(x.DetailID)).ToArray())); query.Columns.Add(DQSelectColumn.Field("DetailID")); query.Columns.Add(DQSelectColumn.Sum("NetWeight")); query.Columns.Add(DQSelectColumn.Sum("SecondNumber")); diff --git a/B3DealerClient/Windows/CarcassInStoreWindow_/CarcassInStoreWindow.xaml b/B3DealerClient/Windows/CarcassInStoreWindow_/CarcassInStoreWindow.xaml index 164a351..4c616ab 100644 --- a/B3DealerClient/Windows/CarcassInStoreWindow_/CarcassInStoreWindow.xaml +++ b/B3DealerClient/Windows/CarcassInStoreWindow_/CarcassInStoreWindow.xaml @@ -185,7 +185,7 @@ - + diff --git a/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml b/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml index 01d3267..eb2c244 100644 --- a/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml +++ b/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml @@ -69,7 +69,7 @@ @@ -153,7 +153,7 @@ - + diff --git a/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs b/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs index 73fd58c..67c434e 100644 --- a/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs +++ b/B3DealerClient/Windows/CarcassSaleOutWindow_/CarcassSaleOutWindow.xaml.cs @@ -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) diff --git a/B3DealerClient/Windows/FreshInStoreWindow_/FreshInStoreWindow.xaml b/B3DealerClient/Windows/FreshInStoreWindow_/FreshInStoreWindow.xaml index cea2966..7999223 100644 --- a/B3DealerClient/Windows/FreshInStoreWindow_/FreshInStoreWindow.xaml +++ b/B3DealerClient/Windows/FreshInStoreWindow_/FreshInStoreWindow.xaml @@ -162,7 +162,7 @@ - + diff --git a/B3DealerClient/Windows/FreshSaleOutWindow_/FreshSaleOutWindow.xaml b/B3DealerClient/Windows/FreshSaleOutWindow_/FreshSaleOutWindow.xaml index 4498745..d896dda 100644 --- a/B3DealerClient/Windows/FreshSaleOutWindow_/FreshSaleOutWindow.xaml +++ b/B3DealerClient/Windows/FreshSaleOutWindow_/FreshSaleOutWindow.xaml @@ -67,7 +67,7 @@ @@ -144,7 +144,7 @@ - +