diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs index 38ed249..74bcc8a 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs @@ -356,6 +356,8 @@ namespace ButcherFactory.SegmentProductionAuto_ private void InsertSegmentProduction(ClientGoodsSet_Detail detail, decimal weight) { + if (detail.GoodsType.HasValue && detail.GoodsType != 0 && string.IsNullOrEmpty(detail.Goods_CustomerDefine)) + throw new Exception("未配置自定义执行标准,请联系管理员处理!"); var pics = int.Parse(numberInput.Text); if (pics <= 0) pics = 1;