陈清红
2025-04-14 880f3c0257eeb8c37761d484258fdd102a369a19
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 InitializeNonRecurring () id:Method_LibCal_dlgSubscription_InitializeNonRecurring
{
  #keys: '[131094.1.121569803]'
  Body:
  [*
    participation := this.GetParticipation();
    event         := participation.Event();
    
    // Show the dates of the participation to which is subscribed.
    datStartOfPeriod.Date( participation.StartDate() );
    durStartTimeOfDay.Duration( event.StartTimeOfDay() );
    
    ckbEndOfPeriod.Checked( true );
    
    datEndOfPeriod.Date( participation.EndDate() );
    durEndTimeOfDay.Duration( event.EndTimeOfDay() );
    
    // Disable the controls.
    feedback := ifexpr( dhParticipationsToSubscribeTo.Data().Size() > 1, Translations::Event_NoneAreRecurring(),
                                                                         Translations::Event_IsNotRecurring() );
    ckbPeriodOfTime.DisableWithUserFeedback( feedback );
    this.DisablePeriodOfTime( feedback );
  *]
}