From e528264b38b96ad2f59ba9d7ab5d5b17385cb777 Mon Sep 17 00:00:00 2001
From: Administrator <renhui.hao@capgemini.com>
Date: 星期日, 24 九月 2023 18:58:45 +0800
Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/dev'
---
_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
index 1704689..c3a42c1 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FrmMaterial/Response_OnCreated.def
@@ -2,20 +2,28 @@
#parent: #root
Response OnCreated () id:Response_FrmMaterial_OnCreated
{
- #keys: '[414724.0.93205703]'
+ #keys: '[414724.0.118802220]'
CanBindMultiple: false
DefinitionID: 'Responsedef_WebComponent_OnCreated'
QuillAction
{
Body:
[*
+ ds_Month_FM.Date(Date::ActualDate());
+ txtSaveForecastData_FM.Text("");
// 鑾峰彇閫夋嫨鍚庣殑SKU
SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmOrderForecast" and Obj.ItemKey()="ListSelect");
- if(not isnull( SelectItem) and SelectItem.Value().Length()>0)
+ if(not isnull( SelectItem))
{
- StrValue := SelectItem.Value().Tokenize( ";");
- lb_SUK_FM.Text(StrValue.Element( 0));
- de_dh_FM_ProductMP.FixedFilter( "object.ParentID()="+lb_SUK_FM.Text());
+ if( SelectItem.ValueJsonString().Length()>0)
+ {
+ txtSaveForecastData_FM.Text( SelectItem.ValueJsonString());
+ JSelect := JSON::Parse( SelectItem.ValueJsonString());
+ lb_SUK_FM.Text(JSelect.Get( "SKU").GetString());
+ de_dh_FM_ProductMP.FixedFilter( "object.ParentSKU() = " + JSelect.Get( "SKU").GetString().AsQUILL()
+ + " and object.ForecastID() = " + JSelect.Get( "OrderCode").GetString().AsQUILL()
+ );
+ }
}
*]
GroupServerCalls: false
--
Gitblit v1.9.3