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
| Quintiq file version 2.0
| #parent: #root
| Method UpdateTypeIndex (
| String laneid,
| String originspid,
| String destinationspid
| )
| {
| Description: 'Update LaneLeg TypeIndex and the linked instances.'
| TextBody:
| [*
| // desmondt Mar-16-2015 (created)
|
| if( laneid <> this.LaneID()
| or originspid <> this.OriginStockingPointID()
| or destinationspid <> this.DestinationStockingPointID() )
| {
|
| traverse( this, LaneLegCost, llcost )
| {
| llcost.UpdateForeignKey( laneid, originspid, destinationspid );
| }
|
| traverse( this, Trip.ProductInTrip, pit )
| {
| pit.UpdateTypeIndex( pit.TripID(), pit.ProductID() );
| }
|
| traverse( this, FeedbackProductInTrip, fpit )
| {
| fpit.UpdateForeignKey( laneid, originspid, destinationspid, fpit.ProductID() );
| }
| this.IsManuallyConfigured( true );
| LaneLeg::ChangeKeyLaneLegTypeIndex( this, laneid, originspid, destinationspid );
| }
| *]
| }
|
|