| 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 |  | StaticMethod CreateFromUnits ( |  |   Units units |  | ) as owning Lanes |  | { |  |   Description: 'Create lane with simple input' |  |   TextBody: |  |   [* |  |     lanes := construct( Lanes ); |  |      |  |     traverse( units, Elements, e ) |  |     { |  |       idName := e.GetUniqueLaneName( e.Name() );  |  |       lane := Lane::Create( Process_MP::GetConcatenatedID( e.ID(), idName ) /*ID*/, |  |                             e /*Owner*/, |  |                             idName /*Name*/, |  |                             true /*IsEnabled*/, |  |                             Date::MinDate() /*Start*/, |  |                             Date::MaxDate() /*End*/, |  |                             Duration::Days( 1 ) /*LeadTime*/, |  |                             Duration::Zero() /*StdLeadTime*/, |  |                             false /*IsFromDB*/ ); |  |       lanes.Add( lane ); |  |     } |  |      |  |     return &lanes; |  |   *] |  | } | 
 |