Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[139394.1.95130190]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  Precondition:
  [*
    sanitycheckfeedback := '';
    data := DataHolderDialogData.Data();
    return UnitCapacity::ValidateInput( feedback,
                                        sanitycheckfeedback,
                                        guard( data.Unit(), null( Unit ) ),
                                        guard( data.Start(), DateTime::MinDateTime() ),
                                        ApplicationMacroPlanner.FormatStringToReal( EditFieldMinCapacity.Text() ),
                                        ApplicationMacroPlanner.FormatStringToReal( EditFieldMaxCapacity.Text() ),
                                        ApplicationMacroPlanner.FormatStringToReal( EditFieldMaxLoadPercentage.Text() ),
                                        ApplicationMacroPlanner.FormatStringToNumber( EditFieldNumberOfUnits.Text() ),
                                        guard( DataHolderDialogData.Data().WrappedInstance(), null( UnitCapacity ) ),
                                        true /*checkunqiue*/ );
  *]
  QuillAction
  {
    Body:
    [*
      // On ok
      Form.OnOK();
    *]
    GroupServerCalls: false
  }
}
