private void handleEditOffer() {
   String webKey = decodeStringArgument();
   Integer id = AcUspsInternationalSkeletonRouteOfferTools.getIdFromWebKey(webKey);
   if (id == null) error("Invalid offer id.");
   getPageSession().setUspsInternationalSkeletonRouteOfferWebKey(webKey);
   AcUspsInternationalSkeletonRouteOfferEditPage.instance.print();
 }
 private void handleDeleteOffer() {
   String webKey = decodeStringArgument();
   Integer id = AcUspsInternationalSkeletonRouteOfferTools.getIdFromWebKey(webKey);
   if (id == null) error("Invalid offer id.");
   getUspsInternationalSkeletonRouteOfferService().delete(id);
   print();
 }
  private ScControl createOffersGrid() {
    AcUspsInternationalSkeletonRouteOfferTools x =
        AcUspsInternationalSkeletonRouteOfferTools.instance;

    ScGridColumnContainer<AcUspsInternationalSkeletonRouteOffer> actions =
        x.newColumnLink()
            .appendWebKeyLink("Edit", newEditOfferCommand(), null, false)
            .appendWebKeyLink(
                "Delete",
                newDeleteOfferCommand(),
                "Are you sure you want to delete this offer?",
                false);

    _offerGrid = new ScGrid<AcUspsInternationalSkeletonRouteOffer>();
    _offerGrid.disablePagination();
    _offerGrid.disableSorting();
    _offerGrid.addColumn(x.newFrequencyColumn("Frequency"));
    _offerGrid.addColumn(
        x.newUspsInternationalScheduleCapacityColumn(
            x.newInternationalWeightTitleAdaptor("Capacity")));
    _offerGrid.addColumn(actions);
    return _offerGrid;
  }