Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[127238.0.515873363]'
  Body:
  [*
    Dialog.ApplyChanges();
    Dialog.EndModal(1);
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    return TransitionType_MP::ValidateInput( feedback,
                                             sanitycheckfeedback,
                                             SelectionUnit.Data(),
                                             SelectionFromCampaignType.Data(),
                                             SelectionToCampaignType.Data(),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorDefaultMinQuantity.Text() ),
                                             ApplicationLibMacroPlanner.FormatStringToReal( EditorDefaultMaxQuantity.Text() ),
                                             GUIDurationSelectorMinDuration.Duration(),
                                             GUIDurationSelectorMaxDuration.Duration(),
                                             Dialog.Data().WrappedInstance(),
                                             true,                   // checkunique
                                             RadioButtonGroupQuantityDuration.BoundValue().TrimBoth(),
                                             CheckBoxDefaultMaxQuantity.Checked(),
                                             CheckBoxDefaultMaxDuration.Checked()
                                            );
  *]
}
