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