From 0f073fb4ebe2b305d6fb2733553b633147536149 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 28 五月 2024 14:06:29 +0800
Subject: [PATCH] 日历不可用事件界面产线列表显示

---
 _Main/UI/MacroPlannerWebApp/Component_FormCalendarUnavailableEvent/Method_InitializeSubscribers.def |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormCalendarUnavailableEvent/Method_InitializeSubscribers.def b/_Main/UI/MacroPlannerWebApp/Component_FormCalendarUnavailableEvent/Method_InitializeSubscribers.def
index a18726d..8d43454 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormCalendarUnavailableEvent/Method_InitializeSubscribers.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormCalendarUnavailableEvent/Method_InitializeSubscribers.def
@@ -5,7 +5,7 @@
   #keys: '[415136.0.666291565]'
   Body:
   [*
-    owner_i := dhCalendarUse.Data();
+    owner_i := LibCal_GlobalState.dhGlobalCalendarRegistry().Data().CommonCalendar();
     category_i := selectobject( owner_i,CalendarRegistry.EventCategory, category, category.Name() = 'Unavaliable' );
     info( '-------------------------------', isnull( owner_i ), isnull( category_i ) );
     sEvent := owner_i.Event( relshadow,
@@ -13,7 +13,7 @@
     //                         StartTimeOfDay := start_i.TimeOfDay( timezone ),
     //                         EndTimeOfDay   := end_i  .TimeOfDay( timezone ),
                              EventCategory  := category_i,
-                             IsDefault      := owner_i.istype( LibCal_CommonCalendar ) );
+                             IsDefault      := false );
     
     sLeadPart := owner_i.Participation( relshadow, LibCal_LeadingParticipation,
                                         ParticipationID := [String]Key::NextPersistentKey()

--
Gitblit v1.9.3