Quintiq file version 2.0
|
#parent: #root
|
Method UpdateLastActivity (Real endCounter_i)
|
{
|
Description: 'Updates the total elapsed duration and end time for the last activity'
|
TextBody:
|
[*
|
// Update the duration of the last activity
|
lastActivity := this.LastActivity();
|
|
if( not isnull( lastActivity ) )
|
{
|
lastActivity.Duration( LibDEF_Util::GetDurationFromPrecisionCounter( lastActivity.StartPrecisionCounter(), endCounter_i ) );
|
lastActivity.End( lastActivity.Start() + lastActivity.Duration() );
|
}
|
*]
|
}
|