From 2709b3e28de35a866a65fa72f589d38a43d5045b Mon Sep 17 00:00:00 2001 From: hongji.li <hongji.a.li@capgemini.com> Date: 星期日, 24 九月 2023 18:47:20 +0800 Subject: [PATCH] Merge branch 'dev_cyy' into dev --- _Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def | 21 ++++++++++++++++++--- 1 files changed, 18 insertions(+), 3 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 4333154..991029e 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FrmOrderForecast/Response_liH_Forecast_OnDoubleClick.def @@ -19,7 +19,10 @@ ValueJsonString := JSON::Object().Add( "SKU",selection.SKU()) .Add( "Util",selection.Util()) .Add( "CustomCode",selection.CustomCode()) - .Add( "CustomName",selection.CustomName()).Build().AsString()); + .Add( "CustomName",selection.CustomName()) + .Add( "ForecastQty",selection.ForecastQty()) + .Add( "NeedTime",selection.NeedTime().AsQUILL()) + .Add( "OrderCode",selection.OrderCode()).Build().AsString()); } else { @@ -27,9 +30,21 @@ SelectItem.ValueJsonString(JSON::Object().Add( "SKU",selection.SKU()) .Add( "Util",selection.Util()) .Add( "CustomCode",selection.CustomCode()) - .Add( "CustomName",selection.CustomName()).Build().AsString()); + .Add( "CustomName",selection.CustomName()) + .Add( "ForecastQty",selection.ForecastQty()) + .Add( "NeedTime",selection.NeedTime().AsQUILL()) + .Add( "OrderCode",selection.OrderCode()).Build().AsString()); } - Application.OpenForm( "FrmMaterial","popout"); + + jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.ForecastQty(),selection.OrderCode(),"-",selection.NeedTime()); + if(jResult.Get( "Status").GetBoolean()) + { + Application.OpenForm( "FrmMaterial","popout"); + } + else + { + WebMessageBox::Warning( jResult.Get( "Msg").GetString()); + } *] GroupServerCalls: false } -- Gitblit v1.9.3