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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod MenuEdit ( 
 |    LibUTF_IterationRun run, 
 |    MacroPlan macroplan, 
 |    String unitid, 
 |    String fromcampaingtype, 
 |    String tocampaigntype, 
 |    NamedValueTree nvt_transitiontype 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      instance := UI_TransitionType::FindSingle( run, macroplan, unitid, fromcampaingtype, tocampaigntype ); 
 |       
 |      dto := DTO_TransitionType::ConstructEdit( run, instance, nvt_transitiontype ); 
 |      unit := macroplan.FindUnit( unitid ); 
 |      from := select( unit, CampaignType_MP, type, type.Name() = fromcampaingtype ); 
 |      to := select(  unit, CampaignType_MP, type, type.Name() = tocampaigntype ); 
 |       
 |      instance.Update( unit, 
 |                       dto.Name(), 
 |                       dto.DefaultMinQuantity(), 
 |                       dto.DefaultMaxQuantity(), 
 |                       dto.DefaultMinDuration(), 
 |                       dto.DefaultMaxDuration(), 
 |                       from, 
 |                       to, 
 |                       dto.HasInputMaxQuantity(), 
 |                       dto.HasInputMaxDuration(), 
 |                       false ); 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |