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_InitializeWeek.qbl | 10 +++++-----
1 files changed, 5 insertions(+), 5 deletions(-)
diff --git a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeWeek.qbl b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeWeek.qbl
index ada804b..d1da787 100644
--- a/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeWeek.qbl
+++ b/_Main/BL/Type_LibCal_SubscriberEventTable/Method_InitializeWeek.qbl
@@ -11,20 +11,20 @@
[*
// 鐢勫叞楦� May-29-2024 (created)
for( startTime := starttime; startTime < endtime; startTime := startTime.StartOfNextWeek() ){
- time := startTime.Format( 'M/D/Y' );
+ time := startTime;
if( starttime = startTime ){
- time := startTime.StartOfWeek().Format( 'M/D/Y' );
+ time := startTime.StartOfWeek();
}
- 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.StartOfNextWeek() - startTime;
if( startTime.StartOfNextWeek() > endtime ){
duration := endtime - startTime;
}
- info( startTime, column.Name(), duration.AsQUILL(), duration.HoursAsReal() );
+ // info( startTime, column.Name(), duration.AsQUILL(), duration.HoursAsReal() );
cell := column.LibCal_SubscriberEventCell( relnew, Value := [String]duration.HoursAsReal() );
row.LibCal_SubscriberEventCell( relinsert, cell );
}
--
Gitblit v1.9.3