| | |
| | | package com.zy.asrs.domain.enums; |
| | | |
| | | |
| | | import com.zy.core.enums.DevpType.DevpStateType; |
| | | import com.zy.core.enums.DevpType.DevpWorkType; |
| | | import com.zy.core.model.protocol.StaProtocol; |
| | | |
| | | /** |
| | |
| | | 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.stateType == DevpStateType.AUTO && staProtocol.workType == DevpWorkType.BUSY && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_RUN_ID; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO && staProtocol.workType == DevpWorkType.BUSY) { |
| | | return SITE_AUTO_RUN; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO && staProtocol.getWorkNo() > 0) { |
| | | return SITE_AUTO_ID; |
| | | } |
| | | if (staProtocol.stateType == DevpStateType.AUTO) { |
| | | return SITE_AUTO; |
| | | } |
| | | if (staProtocol.stateType != DevpStateType.AUTO) { |
| | | return SITE_UNAUTO; |
| | | } |
| | | return null; |
| | | } |
| | | |