From afcb84a794314268332e62c0b26c01a7b38c8115 Mon Sep 17 00:00:00 2001
From: hongjli <3117313295@qq.com>
Date: 星期三, 13 九月 2023 20:32:31 +0800
Subject: [PATCH] 拉料Rest设置

---
 _Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl |   38 +++++++++++++++++++++++++++++++++++++-
 1 files changed, 37 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
index ee27ddc..86d8291 100644
--- a/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
+++ b/_Main/BL/Type_GlobalDTOTable/Method_ReceivingPanelMaterials.qbl
@@ -8,11 +8,47 @@
   [*
     logfile( "--------------------------------------1------------------------------------------------" );
     nameValue := requestnvt.Root();
-    info( nameValue.ToString() );
+    
+    bodyHandle := requestnvt.GetHandle( "Body" );
+    restHandle := requestnvt.GetHandle( "Rest" );
+    restPayloadHandle := requestnvt.GetHandle( "RestPayload" );
+    
+    bodyNameValue := nameValue.Child( bodyHandle );
+    restNameValue := bodyNameValue.Child( restHandle );
+    restPayloadNameValue := restNameValue.Child( restPayloadHandle );
+    
+    releaseDateHandle := requestnvt.GetHandle( "releaseDate" );
+    businessTypeHandle := requestnvt.GetHandle( "businessType" );
+    scenarioNameHandle := requestnvt.GetHandle( "scenarioName" );
+    
+    releaseDateNameValue := restPayloadNameValue.Child( releaseDateHandle );
+    businessTypeNameValue := restPayloadNameValue.Child( businessTypeHandle );
+    scenarioNameNameValue := restPayloadNameValue.Child( scenarioNameHandle );
+    
+    info( "鍙戝竷鏃堕棿锛�", releaseDateNameValue.GetValueAsString(), "    浜嬩笟閮細", businessTypeNameValue.GetValueAsString(), "    鐗堟湰鍙凤細", scenarioNameNameValue.GetValueAsString() );
+    
+    panelMaterialsHandle := requestnvt.GetHandle( "panelMaterials" );
+    panelMaterialsNameValue := restPayloadNameValue.Child( panelMaterialsHandle );
+    childPanelMaterialsNameValue := panelMaterialsNameValue.Children();
+    productIDHandle := requestnvt.GetHandle( "productID" );
+    productDescriptionHandle := requestnvt.GetHandle( "productDescription" );
+    startDateHandle := requestnvt.GetHandle( "startDate" );
+    quantityHandle := requestnvt.GetHandle( "quantity" );
+    traverse ( childPanelMaterialsNameValue, Elements, cpmnv ) {
+      info( "浜у搧锛�", cpmnv.Child( productIDHandle ).GetValueAsString() );
+      info( "浜у搧鎻忚堪锛�", cpmnv.Child( productDescriptionHandle ).GetValueAsString() );
+      info( "寮�濮嬫椂闂达細", cpmnv.Child( startDateHandle ).GetValueAsString() );
+      info( "鏁伴噺锛�", cpmnv.Child( quantityHandle ).GetValueAsString() );
+    }
+    
+    // ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
+    
     
     replynvt := LibInt_MessageAccessor::CreateEmptyMessage();
     LibInt_MessageAccessor::SetHeaderProperty( replynvt, "Content-Type", "application/json" );
     
+    
+    
     return emit( replynvt );
   *]
 }

--
Gitblit v1.9.3