| | |
| | | */ |
| | | public Short crnAllowRun; |
| | | |
| | | /** |
| | | * 充电状态 1:在充电;0:不在充电 |
| | | */ |
| | | private Short chargeStatus; |
| | | |
| | | public void setStatus(Short status){ |
| | | this.status = status; |
| | | this.statusType = SteStatusType.get(status); |
| | |
| | | basSte.setSteErr(alarm.longValue()); |
| | | } |
| | | basSte.setWrkNo(taskNo.intValue()); |
| | | if (basSte.getPakMk().equals("N")) { |
| | | // if (basSte.getPakMk().equals("N")) { |
| | | // if (!Cools.isEmpty(row)) { |
| | | // basSte.setRow(row.intValue()); |
| | | // } |
| | |
| | | // if (!Cools.isEmpty(lev)) { |
| | | // basSte.setLev(lev.intValue()); |
| | | // } |
| | | } |
| | | // } |
| | | return basSte; |
| | | } |
| | | |
| | |
| | | public Boolean isIdle() { |
| | | boolean res = this.statusType.equals(SteStatusType.IDLE) |
| | | && this.pakMk.equals("N") |
| | | && !isAlarm(); |
| | | && !isAlarm() |
| | | && this.chargeStatus == 0 |
| | | && isEnable() |
| | | ; |
| | | if (!res) { |
| | | return res; |
| | | } else { |
| | |
| | | return this.alarm > 1; |
| | | } |
| | | |
| | | public Boolean isEnable() { |
| | | if (Cools.isEmpty(row)) { |
| | | if (row == 0) { |
| | | return false; |
| | | } |
| | | } |
| | | if (Cools.isEmpty(bay)) { |
| | | if (bay == 0) { |
| | | return false; |
| | | } |
| | | } |
| | | if (Cools.isEmpty(lev)) { |
| | | if (lev == 0) { |
| | | return false; |
| | | } |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | } |