From face55e7f35130d29d7f395a4b4501d57b97ef81 Mon Sep 17 00:00:00 2001 From: yanweiyuan3 <yanweiyuan3@gmail.com> Date: 星期二, 17 十月 2023 18:07:35 +0800 Subject: [PATCH] Merge branch 'dev' into dev_yy --- _Main/BL/Type_CapacityAllocationResults/StaticMethod_IterativeGeneration2.qbl | 46 +++++++++++++++++++++++----------------------- 1 files changed, 23 insertions(+), 23 deletions(-) diff --git a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_IterativeGeneration2.qbl b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_IterativeGeneration2.qbl index 226f832..36a59af 100644 --- a/_Main/BL/Type_CapacityAllocationResults/StaticMethod_IterativeGeneration2.qbl +++ b/_Main/BL/Type_CapacityAllocationResults/StaticMethod_IterativeGeneration2.qbl @@ -1,7 +1,7 @@ Quintiq file version 2.0 #parent: #root StaticMethod IterativeGeneration2 ( - GlobalOTDTable globalOTDTable, + GlobalOTDSOP globalOTDSOP, ProductInStockingPoint_MP pisp, Date targetDate, CapacityAllocationResultsRuleConfigurations carrcs, @@ -21,7 +21,7 @@ previous := pispippl.PreviousPlanningPISPIP().astype( ProductInStockingPointInPeriodPlanningLeaf ); if ( not previous.Period_MP().IsHistorical() ) { previousDate := previous.Start().Date(); - CapacityAllocationResults::IterativeGeneration2( globalOTDTable, + CapacityAllocationResults::IterativeGeneration2( globalOTDSOP, pisp, previousDate, carrcs, @@ -50,7 +50,7 @@ // info( "灞傛暟锛�", numberOfLayers, " 褰撳墠渚涘簲鐨刾isp锛�", ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name(), " 鎬讳緵搴斿�硷細", ns.Quantity(), " 闇�瑕佷緵搴斿�硷細", currentLayerDependentDemandQuantity, // " 褰撳墠闇�姹俻isp锛�", dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name(), " 闇�姹傚�硷細", currentLayerDependentDemandQuantity ); // info( "-----------------------------------------------------------------------------------------------------------------" ); - CapacityAllocationResults::IterativeGeneration2( globalOTDTable, + CapacityAllocationResults::IterativeGeneration2( globalOTDSOP, dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(), targetDate, carrcs, @@ -62,25 +62,25 @@ carrc := select( carrcs, Elements, carrc, carrc.PanelMaterialCode() = ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID() ); if ( not isnull( carrc ) ) { // info( "鎵惧埌闈㈡澘鐗╂枡..." ); - globalOTDTable.CapacityAllocationResults( relnew, - PanelBase := pto.Operation().UnitID(), - PanelMaterialCode := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), - NumberOfPanels := currentLayerDependentDemandQuantity, - PanelMeasurementUnit := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().UnitOfMeasureName(), - ModuleMaterialCode := firstLevelSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), - NumberOfModules := firstLevelSupply.Quantity(), - ModuleMeasurementUnit := firstLevelSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().UnitOfMeasureName(), - ModuleBase := guard( firstLevelSupply.PeriodTask_MP().astype( PeriodTaskOperation ).Operation().UnitID(), "杞﹂亾杩愯緭" ), - Division := carrc.Division(), - RequirementDate := firstLevelSupply.Start().Date(), - Date := firstLevelSupply.Start().Date(), - Description := "", - ID := OS::GenerateGUIDAsString(), - ProductID := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), - StockingPointID := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().StockingPointID(), - UserQuantity := currentLayerDependentDemandQuantity, - ManufacturedDate := Date::MinDate() - ); + globalOTDSOP.CapacityAllocationResults( relnew, + PanelBase := pto.Operation().UnitID(), + PanelMaterialCode := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), + NumberOfPanels := currentLayerDependentDemandQuantity, + PanelMeasurementUnit := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().UnitOfMeasureName(), + ModuleMaterialCode := firstLevelSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), + NumberOfModules := firstLevelSupply.Quantity(), + ModuleMeasurementUnit := firstLevelSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().UnitOfMeasureName(), + ModuleBase := guard( firstLevelSupply.PeriodTask_MP().astype( PeriodTaskOperation ).Operation().UnitID(), "杞﹂亾杩愯緭" ), + Division := carrc.Division(), + RequirementDate := firstLevelSupply.Start().Date(), + Date := firstLevelSupply.Start().Date(), + Description := "", + ID := OS::GenerateGUIDAsString(), + ProductID := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), + StockingPointID := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().StockingPointID(), + UserQuantity := currentLayerDependentDemandQuantity, + ManufacturedDate := Date::MinDate() + ); } //info( "-----------------------------------------------------------------------------------------------------------------" ); @@ -93,7 +93,7 @@ // " 褰撳墠闇�姹俻isp锛�", targetDependentDemand.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().Name(), " 闇�姹傚�硷細", currentLayerDependentDemandQuantity ); // info( "LaneLeg鍛ㄦ湡浠诲姟..." ); //info( "-----------------------------------------------------------------------------------------------------------------" ); - CapacityAllocationResults::IterativeGeneration2( globalOTDTable, + CapacityAllocationResults::IterativeGeneration2( globalOTDSOP, targetDependentDemand.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(), targetDate, carrcs, -- Gitblit v1.9.3