From f03115208f1ae792cc1d8cc35ed722d1401d42ed Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期三, 04 十二月 2024 17:34:49 +0800
Subject: [PATCH] PL线的数量放大四倍
---
_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl | 4 +++-
_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl | 4 ++--
2 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl b/_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl
index 00e9c16..e8e258c 100644
--- a/_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl
+++ b/_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl
@@ -61,9 +61,9 @@
targetStockingPoint_MP := stockingPoints.Element( stockingPointIndex.GetValueAsNumber() );
}
// targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.Notes() = tdd.ProductID() );
- // targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() );
+ // targetProduct_MP := select( macroPlan, Product_MP, tempPMP, tempPMP.ID() = tdd.ProductID() );
// targetStockingPoint_MP := select( macroPlan, StockingPoint_MP, tempSPMP, tempSPMP.ID() = tdd.StockingPointID() );
- // info( tdd.SalesSegmentName() );
+ // info( tdd.SalesSegmentName() );
if ( not isnull( targetProduct_MP ) and not isnull( targetStockingPoint_MP ) ) {
forcest := Forecast::Create( targetProduct_MP,
targetStockingPoint_MP,
diff --git a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
index b845399..b8f889b 100644
--- a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
+++ b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
@@ -283,7 +283,9 @@
}
traverse( lines,Elements.DispatchShiftSchedulingProduct.DispatchShiftSchedulingDetail,detail ){
- detail.ShiftVolume( detail.ShiftVolume() );
+ if( detail.DispatchShiftSchedulingProduct().DispatchShiftSchedulingLine().LineName().ToUpper().LikeUserLocale( "PL" )){
+ detail.ShiftVolume( detail.ShiftVolume() * 4 );
+ }
}
info( "Success" );
--
Gitblit v1.9.3