From a1285c5bcea445e4c3c2a3e4fe47b9c9b1e9c1a7 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 01 十一月 2024 16:59:40 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev-zlg

---
 _Main/BL/Type_LockPeriod/StaticMethod_Create.qbl |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/_Main/BL/Type_LockPeriod/StaticMethod_Create.qbl b/_Main/BL/Type_LockPeriod/StaticMethod_Create.qbl
index 4aa7e39..667e135 100644
--- a/_Main/BL/Type_LockPeriod/StaticMethod_Create.qbl
+++ b/_Main/BL/Type_LockPeriod/StaticMethod_Create.qbl
@@ -8,6 +8,14 @@
   TextBody:
   [*
     // rislai Jun-13-2024 (created)
-    owner.LockPeriod( relnew, LockDate := lockDate );
+    lockPeriod := owner.LockPeriod( relnew, LockDate := lockDate );
+    
+    macroPlan := owner.MacroPlan();
+    
+    offlineTable := select( macroPlan,NewOfflinePlanTable,table,true );
+    
+    if( not isnull( offlineTable )){
+      lockPeriod.Enable( offlineTable ); 
+    }
   *]
 }

--
Gitblit v1.9.3