protected AcFlight getDepartingFlight(Integer itemId) { AcActionTypeEnum[] types = {AcActionTypeEnum.LOAD_ITEM, AcActionTypeEnum.DEPART_ITEM}; AcResult flightAction = _access.getResultDb().getLastByItemIdAndActionTypes(itemId, types); AcFlight f = null; if (flightAction != null) f = _access.getFlightDb().getFlight(flightAction.getFlightId()); return f; }
protected AcResult getLastHandledAction(Integer itemId) { AcResult action = _access.getResultDb().getLastByItemId(itemId); return action; }