From 53ebeae81e7979c6b684b84367f3a866efe51a3c Mon Sep 17 00:00:00 2001 From: lazhen <17772815105@139.com> Date: 星期三, 06 十一月 2024 18:29:29 +0800 Subject: [PATCH] 装配上线计划前端数据不显示bug --- _Main/BL/Type_AssemblyOnlinePlanVersion/Method_GetRow.qbl | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/_Main/BL/Type_AssemblyOnlinePlanVersion/Method_GetRow.qbl b/_Main/BL/Type_AssemblyOnlinePlanVersion/Method_GetRow.qbl index 3777a40..78a0530 100644 --- a/_Main/BL/Type_AssemblyOnlinePlanVersion/Method_GetRow.qbl +++ b/_Main/BL/Type_AssemblyOnlinePlanVersion/Method_GetRow.qbl @@ -1,7 +1,7 @@ Quintiq file version 2.0 #parent: #root Method GetRow ( - const NewAssemblyOnlinePlanRow aoprow + NewAssemblyOnlinePlanRow aoprow ) as AssemblyOnlinePlanVersionRow { TextBody: @@ -10,8 +10,10 @@ 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(); } -- Gitblit v1.9.3