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();
  *]
}
