Quintiq file version 2.0
#parent: #root
Method EnableDisableComponents (
  Boolean isbatchedit
) id:Method_DialogCreateEditActualUnitPeriod_EnableDisableComponents
{
  #keys: '[113694.1.407363596]'
  Body:
  [*
    // Enable/Disable components for batch editing
    
    LabelUtilizationPercentage.Enabled( not isbatchedit or CheckBoxBatchEditUtilization.Checked() );
    EditorActualUtilizationPercentage.Enabled( not isbatchedit or CheckBoxBatchEditUtilization.Checked() );
    
    LabelTotalAvailableQuantity.Enabled( not isbatchedit or CheckBoxBatchEditTotalAvailableQuantity.Checked() );
    EditorActualTotalAvailableCapacity.Enabled( not isbatchedit or CheckBoxBatchEditTotalAvailableQuantity.Checked() );
    
    LabelTotalAvailableDuration.Enabled( not isbatchedit or CheckBoxBatchEditTotalAvailableDuration.Checked() );
    GUIDurationSelector.Enabled( not isbatchedit or CheckBoxBatchEditTotalAvailableDuration.Checked() );
    
    LabelDescription.Enabled( not isbatchedit or CheckBoxBatchEditDescription.Checked() );
    EditorDescription.Enabled( not isbatchedit or CheckBoxBatchEditDescription.Checked() );
  *]
}
