Quintiq file version 2.0 
 | 
#parent: #root 
 | 
Method SetDefaultValue () id:Method_DialogCreateEditTrip_SetDefaultValue 
 | 
{ 
 | 
  #keys: '[113694.0.1562995849]' 
 | 
  Body: 
 | 
  [* 
 | 
    // Set dialog default value 
 | 
     
 | 
    data := Dialog.Data(); 
 | 
    if( isnull( data.WrappedInstance() ) ) 
 | 
    { 
 | 
      pispip := DataHolderTargetPISPIP.Data(); 
 | 
     
 | 
      laneleg := Trip::GetDefaultOwner( MacroPlan, pispip ); 
 | 
      data.LaneLeg( relset, laneleg ); 
 | 
     
 | 
      if( not isnull( pispip ) ) 
 | 
      { 
 | 
        upt := select( data, LaneLeg.AsProcess_MP.PlanningUnitPeriod.astype( UnitPeriodTransportBase ), upt,  
 | 
                       upt.Period_MP().Start() = pispip.Period_MP().Start() ); 
 | 
                        
 | 
     
 | 
        data.ArrivalUnitPeriod( relset, upt ); 
 | 
      } 
 | 
    } 
 | 
  *] 
 | 
} 
 |