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_MobileCycleTask.qbl |    4 ++++
 1 files changed, 4 insertions(+), 0 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 ) );
     }
     

--
Gitblit v1.9.3