From 2bda4e7eaf4b3a7dd979ea4fbef984b8c4766cd2 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期五, 06 九月 2024 13:56:00 +0800
Subject: [PATCH] 更新 StaticMethod_Test.qbl
---
_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlan/Response_pHeader_bRestore_OnClick.def | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlan/Response_pHeader_bRestore_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlan/Response_pHeader_bRestore_OnClick.def
index 2fcf6dc..14e4993 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlan/Response_pHeader_bRestore_OnClick.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlan/Response_pHeader_bRestore_OnClick.def
@@ -5,8 +5,23 @@
#keys: '[413988.0.1297974069]'
CanBindMultiple: false
DefinitionID: 'Responsedef_WebButton_OnClick'
+ Precondition:
+ [*
+ return not isnull( MacroPlan );
+ *]
QuillAction
{
+ Body:
+ [*
+ currentOPT := dhOfflinePlanTable.Data();
+ targetOPT := maxselect( MacroPlan, OfflinePlanTable, tempOPT, tempOPT <> currentOPT, tempOPT.SaveDateTime() );
+ if ( not isnull( targetOPT ) ) {
+ currentOPT.Delete();
+ dhOfflinePlanTable.Data( targetOPT );
+ }
+
+ WebMessageBox::Success( Translations::A_VWED_Success() );
+ *]
GroupServerCalls: false
}
}
--
Gitblit v1.9.3