renhao
2023-10-24 7a8fd5ab0aad4a41a8898b7084b1bceb9a2a8a51
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method OnOk () id:Method_DialogSmartPlan_OnOk
{
  #keys: '[137862.0.112805562]'
  Body:
  [*
    //When OK is pressed
    
    hastotalsupplyuser := CheckboxSpecifyTotalSupply.Checked();
    
    overridemanual := CheckboxOverrideManual.Checked(); 
    isonlyplanonestepupstream := CheckboxOnlyPlanOneStepUpstream.Checked();
    
    DialogSmartPlan.RunOptimizer( DataHolderSelections.Data(), 
                                  hastotalsupplyuser, 
                                  isonlyplanonestepupstream, 
                                  overridemanual );
    
    DialogSmartPlan.Close();
  *]
}