From ffb76f7a9a094cd200367d23b6822f4c1f7c873c Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期四, 17 十月 2024 19:19:09 +0800
Subject: [PATCH] 修复一些bug

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

diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormFinancialProductionReport/Response_OnCreated.def b/_Main/UI/MacroPlannerWebApp/Component_FormFinancialProductionReport/Response_OnCreated.def
index e6d457a..4ecacd9 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormFinancialProductionReport/Response_OnCreated.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormFinancialProductionReport/Response_OnCreated.def
@@ -10,15 +10,16 @@
     Body:
     [*
       //鍒濆鍖�
-      //if( not exists( MacroPlan, FinancialProductionSource, source, not source.IsImport() ) ){
-        FinancialProductionSource::Initialize( MacroPlan );
-      //}
-      //info( '------------------1----------------' );
-      table := selectobject( MacroPlan, FinancialProductionSource.FinancialProductionReport, table, not table.IsImport() );
-      //info( '------------------2----------------' );
+      table := FinancialProductionSource::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.FinancialProductionSource().FinancialProductionSearch() );
     *]
     GroupServerCalls: false
   }

--
Gitblit v1.9.3