From f440868e3bc53beaf4f8f97df0018f0108fc4c48 Mon Sep 17 00:00:00 2001 From: limj <limj@taizhitech.com> Date: 星期二, 26 九月 2023 09:11:59 +0800 Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev --- _Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnDoubleClick.def | 47 +++++++++++++++++++++++++++++++++++++++++------ 1 files changed, 41 insertions(+), 6 deletions(-) diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnDoubleClick.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnDoubleClick.def index b04f7cf..b2a673b 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnDoubleClick.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_List832_OnDoubleClick.def @@ -13,19 +13,33 @@ [* if( not isnull( selection)) { + // 棰勬祴璁㈠崟鍩烘湰淇℃伅 + CustomCode:=""; + CustomName:=""; + SKUName:=""; + SValueJsonString:=""; + // 鑾峰彇瀹㈡埛鍚嶇О鍜屽鎴稩D + if(txtSaveForecastData_FM.Text().Length()>0) + { + jForecast := JSON::Parse( txtSaveForecastData_FM.Text()); + CustomCode := jForecast.Get( "CustomCode").GetString(); + CustomName := jForecast.Get( "CustomName").GetString(); + SKUName := jForecast.Get( "SKUName").GetString(); + } + if(selection.MaterialType()="鍗婃垚鍝�") { - OrderCode:=""; + ForecastID:=""; if( txtSaveForecastData_FM.Text().Length()>0) { - JForecast := JSON::Parse( txtSaveForecastData_FM.Text()); - OrderCode := JForecast.Get( "OrderCode").GetString(); + JForecast := JSON::Parse(txtSaveForecastData_FM.Text()); + ForecastID := JForecast.Get( "ForecastID").GetString(); } - jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.NeedQty(), OrderCode,"-",selection.NeedDate()); + jResult := H_FunctionClass::SM_GetMaterialData( MacroPlan,selection.SKU(),selection.NeedQty(), ForecastID,"-",selection.NeedDate(),GlobalOTDTable); if(jResult.Get( "Status").GetBoolean()) { de_dh_FM_ProductMP.FixedFilter( "object.ParentSKU() = " + selection.SKU().AsQUILL() - + " and object.ForecastID() = " + OrderCode.AsQUILL() + + " and object.ForecastID() = " + ForecastID.AsQUILL() ); } else @@ -35,7 +49,28 @@ } else { - // 寮瑰嚭鐗╂枡鍙嶇鎺堟潈 + SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect"); + if(not isnull(selection)) + { + SValueJsonString:= JSON::Object().Add( "SKU",selection.SKU()) + .Add( "MaterialName",selection.MaterialName()) + .Add( "MaterialType",selection.MaterialType()) + .Add( "OrgCode",selection.OrgCode()) + .Add( "Unit",selection.Unit()) + .Add( "CustomCode",CustomCode) + .Add( "ParentSKU",lb_SUK_FM.Text()) + .Add( "ParentSKUName",SKUName) + .Add( "CustomName",CustomName).Build().AsString(); + } + if(isnull( SelectItem)) + { + MacroPlan.H_MessagePassing(relnew,FKey := "FrmMaterial",ItemKey := "ListSelect", ValueJsonString:=SValueJsonString); + } + else + { + SelectItem.ValueJsonString( SValueJsonString); + } + Application.OpenForm( "FrmAuthorizeAndCountersign_Material","modal"); } } *] -- Gitblit v1.9.3