| 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
 | | Quintiq file version 2.0 |  | #parent: #root |  | Method EditPeriodSpecification ( |  |   PeriodSpecification_MP selection, |  |   internal[GUIComponent] parent |  | ) id:Method_DialogCreateEditPeriodSpecification_EditPeriodSpecification |  | { |  |   #keys: '[11660.0.59749510]' |  |   Body: |  |   [* |  |     // Edit period specification |  |      |  |     data := shadow( selection ); |  |      |  |     Dialog.Data( data ); |  |      |  |     result := this.DoModal( parent ); |  |      |  |     if ( result > 0 ) |  |     { |  |       if( ApplicationLibMacroPlanner.GetChangeOfPlanningPeriodAtEditionWarningDialog( selection.MacroPlan(), |  |                                                                                    selection, |  |                                                                                    data.IsUsedForPlanning(), |  |                                                                                    data.PeriodAlignment(), |  |                                                                                    data.NrOfTimeUnit(), |  |                                                                                    data.TimeUnit(), |  |                                                                                    data.NrOfHistoricalPeriod(), |  |                                                                                    data.NrOfFuturePeriod(), |  |                                                                                    false ) ) |  |       {      |  |         selection.Update( EditorID.Text(),        // Read-only attribute wont be update during apply changes |  |                           data.TimeUnit(), |  |                           data.NrOfTimeUnit(), |  |                           data.PeriodAlignment(), |  |                           data.NrOfHistoricalPeriod(), |  |                           data.NrOfFuturePeriod(), |  |                           true, |  |                           false, |  |                           data.IsUsedForPlanning(), |  |                           true /*iscleanupactuals*/); |  |       } |  |     } |  |   *] |  | } | 
 |