yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
Method GetUpstreamEntities (
  output owning Units units_o,
  output owning ProductInStockingPoint_MPs pisps_o,
  output owning StockingPoint_MPs stockingpoints_o
) remote
{
  Description: 'Wrapper method used by designer to filter upstream products'
  TextBody:
  [*
    // ju jinn Sep-5-2014 (created)
    
    processes := construct( Process_MPs );
    pisps := construct( ProductInStockingPoint_MPs );
    
    this.ProductInStockingPoint_MP().GetUpstreamPISPsAndProcesses( 20, pisps, processes );
    
    units_o := selectset( processes, Elements.AsProcess_MP.AllParent.AsParent, unit, true, true );
    pisps_o := selectset( pisps, Elements, pisp, true, true );
    stockingpoints_o := selectset( pisps_o, Elements.StockingPoint_MP, sp, true, true );
  *]
}