| | |
| | | POINT24(24, "水槽A端"), |
| | | POINT25(25, "水槽B端"), |
| | | POINT26(26, "B端输送线"), |
| | | |
| | | // NONE999(999, "未知"), |
| | | // A(1, "A点"), |
| | | // B(2, "B点"), |
| | | // A_WAITING(3, "A待机点"), |
| | |
| | | |
| | | public static SteLocaType get(Short id) { |
| | | if (null == id) { |
| | | return null; |
| | | return NONE; |
| | | } |
| | | for (SteLocaType type : SteLocaType.values()) { |
| | | if (type.id.equals(id.intValue())) { |
| | | return type; |
| | | } |
| | | } |
| | | return null; |
| | | return NONE; |
| | | } |
| | | |
| | | public static SteLocaType get(SteLocaType type) { |
| | | if (null == type) { |
| | | return null; |
| | | return NONE; |
| | | } |
| | | for (SteLocaType crnStatusType : SteLocaType.values()) { |
| | | if (crnStatusType == type) { |
| | | return crnStatusType; |
| | | } |
| | | } |
| | | return null; |
| | | return NONE; |
| | | } |
| | | } |