From 1093d0c693c5d10a0fa5bf614eb4b48161bee1ec Mon Sep 17 00:00:00 2001 From: hongjli <3117313295@qq.com> Date: 星期五, 13 十月 2023 11:50:14 +0800 Subject: [PATCH] 填产优化 --- _Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl | 15 +++++++++++---- 1 files changed, 11 insertions(+), 4 deletions(-) diff --git a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl index 7000af7..416ea24 100644 --- a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl +++ b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_Test.qbl @@ -1,17 +1,24 @@ Quintiq file version 2.0 #parent: #root StaticMethod Test ( - MacroPlan macroPlan + MacroPlan macroPlan, + GlobalOTDTable globalOTDTable ) { TextBody: [* + globalOTDTable.CapacityAllocationResults( relflush ); + + capacityAllocationResultsRuleConfiguration := select( globalOTDTable, CapacityAllocationResultsRuleConfiguration, carrc, + carrc.ModuleMaterialCode() = "ProXOver 1 D2.6 A" and + carrc.StockingPointID() = "Carco Philadelphia" ); + traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pisp, pisp.ProductID() = "ProXOver 1 D2.6 A" and pisp.StockingPointID() = "Carco Philadelphia" ) { traverse ( pisp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ).Supply_MP, smp, - smp.ProductInStockingPointInPeriodPlanning().Start().Date() = Date::Construct( 2020, 4, 7 ) and - smp.Quantity() > 0 ) { - CapacityAllocationResults::IterativeGeneration3( smp, 1, smp.Quantity() ); + /*smp.ProductInStockingPointInPeriodPlanning().Start().Date() = Date::Construct( 2020, 4, 7 ) and*/ + smp.Quantity() > 0 ) { + CapacityAllocationResults::IterativeGeneration3( macroPlan, globalOTDTable, smp, smp, 1, smp.Quantity(), capacityAllocationResultsRuleConfiguration ); } } *] -- Gitblit v1.9.3