Quintiq file version 2.0
#parent: #root
Method EnableDisableComponent (
  Boolean isbatchedit,
  Boolean enableprimarykeyselectors
) id:Method_DialogCreateEditInventorySpecification_EnableDisableComponent
{
  #keys: '[105706.0.1330943657]'
  Body:
  [*
    // Enable disable components
    
    if( isbatchedit or not enableprimarykeyselectors )
    {
      SelectionProduct.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'product' ) );
      SelectionStockingPoint.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'stocking point' ) );
      GUIStartDateTimeSelector.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'start date' ) );
    }
    
    
    GroupPanelMinLevel.Enabled( not isbatchedit
                                or( isbatchedit and CheckBoxBatchEditMinLevel.Checked() ) );
    
    GroupPanelMaxLevel.Enabled( not isbatchedit
                                or( isbatchedit and CheckBoxBatchEditMaxLevel.Checked() ) );
  *]
}
