From 7a55464720fcef69fc4362dcb570dff763ff026b Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期四, 07 十一月 2024 17:00:05 +0800
Subject: [PATCH] 下线计划不显示bug
---
_Main/BL/Type_InventoryPlanArchiveVersion/StaticMethod_GenerateData.qbl | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
diff --git a/_Main/BL/Type_InventoryPlanArchiveVersion/StaticMethod_GenerateData.qbl b/_Main/BL/Type_InventoryPlanArchiveVersion/StaticMethod_GenerateData.qbl
index 9909a0e..b664b69 100644
--- a/_Main/BL/Type_InventoryPlanArchiveVersion/StaticMethod_GenerateData.qbl
+++ b/_Main/BL/Type_InventoryPlanArchiveVersion/StaticMethod_GenerateData.qbl
@@ -8,7 +8,7 @@
Description: '鐢熸垚璁″垝搴撳瓨瀛樻。鏁版嵁'
TextBody:
[*
- interfaceDataset.InventoryPlanArchiveVersion( relflush );
+ //interfaceDataset.InventoryPlanArchiveVersion( relflush );
info( '-------------------------Start---------------------');
allunit := AssemblyOnlinePlanVersion::GetDefaultAllUnit();
name := InventoryPlanArchiveVersion::GetDefaultName();
@@ -18,12 +18,14 @@
table := interfaceDataset.InventoryPlanArchiveVersion( relnew, ID := name, Name := name );
}
showtable := selectobject( interfaceDataset, InventoryPlanArchiveVersion, version, version.IsShow() );
- if( isnull( table ) ){
+ if( isnull( showtable ) ){
showtable := interfaceDataset.InventoryPlanArchiveVersion( relnew, ID := name, Name := name, IsShow := true );
}
periods := selectuniquevalues( macroPlan, Period_MP, period, not period.IsHistorical() and period.TimeUnit() = Translations::MP_GlobalParameters_Day()
and not exists( table, Column, column, column.TimeUnit() = Translations::MP_GlobalParameters_Day() and column.StartDate() = period.StartDate() ), period.StartDate() );
- table.GenerateColumn( periods, false );
+ if( periods.Size() > 0 ){
+ table.GenerateColumn( periods, false );
+ }
actinventorytree := NamedValueTree::Create();
inventoryqrys := construct( Reals );
inventoryindex := 0;
--
Gitblit v1.9.3