yypsybs
2023-09-09 3cb5a54def670d97301f07170fcaad213bfc54f2
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
Quintiq file version 2.0
#parent: #root
Method EnableDisableComponent (
  Boolean isbatchedit,
  Boolean enableprimarykeyselectors
) id:Method_DialogCreateEditTransportAvailability_EnableDisableComponent
{
  #keys: '[135040.0.3063540]'
  Body:
  [*
    // Enable disable components 
    // GroupPanelGeneral
    if( isbatchedit or not enableprimarykeyselectors )
    {
      SelectionUnit.DisableWithUserFeedback( Translations::MP_Designer_DisableSelectorForBatchEditAndWhenEditFromPeriodList( 'unit' ) );
      GUIStartDateTimeSelector.DisableWithUserFeedback( Translations::MP_Designer_DisableSelectorForBatchEditAndWhenEditFromPeriodList( 'start date' ) );
    }
    // ShiftPattern
    SelectionShiftPattern.Enabled( not isbatchedit
                                   or( isbatchedit and CheckBoxBatchEditShiftPattern.Checked() ) );
     
    // GroupPanelMaintenance
    GroupPanelMaintenance.Enabled( not isbatchedit
                                   or( isbatchedit and CheckBoxBatchEditMaintenance.Checked() ) );
    
    // GroupPanelLotSize
    EditorLotSize.Enabled( not isbatchedit
                               or( isbatchedit and CheckBoxBatchEditLotSize.Checked() ) );
     
    // Capacities min max
    EditorMaximumQuantity.Enabled( not isbatchedit
                                   or( isbatchedit and CheckBoxBatchEditCapacity.Checked() ) );
    
    // EditorNumberOfUnit
    EditorNumberOfUnit.Enabled( not isbatchedit
                                     or( isbatchedit and CheckBoxBatchEditNumberOfUnit.Checked() ) );
  *]
}