From 2b083591cb7d72c8c3367c0fc111a097cd36b6f3 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期三, 21 八月 2024 10:52:56 +0800
Subject: [PATCH] 客户需求(PPA+IDS)前端设置

---
 _Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl b/_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
index 6c951ff..afb4b46 100644
--- a/_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
+++ b/_Main/BL/Type_CustomerDemandPPAIDS/StaticMethod_GenerateData.qbl
@@ -1,7 +1,8 @@
 Quintiq file version 2.0
 #parent: #root
 StaticMethod GenerateData (
-  MacroPlan macroplan,
+  const MacroPlan macroplan,
+  InterfaceDataset interfaceDataset,
   Boolean versionflag
 )
 {
@@ -9,7 +10,16 @@
   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
+                                             );
     }
   *]
 }

--
Gitblit v1.9.3