hongjli
2023-10-10 d594137a0d5684bb32db001cfc3dde065469d178
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Quintiq file version 2.0
#parent: #root
StaticMethod RecursiveGeneration (
  MacroPlan macroPlan,
  ProductInStockingPoint_MP outputPISP
)
{
  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() );
        info( "输入PISP:", inputPISP.Name(), "      输出PISP:", outputPISP.Name() );
      }
    }
  *]
}