From ef42765827dbd7c60d23dffd9a5bd510d0d76617 Mon Sep 17 00:00:00 2001
From: admin <admin@admin.com>
Date: 星期二, 22 十月 2024 18:17:38 +0800
Subject: [PATCH] 连续生产优化

---
 _Main/BL/Type_WholeShift/Method_PostProcessing2.qbl |    4 ++--
 _Main/BL/Type_WholeShift/Method_MobileCycleTask.qbl |    4 ++++
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/Type_WholeShift/Method_MobileCycleTask.qbl b/_Main/BL/Type_WholeShift/Method_MobileCycleTask.qbl
index e561a1a..91571aa 100644
--- a/_Main/BL/Type_WholeShift/Method_MobileCycleTask.qbl
+++ b/_Main/BL/Type_WholeShift/Method_MobileCycleTask.qbl
@@ -12,10 +12,14 @@
     
     // 鍒ゆ柇鍙敤浜ц兘鏄惁涓�鑷�
     if ( fillUPTB.BaseAvailableCapacity().HoursAsReal() = targetUPTB.BaseAvailableCapacity().HoursAsReal() ) {
+      // 鍒犻櫎闇�瑕佸~鍏呯殑UPTB
+      PeriodTaskOperation::Delete( selectset( fillUPTB, PeriodTaskOperation, tempPTO, true ) );
+      
       traverse ( targetUPTB, PeriodTaskOperation, pto ) {
         PeriodTaskOperation::Create( pto.Operation(), fillUPTB, pto.Quantity(), false );
       }
       
+      // 鍒犻櫎鐩爣琚彇鏁扮殑UPTB
       PeriodTaskOperation::Delete( selectset( targetUPTB, PeriodTaskOperation, tempPTO, true ) );
     }
     
diff --git a/_Main/BL/Type_WholeShift/Method_PostProcessing2.qbl b/_Main/BL/Type_WholeShift/Method_PostProcessing2.qbl
index dc433ec..c761cbd 100644
--- a/_Main/BL/Type_WholeShift/Method_PostProcessing2.qbl
+++ b/_Main/BL/Type_WholeShift/Method_PostProcessing2.qbl
@@ -15,8 +15,8 @@
       uptbs    := selectsortedset( unit, UnitPeriod.astype( UnitPeriodTimeBase ), tempUPTB, not tempUPTB.IsPeriodFrozen() and tempUPTB.IsPlanning(), tempUPTB.Start() );
           
       // 鍦嗘暣鎴栬ˉ闆跺綋鍓嶄骇绾夸笅鎵�鐢熶骇鐨勪骇鍝�
-    //  this.IsRoundingOrZeroFilling3( macroPlan, uptbs ); // 鍊熻繕閫昏緫
-    //  Transaction::Transaction().Propagate();
+      this.IsRoundingOrZeroFilling3( macroPlan, uptbs ); // 鍊熻繕閫昏緫
+      Transaction::Transaction().Propagate();
             
     //        // 骞宠 褰撳墠浜х嚎涓嬫墍鐢熶骇鐨勪骇鍝佸簱瀛橈紙搴撳瓨 < 鏈�澶у簱瀛橈級
     //        // this.A_balanceInventory( macroPlan, unitPeriodTimeBases );

--
Gitblit v1.9.3