Quintiq file version 2.0
#parent: #root
Method EnableDisableComponent (
  Boolean isbatchedit
) id:Method_DialogCreateEditServiceLevel_EnableDisableComponent
{
  #keys: '[146140.0.1162952467]'
  Body:
  [*
    // Enable or disable components
    // All but CheckboxTargetPercentage and EditFieldTargetPercentage are 
    // disable during batch editing
    
    EditFieldName.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( EditFieldName.Label() ) );
    DropDownListProduct.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( DropDownListProduct.Label() ) );
    DropDownListStockingPoint.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( DropDownListStockingPoint.Label() ) );
    DateSelectorStart.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( DateSelectorStart.Label() ) );
    DateSelectorEnd.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( DateSelectorEnd.Label() ) );
    EditFieldTargetPercentage.Enabled( not isbatchedit or Form.CheckBoxBatchEditTargetPercentage().Checked(),"" );
  *]
}
