lazhen
2024-08-16 be10d38e5c56c0070d6acfd344ebfae30ee5b0ac
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
Quintiq file version 2.0
#parent: #root
Method IsRoundingOrZeroFilling3 (
  MacroPlan macroPlan,
  UnitPeriodTimeBases uptbs
)
{
  TextBody:
  [*
    traverse ( uptbs, Elements, uptb, true ) {
      if ( ( uptb.End().Date() - uptb.StartDate() ) > 1 ) {  
        debuginfo( "开始时间:", uptb.StartDate().Format( "Y-M2-D2" ), "    结束时间:", uptb.End().Date().Format( "Y-M2-D2" ), "    时间区间:", ( uptb.End().Date() - uptb.StartDate() ) );
        this.ProcessingTimeIntervalIsGreaterThanOneDay( macroPlan, uptb, uptbs );
      } else if ( ( uptb.End().Date() - uptb.StartDate() ) = 1 ) {
        debuginfo( "开始时间:", uptb.StartDate().Format( "Y-M2-D2" ), "    结束时间:", uptb.End().Date().Format( "Y-M2-D2" ), "    时间区间:", ( uptb.End().Date() - uptb.StartDate() ) );
        this.ProcessingTimeIntervalIsEqualToOneDay( macroPlan, uptb, uptbs );
      }
      debuginfo( "--------------------------------------------------------------------------------" );
      Transaction::Transaction().Propagate();
    }
  *]
}