| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | Method GetRow ( |
| | | const NewAssemblyOnlinePlanRow aoprow |
| | | NewAssemblyOnlinePlanRow aoprow |
| | | ) as AssemblyOnlinePlanVersionRow |
| | | { |
| | | TextBody: |
| | |
| | | row := selectobject( this, Row, row, row.ProductID() = aoprow.ProductID() and row.ProductionLine() = aoprow.ProductionLine() and row.Type() = aoprow.Type() ); |
| | | |
| | | if( isnull( row ) ){ |
| | | product := selectobject( aoprow.MacroPlan(), Product_MP, product, product.ID() = aoprow.ProductID() ); |
| | | unit := ifexpr( aoprow.ProductionLine().FindString( "CC", 0 ) > -1, FinancialProductionReport::GetDefaultCCUnit(), FinancialProductionReport::GetDefaultDLUnit() ); |
| | | row := this.Row( relnew, ProductID := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type(), Unit := unit ); |
| | | row := this.Row( relnew, Name := aoprow.ProductID(), ProductionLine := aoprow.ProductionLine(), Type := aoprow.Type(), Unit := unit |
| | | , ProductID := ifexpr( exists( product.GetAllParent(), Elements, e, e.ID() = EnginePipelineReport::GetDefaultProductParent() ), product.Notes(), product.ID() ) ); |
| | | //初始化单元格 |
| | | row.InitializeCell(); |
| | | } |