1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| Quintiq file version 2.0
| #parent: #root
| StaticMethod RecursiveGeneration (
| MacroPlan macroPlan,
| ProductInStockingPoint_MP outputPISP,
| ProductInStockingPoint_MP firstPISP,
| Date startDate
| )
| {
| TextBody:
| [*
| operations := selectset( macroPlan, Routing.RoutingStep.Operation, tempO,
| exists( tempO, OperationOutput, tempOO, tempOO.ProductInStockingPoint_MP() = outputPISP ) );
|
| traverse ( operations, Elements, o ) {
| traverse ( o, OperationInput, tempOI ) {
| inputPISP := tempOI.ProductInStockingPoint_MP();
| CapacityAllocationResultsRuleConfiguration::RecursiveGeneration( macroPlan, tempOI.ProductInStockingPoint_MP(), firstPISP, startDate );
| info( "输入PISP:", inputPISP.Name(), " 输出PISP:", outputPISP.Name(), " 第一次PISP:", firstPISP.Name() );
| }
| }
| *]
| }
|
|