limj
2023-10-24 93652435728de839582440eefd5122c281181d35
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
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() ) );
  *]
}