Quintiq file version 2.0
|
#parent: #root
|
Method SetSmartPlanPreference (
|
MacroPlan macroplan,
|
String strategy
|
)
|
{
|
Description:
|
[*
|
In Product Planning form, right click on 1-Feb-<SOP year>, select "Smart plan..." context menu.
|
Click on "Advanced" tab, change smart plan direction to "Upstream".
|
Click "Save my preferences" button to save the changes.
|
Click on "OK" to close dialog.
|
*]
|
TextBody:
|
[*
|
// Save preference for smart plan
|
defaultSmartplanSetting := macroplan.SmartPlanSetting();
|
hasUserSetting := true;
|
smartPlanDirection := SmartPlanSetting::Upstream();
|
|
overrideManualPlanning := defaultSmartplanSetting.OverwriteLockedPlanning();
|
onlyPlanOneStep := defaultSmartplanSetting.OnlyPlanOneStep();
|
limitUnit := defaultSmartplanSetting.LimitUnitBySmartPlan();
|
units := defaultSmartplanSetting.UnitForSmartPlan( relget );
|
|
macroplan.SmartPlanSetting().Update( hasUserSetting,
|
smartPlanDirection,
|
overrideManualPlanning,
|
onlyPlanOneStep,
|
strategy,
|
limitUnit,
|
units );
|
*]
|
InterfaceProperties { Accessibility: 'Module' }
|
}
|