| | |
| | | /** |
| | | * 错误编号 |
| | | */ |
| | | private Short errorCode; |
| | | private String errorCode; |
| | | |
| | | /** |
| | | * Plc输出状态IO |
| | |
| | | /** |
| | | * 错误信息码枚举 |
| | | */ |
| | | private ShuttleErrorCodeType statusErrorCodeType; |
| | | private ShuttleErrorCodeType errorCodeType; |
| | | |
| | | /** |
| | | * PLC输入状态 |
| | |
| | | */ |
| | | public String loca = "-"; |
| | | |
| | | public String getStatusErrorCode$() { |
| | | if(this.statusErrorCodeType == null) return null; |
| | | return this.statusErrorCodeType.desc; |
| | | public String getErrorCode$() { |
| | | if(this.errorCodeType == null) return null; |
| | | return this.errorCodeType.desc; |
| | | } |
| | | |
| | | public void setStatusErrorCode(Short statusErrorCode) { |
| | | this.statusErrorCode = statusErrorCode; |
| | | this.statusErrorCodeType = ShuttleErrorCodeType.get(statusErrorCode.intValue()); |
| | | this.errorCodeType = ShuttleErrorCodeType.get(statusErrorCode); |
| | | } |
| | | |
| | | public void setStatusErrorCode(ShuttleErrorCodeType type) { |
| | | this.statusErrorCode = type.id.shortValue(); |
| | | this.statusErrorCodeType = type; |
| | | this.errorCodeType = type; |
| | | } |
| | | |
| | | } |