| Quintiq file version 2.0 | 
| #parent: #root | 
| StaticMethod InitiateSearch ( | 
|   InterfaceDataset owner | 
| ) as InventoryPlanArchiveVersion | 
| { | 
|   TextBody: | 
|   [* | 
|     // 甄兰鸽 Sep-29-2024 (created)  | 
|     allunit                   := FinancialProductionReport::GetDefaultAllUnit(); | 
|     search                    := owner.InventoryPlanArchiveVersionSearch(); | 
|     if( isnull( owner.InventoryPlanArchiveVersionSearch() ) ){ | 
|       search                  := owner.InventoryPlanArchiveVersionSearch( relnew, Product := allunit, TimeUnit := Translations::MP_GlobalParameters_Day(), Unit := allunit, StartDate := Date::MinDate(), EndDate := Date::MaxDate() ); | 
|     }else{ | 
|       search                  := owner.InventoryPlanArchiveVersionSearch(); | 
|       search.Product( allunit ); | 
|       search.TimeUnit(  Translations::MP_GlobalParameters_Day() ); | 
|       search.Unit( allunit ); | 
|       search.StartDate( Date::MinDate() ); | 
|       search.EndDate( Date::MaxDate() ); | 
|     } | 
|     table                     := selectobject( owner, InventoryPlanArchiveVersion, table, table.IsShow() ); | 
|     if( not isnull( table ) ){ | 
|       table.Generate( search); | 
|     } | 
|     return table; | 
|   *] | 
| } |