hongji.li
2023-11-11 df5a7e1ad6835e78b2f9eb7428817b0c23b116bc
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
Quintiq file version 2.0
#parent: #root
Method Initialize () id:Method_DialogCreateEditSupplyCost_Initialize
{
  #keys: '[145730.1.1199837130]'
  Body:
  [*
    // Initialize form
    // Workaround: Account dropdown using selection changed to disabled itself when batch edit (as not able to disable from here before show modal)
    
    // Set inventory supply related data as readonly
    this.SetAllReadOnly();
    
    // Enable / disable checkboxCost
    this.EnableDisableBatch();
    
    // Set drop down list account data
    allowedAccounts := construct( Account_MPs );
    allowedCostDrivers := construct( Strings );
    MacroPlan.GetAccounts( Form.GetCostType(), &allowedAccounts, &allowedCostDrivers );
    DataHolderAllowedAccounts.Data( &allowedAccounts );
    
    // Set Label
    this.SetLabel();
    
    // Show the dialog
    ApplicationMacroPlanner.ShowFormModal( this );
  *]
}