From 712d2f68e0d1e9e111aa5d870283f4edf2da3739 Mon Sep 17 00:00:00 2001
From: lazhen <17772815105@139.com>
Date: 星期二, 22 十月 2024 14:10:28 +0800
Subject: [PATCH] 财务产量/销量报表刷新导出报错

---
 _Main/UI/MacroPlannerWebApp/Component_FormFinancialSalesReport/Response_OnCreated.def |   17 +++++++++--------
 1 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormFinancialSalesReport/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FormFinancialSalesReport/Response_OnCreated.def
index 68f009c..d01722e 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormFinancialSalesReport/Response_OnCreated.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormFinancialSalesReport/Response_OnCreated.def
@@ -9,15 +9,16 @@
   {
     Body:
     [*
-      //if( not exists( MacroPlan, FinancialSalesSource, source, not source.IsImport() ) ){
-        FinancialSalesSource::Initialize( MacroPlan );
-      //}
-      //info( '------------------1----------------' );
-      table := selectobject( MacroPlan, FinancialSalesSource.FinancialSalesReport, table, not table.IsImport() and table.IsShow() );
-      //info( '------------------2----------------', table.IsImport(), table.IsShow() );
+      table := FinancialSalesSource::InitiateSearch( MacroPlan );
+      Factory::Initilize( MacroPlan );
+      ProductGeneration::Initilize( MacroPlan );
+      ProductPower::Initilize( MacroPlan );
+      ProductMLBMQB::Initilize( MacroPlan );
+      dhFactorys.Data( selectset( MacroPlan, Factory, factory, factory.ID() = FinancialProductionReport::GetDefaultAllUnit() ) );
+      dhGenerations.Data( selectset( MacroPlan, ProductGeneration, factory, true ) );
+      dhPowers.Data( selectset( MacroPlan, ProductPower, factory, true ) );
+      dhMQBMLBs.Data( selectset( MacroPlan, ProductMLBMQB, factory, true ) );
       DataHolderTable.Data( table );
-      
-      dhSearch.Data( table.FinancialSalesSource().FinancialSalesSearch() );
     *]
     GroupServerCalls: false
   }

--
Gitblit v1.9.3