From 3e98477644a8c248d827dbc6eedb3a41c8cbcfea Mon Sep 17 00:00:00 2001
From: 陈清红 <420599804@qq.com>
Date: 星期二, 03 十二月 2024 18:55:28 +0800
Subject: [PATCH] 下线计划优化

---
 _Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
index b450973..96372d0 100644
--- a/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
+++ b/_Main/BL/Type_NewOfflinePlanCell/StaticMethod_DeductionOfReplacementLoss.qbl
@@ -14,7 +14,7 @@
     allProductionLines := selectuniquevalues( newNOPT, NewOfflinePlanRow, tempNOPR, true, tempNOPR.ProductionLine() );
     
     traverse ( allProductionLines, Elements, pl
-    //           , pl = "CC MoMo" 
+    //           , pl = "CC ZKG" 
              ) 
     {
       // 涓嬬嚎璁″垝褰撳墠浜х嚎涓嬬殑琛�
@@ -24,14 +24,15 @@
       preNOPCell := null( NewOfflinePlanCell );
       
       traverse ( newNOPT, NewOfflinePlanColumn, nopc
-    //             , nopc.StartDate() >= macroPlan.StartOfPlanning().Date() and nopc.StartDate() <= Date::Construct( 2025, 1, 16 ) // 娴嬭瘯鏃跺彲浠ヨ繃婊ゆ椂闂�
+    //             , nopc.StartDate() >= macroPlan.StartOfPlanning().Date() and nopc.StartDate() <= Date::Construct( 2025, 1, 7 ) // 娴嬭瘯鏃跺彲浠ヨ繃婊ゆ椂闂�
                ) 
       {         
         for ( i := 1; i < 10; i++ ) {
           nopcell := select( noprs, Elements.NewOfflinePlanCell, tempNOPC, tempNOPC.NewOfflinePlanColumn() = nopc and tempNOPC.OrderNr() = i and tempNOPC.Order() <> "" );
           
           // 鎹㈠瀷鎹熷け鍙傛暟
-          cls     := select( macroPlan, ChangeLossSetting, tempCLS, 
+          cls     := select( macroPlan, ChangeLossSetting, tempCLS,
+                             tempCLS.Unit().ID()          = pl                                                      and 
                              tempCLS.ProductFirst().ID()  = guard( preNOPCell.NewOfflinePlanRow().ProductID(), "" ) and
                              tempCLS.ProductSecond().ID() = guard( nopcell.NewOfflinePlanRow().ProductID(), "" )    and
                              tempCLS.StartDate()          <= nopc.StartDate()                                       and

--
Gitblit v1.9.3