From cd4a8e6eddf711f948922ba88cdf1ea052646f79 Mon Sep 17 00:00:00 2001
From: yunchai <yunying.chai@capgemini.com>
Date: 星期四, 12 十月 2023 09:19:37 +0800
Subject: [PATCH] 临时提交

---
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetMaterialData.qbl |    1 +
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedging.qbl    |   12 ++++++++----
 _Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl  |    6 +++---
 3 files changed, 12 insertions(+), 7 deletions(-)

diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetMaterialData.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetMaterialData.qbl
index 2f75b5f..2a2d4d5 100644
--- a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetMaterialData.qbl
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_GetMaterialData.qbl
@@ -83,6 +83,7 @@
       // 娌℃湁BOM 娣诲姞娴嬭瘯鏁版嵁
       else
       {
+        error( "BOM 鏁版嵁鑾峰彇澶辫触锛屾棤娉曟墿灞曞師鏉愭枡淇℃伅锛�");
         nCount :=Owner.H_MaterialInfo(relsize );
         Owner.H_MaterialInfo(relnew,ParentSKU := ParentSKU,SKU := "SKU"+ nCount.AsQUILL() ,ForecastID := ForecastId,OrgCode := "ORG_000",VCode := VCode
                                     ,ID := H_FunctionClass::SM_GenerateID( "MI"),MaterialType := "鍘熸潗鏂�",NeedDate := NDate
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedging.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedging.qbl
index 88c8f1d..02a2296 100644
--- a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedging.qbl
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedging.qbl
@@ -15,6 +15,10 @@
     *鍒涘缓浜猴細yunying
     *鍒涘缓鏃堕棿锛�20230-09-24
     *鎻忚堪锛氱郴缁熷唴璁㈠崟鍐插噺璋冪敤鍑芥暟锛孖sNew=true鏃讹紝閲嶆柊澶勭悊棰勬祴淇℃伅锛孖sNew=false鏃讹紝鐢ㄩ娴嬬疮璁′俊鎭��
+    *鍙傛暟锛欼sNew 鏄惁鏃舵柊鐨勮绠楄〃绀�
+    *     Operator 鎿嶄綔浜�
+    *     OperatorType 鎿嶄綔绫诲瀷[鍙嶇,鎺堟潈,ERP璁㈠崟]锛岃繖閲屽簲璇ユ槸ERP璁㈠崟
+    *澶囨敞锛氬鎴峰叏閮ㄤ娇鐢ㄥ鎴峰悕绉帮紝涓嶈浣跨敤瀹㈡埛ID锛岄娴嬪師濮嬫暟鎹病鏈夊鎴稩D淇℃伅
     *****************************************************************************/
     // 鍒濆鍖栫粨鏋�
     bStatus := false;
@@ -58,9 +62,9 @@
               nHaveForecastQty :=0; //鏈夐娴嬫暟閲�
               nNoHaveForecastQty:=0;//浜旈娴嬫暟閲�
               OrderQuantity := 0;   //鍓╀綑璁㈠崟鏁伴噺
-              // 鑾峰彇棰勬祴鏁伴噺锛堝鎴�+SKU+鏈堜唤 鐞嗚鏄病鏈夌墿鏂欓娴嬶級
+              // 鑾峰彇棰勬祴鏁伴噺锛堝鎴峰悕绉�+SKU+鏈堜唤 鐞嗚鏄病鏈夌墿鏂欓娴嬶級
               OrderForecast := select(Owner, H_OrderForecastRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() 
-                                                    and Obj.CustomCode() = ObjOrder.CustomerName() 
+                                                    and Obj.CustomName() = ObjOrder.CustomerName() 
                                                     and Obj.Month().Format( "YM2") =ObjOrder.EndDate().Format( "YM2"));
               if ( not isnull(OrderForecast))
               {
@@ -74,9 +78,9 @@
                   nReverseQtyOld := ObjReverse.ReverseRealQty();
                   nReverseQtyNew := nReverseQtyOld;
               }
-              // 鑾峰彇鎺堟潈鏁伴噺锛堝鎴稩D+SKU锛�
+              // 鑾峰彇鎺堟潈鏁伴噺锛堝鎴峰悕绉�+SKU锛�
               ObjAuthorize := select(Owner, H_AuthorizeRealQty , Obj, Obj.SKU() = ObjOrder.ProductID() 
-                                                                      and Obj.CustomID() = ObjOrder.CustomerName());
+                                                                      and Obj.CustomName() = ObjOrder.CustomerName());
               if ( not isnull(ObjAuthorize))
               {
                   nAuthorizeQtyOld := ObjAuthorize.AuthorizeRealQty();
diff --git a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl
index dd62492..67a6bb9 100644
--- a/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl
+++ b/_Main/BL/Type_H_FunctionClass/StaticMethod_SM_OrderHedgingEx.qbl
@@ -150,9 +150,9 @@
     {
       strMsg :="濉骇鍚庤鍗曞啿鍑忓彂鐢熼敊璇紝璇疯仈绯荤郴缁熺鐞嗗憳锛�";
       // 璁板綍閿欒鏃ュ織
-    //  Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderHedgingEx",
-    //                     DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
-    //                     GeneralInformation := e.GeneralInformation());                
+      Owner.H_ErrorLogs(relnew,EClassName := "H_FunctionClass",EDateTime := DateTime::ActualGMTTime(),EFunctionName := "SM_OrderHedgingEx",
+                         DeveloperInformation :=  e.DeveloperInformation(),ErrorNr := e.ErrorNr(),DetailedInformation := e.DetailedInformation(),
+                         GeneralInformation := e.GeneralInformation());                
     }
     return JSON::Object().Add( "Status",bStatus)
                          .Add( "Count",nCount)

--
Gitblit v1.9.3