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
Quintiq file version 2.0
#parent: dsFrequency
Response OnChanged () id:Response_Kpi_pnlDaemon_dsFrequency_OnChanged
{
  #keys: '[146874.1.146354486]'
  Body:
  [*
    // Show the feedback warning if the frequency is not a multiple form of KpiTracker record frequency
    kpiFrequency := vhKpiGlobalParameterRecordFrequency.Data();
    
    kpiFrequencyInMillis := kpiFrequency.TotalInMillis();
    recordFrequencyInMillis := dsFrequency.Duration().TotalInMillis();
    
    value := guard( recordFrequencyInMillis mod kpiFrequencyInMillis = 0, true );
    
    // Show warning
    lblWarning.Visible( not value );
    imgWarning.Visible( not value );
    imgWarningLabel.Visible( not value );
    lblWarning.Text( Translations::Kpi_SnapshotGenerator_FrequencyNotAMultipleForm( kpiFrequency ) );
  *]
  CanBindMultiple: false
  DefinitionID: 'Responsedef_GUIDurationSelector_OnChanged'
}