| | |
| | | CustCSN = Biz.Db.Queryable<MES_CUST_SN>().Where(q => q.CUST_SN == input.Data).First(); |
| | | |
| | | var isOK = true; |
| | | //客户条码扫到厂内条码 |
| | | if (isOK && FlowCSN.FLOW_SN == input.Data) |
| | | { |
| | | CurStep.SetStatusMessage(StepStatus.Error, Biz.L("请扫描正确的客户标签")); |
| | | action.Data.ShortMsg = new("请扫描正确的客户标签", ShortMessage.Types.Failed); |
| | | action.IsSuccessed = isOK = false; |
| | | //action.LocaleMsg = new($"厂内条码[{0}]绑定客户条码[{1}]失败,厂内条码与客户条码不能一样,请扫描正确的客户标签"); |
| | | action.LocaleMsg = new("MES.WorkAction.ThreeInOne.TheSameSN", FlowCSN.FLOW_SN, input.Data); |
| | | } |
| | | //客户条码已绑定其他厂内条码 |
| | | if (isOK && !CustCSN.IsNullOrEmpty() && !CustCSN.FLOW_SN.IsNullOrEmpty() && CustCSN.FLOW_SN != FlowCSN.FLOW_SN) |
| | | { |