| | |
| | | //根据条码规则验证上料是否正确 |
| | | if (!item.RuleCode.IsNullOrEmpty()) |
| | | { |
| | | if (!Biz.CodeRule[item.RuleCode].IsNullOrEmpty()) |
| | | if (!Cache.CodeRule[item.RuleCode].IsNullOrEmpty()) |
| | | { |
| | | var result = Biz.CodeRule[item.RuleCode].Verify(input.SN); |
| | | var result = Cache.CodeRule[item.RuleCode].Verify(input.SN); |
| | | if (!result.IsSuccessed) |
| | | { |
| | | isOK = false; |
| | |
| | | { |
| | | if (!subItem.RULE_CODE.IsNullOrEmpty()) |
| | | { |
| | | if (!Biz.CodeRule[subItem.RULE_CODE].IsNullOrEmpty()) |
| | | if (!Cache.CodeRule[subItem.RULE_CODE].IsNullOrEmpty()) |
| | | { |
| | | var result = Biz.CodeRule[item.RuleCode].Verify(input.SN); |
| | | var result = Cache.CodeRule[item.RuleCode].Verify(input.SN); |
| | | //只要有一个替代料通过验证则可以上料 |
| | | if (result.IsSuccessed) |
| | | { |