Browse Source

需求单No.158594 判断该存货在MES【存货】{自定义执行标准}中是否有值,若无值时在客户端打码时给予报错:未配置自定义执行标准,请联系管理员处理!

master
yibo 4 years ago
parent
commit
c4a8e0e072
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs

+ 2
- 0
ButcherFactory.Form/SegmentProductionAuto_/SegmentProductionAutoForm.cs View File

@ -356,6 +356,8 @@ namespace ButcherFactory.SegmentProductionAuto_
private void InsertSegmentProduction(ClientGoodsSet_Detail detail, decimal weight) 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); var pics = int.Parse(numberInput.Text);
if (pics <= 0) if (pics <= 0)
pics = 1; pics = 1;


Loading…
Cancel
Save