| | |
| | | { |
| | | 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 ) ) { |