|  |  |  | 
|---|
|  |  |  | if (staNo1!=0){ | 
|---|
|  |  |  | SiemensDevpThread devpThread = (SiemensDevpThread) SlaveConnection.get(SlaveType.Devp, 2); | 
|---|
|  |  |  | StaProtocol staProtocol607 = devpThread.getStation().get(607); | 
|---|
|  |  |  | if (staProtocol607.getWorkNo()<9001){ | 
|---|
|  |  |  | if (staProtocol607.getWorkNo()<9001 && staProtocol607.getWorkNo()!=0 && staProtocol607.isLoading() && staProtocol607.isAutoing()){ | 
|---|
|  |  |  | staProtocol607.setStaNo(staNo1); | 
|---|
|  |  |  | boolean result2 = MessageQueue.offer(SlaveType.Devp, 2, new Task(5, staProtocol607)); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | 
|---|
|  |  |  | }}); | 
|---|
|  |  |  | DevpThread devpThread = (DevpThread) SlaveConnection.get(SlaveType.Devp, 2); | 
|---|
|  |  |  | Integer count = basJarMastList.size(); | 
|---|
|  |  |  | Integer staNoEnd = 0; | 
|---|
|  |  |  | ArrayList<Integer> wrkNoList = new ArrayList<>(); | 
|---|
|  |  |  |  | 
|---|
|  |  |  | for (Integer staNoEnt : staNos){ | 
|---|
|  |  |  | 
|---|
|  |  |  | if (staProtocolEnt != null && staProtocolEnt.getWorkNo()!=0 && !wrkNoList.contains(staProtocolEnt.getWorkNo())){ | 
|---|
|  |  |  | if (staProtocolEnt.getStaNo().equals(basJar.getEntStaNo$())){ | 
|---|
|  |  |  | count++; | 
|---|
|  |  |  | staNoEnd = staProtocolEnt.getWorkNo(); | 
|---|
|  |  |  | wrkNoList.add(staProtocolEnt.getWorkNo()); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | if (count<7){ | 
|---|
|  |  |  | return staNoEnd; | 
|---|
|  |  |  | return basJar.getEntStaNo$(); | 
|---|
|  |  |  | } | 
|---|
|  |  |  | } | 
|---|
|  |  |  | }catch (Exception e){ | 
|---|