| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod GenerateData ( |
| | | MacroPlan macroplan, |
| | | const MacroPlan macroplan, |
| | | InterfaceDataset interfaceDataset, |
| | | Boolean versionflag |
| | | ) |
| | | { |
| | |
| | | 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 |
| | | ); |
| | | } |
| | | *] |
| | | } |