1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method IsAlternativeOperation ( 
 |    Operation operation 
 |  ) declarative remote as Boolean 
 |  { 
 |    Description: 'True if a operation has the same set of input/output products as this one' 
 |    TextBody: 
 |    [* 
 |      // Wayne Apr-25-2013 (created) 
 |       
 |      //check output products 
 |      value := false; 
 |      if( this <> operation ) 
 |      { 
 |        set1 := selectset( this, OperationOutput.ProductInStockingPoint_MP, pisp, true ); 
 |        set2 := selectset( operation, OperationOutput.ProductInStockingPoint_MP, pisp, true ); 
 |        commonoutput := set1.Intersect( set2 ); 
 |        value := commonoutput.Size() > 0; 
 |      } 
 |       
 |      return value; 
 |    *] 
 |  } 
 |  
  |