From 526dbb667f8fc6bff6cfd88755da1b284092b43f Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 23 八月 2024 10:20:37 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg

---
 _Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
index cbf8db1..1402b5a 100644
--- a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
+++ b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
@@ -2,12 +2,16 @@
 #parent: #root
 StaticMethod Dispatch (
   const MacroPlan macroPlan,
-  RecycleBin owner
+  RecycleBin owner,
+  String versionFlag
 )
 {
   TextBody:
   [*
     // Akari Aug-21-2024 (created)
+    owner.DispatchShiftPlan( relflush );
+    // owner.RB_DispatchShiftPlanBroker().Source().FlatQuery( "truncate table A_DispatchShiftPlan" );
+    
     now := DateTime::Now();
     macroPlanName := macroPlan.MDSMacroPlan().Description();
     traverse( macroPlan,Unit.UnitPeriod.astype( UnitPeriodTime ).ShiftPlan,shiftPlan ){
@@ -25,6 +29,7 @@
                                 ShiftDate := shiftPlan.UnitPeriodTime().Period_MP().StartDate(),
                                 Tips := shiftPlan.Remark(),
                                 VersionName := macroPlanName,
+                                VersionFlag := versionFlag,
                                 FactoryName := factory.ID(),
                                 InterfaceTime := now
                                 );

--
Gitblit v1.9.3