Quintiq file version 2.0
#parent: #root
Method SetDefaultValues () id:Method_DialogInventoryOptimization_SetDefaultValues
{
  #keys: '[122872.2.180985499]'
  Body:
  [*
    // Set default value for components
    
    run := MacroPlan.GetLastAlgorithmRun();
    // Strategy
    defaultstrategy := minselect( ScenarioManager, Strategy, strategy, strategy.IsVisible(), strategy.Name() );
    strategyfromlastrun := AlgorithmRun::GetLastStrategyUsed( MacroPlan.GlobalParameters_MP(), run, ScenarioManager, true, false );
    SelectionStrategy.BoundValue( guard( strategyfromlastrun.Name(),
                                         guard( defaultstrategy.Name(),
                                                '' ) ) );
  *]
}
