From 642ffe272e766efc3fc23f02b324817a94ed6d92 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期一, 11 十一月 2024 17:46:06 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/dev' into dev

---
 _Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl |   19 ++++++++++---------
 1 files changed, 10 insertions(+), 9 deletions(-)

diff --git a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
index ec03621..0eaff48 100644
--- a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
+++ b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
@@ -52,18 +52,19 @@
          dispatchShiftPlan.VersionName( macroPlanName );
          dispatchShiftPlan.InterfaceTime( now );
        }else{
-         interfaceLoginfo.DispatchShiftPlan( relnew,ID := OS:: GenerateGUIDAsString(),
-                                             ProductLine := productLine,
-                                             FactoryName := factory.ID(),
-                                             ShiftQty := shiftPlan.Outcome(),
+         if( shiftPlan.Outcome() <> "" ){
+           interfaceLoginfo.DispatchShiftPlan( relnew,ID := OS:: GenerateGUIDAsString(),
+                                               ProductLine := productLine,
+                                               FactoryName := factory.ID(),
+                                               ShiftQty := shiftPlan.Outcome(),
                                   
-                                             ShiftDate := shiftDate,
-                                             Tips := shiftPlan.Remark(),
-                                             VersionName := macroPlanName,
-                                             InterfaceTime := now );
+                                               ShiftDate := shiftDate,
+                                               Tips := shiftPlan.Remark(),
+                                               VersionName := macroPlanName,
+                                               InterfaceTime := now );
+         }
        }
     }
     DispatchShiftPlan::Publish( interfaceLoginfo );
-    // owner.RB_DispatchShiftPlanBroker().AsyncExecute();
   *]
 }

--
Gitblit v1.9.3