Quintiq file version 2.0
|
#parent: #root
|
StaticMethod GenerateData (
|
const MacroPlan macroplan,
|
InterfaceDataset interfaceDataset,
|
Boolean versionflag
|
)
|
{
|
Description: '生成可以下发的客户需求(PPA+IDS)数据'
|
TextBody:
|
[*
|
// 甄兰鸽 Aug-20-2024 (created)
|
interfaceDataset.CustomerDemandPPAIDS( relflush );
|
nowdate := DateTime::ActualTime();
|
traverse( macroplan, SalesDemand.astype( Forecast ), forecast ){
|
interfaceDataset.CustomerDemandPPAIDS( relnew, Product := forecast.ProductID()
|
, DemandDate := forecast.StartDate()
|
, DemandQty := [Number]forecast.Quantity()
|
, VersionName := macroplan.ScenarioName()
|
, InterfaceTime := nowdate
|
, VersionFlag := versionflag
|
);
|
}
|
*]
|
}
|