lazhen
2024-08-21 2b083591cb7d72c8c3367c0fc111a097cd36b6f3
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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
                                             );
    }
  *]
}