1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method CreateUpdateSetTypeInterest (LibDMF_SetType setType_i) as LibDMF_SetTypeInterest 
 |  { 
 |    TextBody: 
 |    [* 
 |      // Timothy Guan Jul-7-2015 (created) 
 |       
 |      sti := LibDMF_SetTypeInterest::FindSetTypeInterest( setType_i.ID(), 
 |                                                          this.QProductName(), 
 |                                                          this.SystemName() ); 
 |       
 |      if( isnull( sti ) ) 
 |      { 
 |        sti := LibDMF_SetTypeInterest::Create( this, setType_i ); 
 |      } 
 |       
 |      // Set default values 
 |      sti.Update( true ); 
 |       
 |      return sti; 
 |    *] 
 |  } 
 |  
  |