Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[135040.0.213301913]'
  CanBindMultiple: false
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return Unit::ValidateInput(  feedback,
                                sanitycheckfeedback,
                                MacroPlan,
                                EditFieldID.Text(),
                                EditFieldName.Text(),
                                guard( DataHolderDialogData.Data().WrappedInstance(), null( Unit ) ),
                                selParentUnit.Data(),
                                CheckboxHasStart.Checked(),
                                dsStart.Date(),
                                CheckboxHasEnd.Checked(),
                                dsEnd.Date(),
                                RadioButtonGroupCapacityType.BoundValue(),
                                DropDownListUOM.Data(),
                                guard( DataHolderDialogData.Data().Currency_MP(), null( Currency_MP ) ),
                                ApplicationMacroPlanner.FormatStringToReal( EditFieldMinimumQuantity.Text() ),
                                CheckboxMaximumQuantity.Checked(),
                                ApplicationMacroPlanner.FormatStringToReal( EditFieldMaximumQuantity.Text() ),
                                ApplicationMacroPlanner.FormatStringToReal( EditFieldLotSize.Text() ),
                                CheckBoxHasCapacitySmoothing.Checked(),
                                [Boolean] RadioButtonGroupIsSmoothCapacityOverAllPeriods.BoundValue(),
                                ApplicationMacroPlanner.FormatStringToNumber( EditFieldCapacitySmoothingLength.Text() ),
                                ApplicationMacroPlanner.FormatStringToReal( EditFieldCapacitySmoothingPercentageDelta.Text() ),
                                true 
                               );
  *]
  QuillAction
  {
    Body:
    [*
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
