1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| Quintiq file version 2.0
| #parent: #root
| Method GetColumnByTimeUnit (
| LibCal_SubscriberEventTable table,
| Date time,
| String timeunit
| ) as LibCal_SubscriberEventColumn
| {
| TextBody:
| [*
| // 甄兰鸽 Jul-26-2024 (created)
| column := selectobject( table, LibCal_SubscriberEventColumn, column, column.TimeUnit() = timeunit and column.Period() = time );
| if( isnull( column ) ){
| column := table.LibCal_SubscriberEventColumn( relnew, Name := time.Format( 'M/D/Y' ), Period := time, TimeUnit := timeunit );
| }
| return column;
| *]
| }
|
|