From 1e51fbda78f4782a252c5ad187064e96934a1eca Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 12 七月 2024 17:38:33 +0800
Subject: [PATCH] 机加件管线报表

---
 _Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl |   15 ++++-----------
 1 files changed, 4 insertions(+), 11 deletions(-)

diff --git a/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl b/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
index 5d68879..d6715fd 100644
--- a/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
+++ b/_Main/BL/Type_MachiningPipelineReport/Method_Generate.qbl
@@ -1,7 +1,7 @@
 Quintiq file version 2.0
 #parent: #root
 Method Generate (
-  EnginePipelineSearch search,
+  MachiningPipelineSearch search,
   Product_MPs products
 )
 {
@@ -23,22 +23,15 @@
         if( not isnull( column ) ){
           sumcell  := selectobject( column, Cell, c, c.Row() = sumrow );
           if( isnull( sumcell ) ){
-            sumcell := column.Cell( relnew, InventoryQuantity := 0 );
+            sumcell := MachiningPipelineCell::Initialize( column );
             sumrow.Cell( relinsert, sumcell );
           }
           
           showcell := cell.Copy( column );
           showrow.Cell( relinsert, showcell );
       
-          sumcell.InventoryQuantity( cell.InventoryQuantity() + sumcell.InventoryQuantity() );
-          
-          traverse( cell, Demand, demand ){
-            sumcell.Demand( relnew, EngineType := demand.EngineType(), Model := demand.Model(), Period := demand.Period(), Quantity := demand.Quantity() );
-          }
-          
-          traverse( cell, Production, production ){
-            sumcell.Production( relnew, EngineType := production.EngineType(), Period := production.Period(), DLProduction := production.DLProduction(), CCProduction := production.CCProduction() );
-          }
+          sumcell.Add( cell );
+    
         }
       }
     }

--
Gitblit v1.9.3