| | |
| | | |
| | | private String locNo; |
| | | |
| | | public boolean sign=false; |
| | | |
| | | public boolean isSign() { |
| | | return sign; |
| | | } |
| | | |
| | | public void setSign(boolean sign) { |
| | | this.sign = sign; |
| | | } |
| | | |
| | | private List<LocDetlDto> locDetlDtos = new ArrayList<>(); |
| | | |
| | | public OutLocDto() { |
| | |
| | | public OutLocDto(String locNo, LocDetlDto locDetlDto) { |
| | | this.locNo = locNo; |
| | | this.locDetlDtos.add(locDetlDto); |
| | | this.sign = locDetlDto.isSign(); |
| | | } |
| | | |
| | | public boolean isAll(){ |
| | |
| | | for (LocDetl locDetl : locDetls) { |
| | | Iterator<LocDetlDto> iterator = locDetlDtosCp.iterator(); |
| | | while (iterator.hasNext()) { |
| | | LocDetl next = iterator.next().getLocDetl(); |
| | | if (!next.getMatnr().equals(locDetl.getMatnr())) { |
| | | LocDetlDto next = iterator.next(); |
| | | if (!next.getLocDetl().getMatnr().equals(locDetl.getMatnr())) { |
| | | continue; |
| | | } |
| | | if (!Cools.eq(next.getBatch(), locDetl.getBatch())) { |
| | | if (!Cools.eq(next.getLocDetl().getBatch(), locDetl.getBatch())) { |
| | | continue; |
| | | } |
| | | if (next.getAnfme() > locDetl.getAnfme()) { |
| | | if (next.getCount() > locDetl.getAnfme()) { |
| | | throw new CoolException("服务器内部错误"); |
| | | } |
| | | if (next.getAnfme().equals(locDetl.getAnfme())) { |
| | | if (next.getCount().equals(locDetl.getAnfme())) { |
| | | sameNumber++; |
| | | iterator.remove(); |
| | | break; |