| 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 |  | Method MoveToRoutingStep ( |  |   RoutingStep routingstep |  | ) |  | { |  |   Description: 'Move this operation to argument routing step.' |  |   TextBody: |  |   [* |  |     // Adhi Feb-17-2016 (created) |  |      |  |     // Relation is set declaratively by routing step name, also update typeindex |  |     newoperationid := Operation::GetConcatenatedID( this.RoutingID(), routingstep.Name(), this.UnitID() ); |  |      |  |     this.Update( this.Unit(), newoperationid, this.Name(), |  |                  routingstep, this.LeadTime(), this.StandardDeviationLeadTime() ,this.Throughput(), |  |                  this.HasUserLotSize(), this.UserMinimumQuantity(), this.HasUserMaximumQuantity(), |  |                  this.UserMaximumQuantity(), this.UserLotSize(), this.CO2Emission() , false ); |  |      |  |      |  |     // Remove all operation links in the operation |  |     sourceols := selectset( this, SourceOperationLink, sol, true ); |  |     destols := selectset( this, DestinationOperationLink, dol, true ); |  |      |  |     operationlinks := sourceols.Union( destols ); |  |      |  |     BaseOperationLink::Delete( operationlinks ); |  |   *] |  | } | 
 |