1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod MenuEdit ( 
 |    LibUTF_IterationRun run, 
 |    MacroPlan macroplan, 
 |    String id, 
 |    NamedValueTree nvt_routing 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      instance := UI_Routing::FindSingle( run, macroplan, false, id ); 
 |      if ( run.AssertNotIsNull( instance, "Routing " + id + " not found" ) ) 
 |      { 
 |        dto := DTO_Routing::ConstructEdit( run, instance, nvt_routing ); 
 |         
 |        instance.Update( dto.ID(), dto.Name(), dto.Start(), dto.End(), dto.AllowWIPInventory(), dto.IsEnabled(), false ); 
 |      } 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |