| | |
| | | idx = tempstr.lastIndexOf("-"); |
| | | |
| | | if(idx != -1){ |
| | | String segNo = tempstr.substring(idx+1); |
| | | pname.setSegmentNo(Func.toInt(segNo)); |
| | | |
| | | tempstr = tempstr.substring(0,idx); |
| | | String segNo = tempstr.substring(idx+1); |
| | | int idx2 = StringUtils.indexOfIgnoreCase(segNo,"P"); |
| | | if(idx2!= -1){ |
| | | //带P,是偏离单号 |
| | | pname.setPldPart(segNo.substring(idx+1)); |
| | | |
| | | tempstr = segNo.substring(0, idx2);//去掉偏离单部分 |
| | | } |
| | | idx = tempstr.lastIndexOf("-"); |
| | | if(idx != -1) { |
| | | idx = tempstr.lastIndexOf("-"); |
| | | pname.setSegmentNo(Func.toInt(segNo)); |
| | | |
| | | tempstr = tempstr.substring(0,idx); |
| | | } |
| | | |
| | | |
| | | } |
| | | idx = tempstr.lastIndexOf("-"); |
| | | if(idx != -1){ |
| | |
| | | tempstr = tempstr.substring(0,idx); |
| | | } |
| | | |
| | | //解析工序好 |
| | | //解析工序号 |
| | | String processNo = ""; |
| | | idx = tempstr.lastIndexOf("-"); |
| | | if(idx != -1){ |