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