lazhen
2024-10-29 4419b51e5cfed824ca592ae5cba7654994ee005d
_Main/BL/Type_OfflinePlanArchiveVersion/Method_GetRow.qbl
@@ -1,16 +1,16 @@
Quintiq file version 2.0
#parent: #root
Method GetRow (
  const AssemblyOnlinePlanRow aoprow
  const NewOfflinePlanRow noprow
) as OfflinePlanArchiveRow
{
  TextBody:
  [*
    // 甄兰鸽 Oct-11-2024 (created)
    row := selectobject( this, Row, row, row.ProductID() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() );
    row := selectobject( this, Row, row, row.ProductID() = noprow.ProductID() and row.ProductionLine() = noprow.ProductionLine() and row.Type() = noprow.Type() );
    
    if( isnull( row ) ){
      row := this.Row( relnew, ProductID := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type() );
      row := this.Row( relnew, ProductID := noprow.ProductID(), ProductionLine := noprow.ProductionLine(), Type := noprow.Type() );
      //初始化单元格
      row.InitializeCell();
    }