Quintiq file version 2.0
#parent: Toolbar594/btnOk
Response OnClick () id:Response_Toolbar594_btnOk_OnClick
{
  #keys: '[136682.0.1835905073]'
  Body:
  [*
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    return Strategy::ValidateInput( feedback,
                                    Dialog.Data().WrappedInstance().Name(),
                                    ScenarioManager,
                                    Dialog.Data().WrappedInstance(),
                                    Dialog.Data().WrappedInstance().MassScalingFactor(),
                                    Dialog.Data().WrappedInstance().MonetaryScalingFactor(),
                                    Dialog.Data().WrappedInstance().TimeScalingFactor(),
                                    Dialog.Data().WrappedInstance().TimeAccountScalingFactor(),
                                    Dialog.Data().WrappedInstance().InventoryHoldingScalingFactor(),
                                    guard([Number]EditorDefaultNumberOfPeriodsForAvgDemand.Text(),0 ),
                                    guard([Number]EditorNumberOfPeriodsSmartPlan.Text(), 0 ),
                                    CheckBoxUseSlidingWindowsApproach.Checked(),
                                    guard([Number] EditorNumberOfPeriodsInWindow.Text(), 0 ),
                                    guard([Number]EditorNumberOfPeriodsPerSlide.Text(), 0 ),
                                    CheckBoxUseMetaOptimizer.Checked(),
                                    CheckBoxMetaOptimizerFirstLevelHasOverride.Checked(),
                                    CheckBoxMetaOptimizerLastLevelHasOverride.Checked(),
                                    ApplicationLibMacroPlanner.FormatStringToNumber( EditorMetaOptimizerFirstLevelOverride.Text() ),
                                    ApplicationLibMacroPlanner.FormatStringToNumber( EditorMetaOptimizerLastLevelOverride.Text() ),
                                    ApplicationLibMacroPlanner.FormatStringToNumber( EditorMetaOptimizerMaxNumberOfSecondsAllIterations.Text() ),
                                    ApplicationLibMacroPlanner.FormatStringToNumber( EditorMaxNrOfElemementsCampaignOptimizerCombi.Text() ), 
                                    CheckBoxMetaOptimizerIsCollapseLevel.Checked(), 
                                    ApplicationLibMacroPlanner.FormatStringToReal( EditorMetaOptimizerCollapseLevelWeight.Text() ) );
  *]
}
