Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method EnableDisableComponent ( 
 | 
  Boolean isbatchedit, 
 | 
  Boolean enableprimarykeysselector 
 | 
) id:Method_DialogCreateEditUnitAvailability_EnableDisableComponent 
 | 
{ 
 | 
  #keys: '[11766.1.1520857138]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Enable disable components 
 | 
     
 | 
    if( isbatchedit or not enableprimarykeysselector ) 
 | 
    { 
 | 
      SelectionUnit.DisableWithUserFeedback( Translations::MP_Designer_DisableSelectorForBatchEditAndWhenEditFromPeriodList( 'unit' ) ); 
 | 
      GUIStartDateTimeSelector.DisableWithUserFeedback( Translations::MP_Designer_DisableSelectorForBatchEditAndWhenEditFromPeriodList( 'start date' ) ); 
 | 
    } 
 | 
     
 | 
    GroupPanelMaintenance.Enabled( not isbatchedit 
 | 
                                   or( isbatchedit and CheckBoxBatchEditMaintenance.Checked() ) ); 
 | 
     
 | 
    EditorEfficiency.Enabled( not isbatchedit 
 | 
                                        or( isbatchedit and CheckBoxBatchEditEfficiency.Checked() ) ); 
 | 
     
 | 
    EditorAllocation.Enabled( not isbatchedit 
 | 
                                       or( isbatchedit and CheckBoxBatchEditAllocation.Checked() ) ); 
 | 
     
 | 
    SelectionShiftPattern.Enabled( not isbatchedit 
 | 
                                         or( isbatchedit and CheckBoxBatchEditShiftPattern.Checked() ) ); 
 | 
     
 | 
    EditorMaxLoadPercentage.Enabled( not isbatchedit 
 | 
                                              or( isbatchedit and CheckBoxBatchEditMaxLoadPercentage.Checked() ) ); 
 | 
     
 | 
    EditorNrOfUnitsOpen.Enabled( not isbatchedit 
 | 
                                 or( isbatchedit and CheckBoxBatchEditNrOfUnitsOpen.Checked() ) ); 
 | 
     
 | 
    EditorMinimumLoadThreshold.Enabled( not isbatchedit 
 | 
                                        or ( isbatchedit and CheckBoxBatchEditMinimumLoadThreshold.Checked() ) ); 
 | 
  *] 
 | 
} 
 |