| Quintiq file version 2.0 | 
| #parent: PanelActions/ButtonApply_424 | 
| Response OnClick () id:Response_FormDefaultCapacities_ButtonApply_OnClick_623 | 
| { | 
|   #keys: '[139394.1.60896421]' | 
|   CanBindMultiple: false | 
|   DefinitionID: 'Responsedef_WebButton_OnClick' | 
|   Precondition: | 
|   [* | 
|     sanitycheckfeedback := ''; | 
|     gp := guard( MacroPlan.GlobalParameters_MP(), null( GlobalParameters_MP ) ); | 
|     formHasChanges := ApplicationMacroPlanner.CheckFormHasChangesWithFeedback( FormDefaultCapacities, feedback ); | 
|      | 
|     return not isnull( MacroPlan ) | 
|            and formHasChanges | 
|            and GlobalParameters_MP::ValidateInput( feedback, | 
|                                                    sanitycheckfeedback, | 
|                                                    MacroPlan, | 
|                                                    DropDownListDefaultShiftPattern.Data(), | 
|                                                    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(), | 
|                                                    ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultEfficiency.Text() ), | 
|                                                    ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultMinCapacityPerDayForUnit.Text() ), | 
|                                                    ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultMaxCapacityPerDayForUnit.Text() ), | 
|                                                    gp.DefaultMaxLoadPercentage(), | 
|                                                    ApplicationMacroPlanner.FormatStringToReal( EditFieldDefaultMaxCapacityPerDayForStockingPoint.Text() ), | 
|                                                    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 | 
|       Form.ApplyChanges(); | 
|     *] | 
|     GroupServerCalls: false | 
|   } | 
| } |