Quintiq file version 2.0
#parent: ListUnitPeriodTransport
Response OnClick (
  structured[UnitPeriodTransportTime] selection
) id:Response_ListUnitPeriodTransport_MenuEditCapacityInListUnitPeriodTransport_OnClick
{
  #keys: '[113694.0.1539632568]'
  Body:
  [*
    // Create or update the transport capacity for the selected periods.
    dlg := construct( DialogCreateEditTransportAvailability );
    dlg.EditTransportAvailabilityFromListUnitPeriodTransportTime( this, selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListUnitPeriodTransport/Responsedef_ListUnitPeriodTransport_Menu_OnClick
  Initiator: 'MenuEditCapacityInListUnitPeriodTransport'
  Precondition:
  [*
    return UnitPeriod::CanEditCapacities( selection, feedback );
  *]
  UserRequiresReadWrite: true
}
