Quintiq file version 2.0
|
#parent: #root
|
Response OnCreated () id:Response_FrmAuthorizeAndCountersign_Material_OnCreated
|
{
|
#keys: '[414724.0.113356318]'
|
CanBindMultiple: false
|
DefinitionID: 'Responsedef_WebComponent_OnCreated'
|
Precondition:
|
[*
|
return not isnull( MacroPlan);
|
*]
|
QuillAction
|
{
|
Body:
|
[*
|
// 获取选择后的SKU
|
SelectItem := select( MacroPlan,H_MessagePassing,Obj,Obj.FKey()="FrmMaterial" and Obj.ItemKey()="ListSelect");
|
if(not isnull( SelectItem))
|
{
|
if(SelectItem.ValueJsonString().Length()>0)
|
{
|
JInfo := JSON::Parse( SelectItem.ValueJsonString());
|
lb_SUK_FAACM.Text(JInfo.Get( "ParentSKU").GetString());
|
lb_SKUName_FAACM.Text(JInfo.Get( "ParentSKUName").GetString());
|
lb_MaterialCode_FAACM.Text(JInfo.Get( "SKU").GetString());
|
lb_MaterialName.Text(JInfo.Get( "MaterialName").GetString());
|
lb_Unit_FAACM.Text(JInfo.Get( "Unit").GetString());
|
lb_Operator_FAACM.Text(ApplicationMacroPlanner.GetUserName());
|
lb_MaterialType_FAACM.Text(JInfo.Get( "MaterialType").GetString());
|
txt_CustomID_FAACM.Text(JInfo.Get( "CustomCode").GetString());
|
txt_CustomName_FAACM.Text(JInfo.Get( "CustomName").GetString());
|
}
|
}
|
*]
|
GroupServerCalls: false
|
}
|
}
|