1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
  | Quintiq file version 2.0 
 |  #parent: #root 
 |  Method GetRow ( 
 |    String salessegment, 
 |    Product_MP product 
 |  ) as FinancialSalesRow 
 |  { 
 |    TextBody: 
 |    [* 
 |      // 甄兰鸽 Jun-28-2024 (created) 
 |      row := selectobject( this, FinancialSalesRow, row, row.Name() = product.ID() and row.Unit() = salessegment ); 
 |       
 |      if( isnull( row ) ){ 
 |        row := this.FinancialSalesRow( relnew, Name := product.ID(), Unit := salessegment ); 
 |        row.Product_MP( relset, product ); 
 |        //初始化单元格 
 |        row.InitializeCell( this, product ); 
 |      } 
 |       
 |      return row; 
 |    *] 
 |  } 
 |  
  |