Quintiq file version 2.0
#parent: ListUnitPeriodTime
Response OnClick (
  structured[UnitPeriodTime] selection
) id:Response_ListUnitPeriodTime_MenuEditCapacityInListUnitPeriodTime_OnClick
{
  #keys: '[105706.0.2072181753]'
  Body:
  [*
    // Create or update the unit availability for the selected periods.
    
    dlg := construct( DialogCreateEditUnitAvailability );
    dlg.EditUnitAvailabilityFromListUnitPeriodTime( this, selection );
  *]
  CanBindMultiple: false
  DefinitionID => /ListUnitPeriodTime/Responsedef_ListUnitPeriodTime_Menu_OnClick
  Initiator: 'MenuEditCapacityInListUnitPeriodTime'
  Precondition:
  [*
    return UnitPeriod::CanEditCapacities( selection, feedback );
  *]
}
