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: #root 
 |  Method SetGlobalCO2 ( 
 |    String co2UoM, 
 |    String processUoM, 
 |    MacroPlan macroplan 
 |  ) 
 |  { 
 |    TextBody: 
 |    [* 
 |      // Set global parameter default co2 uom ( KG/MT ) 
 |      if( not isnull( macroplan ) ) 
 |      { 
 |        macroplan.GlobalParameters_MP().CO2UoM( co2UoM ); 
 |        macroplan.GlobalParameters_MP().CO2ProcessUoM( processUoM ); 
 |        macroplan.GlobalParameters_MP().UpdateCommitLogic(); 
 |      } 
 |      else 
 |      { 
 |        this.Run().RegisterFailure( 'Dataset is not found.' ); 
 |      } 
 |    *] 
 |    InterfaceProperties { Accessibility: 'Module' } 
 |  } 
 |  
  |