From bf95b7aa56e3fc287a8ee01f772be09cde9625bf Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期一, 17 六月 2024 09:55:13 +0800
Subject: [PATCH] 热式比例设置生成新步骤

---
 _Main/BL/Type_Routing/StaticMethod_ThermalTrialRatio.qbl |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/Type_Routing/StaticMethod_ThermalTrialRatio.qbl b/_Main/BL/Type_Routing/StaticMethod_ThermalTrialRatio.qbl
index 601bc91..52b0641 100644
--- a/_Main/BL/Type_Routing/StaticMethod_ThermalTrialRatio.qbl
+++ b/_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 );

--
Gitblit v1.9.3