From 30c02e0c981b16be0918483543f4b812956c45d4 Mon Sep 17 00:00:00 2001
From: Lai,Risheng <risheng.lai@capgemini.com>
Date: 星期四, 02 十一月 2023 10:50:51 +0800
Subject: [PATCH] Merge remote-tracking branch 'refs/remotes/origin/dev'

---
 _Main/BL/Type_LaneLeg/StaticMethod_CreateLaneleg.qbl |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_LaneLeg/StaticMethod_CreateLaneleg.qbl b/_Main/BL/Type_LaneLeg/StaticMethod_CreateLaneleg.qbl
index c72fe3d..6ca8d7e 100644
--- a/_Main/BL/Type_LaneLeg/StaticMethod_CreateLaneleg.qbl
+++ b/_Main/BL/Type_LaneLeg/StaticMethod_CreateLaneleg.qbl
@@ -1,6 +1,7 @@
 Quintiq file version 2.0
 #parent: #root
 StaticMethod CreateLaneleg (
+  MacroPlan mp,
   Lane lane,
   String laneid,
   String originstockingpointid,
@@ -25,16 +26,16 @@
     isfromdb := true;
     
     //create new stockingpoint
-    originstockingpoint := StockingPoint_MP::FindStockingPointTypeIndex( originstockingpointid );
+    originstockingpoint := StockingPoint_MP::FindById( mp, originstockingpointid );
     lane.AddStockingPoint( originstockingpoint, true, isfromdb );
     Transaction::Transaction().Propagate();
     
-    destinationstockingpoint := StockingPoint_MP::FindStockingPointTypeIndex( destinationstockingpointid );
+    destinationstockingpoint := StockingPoint_MP::FindById( mp, destinationstockingpointid );
     lane.AddStockingPoint( destinationstockingpoint, false, isfromdb );
     
     Transaction::Transaction().Propagate();
     
-    result := LaneLeg::FindLaneLegTypeIndex( laneid, originstockingpointid, destinationstockingpointid );
+    result := LaneLeg::FindByIdAndLane( lane, originstockingpointid, destinationstockingpointid );
     
     if( isnull( result ) )
     {

--
Gitblit v1.9.3