Quintiq file version 2.0
#parent: Toolbar/btnOk
Response OnClick () id:Response_Toolbar_btnOk_OnClick
{
  #keys: '[113694.1.400388387]'
  Body:
  [*
    Dialog.ApplyChanges();
    Dialog.EndModal( 1 );
  *]
  DefinitionID: 'Responsedef_GUIButtonBase_OnClick'
  Precondition:
  [*
    feedbacks := construct( Strings );
    sanitycheckfeedbacks := construct( Strings );                         
    
    manufactureddate := Dialog.GetManufacturedDateWithUIRestriction( GUIDateSelectorManufacturedDate.DateTime().Date(), GUIDateTimeSelectorDate.DateTime().Date() );
    isvalid := ActualProductInStockingPointInPeriod::ValidateInput( feedbacks,
                                                                    sanitycheckfeedbacks,
                                                                    MacroPlan,
                                                                    SelectionProduct.Data(),
                                                                    SelectionStockingPoint.Data(),
                                                                    Dialog.Data().WrappedInstance(),
                                                                    ApplicationLibMacroPlanner.FormatStringToReal( EditorInventoryLevelEnd.Text() ),
                                                                    GUIDateTimeSelectorDate.DateTime().Date(),
                                                                    manufactureddate );
    
    feedback := feedbacks.ToString( String::NewLine() );
    
    return isvalid;
  *]
}
