| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetRowByUnit ( |
| | | String product, |
| | | Product_MP product, |
| | | String unit |
| | | ) as InventoryPlanArchiveRow |
| | | { |
| | | TextBody: |
| | | [* |
| | | // 甄兰鸽 Sep-6-2024 (created) |
| | | row := selectobject( this, Row, row, row.Name() = product and row.Unit() = unit ); |
| | | row := selectobject( this, Row, row, row.Name() = product.ID() and row.Unit() = unit ); |
| | | if( isnull( row ) ){ |
| | | //初始化单元格 |
| | | row := this.Row( relnew, Name := product, Unit := unit ); |
| | | row := this.Row( relnew, Name := product.ID(), Unit := unit, ProductID := ifexpr( exists( product.GetAllParent(), Elements, e, e.ID() = EnginePipelineReport::GetDefaultProductParent() ), product.Notes(), product.ID() ) ); |
| | | traverse( this, Column, column ){ |
| | | row.Initialize( column ); |
| | | } |