From d1c627942dda45f0b6908fdcc41920f76d87a8f1 Mon Sep 17 00:00:00 2001 From: "Robin_PC\\robin" <3504557@qq.com> Date: Wed, 18 Nov 2026 19:22:09 +0800 Subject: [PATCH] . --- .../SegmentProductionAuto_/SegmentProductionAutoForm.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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))