1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| 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(),
| '' ) ) );
| *]
| }
|
|