| | |
| | | if (staProtocol == null) { |
| | | return null; |
| | | } |
| | | if (staProtocol.isAutoing() && staProtocol.isLoading() && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_RUN_ID; |
| | | } |
| | | if (staProtocol.isAutoing() && staProtocol.isLoading()) { |
| | | return SITE_AUTO_RUN; |
| | | } |
| | | if (staProtocol.isAutoing() && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_ID; |
| | | } |
| | | if (staProtocol.isAutoing()) { |
| | | return SITE_AUTO; |
| | | } |
| | | if (!staProtocol.isAutoing()) { |
| | | return SITE_UNAUTO; |
| | | } |
| | | // if (staProtocol.isAutoing() && staProtocol.isLoading() && staProtocol.getWorkNo() > 0) { |
| | | // return SITE_AUTO_RUN_ID; |
| | | // } |
| | | // if (staProtocol.isAutoing() && staProtocol.isLoading()) { |
| | | // return SITE_AUTO_RUN; |
| | | // } |
| | | // if (staProtocol.isAutoing() && staProtocol.getWorkNo() > 0) { |
| | | // return SITE_AUTO_ID; |
| | | // } |
| | | // if (staProtocol.isAutoing()) { |
| | | // return SITE_AUTO; |
| | | // } |
| | | // if (!staProtocol.isAutoing()) { |
| | | // return SITE_UNAUTO; |
| | | // } |
| | | return null; |
| | | } |
| | | |