From f5d6db2a9edfb82bbdb1ce5688c00df7dc101e83 Mon Sep 17 00:00:00 2001 From: yypsybs <yypsybs@foxmail.com> Date: 星期日, 08 十月 2023 14:10:36 +0800 Subject: [PATCH] Merge branch 'dev' into dev_yx --- _Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl | 8 +++++++- 1 files changed, 7 insertions(+), 1 deletions(-) diff --git a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl index 1e71d79..9a458dd 100644 --- a/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl +++ b/_Main/BL/Type_MacroPlan/Method_MappingOperationCostData.qbl @@ -1,6 +1,7 @@ Quintiq file version 2.0 #parent: #root Method MappingOperationCostData ( + GlobalOTDTable globalOTDTable, Strings businesstypes ) { @@ -14,7 +15,12 @@ if( isnull( businesstypes ) or businesstypes.Size() = 0 ) { listtodeal := selectset( this, MappingOperation, item, true ); } else { - listtodeal := selectset( this, MappingOperation, item, businesstypes.Find( item.BusinessType() ) <> -1 ); + organcodelist := selectvalues( globalOTDTable, BusinessType.OrganCode, organ, businesstypes.Find( organ.BusinessType().BusinessTypeName() ) <> -1, organ.OrganCodeName() ); + listtodeal := selectset( this, + MappingOperation, + item, + ( businesstypes.Find( item.BusinessType() ) <> -1 ) and + ( organcodelist.Find( item.OrganCode() ) >= 0 ) ); } // Get the list to deal with max sequence number -- Gitblit v1.9.3