From 1b0f461e0db93c3f504b8be975a5b7ffddbcc584 Mon Sep 17 00:00:00 2001 From: Tianma21 <Administrator@TOTDQAE01.tianmame.cn> Date: 星期日, 08 十月 2023 13:47:22 +0800 Subject: [PATCH] Merge branch 'dev' of http://47.101.211.7:10101/r/TIANMA_JITUAN into dev --- _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