From a82b76b01eb98e11b9822cd3892e4d93b642bb0c Mon Sep 17 00:00:00 2001 From: admin <admin@admin.com> Date: 星期二, 13 八月 2024 17:46:42 +0800 Subject: [PATCH] 重新定义需求对比视图 --- _Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Component_MatrixEditor.def | 11 ++++++++--- 1 files changed, 8 insertions(+), 3 deletions(-) diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Component_MatrixEditor.def b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Component_MatrixEditor.def index dd916e8..df39242 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Component_MatrixEditor.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FormDemandComparison/Component_MatrixEditor.def @@ -20,13 +20,13 @@ DataType: 'LocalTable' Source: 'dhComparisonData' Taborder: 0 - Transformation: 'LocalRow.LocalCell' + Transformation: 'LocalRow.LocalCell.astype(LocalCell_DemandComparison)' ] } ] Properties: [ - Attributes: 'Value' + Attributes: 'BaseVersion;CompareVersion;Gap' Column: 'LocalColumn' Row: 'LocalRow' Taborder: 0 @@ -45,6 +45,8 @@ Properties: [ DataType: 'LocalTable' + FilterArguments: 'checkedProduct:QMacroPlanner::FormDemandComparison.dhFinelProduct' + FixedFilter: 'exists( checkedProduct,Elements,product,product.ID() = object.Name() )' Source: 'dhComparisonData' Taborder: 0 Transformation: 'LocalRow' @@ -53,7 +55,7 @@ ] Properties: [ - Legend: 'Index' + Legend: 'Name' SortCriteria: 'Index' Taborder: 1 ] @@ -71,6 +73,8 @@ Properties: [ DataType: 'LocalTable' + FilterArguments: 'startDate:QMacroPlanner::FormDemandComparison.dhStartDate;endDate:QMacroPlanner::FormDemandComparison.dhEndDate' + FixedFilter: 'not object.IsAttrbuteColumn() and startDate <= object.Date() and endDate > object.Date()' Source: 'dhComparisonData' Taborder: 0 Transformation: 'LocalColumn' @@ -89,6 +93,7 @@ ] Properties: [ + AllowMultipleAttributes: true Columns: 'MatrixEditorColumns' ContextMenu: 'matrixeditorContextMenuDemandComparison' Rows: 'MatrixEditorRows' -- Gitblit v1.9.3