haorenhui
2023-10-30 6d6cc10d9e8e242661da7fd655dec155a09d676c
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 InitializeComponents (
  Boolean isbatchedit
) id:Method_DialogCreateEditActualPISPIP_InitializeComponents
{
  #keys: '[139394.1.1044898106]'
  Body:
  [*
    // Hide components
    
    dsDate.Enabled( not isbatchedit,  Translations::MP_Designer_DisableSelectorForBatchEdit( 'Date' ) );
    dsManufacturedDate.Enabled( not isbatchedit, Translations::MP_Designer_DisableSelectorForBatchEdit( 'Manufactured date' ) );
    if( not DataHolderDialogData.Data().ProductInStockingPoint_MP().Product_MP().HasShelfLifeOrMaturation() )
    {
      dsManufacturedDate.Enabled( false, '' );
    }
    
    cbBatchEditQuantity.Visible( isbatchedit );
    cbBatchEditDescription.Visible( isbatchedit );
    
    
    // Enable / disable components
    efQuantity.Enabled( not isbatchedit, '' );
    efDescription.Enabled( not isbatchedit, '' );
  *]
}