Lai,Risheng
2023-11-02 30c02e0c981b16be0918483543f4b812956c45d4
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Quintiq file version 2.0
#parent: #root
Method InitializeData () id:Method_FormOptimizerSettings_InitializeData
{
  #keys: '[144528.1.1838605152]'
  Body:
  [*
    // Initialize data for display
    
    // Indicate default UoM for min sales demand qty
    uom := MacroPlan.DefaultUnitOfMeasure().Name();
    // Remove & from trasnlation as thin client using for shortcut key (which web doesn't need)
    minDemandQtyLabel := ApplicationMacroPlanner.RemoveCharactersFromTranslation( Translations::MP_Designer_DialogEditGlobalParameter_SetLabelMinimumSalesDemandQuantityThreshold( uom ) );
    EditFieldMinSalesDemandQtyThreshold.Label( minDemandQtyLabel );
    
    // Get all strategies
    strategyNames := selectvalues( ScenarioManager.GetStrategies(), Elements, s, true, s.Name() );
    strategyNamesStr := strategyNames.Concatenate( ';' ); // Combine to a string delimit by semicolon
    DropDownStringListDefaulSmartPlanStrategy.Strings( strategyNamesStr );
  *]
}