Quintiq file version 2.0
#parent: #root
Method EnableDisableComponents () id:Method_DialogCreateEditFulfillmentTarget_EnableDisableComponents
{
  #keys: '[127238.0.1975981167]'
  Body:
  [*
    // Enable disable components
    
    
    if( CheckBoxProduct.Checked() )
    {
      SelectionProduct.Enabled( true );
    }
    else
    {
      SelectionProduct.DisableWithUserFeedback( Translations::MP_Designer_DialogCreateEditServiceLevel_DisableProduct() );
    }
    
    if( CheckBoxStockingPoint.Checked() )
    {
      SelectionStockingPoint.Enabled( true );
    }
    else
    {
      SelectionStockingPoint.DisableWithUserFeedback( Translations::MP_Designer_DialogCreateEditServiceLevel_DisableStockingPoint() );
    }
    
    
    if ( CheckBoxSalesSegment.Checked() )
    {
      SelectionSalesSegment.Enabled( true );
    }
    else
    {
      SelectionSalesSegment.DisableWithUserFeedback( Translations::MP_Designer_DialogCreateEditServiceLevel_DisableSalesSegment() );
    }
  *]
}
