yanweiyuan3
2023-08-09 588bc7829387dfc761cc25f06f77d4c81818bd10
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
26
Quintiq file version 2.0
#parent: #root
Method PropagateTimeStamp (
  shadow[KpiSnapshotSetData] setData,
  String timeType
) id:Method_Kpi_GlobalState_PropagateTimeStamp
{
  #keys: '[136398.1.727584156]'
  Body:
  [*
    // Fills the UI_DateTime field on all the KpiValue objects
    // with the snapshots server/plan datetime (based on 'timeType').
    traverse( setData, SnapshotData, snapshot )
    {
      timestamp := snapshot.PlanDateTime();
      if ( timeType = KpiSnapshotRetrieval::TimeType_Server() )
      {
        timestamp := snapshot.ServerDateTime();
      }
      traverse( snapshot, Value, kpi )
      {
        kpi.UI_DateTime( timestamp ); 
      }
    }
  *]
}