| | |
| | | if (staProtocol == null) { |
| | | return null; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO && staProtocol.workType == DevpWorkType.BUSY && staProtocol.getWorkNo() > 0) { |
| | | if (staProtocol.isAutoing() && staProtocol.isLoading() && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_RUN_ID; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO && staProtocol.workType == DevpWorkType.BUSY) { |
| | | if (staProtocol.isAutoing() && staProtocol.isLoading()) { |
| | | return SITE_AUTO_RUN; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO && staProtocol.getWorkNo() > 0) { |
| | | if (staProtocol.isAutoing() && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_ID; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO) { |
| | | if (staProtocol.isAutoing()) { |
| | | return SITE_AUTO; |
| | | } |
| | | if (staProtocol.stateType != DevpStateType.AUTO) { |
| | | if (!staProtocol.isAutoing()) { |
| | | return SITE_UNAUTO; |
| | | } |
| | | return null; |