| | |
| | | back = true; |
| | | } |
| | | |
| | | if (!back && devp.getId() == 2) { |
| | | if(staProtocol.getWorkNo() == 9907 && '5' != barcode.charAt(0)){ |
| | | errMsg = "条码5只能入7排"; |
| | | back = true; |
| | | } |
| | | if(staProtocol.getWorkNo() == 9906 && '5' == barcode.charAt(0)){ |
| | | errMsg = "条码5不能入6排"; |
| | | back = true; |
| | | } |
| | | } |
| | | // if (!back && devp.getId() == 2) { |
| | | // if(staProtocol.getWorkNo() == 9907 && '5' != barcode.charAt(0)){ |
| | | // errMsg = "条码5只能入7排"; |
| | | // back = true; |
| | | // } |
| | | // if(staProtocol.getWorkNo() == 9906 && '5' == barcode.charAt(0)){ |
| | | // errMsg = "条码5不能入6排"; |
| | | // back = true; |
| | | // } |
| | | // } |
| | | |
| | | // 退回 |
| | | if (back && devp.getId() == 2) { |
| | |
| | | ledCommand.setTitle("全板入库"); |
| | | ledCommand.setLocNo(dto.getLocNo()); |
| | | ledCommand.setStaNo(dto.getStaNo()); |
| | | ledCommand.setBarcode(barcode); |
| | | commands.add(ledCommand); |
| | | MessageQueue.offer(SlaveType.Led, inSta.getLed(), new Task(3, commands)); |
| | | // ledThread.errorReset(); |