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
Quintiq file version 2.0
#parent: #root
Method Copy (
  structured[AccountCost] accountCosts,
  FormTransportationCosts formTransportationCosts
) id:Method_DialogCreateEditTransportationCost_Copy
{
  #keys: '[145730.1.949307211]'
  Body:
  [*
    // Copy account cost
    laneLegCost := accountCosts.First().astype( LaneLegCost );
    shadowCost := shadow( laneLegCost );
    shadowCost.ResetWrapped();
    shadowCost.ID( MacroPlan.IDHolder().GetLaneLegCostID() );
    
    // Set dialog data
    DataHolderDialogData.Data( &shadowCost );
    DataHolderForm.Data( formTransportationCosts );
    DataHolderFormLaneLeg.Data( this.SetLaneLeg( laneLegCost.LaneLeg() ) );
    
    // Initialize dialog
    this.Initialize();
  *]
}