xiaoding721
2024-12-04 f03115208f1ae792cc1d8cc35ed722d1401d42ed
PL线的数量放大四倍
已修改2个文件
8 ■■■■■ 文件已修改
_Main/BL/Type_Archive/StaticMethod_GenerateForecast.qbl 4 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl 4 ●●● 补丁 | 查看 | 原始文档 | blame | 历史
_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,
_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" );