From 216034d9f196fbef90a2ef82d69c32ca47c2347b Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期三, 27 十一月 2024 17:36:38 +0800
Subject: [PATCH] 调整实际每日接口的数据

---
 _Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl |    9 +++++++++
 1 files changed, 9 insertions(+), 0 deletions(-)

diff --git a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
index 9aa35e0..cff141e 100644
--- a/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
+++ b/_Main/BL/Type_DispatchShiftSchedulingInformation/StaticMethod_GenerateDispatchData.qbl
@@ -145,6 +145,15 @@
     traverse( lines,Elements,line ){
       line.CalcLineQuantity();
       
+      unit := constnull( Unit );
+      {
+        unitHandle := unitIndexTree.GetHandle( line.LineName() );
+        unitIndex := guard( unitIndexTree.Root().Child( unitHandle ), null( NamedValue ));
+        if( not isnull( unitIndex )){
+          unit := units.Element( unitIndex.GetValueAsNumber() );
+        }
+      }
+      
       // 481
       lineQuantity := line.LineQuantity();
       

--
Gitblit v1.9.3