Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.1.44051411]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := ''; 
    return TransportCapacity::ValidateInput( feedback,
                                             guard( DataHolderDialogData.Data().Unit(), null( Unit ) ),
                                             guard( DataHolderDialogData.Data().Start(), DateTime::MinDateTime() ),
                                             DropDownStringListTimeUnit.Text(),
                                             guard( DataHolderDialogData.Data().LotSize(), 0 ),
                                             ApplicationMacroPlanner.FormatStringToReal( EditFieldMinCapacity.Text() ),
                                             ApplicationMacroPlanner.FormatStringToReal( EditFieldMaxCapacity.Text() ),
                                             CheckboxHasSecondaryCapacity.Enabled() and CheckboxHasSecondaryCapacity.Checked(),
                                             ApplicationMacroPlanner.FormatStringToReal( EditFieldSecondaryLotSize.Text() ),
                                             ApplicationMacroPlanner.FormatStringToReal( EditFieldSecondaryMinCapacity.Text() ),
                                             ApplicationMacroPlanner.FormatStringToReal( EditFieldSecondaryMaxCapacity.Text() ),
                                             DropDownListSecondaryUOM.Data(),
                                             guard( DataHolderDialogData.Data().WrappedInstance(), null( TransportCapacity ) ),
                                             true /*checkunique*/,
                                             sanitycheckfeedback );
  *]
  QuillAction
  {
    Body:
    [*
      // On ok
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
