Quintiq file version 2.0 
 | 
#parent: GanttChartDemandSupplyGroup 
 | 
Response OnClick ( 
 | 
  structured[ProductInStockingPointInPeriodPlanningLeaf] selection 
 | 
) id:Response_GanttChartDemandSupplyGroup_MenuSmartPlan_OnClick_686 
 | 
{ 
 | 
  #keys: '[124808.2.398886157]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Smart plan for PISPIPs 
 | 
    dlg := construct( DialogSmartPlan ); 
 | 
    isviableonestepupstream := true; 
 | 
    dlg.SmartPlan( selection, this, isviableonestepupstream ); 
 | 
  *] 
 | 
  CanBindMultiple: false 
 | 
  DefinitionID => /GanttChartDemandSupplyGroup/Responsedef_GanttChartDemandSupplyGroup_Menu_OnClick 
 | 
  Initiator: 'MenuSmartPlan' 
 | 
  Precondition: 
 | 
  [* 
 | 
    periods := selectset( selection, Elements.Period_MP, period, true ); 
 | 
    return MacroPlan.CanPlan( feedback ) 
 | 
           and ScenarioManager::CanStartSmartPlan( ScenarioManager, SelectionScenario.Data(), true, periods, feedback ); 
 | 
  *] 
 | 
} 
 |