Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[113694.0.1519633440]'
  Body:
  [*
    // End dialog
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := ''; 
    return TransportCapacity::ValidateInput( feedback,
                                             SelectionUnit.Data(),
                                             GUIStartDateTimeSelector.DateTime(),
                                             StringSelectionTimeUnit.BoundValue(),
                                             Dialog.Data().LotSize(),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorMinCapacity.Text() ),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorMaxCapacity.Text() ),
                                             CheckBoxSecondaryCapacity.Enabled() and CheckBoxSecondaryCapacity.Checked(),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorSecondaryLotSize.Text() ),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorSecondaryMinCapacity.Text() ),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorSecondaryMaxCapacity.Text() ),
                                             SelectionSecondaryUnitOfMeasure.Data(),
                                             Dialog.Data().WrappedInstance(),
                                             true,
                                             sanitycheckfeedback );
  *]
}
