| Quintiq file version 2.0 | 
| #parent: #root | 
| Method IsInTransportCapacities ( | 
|   TransportCapacitys objects | 
| ) declarative remote as Boolean | 
| { | 
|   Description: 'Used by filter in designer' | 
|   TextBody: | 
|   [* | 
|     // soh yee Nov-1-2012 (created) | 
|      | 
|     value := true; | 
|     children := this.GetChildrenOfPeriodDimension(); | 
|      | 
|     if( children.Size() > 0 ) | 
|     { | 
|       value := exists( children, Elements.astype( UnitPeriodTransportQuantity ), child, | 
|                        exists( objects, Elements, ua, ua = child.TransportCapacity() ) ); | 
|     } | 
|     else | 
|     { | 
|       value := exists( objects, Elements, uc, | 
|                        uc = this.TransportCapacity() ); | 
|     } | 
|      | 
|     return value; | 
|   *] | 
| } |