Exemplo n.º 1
0
  protected void addTagToModel(
      AcCn46ActualConveyanceModel model, AcItem i, AcUpuTag upuTag, boolean useUld) {
    AcConsignment c = null;
    AcConsignmentFlight cf = null;
    String uld = "";
    if (i.hasConsignmentId()) {
      c = getConsignment(i.getConsignmentId());
      cf = getLastConsignmentFlightLeg(i.getConsignmentId());
    }
    if (useUld && i.hasParentNestId()) {
      AcNest nest = getNest(i.getParentNestId());
      if (nest.isUld()) uld = nest.getSerialNumber();
    }

    model.addTag(upuTag, c, cf, uld);
  }
Exemplo n.º 2
0
  /**
   * Load the batch nest associated with the specified nest. This is used when processing alias
   * actions where the alias has not yet been mapped to a nest. The nest being passed in could be
   * new or it could be an existing nest. Either way we need to load or create the associated batch
   * nest.
   */
  public AcActionSnapshot loadNest(AcBatch batch, AcNest nest) {
    _batch = batch;

    _items = new JwMap<Integer, AcBatchItem>();
    _nests = new JwMap<Integer, AcBatchNest>();
    _aliases = new JwMap<Integer, AcBatchAlias>();
    _flights = new JwMap<Integer, AcBatchFlight>();

    JwSet<Integer> flightIds = new JwSet<Integer>();
    JwSet<Integer> nestIds = new JwSet<Integer>();
    nestIds.add(nest.getId());

    fillNests(nestIds);
    AcBatchNest.collectFlightIdsOn(_nests.values(), flightIds);

    fillFlights(flightIds);
    return getSnapshot(true);
  }