Quintiq file version 2.0
#parent: pnlActions/btnOk
Response OnClick () id:Response_pnlActions_btnOk_OnClick
{
  #keys: '[414702.0.157903693]'
  DefinitionID: 'Responsedef_WebButton_OnClick'
  QuillAction
  {
    Body:
    [*
      Form.ApplyChanges();
      
      //Form.OnOK();
      Form.ApplyChanges();
      
      data := DataHolderDialogData.Data();
      panelMaterial := data.WrappedInstance();
      if ( isnull( panelMaterial ) ) {
        GlobalOTDTable.PanelMaterial( relnew, 
                                      PanelModel          := ddslPanelModel.Text(), 
                                      MaterialDescription := efMaterialDescription.Text(), 
                                      StartDate           := dsStartDate.Date(),
                                      DemandQuantity      := npDemandQuantity.Number() );
      } else {
        panelMaterial.PanelModel( ddslPanelModel.Text() );
        panelMaterial.MaterialDescription( efMaterialDescription.Text() );
        panelMaterial.StartDate( dsStartDate.Date() );
        panelMaterial.DemandQuantity( npDemandQuantity.Number() );
      }
      
      Form.Close();
    *]
    GroupServerCalls: false
  }
}
