From f244ae12e0b29ced1402f8c2eda462845fb20875 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期五, 22 十一月 2024 16:11:14 +0800
Subject: [PATCH] 存档报表界面查询

---
 _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_MatrixEditorTable.def |   24 ++++++++++++++----------
 1 files changed, 14 insertions(+), 10 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_MatrixEditorTable.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_MatrixEditorTable.def
index 92f4b4f..c29768a 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_MatrixEditorTable.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanArchive/Component_MatrixEditorTable.def
@@ -17,10 +17,10 @@
           BaseType: 'WebDataExtractor'
           Properties:
           [
-            DataType: 'OfflinePlanArchiveVersion'
-            Source: 'DataHolderTable'
+            DataType: 'InterfaceDataset'
+            Source: 'InterfaceDataset'
             Taborder: 0
-            Transformation: 'Row.Cell'
+            Transformation: 'OfflinePlanArchiveVersion.Row.Cell'
           ]
         }
       ]
@@ -44,11 +44,12 @@
           BaseType: 'WebDataExtractor'
           Properties:
           [
-            DataType: 'OfflinePlanArchiveVersion'
-            Description: "( search.Generation() = '<All>' or object.Product_MP().Generation() = search.Generation() ) and ( search.MqbMlb() = '<All>' or object.Product_MP().MQBMLB() = search.MqbMlb() ) and ( search.Power() = '<All>' or object.Product_MP().Power() = search.Power() )"
-            Source: 'DataHolderTable'
+            DataType: 'InterfaceDataset'
+            FilterArguments: 'units:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderUnit;products:QLibMacroPlannerWebUI::ApplicationMacroPlanner.DataHolderProduct'
+            FixedFilter: '( units.Size() = 0 or exists( units, Elements, unit, unit.ID() = object.ProductionLine() ) ) and ( products.Size() = 0 or exists( products, Elements, product, product.ID() = object.Name() ) )'
+            Source: 'InterfaceDataset'
             Taborder: 0
-            Transformation: 'Row'
+            Transformation: 'OfflinePlanArchiveVersion.Row'
           ]
         }
       ]
@@ -71,10 +72,13 @@
           BaseType: 'WebDataExtractor'
           Properties:
           [
-            DataType: 'OfflinePlanArchiveVersion'
-            Source: 'DataHolderTable'
+            DataType: 'InterfaceDataset'
+            Description: '( search.StartDate().IsMinInfinity() or object.StartDate() >= search.StartDate() ) and ( search.EndDate().IsMaxInfinity() or object.StartDate() <= search.EndDate() )'
+            FilterArguments: 'search:QMacroPlanner::FormOfflinePlanArchive.dhSearch'
+            FixedFilter: 'object.Filter( search )'
+            Source: 'InterfaceDataset'
             Taborder: 0
-            Transformation: 'Column'
+            Transformation: 'OfflinePlanArchiveVersion.Column'
           ]
         }
       ]

--
Gitblit v1.9.3