admin
2024-08-28 383df1b4a1b7b9903cd4f0843d06e04674d42a1f
_Main/BL/Type_WholeShift/Method_CapacityRounding.qbl
@@ -9,7 +9,8 @@
{
  TextBody:
  [*
    debuginfo( "需要圆整的时间(单位:小时)", timeDifference, "    需要圆整的产能周期的开始时间:", uptb.StartDate().Format( "Y-M2-D2" ) );
    debuginfo( "需要圆整的时间(单位:小时)", timeDifference, "    Free capacity(单位:小时)", uptb.FreeCapacity().HoursAsReal(), "    ChangeoverDuration(单位:小时)", uptb.ChangeoverDuration().HoursAsReal(), "    需要圆整的产能周期的开始时间:", uptb.StartDate().Format( "Y-M2-D2" ) );
    //timeDifference         := uptb.FreeCapacity().HoursAsReal() - uptb.ChangeoverDuration().HoursAsReal();
    nextUnitPeriodTimeBase := ifexpr( isnull( uptb.Next().astype( UnitPeriodTimeBase ) ), select( uptbs, Elements, tempUPTB, tempUPTB.Start() = uptb.End() ), uptb.Next().astype( UnitPeriodTimeBase ) );
    //debuginfo( "考虑库存和lotsize" );
    //while ( timeDifference > 0 and not isnull( nextUnitPeriodTimeBase ) ) {