From a520b98f6d6951245266e7b80ad3b3e22aa8af72 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期二, 10 十二月 2024 11:11:03 +0800
Subject: [PATCH] 换型损失优化

---
 _Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def |    3 ++-
 _Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl                                |    4 +++-
 2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
index 96372d0..5f6c716 100644
--- a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
+++ b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
@@ -2,7 +2,8 @@
 #parent: #root
 StaticMethod DeductionOfReplacementLoss (
   MacroPlan macroPlan,
-  NewOfflinePlanTable nopt
+  NewOfflinePlanTable nopt,
+  Entitys entitys
 )
 {
   TextBody:
@@ -15,6 +16,7 @@
     
     traverse ( allProductionLines, Elements, pl
     //           , pl = "CC ZKG" 
+               , exists( entitys, Elements.astype( Unit ), tempU, tempU.Name() = pl ) 
              ) 
     {
       // 涓嬬嚎璁″垝褰撳墠浜х嚎涓嬬殑琛�
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def
index 74ed9c2..a3d38e6 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormNewOfflinePlan/Response_pHeader_bDeductChangeoverLoss_OnClick.def
@@ -13,7 +13,8 @@
   {
     Body:
     [*
-      NewOfflinePlanCell::DeductionOfReplacementLoss( MacroPlan, dhNewOfflinePlanTable.Data() );
+      NewOfflinePlanCell::DeductionOfReplacementLoss( MacroPlan, dhNewOfflinePlanTable.Data(),
+                                                      DataHolderCheckedEntities.Data() );
       
       opt := maxselect( MacroPlan, NewOfflinePlanTable, tempNOPT, true, tempNOPT.SaveDateTime() );
       dhNewOfflinePlanTable.Data( opt );

--
Gitblit v1.9.3