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