| | |
| | | |
| | | var isOK = true; |
| | | //客户条码已绑定其他厂内条码 |
| | | if (!CustCSN.IsNullOrEmpty() && !CustCSN.FLOW_SN.IsNullOrEmpty() && CustCSN.FLOW_SN != FlowCSN.FLOW_SN) |
| | | if (isOK && !CustCSN.IsNullOrEmpty() && !CustCSN.FLOW_SN.IsNullOrEmpty() && CustCSN.FLOW_SN != FlowCSN.FLOW_SN) |
| | | { |
| | | CurStep.SetStatusMessage(StepStatus.Error, Biz.L("请扫描正确的客户标签")); |
| | | action.Data.ShortMsg = new("请扫描正确的客户标签", ShortMessage.Types.Failed); |
| | |
| | | action.LocaleMsg = new("MES.WorkAction.ThreeInOne.BindingOtherSN", CurPosition.CurWipSNs.First().SN, CustCSN.CUST_SN, CustCSN.FLOW_SN); |
| | | } |
| | | //客户条码不属于当前工单的客户 |
| | | if (!CustCSN.IsNullOrEmpty() && CustCSN.CUST_CODE.IsNullOrEmpty(CurPosition.WorkBatch.WO.CUST_CODE) != CurPosition.WorkBatch.WO.CUST_CODE) |
| | | if (isOK && !CustCSN.IsNullOrEmpty() && CustCSN.CUST_CODE.IsNullOrEmpty(CurPosition.WorkBatch.WO.CUST_CODE) != CurPosition.WorkBatch.WO.CUST_CODE) |
| | | { |
| | | CurStep.SetStatusMessage(StepStatus.Error, Biz.L("请扫描正确的客户标签")); |
| | | action.Data.ShortMsg = new("请扫描正确的客户标签", ShortMessage.Types.Failed); |
| | |
| | | action.LocaleMsg = new("MES.WorkAction.ThreeInOne.NotSameCustomer", CustCSN.CUST_SN, CustCSN.CUST_CODE, CurPosition.WorkBatch.WO.CUST_CODE); |
| | | } |
| | | //验证产品客户标签条码规则 |
| | | if (!CustInfo.IsNullOrEmpty() && !CustInfo.RULE_CODE.IsNullOrEmpty() && !Biz.CodeRule[CustInfo.RULE_CODE].IsNullOrEmpty()) |
| | | if (isOK && !CustInfo.IsNullOrEmpty() && !CustInfo.RULE_CODE.IsNullOrEmpty() && !Biz.CodeRule[CustInfo.RULE_CODE].IsNullOrEmpty()) |
| | | { |
| | | var result = Biz.CodeRule[CustInfo.RULE_CODE].Verify(CustCSN.CUST_SN); |
| | | if (!result.IsSuccessed) |