diff --git a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs index f3e64cc..0573e16 100644 --- a/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs +++ b/ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs @@ -373,7 +373,11 @@ namespace ButcherFactory.SegmentProductionAuto_ //#endif if (weight <= 0) throw new Exception("重量必须大于0"); - + if (minWeight > 0 && weight < minWeight) + { + MessageBox.Show(string.Format("重量:{0}小于最小重量:{1}", weight, minWeight)); + return; + } if (detail.StandardWeight.HasValue) { if (weight < (detail.StandardWeightLow ?? 0) || weight > (detail.StandardWeightUp ?? 0))