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 
 |  StaticMethod CreateOrUpdateActual ( 
 |    UnitPeriods unitperiods, 
 |    Real newvalue, 
 |    String attributename 
 |  ) 
 |  { 
 |    Description: 
 |    [* 
 |      Update the unit period ActualUtilizationPercentage or ActualTotalAvailableCapacity depending on the given attribute name. 
 |      For supporting changing attribute in matrix editor. 
 |    *] 
 |    TextBody: 
 |    [* 
 |      // desmondt Aug-3-2015 (created) 
 |      if( UnitPeriod::GetIsActualTotalAvailableCapacity( attributename ) ) 
 |      { 
 |        UnitPeriod::CreateOrUpdateActualTotalAvailableCapacity( unitperiods, newvalue ); 
 |      } 
 |      else if( UnitPeriod::GetIsActualUtilizationPercentage( attributename ) ) 
 |      {  
 |        UnitPeriod::CreateOrUpdateActualUtilizationPercentage( unitperiods, newvalue ); 
 |      } 
 |    *] 
 |  } 
 |  
  |