From b2aeb5631d5e5e8e0ecade95fbf162aecfb96365 Mon Sep 17 00:00:00 2001
From: yanyuan <yuan.yan@capgemini.com>
Date: 星期一, 09 十月 2023 17:47:07 +0800
Subject: [PATCH] 接口优化

---
 _Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_OnException.qbl             |    9 +++++++++
 _Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_OnException.qbl                  |    9 +++++++++
 _Main/BL/Type_Global_MappingLaneLeg/StaticMethod_OnException.qbl                      |    9 +++++++++
 _Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_OnException.qbl              |    9 +++++++++
 _Main/BL/Type_GlobalDTOTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl |   10 +++++-----
 _Main/BL/Type_Global_MappingLane/StaticMethod_OnException.qbl                         |    9 +++++++++
 6 files changed, 50 insertions(+), 5 deletions(-)

diff --git a/_Main/BL/Type_GlobalDTOTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl b/_Main/BL/Type_GlobalDTOTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
index 31936e3..8c6686f 100644
--- a/_Main/BL/Type_GlobalDTOTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
+++ b/_Main/BL/Type_GlobalDTOTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
@@ -89,31 +89,31 @@
     if ( isStockingPoint_MP ) {
       this.Global_MappingStockingPoint_MP( relflush );
       Global_BrokerExecuteLog::CreateInOperation( this, "StockingPoint_MP", executionUser );
-      this -> OnException( this -> Global_MappingStockingPoint_MP::CreateByAPI() -> Exception(), this );
+      this -> Global_MappingStockingPoint_MP::CreateByAPI() -> Exception() -> Global_MappingStockingPoint_MP::OnException( this );
     }
     
     if ( isCurrency_MP ) {
       this.Global_MappingCurrency_MP( relflush );
       Global_BrokerExecuteLog::CreateInOperation( this, "Currency_MP", executionUser );
-      this -> OnException( this -> Global_MappingCurrency_MP::CreateByAPI() -> Exception(), this );
+      this -> Global_MappingCurrency_MP::CreateByAPI() -> Exception() -> Global_MappingCurrency_MP::OnException( this );
     }
     
     if ( isCurrencyRate_MP ) {
       this.Global_MappingCurrencyRate_MP( relflush );
       Global_BrokerExecuteLog::CreateInOperation( this, "CurrencyRate_MP", executionUser );
-      this -> OnException( this -> Global_MappingCurrencyRate_MP::CreateByAPI() -> Exception(), this );
+      this -> Global_MappingCurrencyRate_MP::CreateByAPI() -> Exception() -> Global_MappingCurrencyRate_MP::OnException( this );
     }
     
     if ( isLane ) {
       this.Global_MappingLane( relflush );
       Global_BrokerExecuteLog::CreateInOperation( this, "Lane", executionUser );
-      this -> OnException( this -> Global_MappingLane::CreateByAPI() -> Exception(), this );
+      this -> Global_MappingLane::CreateByAPI() -> Exception() -> Global_MappingLane::OnException( this );
     }
     
     if ( isLaneLeg ) {
       this.Global_MappingLaneLeg( relflush );
       Global_BrokerExecuteLog::CreateInOperation( this, "LaneLeg", executionUser );
-      this -> OnException( this -> Global_MappingLaneLeg::CreateByAPI() -> Exception(), this );
+      this -> Global_MappingLaneLeg::CreateByAPI() -> Exception() -> Global_MappingLaneLeg::OnException( this );
     }
   *]
 }
diff --git a/_Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_OnException.qbl b/_Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_OnException.qbl
new file mode 100644
index 0000000..1775209
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingCurrencyRate_MP/StaticMethod_OnException.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod OnException (
+  Exception e,
+  GlobalOTDTable globalOTDTable
+)
+{
+  TextBody: 'globalOTDTable.SettingFailureDetails( e.ErrorNumber(), e.Message(), "CurrencyRate_MP", "璐у竵姹囩巼鎺ュ彛鏁版嵁" );'
+}
diff --git a/_Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_OnException.qbl b/_Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_OnException.qbl
new file mode 100644
index 0000000..1ee262a
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingCurrency_MP/StaticMethod_OnException.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod OnException (
+  Exception e,
+  GlobalOTDTable globalOTDTable
+)
+{
+  TextBody: 'globalOTDTable.SettingFailureDetails( e.ErrorNumber(), e.Message(), "Currency_MP", "璐у竵鎺ュ彛鏁版嵁" );'
+}
diff --git a/_Main/BL/Type_Global_MappingLane/StaticMethod_OnException.qbl b/_Main/BL/Type_Global_MappingLane/StaticMethod_OnException.qbl
new file mode 100644
index 0000000..2f719e0
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingLane/StaticMethod_OnException.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod OnException (
+  Exception e,
+  GlobalOTDTable globalOTDTable
+)
+{
+  TextBody: 'globalOTDTable.SettingFailureDetails( e.ErrorNumber(), e.Message(), "Lane", "杞﹂亾鎺ュ彛鏁版嵁" );'
+}
diff --git a/_Main/BL/Type_Global_MappingLaneLeg/StaticMethod_OnException.qbl b/_Main/BL/Type_Global_MappingLaneLeg/StaticMethod_OnException.qbl
new file mode 100644
index 0000000..25ff0bc
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingLaneLeg/StaticMethod_OnException.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod OnException (
+  Exception e,
+  GlobalOTDTable globalOTDTable
+)
+{
+  TextBody: 'globalOTDTable.SettingFailureDetails( e.ErrorNumber(), e.Message(), "LaneLeg", "杞﹂亾鏀灦鎺ュ彛鏁版嵁" );'
+}
diff --git a/_Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_OnException.qbl b/_Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_OnException.qbl
new file mode 100644
index 0000000..2a6d364
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingStockingPoint_MP/StaticMethod_OnException.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod OnException (
+  Exception e,
+  GlobalOTDTable globalOTDTable
+)
+{
+  TextBody: 'globalOTDTable.SettingFailureDetails( e.ErrorNumber(), e.Message(), "StockingPoint_MP", "搴撳瓨鎺ュ彛鏁版嵁" );'
+}

--
Gitblit v1.9.3