Quintiq file version 2.0
|
#parent: PanelActions/ButtonApply
|
Response OnClick () id:Response_PanelActions_ButtonApply_OnClick
|
{
|
#keys: '[145730.0.1957945813]'
|
CanBindMultiple: false
|
DefinitionID: 'Responsedef_WebButton_OnClick'
|
Precondition:
|
[*
|
sanitycheckfeedback := '';
|
gp := guard( MacroPlan.GlobalParameters_MP(), null( GlobalParameters_MP ) );
|
formHasChanges := ApplicationMacroPlanner.CheckFormHasChangesWithFeedback( FormGeneralSettings, feedback );
|
|
return not isnull( MacroPlan )
|
and formHasChanges
|
and GlobalParameters_MP::ValidateInput( feedback,
|
sanitycheckfeedback,
|
MacroPlan,
|
MacroPlan.DefaultShiftPattern(),
|
gp.DisaggregationRatio(),
|
gp.NumberOfDecimals(),
|
gp.BalanceTolerance(),
|
gp.LotSizeTolerance(),
|
gp.BottleneckTolerance(),
|
gp.BottleneckWindowStart(),
|
gp.BottleneckWindowEnd(),
|
gp.StartOfKPIHorizon(),
|
gp.EndOfKPIHorizon(),
|
gp.DefaultSmartPlanStrategy(),
|
gp.UnitLowerBottleneckThreshold(),
|
gp.UnitUpperBottleneckThreshold(),
|
gp.SanityCheckLimit(),
|
gp.AbsoluteUpperLimit(),
|
gp.AbsoluteLowerLimit(),
|
gp.DefaultAllocation(),
|
gp.DefaultEfficiency(),
|
gp.DefaultMinCapacityPerDayForUnit(),
|
gp.DefaultMaxCapacityPerDayForUnit(),
|
gp.DefaultMaxLoadPercentage(),
|
gp.DefaultMaxCapacityForStockingPoint(),
|
gp.DefaultOperationInputOutputQuantity(),
|
gp.HasDefaultInventoryHoldingCost(),
|
gp.DefaultAccountForInventoryHolding(),
|
gp.HasAbsoluteValueForInventoryHolding(),
|
gp.DefaultAbsoluteValueForInventoryHolding(),
|
gp.DefaultAnnualInterestRateForInventoryHolding(),
|
gp.PeriodSpecificationForUnitActual(),
|
gp.DefaultNumberOfPeriodsForAvgDemand(),
|
gp.NoiseThresholdOptimizerOutput(),
|
gp.NumberOfPeriodsSmartPlan(),
|
gp.UseSlidingWindowsApproach(),
|
gp.NumberOfPeriodsInWindow(),
|
gp.NumberOfPeriodsPerSlide(),
|
gp.DefaultServiceLevel(),
|
gp.StockingPointBottleneckThreshold());
|
*]
|
QuillAction
|
{
|
Body:
|
[*
|
// Apply changes
|
// Check if user has modified lead time logic (if yes, prompt to reset plan)
|
proceedSave := Form.GetChangeOfLeadTimeStrategyWarningDialog( DropDownStringListLaneLeadTimeLogic.Text(),
|
DropDownStringListOperationLeadTimeLogic.Text() );
|
|
if( proceedSave )
|
{
|
Form.GetChangeOfForecastNettingWarningDialog( DropDownStringListForecastNetting.Text() );
|
Form.ApplyChanges();
|
|
}
|
*]
|
GroupServerCalls: false
|
}
|
}
|