lihongji
2024-08-12 acf70acb5438a3358d07978afdc0eb28950f40d5
_Main/BL/Type_FinancialSalesReport/Method_GetRow.qbl
@@ -2,18 +2,18 @@
#parent: #root
Method GetRow (
  String salessegment,
  String product
  Product_MP product
) as FinancialSalesRow
{
  TextBody:
  [*
    // 甄兰鸽 Jun-28-2024 (created)
    row := selectobject( this, FinancialSalesRow, row, row.Name() = product and row.Unit() = salessegment );
    row := selectobject( this, FinancialSalesRow, row, row.Name() = product.ID() and row.Unit() = salessegment );
    
    if( isnull( row ) ){
      row := this.FinancialSalesRow( relnew, Name := product, Unit := salessegment );
      row := this.FinancialSalesRow( relnew, Name := product.ID(), Unit := salessegment );
      //初始化单元格
      row.InitializeCell( this );
      row.InitializeCell( this, product );
    }
    
    return row;