From 030dc8a61839890da90149c05fe76664e16a8fb6 Mon Sep 17 00:00:00 2001
From: yunchai <yunying.chai@capgemini.com>
Date: 星期一, 25 九月 2023 18:02:37 +0800
Subject: [PATCH] 20230925合并代码前备份

---
 _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def |   24 +++++++++++-------------
 1 files changed, 11 insertions(+), 13 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
index 991029e..c178467 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def
@@ -1,7 +1,7 @@
 Quintiq file version 2.0
 #parent: liH_Forecast
 Response OnDoubleClick (
-  H_Forecast selection
+  H_OrderForecastRealQty selection
 ) id:Response_liH_Forecast_OnDoubleClick
 {
   #keys: '[414724.0.111761136]'
@@ -15,28 +15,26 @@
       if( isnull( SelectItem))
       {
          MacroPlan.H_MessagePassing(relnew,FKey :="FrmOrderForecast",ItemKey := "ListSelect",
-                                     Value := selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName(),
                                      ValueJsonString := JSON::Object().Add( "SKU",selection.SKU())
-                                                                       .Add( "Util",selection.Util())
+                                                                       .Add( "Util",selection.Unit())
                                                                        .Add( "CustomCode",selection.CustomCode())
                                                                        .Add( "CustomName",selection.CustomName())
                                                                        .Add( "ForecastQty",selection.ForecastQty())
-                                                                       .Add( "NeedTime",selection.NeedTime().AsQUILL())
-                                                                       .Add( "OrderCode",selection.OrderCode()).Build().AsString());
+                                                                       .Add( "ForecastID",selection.ID())
+                                                                       .Add( "NeedTime",selection.Month().AsQUILL()).Build().AsString());
       }
       else
       {
-        SelectItem.Value(selection.SKU()+";"+selection.Util()+";"+selection.CustomCode()+";"+selection.CustomName());
         SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU())
-                                 .Add( "Util",selection.Util())
-                                 .Add( "CustomCode",selection.CustomCode())
-                                 .Add( "CustomName",selection.CustomName())
-                                 .Add( "ForecastQty",selection.ForecastQty())
-                                 .Add( "NeedTime",selection.NeedTime().AsQUILL())
-                                 .Add( "OrderCode",selection.OrderCode()).Build().AsString());
+                                                 .Add( "Util",selection.Unit())
+                                                 .Add( "CustomCode",selection.CustomCode())
+                                                 .Add( "CustomName",selection.CustomName())
+                                                 .Add( "ForecastQty",selection.ForecastQty())
+                                                 .Add( "ForecastID",selection.ID())
+                                                 .Add( "NeedTime",selection.Month().AsQUILL()).Build().AsString());
       }
       
-      jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.ForecastQty(),selection.OrderCode(),"-",selection.NeedTime());
+      jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.ForecastQty(),selection.ID(),"-",selection.Month());
       if(jResult.Get( "Status").GetBoolean())
       {
         Application.OpenForm( "FrmMaterial","popout");

--
Gitblit v1.9.3