lazhen
2024-06-17 bf95b7aa56e3fc287a8ee01f772be09cde9625bf
_Main/BL/Type_Routing/StaticMethod_ThermalTrialRatio.qbl
@@ -2,6 +2,7 @@
#parent: #root
StaticMethod ThermalTrialRatio (
  Routing routing,
  Unit unit,
  Number capacity,
  Date start,
  Date end,
@@ -12,9 +13,8 @@
  TextBody:
  [*
    // Adhi Feb-10-2016 (created)
    thermaltrial := '热式';
    thermaltrial := Unit::GetThermalTrial();
    newroutings := construct( Routings );
    unit := selectobject( routing.MacroPlan(), Unit, unit, unit.ID() = thermaltrial and unit.HasCapacityTypeQuantity() );
    
    for( starttime := start; starttime <= end; starttime := starttime + 1 ){
      uc := selectobject( unit, UnitCapacity, uc, uc.Start().Date() = starttime );