Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod InitiateSearch ( 
 | 
  MacroPlan owner 
 | 
) as DLEngineLogisticsCostReport 
 | 
{ 
 | 
  TextBody: 
 | 
  [* 
 | 
    // 甄兰鸽 Sep-29-2024 (created) 
 | 
    allunit                   := DLEngineLogisticsCostReport::GetDefaultAllUnit(); 
 | 
    search                    := owner.DLEngineLogisticsCostSearch(); 
 | 
    if( isnull( search ) ){ 
 | 
      search                  := owner.DLEngineLogisticsCostSearch( relnew, Generation := allunit, MqbMlb := allunit, Power := allunit ); 
 | 
    }else{ 
 | 
      search                  := owner.DLEngineLogisticsCostSearch(); 
 | 
      search.Generation( allunit ); 
 | 
      search.MqbMlb( allunit ); 
 | 
      search.Power( allunit ); 
 | 
    } 
 | 
    table                     := selectobject( owner, DLEngineLogisticsCostReport, table, table.IsShow() ); 
 | 
    if( not isnull( table ) ){ 
 | 
      products                := selectset( owner, Product_MP, product, true ); 
 | 
      table.Generate( search, products ); 
 | 
    } 
 | 
    return table; 
 | 
  *] 
 | 
} 
 |