Quintiq file version 2.0
#parent: #root
Method RestoreDefault () id:Method_DialogSmartPlan_RestoreDefault
{
  #keys: '[136682.3.972180638]'
  Body:
  [*
    // Restore default
    smartplansetting := MacroPlan.SmartPlanSetting();
    MacroPlan.SmartPlanSetting().Update( false, 
                                         smartplansetting.SmartPlanDirection(),
                                         smartplansetting.OverwriteLockedPlanning(),
                                         false,
                                         smartplansetting.Strategy(),
                                         smartplansetting.LimitUnitBySmartPlan(),
    	                                   null( Units ) );
    Form.SetDefaultValues();
    //selected unit is stored in application level dataholder, so flush the dataholder
    ApplicationMacroPlanner.DataHolderSelectedUnitsForSmartPlan().Data().Flush();
  *]
}
