From deb1a6b4839488316a4eb4dcf48215bea24bbfa8 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 24 五月 2024 17:05:37 +0800
Subject: [PATCH] 批量维护产能占用事件前端ok方法
---
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent#778.def | 4 ++--
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def | 12 ++++++++++++
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def | 2 +-
_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def | 35 +++++++++++++++++++++++++++++++++++
4 files changed, 50 insertions(+), 3 deletions(-)
diff --git a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def
index 8f03c46..f463b66 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Component_PanelContent.def
@@ -11,6 +11,6 @@
Properties:
[
Orientation: 'horizontal'
- Taborder: 2
+ Taborder: 3
]
}
diff --git "a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent\043778.def" "b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent\043778.def"
index 4a70117..83d259b 100644
--- "a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent\043778.def"
+++ "b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_CreateEvent\043778.def"
@@ -44,13 +44,13 @@
ParticipationID := [String]Key::NextPersistentKey(),
StartDate := start_i.Date( timezone ),
EndDate := end_i .Date( timezone ) );
- info( '----------------------', isnull( sLeadPart ) );
+ //info( '----------------------', isnull( sLeadPart ) );
// Set the Participation and the related controls
// (only the DataHolders, the Date-controls are set later on, after the recurrence has been initialized)
dhStartDate.Data( sLeadPart.StartDate() );
//dhEndDate.Data( sLeadPart.EndDate() );
dhLeadingParticipation.Data( &sLeadPart );
- info( '-----------------------', isnull( dhLeadingParticipation.Data() ) );
+ //info( '-----------------------', isnull( dhLeadingParticipation.Data() ) );
// Initialize the capacity here, when done in the OnCreate() edtCapacity is not disabled correctly.
this.InitializeCapacity();
diff --git a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def
new file mode 100644
index 0000000..2e386a0
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/Method_OnOK.def
@@ -0,0 +1,35 @@
+Quintiq file version 2.0
+#parent: #root
+Method OnOK (
+ structured[LibCal_Calendar] subscribers_i
+) id:Method_LibCal_dlgMultipleEvent_OnOK
+{
+ #keys: '[415136.0.647733138]'
+ Body:
+ [*
+ // If applicable, inform the user that the recurrence cannot always be applied exactly as defined.
+ //if( btnMonthly.IsPressed() and
+ // ckbMonthlyDay.Checked() )
+ //{
+ // day := [Number]edtMonthlyDay.Text();
+ // if( day > 28 )
+ // {
+ // WebMessageBox::Warning( Translations::Pattern_Monthly_LessDays( day ), "OK", true );
+ // }
+ //}
+
+ // subscribers_i contains the calendars that are checked in the list with subscribers.
+ subscribers := subscribers_i.Copy();
+ dhSubscribers.Data( &subscribers );
+
+ // If the dialog was opened from dlgSubscription, update the data in that dialog.
+ if( not isnull( dhdlgSubscription.Data() ) )
+ {
+ this.CallbackSubscriptionDialog();
+ }
+
+ // Effectuate the changes and close the form.
+ Form.CreateUpdateEventAndParticipation();
+ Form.Close();
+ *]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def
index 7e65204..ba1ba56 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_LibCal_dlgMultipleEvent/_ROOT_Component_LibCal_dlgMultipleEvent.def
@@ -28,9 +28,21 @@
]
}
#child: PanelContent
+ Component dhdlgSubscription id:dhdlgSubscription_640
+ {
+ #keys: '[415136.0.647733217]'
+ BaseType: 'WebDataHolder'
+ Databinding: 'LibCal_dlgSubscription'
+ Properties:
+ [
+ Description: 'Is set when the dialog is opened from dlgSubscription.'
+ Taborder: 2
+ ]
+ }
]
Properties:
[
+ MinimumRows: 100
Title: 'Multiple event'
Tooltip: 'Multiple event'
]
--
Gitblit v1.9.3