From 1aa50242db4bd962c4bbf68e7f8eb8c003bbde9a Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期三, 29 五月 2024 17:43:12 +0800 Subject: [PATCH] 日历不可用事件界面产线筛选 --- _Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeMonth.qbl | 10 +++++----- 1 files changed, 5 insertions(+), 5 deletions(-) diff --git a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeMonth.qbl b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeMonth.qbl index 987faba..8010e2b 100644 --- a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeMonth.qbl +++ b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeMonth.qbl @@ -10,14 +10,14 @@ TextBody: [* // 鐢勫叞楦� May-29-2024 (created) - for( startTime := starttime; startTime < endtime; startTime := startTime.StartOfMonth() ){ - time := startTime.Format( 'M/D/Y' ); + for( startTime := starttime; startTime < endtime; startTime := startTime.StartOfNextMonth() ){ + time := startTime; if( starttime = startTime ){ - time := startTime.StartOfMonth().Format( 'M/D/Y' ); + time := startTime.StartOfMonth(); } - column := selectobject( table, LibCal_SubscriberEventColumn, column, column.Name() = time ); + column := selectobject( table, LibCal_SubscriberEventColumn, column, column.Name() = time.Format( 'M/D/Y' ) ); if( isnull( column ) ){ - column := table.LibCal_SubscriberEventColumn( relnew, Name := time ); + column := table.LibCal_SubscriberEventColumn( relnew, Name := time.Format( 'M/D/Y' ), Period := time.Date() ); } duration := startTime.StartOfNextMonth() - startTime; -- Gitblit v1.9.3