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
Quintiq file version 2.0
#parent: #root
Method ResetSnapshotDataholder () id:Method_Kpi_frmCreateSnapshot_ResetSnapshotDataholder
{
  #keys: '[136398.1.386201322]'
  Body:
  [*
    // Creates a fresh, new SnapshotData instance for the form to act on.
    if ( not isnull( KpiTracker ) )
    {
      set := KpiTracker.KpiSnapshotSetData( relshadow );
      timezone := TimeZone::ObjectTimeZone( KpiTracker );
      snapshot := set.SnapshotData( relnew );
      snapshot.PlanDateTime( DateTime::Now().StartOfHour( timezone )  );
      snapshot.ServerDateTime( DateTime::Now() )
      this.dhSnapshotSet().Data( &set );
      this.dhSnapshot().Data( snapshot );
    }
  *]
}