From 7f68c5b2e96c6707be1589ff8b5fbdcdab53f412 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期一, 27 五月 2024 20:57:52 +0800
Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/VWED into dev
---
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_SetParticipationData.def | 30 ++++++++++++++++++++++++++++++
1 files changed, 30 insertions(+), 0 deletions(-)
diff --git a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_SetParticipationData.def b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_SetParticipationData.def
new file mode 100644
index 0000000..12e8065
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_SetParticipationData.def
@@ -0,0 +1,30 @@
+Quintiq file version 2.0
+#parent: #root
+Method SetParticipationData () id:Method_LibCal_dlgMultipleEvent_SetParticipationData
+{
+ #keys: '[415136.0.647763952]'
+ Body:
+ [*
+ sParticipation := dhLeadingParticipation.Data();
+
+ // If the StartDate is earlier than the start of the CalendarWindow, then set the StartDate
+ // to the date of the first recurrence within the CalendarWindow.
+ // This prevents showing dates from potentially long in the past.
+ startDate := sParticipation.StartDate();
+ if( sParticipation.IsRecurring() and
+ startDate < sParticipation.Calendar().StartDate() )
+ {
+ startDate := Date::MinDate();
+ }
+
+ //delta := startDate - sParticipation.StartDate();
+
+ // Only the value of the following two controls have to be set explicitly (in this order!),
+ // the value of the other controls are then set via the responses of these controls.
+ //dhEndDate .Data( sParticipation.EndDate() + delta );
+ dsStartDate.Date( startDate );
+
+ // Directly initialize the Duration
+ //this.InitializeDuration();
+ *]
+}
--
Gitblit v1.9.3