Quintiq file version 2.0
|
#parent: #root
|
Method RefreshFromToDateTimes () id:Method_FormKpiSnapshots_RefreshFromToDateTimes
|
{
|
#keys: '[136398.1.842175971]'
|
Body:
|
[*
|
// Updates the From-To datetime pickers based on the selection
|
// in the radio button group.
|
|
option := RadioButtonGroupTimespan.BoundValue();
|
|
DateTimeSelectorFrom.Enabled( option = "range", '' );
|
DateTimeSelectorTo.Enabled( option = "range", '' );
|
|
if ( option = "lastweek" )
|
{
|
DateTimeSelectorFrom.DateTime( DateTime::Now() - Duration::Weeks( 1 ) );
|
DateTimeSelectorTo.DateTime( DateTime::Now() );
|
}
|
else if ( option = "lastmonth" )
|
{
|
DateTimeSelectorFrom.DateTime( GlobalStateKpiTracker.GetLastMonth( DateTime::Now() ) );
|
DateTimeSelectorTo.DateTime( DateTime::Now() );
|
}
|
*]
|
}
|