From df5a7e1ad6835e78b2f9eb7428817b0c23b116bc Mon Sep 17 00:00:00 2001
From: hongji.li <hongji.a.li@capgemini.com>
Date: 星期六, 11 十一月 2023 14:47:41 +0800
Subject: [PATCH] 新增模组&面板对应关系接口(断点)

---
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductBase.qbl                                                          |    8 ++
 _Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Component_PanelInterfaceOption5.def                                              |   10 ++
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductCode.qbl                                                          |    9 ++
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_BoardCode.qbl                                                            |    9 ++
 _Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Response_PanelInterfaceTest_ButtonPullInterfaceDataToIntermediateTable_OnCli.def |    3 
 _Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecuteFailure_GlobalOTDTable_ModulePanelCorrespondence.qbl                                   |    9 ++
 _Main/BL/EDI/Broker_GlobalOTDTable_ModulePanelCorrespondence.qbl                                                                         |   78 +++++++++++++++++++
 _Main/BL/Relations/Relation_Global_MappingModulePanelCorrespondence_GlobalOTDTable_GlobalOTDTab.qbl                                      |   23 +++++
 _Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecute_GlobalOTDTable_ModulePanelCorrespondence.qbl                                          |    6 +
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/_ROOT_Type_Global_MappingModulePanelCorrespondence.qbl                             |    9 ++
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ID.qbl                                                                   |    7 +
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_PanelBase.qbl                                                            |    8 ++
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/TypeIndex_Global_MappingModulePanelCorrespondenceTypeIndex.qbl                     |   16 ++++
 _Main/BL/Type_GlobalOTDTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl                                                    |    7 +
 _Main/BL/Type_Global_MappingModulePanelCorrespondence/StaticMethod_SynchronizeInterfaceData.qbl                                          |   18 ++++
 15 files changed, 218 insertions(+), 2 deletions(-)

diff --git a/_Main/BL/EDI/Broker_GlobalOTDTable_ModulePanelCorrespondence.qbl b/_Main/BL/EDI/Broker_GlobalOTDTable_ModulePanelCorrespondence.qbl
new file mode 100644
index 0000000..1e13be5
--- /dev/null
+++ b/_Main/BL/EDI/Broker_GlobalOTDTable_ModulePanelCorrespondence.qbl
@@ -0,0 +1,78 @@
+Quintiq file version 2.0
+#parent: #root
+EDIBroker GlobalOTDTable_ModulePanelCorrespondence
+{
+  MDSDefinition: GlobalOTDTable
+  TimeZone: 'ACT'
+  UseOSTimeZone: false
+  EDIModelLink.Destination Destination18
+  {
+    EDIMLTable Global_MappingModulePanelCorrespondence
+    {
+      PrimaryKeyColumns: BoardCode
+      PrimaryKeyColumns: ProductCode
+      TargetType: Global_MappingModulePanelCorrespondence
+      TypeIndex: Global_MappingModulePanelCorrespondenceTypeIndex
+      EDIMLColumn BoardCode { Attribute: BoardCode ValueType: String }
+      EDIMLColumn ID { Attribute: ID ValueType: String }
+      EDIMLColumn PanelBase { Attribute: PanelBase ValueType: String }
+      EDIMLColumn ProductBase { Attribute: ProductBase ValueType: String }
+      EDIMLColumn ProductCode { Attribute: ProductCode ValueType: String }
+    }
+  }
+  EDIODBCLink.Source Source17
+  {
+    DataIntegrityStrategy: 'Disabled'
+    SettingsEngineLink: 'domainmodel.ediremotedatasourcedefinition.remotestorage.oracle'
+    EDIODBCLinkTable MID_MODULEPANELCORRESPONDENCE
+    {
+      OthersMayCreateTable: true
+      OthersMayDeleteRow: true
+      OthersMayDropTable: true
+      OthersMayFlushTable: true
+      OthersMayInsertRow: true
+      Parameters: '/owner="OTD"'
+      PrimaryKeyColumns: BOARDCODE
+      PrimaryKeyColumns: PRODUCTCODE
+      RecordModificationHintStrategy: 'None'
+      EDIODBCLinkColumn BOARDCODE
+      {
+        OthersMayUpdateColumn: true
+        ValueType: String
+      }
+      EDIODBCLinkColumn ID
+      {
+        OthersMayUpdateColumn: true
+        ValueType: String
+      }
+      EDIODBCLinkColumn PANELBASE
+      {
+        OthersMayUpdateColumn: true
+        ValueType: String
+      }
+      EDIODBCLinkColumn PRODUCTBASE
+      {
+        OthersMayUpdateColumn: true
+        ValueType: String
+      }
+      EDIODBCLinkColumn PRODUCTCODE
+      {
+        OthersMayUpdateColumn: true
+        ValueType: String
+      }
+    }
+  }
+  EDITransformation.Transformation Transformation17
+  {
+    EDITableTransformation
+    {
+      InputTable: MID_MODULEPANELCORRESPONDENCE
+      OutputTable: Global_MappingModulePanelCorrespondence
+      EDIColumnMatch { InputColumn: BOARDCODE OutputColumn: BoardCode }
+      EDIColumnMatch { InputColumn: ID OutputColumn: ID }
+      EDIColumnMatch { InputColumn: PANELBASE OutputColumn: PanelBase }
+      EDIColumnMatch { InputColumn: PRODUCTBASE OutputColumn: ProductBase }
+      EDIColumnMatch { InputColumn: PRODUCTCODE OutputColumn: ProductCode }
+    }
+  }
+}
diff --git a/_Main/BL/Relations/Relation_Global_MappingModulePanelCorrespondence_GlobalOTDTable_GlobalOTDTab.qbl b/_Main/BL/Relations/Relation_Global_MappingModulePanelCorrespondence_GlobalOTDTable_GlobalOTDTab.qbl
new file mode 100644
index 0000000..de48a2a
--- /dev/null
+++ b/_Main/BL/Relations/Relation_Global_MappingModulePanelCorrespondence_GlobalOTDTable_GlobalOTDTab.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation Global_MappingModulePanelCorrespondence_GlobalOTDTable_GlobalOTDTable_Global_MappingModulePanelCorrespondence
+{
+  #keys: '1[414702.1.472990067]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide GlobalOTDTable
+  {
+    #keys: '3[414702.1.472990069][414702.1.472990068][414702.1.472990070]'
+    Cardinality: '0to1'
+    ObjectDefinition: Global_MappingModulePanelCorrespondence
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide Global_MappingModulePanelCorrespondence
+  {
+    #keys: '3[414702.1.472990072][414702.1.472990071][414702.1.472990073]'
+    Cardinality: '1toN'
+    ObjectDefinition: GlobalOTDTable
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecuteFailure_GlobalOTDTable_ModulePanelCorrespondence.qbl b/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecuteFailure_GlobalOTDTable_ModulePanelCorrespondence.qbl
new file mode 100644
index 0000000..c979ff2
--- /dev/null
+++ b/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecuteFailure_GlobalOTDTable_ModulePanelCorrespondence.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+Method OnAsyncExecuteFailure_GlobalOTDTable_ModulePanelCorrespondence (
+  Number errorNo,
+  String errorMessage
+)
+{
+  TextBody: 'this.SettingFailureDetails( errorNo, errorMessage, "Global_MappingModulePanelCorrespondence", "妯$粍&闈㈡澘瀵瑰簲鍏崇郴锛堟柇鐐癸級" );'
+}
diff --git a/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecute_GlobalOTDTable_ModulePanelCorrespondence.qbl b/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecute_GlobalOTDTable_ModulePanelCorrespondence.qbl
new file mode 100644
index 0000000..02785d9
--- /dev/null
+++ b/_Main/BL/Type_GlobalOTDTable/Method_OnAsyncExecute_GlobalOTDTable_ModulePanelCorrespondence.qbl
@@ -0,0 +1,6 @@
+Quintiq file version 2.0
+#parent: #root
+Method OnAsyncExecute_GlobalOTDTable_ModulePanelCorrespondence
+{
+  TextBody: 'this.SettingSuccessfulDetails( "Global_MappingModulePanelCorrespondence", "妯$粍&闈㈡澘瀵瑰簲鍏崇郴锛堟柇鐐癸級", this.Global_MappingModulePanelCorrespondence( relsize ) );'
+}
diff --git a/_Main/BL/Type_GlobalOTDTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl b/_Main/BL/Type_GlobalOTDTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
index 46121bf..f8e2846 100644
--- a/_Main/BL/Type_GlobalOTDTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
+++ b/_Main/BL/Type_GlobalOTDTable/Method_SynchronizationAllMappingBrokerAndAPIByOption.qbl
@@ -23,7 +23,8 @@
   Boolean isLane,
   Boolean isLaneLeg,
   Boolean isSummaryOfInboundTransaction,
-  Boolean isAnnualBudgetData
+  Boolean isAnnualBudgetData,
+  Boolean isModulePanelCorrespondence
 )
 {
   TextBody:
@@ -125,5 +126,9 @@
     if ( isAnnualBudgetData ) {
       Global_MappingAnnualBudgetData::SynchronizeInterfaceData( this, executionUser, "Global_MappingAnnualBudgetData" );
     }
+    
+    if ( isModulePanelCorrespondence ) {
+      Global_MappingModulePanelCorrespondence::SynchronizeInterfaceData( this, executionUser, "Global_MappingModulePanelCorrespondence" );
+    }
   *]
 }
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_BoardCode.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_BoardCode.qbl
new file mode 100644
index 0000000..085674f
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_BoardCode.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute BoardCode
+{
+  #keys: '3[414702.1.472990109][414702.1.472990108][414702.1.472990110]'
+  Description: '闈㈡澘鐗╂枡缂栫爜'
+  IsReadOnly: true
+  ValueType: String
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ID.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ID.qbl
new file mode 100644
index 0000000..db7b8e2
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ID.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ID
+{
+  #keys: '3[414702.1.472990086][414702.1.472990085][414702.1.472990087]'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_PanelBase.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_PanelBase.qbl
new file mode 100644
index 0000000..e80e817
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_PanelBase.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute PanelBase
+{
+  #keys: '3[414702.1.472990132][414702.1.472990131][414702.1.472990133]'
+  Description: '闈㈡澘浜у湴缁勭粐浠g爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductBase.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductBase.qbl
new file mode 100644
index 0000000..e8f6597
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductBase.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ProductBase
+{
+  #keys: '3[414702.1.472990122][414702.1.472990121][414702.1.472990123]'
+  Description: '妯$粍浜у湴缁勭粐浠g爜'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductCode.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductCode.qbl
new file mode 100644
index 0000000..0f10964
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/Attribute_ProductCode.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute ProductCode
+{
+  #keys: '3[414702.1.472990096][414702.1.472990095][414702.1.472990097]'
+  Description: '妯$粍鐗╂枡缂栫爜'
+  IsReadOnly: true
+  ValueType: String
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/StaticMethod_SynchronizeInterfaceData.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/StaticMethod_SynchronizeInterfaceData.qbl
new file mode 100644
index 0000000..aa85a5d
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/StaticMethod_SynchronizeInterfaceData.qbl
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod SynchronizeInterfaceData (
+  GlobalOTDTable globalOTDTable,
+  String executionUser,
+  String brokerName
+)
+{
+  TextBody:
+  [*
+    globalOTDTable.Global_MappingModulePanelCorrespondence( relflush );
+    isCanRun := Global_BrokerExecuteLog::CanRun( globalOTDTable, brokerName );
+    if ( not isCanRun ) {  
+      Global_BrokerExecuteLog::CreateInOperation( globalOTDTable, brokerName, executionUser );
+      globalOTDTable.GlobalOTDTable_ModulePanelCorrespondence().AsyncExecute();
+    }
+  *]
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/TypeIndex_Global_MappingModulePanelCorrespondenceTypeIndex.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/TypeIndex_Global_MappingModulePanelCorrespondenceTypeIndex.qbl
new file mode 100644
index 0000000..951d5f7
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/TypeIndex_Global_MappingModulePanelCorrespondenceTypeIndex.qbl
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: #root
+TypeIndex Global_MappingModulePanelCorrespondenceTypeIndex
+{
+  Attributes:
+  [
+    TypeIndexAttribute
+    {
+      ModelElement: ProductCode
+    }
+    TypeIndexAttribute
+    {
+      ModelElement: BoardCode
+    }
+  ]
+}
diff --git a/_Main/BL/Type_Global_MappingModulePanelCorrespondence/_ROOT_Type_Global_MappingModulePanelCorrespondence.qbl b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/_ROOT_Type_Global_MappingModulePanelCorrespondence.qbl
new file mode 100644
index 0000000..1c7b382
--- /dev/null
+++ b/_Main/BL/Type_Global_MappingModulePanelCorrespondence/_ROOT_Type_Global_MappingModulePanelCorrespondence.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type Global_MappingModulePanelCorrespondence
+{
+  #keys: '5[414702.1.472990039][414702.1.472990037][0.0.0][414702.1.472990038][414702.1.472990040]'
+  BaseType: Object
+  StructuredName: 'Global_MappingModulePanelCorrespondences'
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Component_PanelInterfaceOption5.def b/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Component_PanelInterfaceOption5.def
index 543cdb8..e1cec20 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Component_PanelInterfaceOption5.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Component_PanelInterfaceOption5.def
@@ -25,6 +25,16 @@
         Taborder: 1
       ]
     }
+    Component CheckboxModulePanelCorrespondence
+    {
+      #keys: '[414702.1.470760794]'
+      BaseType: 'WebCheckbox'
+      Properties:
+      [
+        Label: 'ModulePanelCorrespondence'
+        Taborder: 2
+      ]
+    }
   ]
   Properties:
   [
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Response_PanelInterfaceTest_ButtonPullInterfaceDataToIntermediateTable_OnCli.def b/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Response_PanelInterfaceTest_ButtonPullInterfaceDataToIntermediateTable_OnCli.def
index 03e2d62..35ae4cc 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Response_PanelInterfaceTest_ButtonPullInterfaceDataToIntermediateTable_OnCli.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormInterfaceTest/Response_PanelInterfaceTest_ButtonPullInterfaceDataToIntermediateTable_OnCli.def
@@ -43,7 +43,8 @@
                                                                     CheckboxLane.Checked(),
                                                                     CheckboxLaneLeg.Checked(),
                                                                     CheckboxSummaryOfInboundTransaction.Checked(),
-                                                                    CheckAnnualBudgetData.Checked() );
+                                                                    CheckAnnualBudgetData.Checked(),
+                                                                    CheckboxModulePanelCorrespondence.Checked() );
     *]
     GroupServerCalls: false
   }

--
Gitblit v1.9.3