陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
Quintiq file version 2.0
#parent: #root
Method IsRoundingOrZeroFilling3 (
  MacroPlan macroPlan,
  UnitPeriodTimeBases uptbs
)
{
  TextBody:
  [*
    traverse ( uptbs, Elements, uptb, 
               true
    //           uptb.StartDate() <= Date::Construct( 2024, 5, 8 ) 
               ) {
      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();
    }
  *]
}