From 5773247d347db0d22b867c80c857022f8d67a823 Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期一, 26 八月 2024 11:12:23 +0800
Subject: [PATCH] 修复一些bug‘

---
 _Main/BL/Type_UphillRouting/StaticMethod_Create#90.qbl |   18 ++++--------------
 1 files changed, 4 insertions(+), 14 deletions(-)

diff --git "a/_Main/BL/Type_UphillRouting/StaticMethod_Create\04390.qbl" "b/_Main/BL/Type_UphillRouting/StaticMethod_Create\04390.qbl"
index ce2b5af..85c0934 100644
--- "a/_Main/BL/Type_UphillRouting/StaticMethod_Create\04390.qbl"
+++ "b/_Main/BL/Type_UphillRouting/StaticMethod_Create\04390.qbl"
@@ -6,29 +6,19 @@
   Date endDate,
   Real percentage,
   String suffix
-)
+) as UphillRouting
 {
   TextBody:
   [*
     // rislai Jun-14-2024 (created)
     
-    verifyData := select( owner,UphillRouting,ur,ur.Type() = suffix and LocalTool::IsOverlap( ur.StartDate(),ur.EndDate(),startDate,endDate ));
+    verifyData := select( owner,UphillRouting,ur,ur.Suffix() = suffix and LocalTool::IsOverlap( ur.StartDate(),ur.EndDate(),startDate,endDate ));
     if( not isnull( verifyData )){
       error( "璁剧疆鐨凷tart鍜孍nd涓嶅彲涓庡凡鏈夋暟鎹殑鏃堕棿鍖洪棿閲嶅彔銆�" ); 
     }
     
-    data := owner.UphillRouting( relnew,StartDate := startDate, EndDate := endDate,Percentage := percentage,Type := suffix );
+    data := owner.UphillRouting( relnew,StartDate := startDate, EndDate := endDate,Percentage := percentage,Suffix := suffix );
     
-    copy_routing := owner.Copy( suffix + startDate.Format( "Y-M2-D2") );
-    
-    copy_routing.Start( startDate );
-    
-    copy_routing.End( endDate );
-    
-    traverse( copy_routing,OperationForPlanningMatrix,op){
-      op.Throughput( op.Throughput() * ( percentage / 100) );
-    }
-    
-    copy_routing.CopyUphillRouting( relset, data );
+    return data;
   *]
 }

--
Gitblit v1.9.3