| 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
35
36
37
38
39
40
 | | Quintiq file version 2.0 |  | #parent: #root |  | StaticMethod Create ( |  |   Lane owner, |  |   String originstockingpointid, |  |   String deststockingpointid, |  |   Boolean isenabled, |  |   Date start, |  |   Date end, |  |   String name, |  |   Boolean hasuserleadtime, |  |   Duration userleadtime, |  |   Boolean hasstandarddeviationleadtime, |  |   Duration standarddeviationleadtime, |  |   Real preferencebonus, |  |   Real co2Emission, |  |   Boolean isfromdb |  | ) as LaneLeg |  | { |  |   TextBody: |  |   [* |  |     // Another Create method for MPSync due to no SPInLane can be retrieved based on the import data |  |     leg := owner.LaneLeg( relnew, |  |                           LaneLeg, |  |                           LaneID := owner.ID(), |  |                           OriginStockingPointID := originstockingpointid, |  |                           DestinationStockingPointID := deststockingpointid, |  |                           IsEnabled := isenabled, |  |                           Start := start, |  |                           End := end, |  |                           SystemName := name, |  |                           HasUserLeadTime := hasuserleadtime, |  |                           UserLeadTime := userleadtime, |  |                           HasStandardDeviationLeadTimeLaneLeg := hasstandarddeviationleadtime, |  |                           StandardDeviationLeadTimeLaneLeg := standarddeviationleadtime, |  |                           CO2Emission := co2Emission ); |  |     leg.IsManuallyConfigured( not isfromdb ); |  |     return leg; |  |   *] |  | } | 
 |