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
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  StaticMethod Create ( 
 |    String id, 
 |    MacroPlan owner, 
 |    String timeunit, 
 |    Number nroftimeunit, 
 |    DateTime startofcurrentperiod, 
 |    Number nrofhistoricalperiod, 
 |    Number nroffutureperiod, 
 |    Boolean isfromdb, 
 |    Boolean isusedforplanning, 
 |    Boolean isdummyplanningperiod 
 |  ) as PeriodSpecification_MP 
 |  { 
 |    Description: 'Create a new period and add it to the last of the sequence' 
 |    TextBody: 
 |    [* 
 |      // soh yee Apr-24-2013 (moved) 
 |       
 |      pdef := owner.PeriodSpecification_MP( relnew, ID := id ); 
 |       
 |      pdef.Update( id, timeunit, nroftimeunit, 
 |                   startofcurrentperiod, nrofhistoricalperiod, 
 |                   nroffutureperiod, true, isfromdb, 
 |                   isusedforplanning, 
 |                   false /*iscleanupactuals*/ );  // No need to clean up actual pispips during creation of periodspec 
 |       
 |      pdef.IsDummyPlanningPeriod( isdummyplanningperiod ); 
 |       
 |      return pdef; 
 |    *] 
 |  } 
 |  
  |