Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method IsInTransportAvailabilities ( 
 | 
  TransportAvailabilitys 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( UnitPeriodTransportTime ), child, 
 | 
                       exists( objects, Elements, ua, ua = child.TransportAvailability() ) ); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      value := exists( objects, Elements, uc, 
 | 
                       uc = this.TransportAvailability() ); 
 | 
    } 
 | 
     
 | 
    return value; 
 | 
  *] 
 | 
} 
 |