| | |
| | | Quintiq file version 2.0 |
| | | #parent: #root |
| | | StaticMethod IterativeGeneration ( |
| | | GlobalOTDTable globalOTDTable, |
| | | GlobalOTDSOP globalOTDSOP, |
| | | ProductInStockingPoint_MP pisp, |
| | | Number numberOfLayers, |
| | | NewSupply finaleNewSupply, |
| | |
| | | oi := dd.ProcessInput().astype( OperationInput ); |
| | | finaleDependentDemand := finaleDependentDemand * oo.Quantity() * oi.Quantity(); |
| | | // info( "依赖需求产品ID:", dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP().ProductID(), " 依赖数量:", dd.Quantity(), " 当前周期任务Key:", dd.PeriodTask_MP().astype( PeriodTaskOperation ).Key() ); |
| | | CapacityAllocationResults::IterativeGeneration( globalOTDTable, dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(), numberOfLayers, finaleNewSupply, finaleDependentDemand, targetDate ); |
| | | CapacityAllocationResults::IterativeGeneration( globalOTDSOP, dd.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(), numberOfLayers, finaleNewSupply, finaleDependentDemand, targetDate ); |
| | | } |
| | | // info( "----------------------------------------------------" ); |
| | | } else { |
| | |
| | | // info( "======" ); |
| | | pispPanel := ns.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(); |
| | | pispModule := finaleNewSupply.ProductInStockingPointInPeriodPlanningLeaf().ProductInStockingPoint_MP(); |
| | | globalOTDTable.CapacityAllocationResults( relnew, |
| | | PanelBase := pispPanel.StockingPointID(), |
| | | PanelMaterialCode := pispPanel.ProductID(), |
| | | NumberOfPanels := finaleDependentDemand, |
| | | PanelMeasurementUnit := pispPanel.UnitOfMeasure_MP().Name(), |
| | | ModuleMaterialCode := pispModule.ProductID(), |
| | | NumberOfModules := finaleNewSupply.Quantity(), |
| | | ModuleMeasurementUnit := pispModule.UnitOfMeasure_MP().Name(), |
| | | ModuleBase := pispModule.StockingPointID(), |
| | | RequirementDate := finaleNewSupply.Start().Date() |
| | | ); |
| | | globalOTDSOP.CapacityAllocationResults( relnew, |
| | | PanelBase := pispPanel.StockingPointID(), |
| | | PanelMaterialCode := pispPanel.ProductID(), |
| | | NumberOfPanels := finaleDependentDemand, |
| | | PanelMeasurementUnit := pispPanel.UnitOfMeasure_MP().Name(), |
| | | ModuleMaterialCode := pispModule.ProductID(), |
| | | NumberOfModules := finaleNewSupply.Quantity(), |
| | | ModuleMeasurementUnit := pispModule.UnitOfMeasure_MP().Name(), |
| | | ModuleBase := pispModule.StockingPointID(), |
| | | RequirementDate := finaleNewSupply.Start().Date() |
| | | ); |
| | | } |
| | | finaleNewSupply := null( NewSupply ); |
| | | } |