Пример #1
0
  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;
  }
Пример #2
0
 protected AcResult getLastHandledAction(Integer itemId) {
   AcResult action = _access.getResultDb().getLastByItemId(itemId);
   return action;
 }