From c5fdf09f90b8f8f62116674e20a15c799e9d7017 Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期五, 26 七月 2024 14:59:33 +0800 Subject: [PATCH] 日历不可用事件速度问题优化 --- _Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeTable.qbl | 34 ++-------------------------------- 1 files changed, 2 insertions(+), 32 deletions(-) diff --git a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeTable.qbl b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeTable.qbl index e3cd1e0..0df1514 100644 --- a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeTable.qbl +++ b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeTable.qbl @@ -8,20 +8,10 @@ [* // 鐢勫叞楦� May-28-2024 (created) rownr := this.LibCal_SubscriberEventRow( relsize ); - //subscribercolumn := selectobject( this, LibCal_SubscriberEventColumn, column, column.RowName() = 'Line' ); - //if( isnull( subscribercolumn ) ){ - // subscribercolumn := this.LibCal_SubscriberEventColumn( relnew, RowName := 'Line' ); - //} - //eventcolumn := selectobject( this, LibCal_SubscriberEventColumn, column, column.RowName() = 'Event' ); - //if( isnull( eventcolumn ) ){ - // eventcolumn := this.LibCal_SubscriberEventColumn( relnew, RowName := 'Event' ); - //} traverse( subscribers, Elements, subscriber ){ - // info( '------------------------', subscriber.CalendarID(), subscriber.CalendarType() ); - // traverse( subscriber,Participation.astype( LibCal_Subscription ).LeadingParticipation, participation ){ + traverse( subscriber,Participation.astype( LibCal_Subscription ).LeadingParticipation, participation, participation.Event().EventCategory().Name() = 'Unavailable' ){ - // info( '---------------1---------', participation.Event().Subject(), '------', participation.Event().EventCategory().Name() ); event := participation.Event(); row := selectobject( this, LibCal_SubscriberEventRow, row, row.Subscriber() = subscriber.CalendarID() @@ -34,32 +24,12 @@ Event := event.Subject(), EventType := event.EventType().Name() ); - // subscribercell := subscribercolumn.LibCal_SubscriberEventCell( relnew, Value := row.Subscriber() ); - // if( counter( this, LibCal_SubscriberEventRow, linerow, linerow.Subscriber() = row.Subscriber() ) <> 1 ){ - // subscribercell.Value( '' ); - // } - // row.LibCal_SubscriberEventCell( relinsert, subscribercell ); - // - // eventcell := eventcolumn.LibCal_SubscriberEventCell( relnew, Value := row.Event() ); - // row.LibCal_SubscriberEventCell( relinsert, eventcell ); rownr := rownr + 1; } traverse( participation, ExplicitTimeInterval, eti ){ - info( eti.Start(), eti.End(), eti.DefinitionName() ); - if( this.ID() = 'Day' ){ - this.InitializeDay( this, row, eti.Start(), eti.End(), event.Description() ); - }else if( this.ID() = 'Week' ){ - this.InitializeWeek( this, row, eti.Start(), eti.End(), event.Description() ); - }else{ - this.InitializeMonth( this, row, eti.Start(), eti.End(), event.Description() ); - } + row.InitializeDate( this, eti.Start(), eti.End(), event.Description() ); } - - - // - // endTime := participation.EndDate().DateTime( timezone ).AddAsPeriod( timezone, event.EndTimeOfDay() ); - // startTime := participation.StartDate().DateTime( timezone ).AddAsPeriod( timezone, event.StartTimeOfDay() ); } } -- Gitblit v1.9.3