From a80361675b58ab61191e977723f94c01f87d9753 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期一, 11 十一月 2024 15:26:38 +0800
Subject: [PATCH] 修改锁定期的库存点和产品的顺序

---
 _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