From 42fcbc2af4a8ff66ee1374519422524161300e42 Mon Sep 17 00:00:00 2001
From: yanyuan <yuan.yan@capgemini.com>
Date: 星期日, 08 十月 2023 21:05:10 +0800
Subject: [PATCH] 产能分配结果BUG修改

---
 _Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff --git a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl
index 67a1281..a0137d5 100644
--- a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl
+++ b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl
@@ -61,11 +61,14 @@
                                  moperationcost, 
                                  moperationcost.OrgCode() = item.OrganCode(), 
                                  moperationcost.ProductID() = item.ProductID() );
-        cost := connecteditem.Cost();
-        lengthoftime := connecteditem.LengthOfTime();
-        start := connecteditem.Start();
-        timeunit := connecteditem.TimeUnit();
-        OperationCost::Create( id, operation, account, "Volume", start, timeunit, lengthoftime, cost, isfromdb );
+        if( not isnull( connecteditem)){
+            cost := connecteditem.Cost();
+            lengthoftime := connecteditem.LengthOfTime();
+            start := connecteditem.Start();
+            timeunit := connecteditem.TimeUnit();
+            OperationCost::Create( id, operation, account, "Volume", start, timeunit, lengthoftime, cost, isfromdb );
+          }
+        
         }
       }
   *]

--
Gitblit v1.9.3