Quintiq file version 2.0
#parent: Toolbar/ButtonOk
Response OnClick () id:Response_Toolbar_ButtonOk_OnClick
{
  #keys: '[11660.0.474903674]'
  Body:
  [*
    // Apply changes
    
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return SupplySpecification::ValidateInput( feedback,
                                               SelectionUnit.Data(),
                                               SelectionProduct.Data(),
                                               GUIDateTimeSelectorStart.DateTime(),
                                               GUIDateTimeSelectorEnd.DateTime(),
                                               ApplicationLibMacroPlanner.FormatStringToReal( EditorMinQuantity.Text() ),
                                               ApplicationLibMacroPlanner.FormatStringToReal( EditorTargetQuantity.Text() ),
                                               CheckBoxHasMaxQuantity.Checked(),
                                               ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxQuantity.Text() ),
                                               Dialog.Data().WrappedInstance(),
                                               true,
                                               sanitycheckfeedback );
  *]
}
