Quintiq file version 2.0
#parent: ListTransportCapacity
Response OnClick () id:Response_ListTransportCapacity_MenuNewTransportCapacity_OnClick
{
  #keys: '[121458.0.770235707]'
  Body:
  [*
    // Create new transport capacity
    
    dlg := construct( DialogCreateEditTransportCapacity );
    tc := dlg.NewTransportCapacity( this );
    
    ApplicationLibMacroPlanner.AutoExpandSelection( this, tc );
  *]
  CanBindMultiple: false
  DefinitionID => /ListTransportCapacity/Responsedef_ListTransportCapacity_Menu_OnClick
  Initiator: 'MenuNewTransportCapacity'
  Precondition:
  [*
    return MacroPlan::HasMacroPlan( MacroPlan, feedback )
           and TransportCapacity::CanCreate( MacroPlan, feedback )
           and TransportCapacity::CanCreate( feedback, DataHolderChildUnits.Data() )
           and PeriodSpecification_MP::HasPeriodSpecification( MacroPlan, feedback )
           and Period_MP::HasPeriod( feedback, MacroPlan );
  *]
  UserRequiresReadWrite: true
}
