Robin_PC\robin 3 days ago
parent
commit
d1c627942d
1 changed files with 5 additions and 1 deletions
  1. +5
    -1
      ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs

+ 5
- 1
ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs View File

@ -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))


Loading…
Cancel
Save