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
Quintiq file version 2.0
#parent: #root
Method EnableDisableComponent (
  Boolean isbatchedit,
  Boolean enableprimarykeyselectors
) id:Method_DialogCreateEditInventorySpecification_EnableDisableComponent
{
  #keys: '[105706.0.1330943657]'
  Body:
  [*
    // Enable disable components
    
    if( isbatchedit or not enableprimarykeyselectors )
    {
      SelectionProduct.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'product' ) );
      SelectionStockingPoint.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'stocking point' ) );
      GUIStartDateTimeSelector.DisableWithUserFeedback( Translations::MP_Designer_DisableSelector( 'start date' ) );
    }
    
    
    GroupPanelMinLevel.Enabled( not isbatchedit
                                or( isbatchedit and CheckBoxBatchEditMinLevel.Checked() ) );
    
    GroupPanelMaxLevel.Enabled( not isbatchedit
                                or( isbatchedit and CheckBoxBatchEditMaxLevel.Checked() ) );
  *]
}