From 301162c159efa01358ff8c63566d73e47851e1b6 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期一, 19 八月 2024 15:04:35 +0800
Subject: [PATCH] 接口生成数据

---
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_VersionName.qbl                                                                         |    8 +
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Product.qbl                                                                             |    8 +
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackRep.def |   16 ++
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_PlanningInventory.qbl                                                                   |    8 +
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_O.def |   16 ++
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Fac.qbl                                                                                 |    8 +
 _Main/BL/Type_TransferPlanCell/StaticMethod_GenerateReport.qbl                                                                                 |    8 
 _Main/BL/Relations/Relation_InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_In.qbl                                            |   23 +++
 _Main/BL/Type_TransferPlanRow/StaticMethod_IdentifyTheFactory.qbl                                                                              |   21 +++
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuEngineLogisticsCostReport.def                               |   41 ++++++
 /dev/null                                                                                                                                      |   16 --
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogistics.def |   16 ++
 _Main/BL/Type_InterfacePlanInventoryDataPush/StaticMethod_GenerateData.qbl                                                                     |   25 ++++
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_FactoryName.qbl                                                                         |    8 +
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupReport.def                                               |   39 ------
 _Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_InventoryDate.qbl                                                                       |    8 +
 _Main/BL/Type_InterfacePlanInventoryDataPush/_ROOT_Type_InterfacePlanInventoryDataPush.qbl                                                     |    9 +
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackRep.def |   16 ++
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def                                               |   10 +
 19 files changed, 244 insertions(+), 60 deletions(-)

diff --git a/_Main/BL/Relations/Relation_InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_In.qbl b/_Main/BL/Relations/Relation_InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_In.qbl
new file mode 100644
index 0000000..ffdf492
--- /dev/null
+++ b/_Main/BL/Relations/Relation_InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_In.qbl
@@ -0,0 +1,23 @@
+Quintiq file version 2.0
+#parent: #root
+Relation InterfacePlanInventoryDataPush_InterfaceDataset_InterfaceDataset_InterfacePlanInventoryDataPush
+{
+  #keys: '1[413988.0.1493874639]'
+  DefaultRelationStrategy
+  {
+  }
+  RelationSide.LeftSide InterfaceDataset
+  {
+    #keys: '3[413988.0.1493874641][413988.0.1493874640][413988.0.1493874642]'
+    Cardinality: '0to1'
+    ObjectDefinition: InterfacePlanInventoryDataPush
+    OwningSide: 'Reference'
+  }
+  RelationSide.RightSide InterfacePlanInventoryDataPush
+  {
+    #keys: '3[413988.0.1493874644][413988.0.1493874643][413988.0.1493874645]'
+    Cardinality: '1toN'
+    ObjectDefinition: InterfaceDataset
+    OwningSide: 'Owned'
+  }
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Fac.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Fac.qbl
new file mode 100644
index 0000000..3448d61
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Fac.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Fac
+{
+  #keys: '3[413988.0.1493874711][413988.0.1493874710][413988.0.1493874712]'
+  Description: '宸ュ巶绠�鍐�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_FactoryName.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_FactoryName.qbl
new file mode 100644
index 0000000..72c6407
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_FactoryName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute FactoryName
+{
+  #keys: '3[413988.0.1493874701][413988.0.1493874700][413988.0.1493874702]'
+  Description: '宸ュ巶鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_InventoryDate.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_InventoryDate.qbl
new file mode 100644
index 0000000..b79c4d2
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_InventoryDate.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute InventoryDate
+{
+  #keys: '3[413988.0.1493874665][413988.0.1493874664][413988.0.1493874666]'
+  Description: '搴撳瓨鏃ユ湡'
+  ValueType: Date
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_PlanningInventory.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_PlanningInventory.qbl
new file mode 100644
index 0000000..3c8d228
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_PlanningInventory.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute PlanningInventory
+{
+  #keys: '3[413988.0.1493874681][413988.0.1493874680][413988.0.1493874682]'
+  Description: '瀵瑰簲鏃ユ湡鐨勮鍒掑簱瀛樻暟閲�'
+  ValueType: Number
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Product.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Product.qbl
new file mode 100644
index 0000000..73358d3
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_Product.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute Product
+{
+  #keys: '3[413988.0.1493874655][413988.0.1493874654][413988.0.1493874656]'
+  Description: '鐗╂枡鍙�'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_VersionName.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_VersionName.qbl
new file mode 100644
index 0000000..790f6ec
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/Attribute_VersionName.qbl
@@ -0,0 +1,8 @@
+Quintiq file version 2.0
+#parent: #root
+Attribute VersionName
+{
+  #keys: '3[413988.0.1493874691][413988.0.1493874690][413988.0.1493874692]'
+  Description: '鐗堟湰鍚嶇О'
+  ValueType: String
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/StaticMethod_GenerateData.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/StaticMethod_GenerateData.qbl
new file mode 100644
index 0000000..a1631c3
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/StaticMethod_GenerateData.qbl
@@ -0,0 +1,25 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod GenerateData (
+  MacroPlan macroPlan,
+  InterfaceDataset interfaceDataset
+)
+{
+  TextBody:
+  [*
+    interfaceDataset.InterfacePlanInventoryDataPush( relflush );
+    
+    traverse ( macroPlan, Product_MP.ProductInStockingPoint_MP, pispmp, not pispmp.IsSystem() and pispmp.IsLeaf() ) {
+      traverse ( pispmp, ProductInStockingPointInPeriodPlanning.astype( ProductInStockingPointInPeriodPlanningLeaf ), pispippl, not pispippl.IsPeriodFrozen() ) {
+        interfaceDataset.InterfacePlanInventoryDataPush( relnew,
+                                                         Product           := pispmp.ProductID(),
+                                                         InventoryDate     := pispippl.Start().Date(),
+                                                         PlanningInventory := [Number]pispippl.InventoryLevelEnd(),
+                                                         VersionName       := macroPlan.ScenarioName(),
+                                                         FactoryName       := ifexpr( pispmp.StockingPointID().Regex( "澶ц繛" ) or pispmp.StockingPointID().Regex( "DL" ), "澶ц繛宸ュ巶", "闀挎槬宸ュ巶" ),
+                                                         Fac               := ifexpr( pispmp.StockingPointID().Regex( "澶ц繛" ) or pispmp.StockingPointID().Regex( "DL" ), "DL", "CC" )
+                                                        );
+      } 
+    }
+  *]
+}
diff --git a/_Main/BL/Type_InterfacePlanInventoryDataPush/_ROOT_Type_InterfacePlanInventoryDataPush.qbl b/_Main/BL/Type_InterfacePlanInventoryDataPush/_ROOT_Type_InterfacePlanInventoryDataPush.qbl
new file mode 100644
index 0000000..1f38056
--- /dev/null
+++ b/_Main/BL/Type_InterfacePlanInventoryDataPush/_ROOT_Type_InterfacePlanInventoryDataPush.qbl
@@ -0,0 +1,9 @@
+Quintiq file version 2.0
+#root
+#parent: #DomainModel
+Type InterfacePlanInventoryDataPush
+{
+  #keys: '5[413988.0.1493874636][413988.0.1493874634][0.0.0][413988.0.1493874635][413988.0.1493874637]'
+  BaseType: Object
+  StructuredName: 'InterfacePlanInventoryDataPushs'
+}
diff --git a/_Main/BL/Type_TransferPlanCell/StaticMethod_GenerateReport.qbl b/_Main/BL/Type_TransferPlanCell/StaticMethod_GenerateReport.qbl
index 3fa0a72..882d9cb 100644
--- a/_Main/BL/Type_TransferPlanCell/StaticMethod_GenerateReport.qbl
+++ b/_Main/BL/Type_TransferPlanCell/StaticMethod_GenerateReport.qbl
@@ -16,14 +16,14 @@
       traverse ( u, Lane.LaneLeg.Trip, t ) {
         traverse ( t, ProductInTrip, pit, pit.Quantity() > 0.0 ) {
           // 鎵捐
-          tpr := TransferPlanRow::FindTransferPlanRowTypeIndex( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP().Name(),
-                                                                t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().Name(),
+          tpr := TransferPlanRow::FindTransferPlanRowTypeIndex( TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP() ),
+                                                                TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP() ),
                                                                 pit.Product_MP().ID() );
           if ( isnull( tpr ) ) {
             tpr := macroPlan.TransferPlanRow( relnew, 
                                               RowNr                   := rowNr,
-                                              SourceStockpoingPointID := t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP().Name(),
-                                              TargetStockpoingPointID := t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP().Name(),
+                                              SourceStockpoingPointID := TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsOriginStockingPointLeg().StockingPoint_MP() ),
+                                              TargetStockpoingPointID := TransferPlanRow::IdentifyTheFactory( t.LaneLeg().AsDestinationStockingPointLeg().StockingPoint_MP() ),
                                               ProductID               := pit.Product_MP().ID() );     
           }
           
diff --git a/_Main/BL/Type_TransferPlanRow/StaticMethod_IdentifyTheFactory.qbl b/_Main/BL/Type_TransferPlanRow/StaticMethod_IdentifyTheFactory.qbl
new file mode 100644
index 0000000..88a5405
--- /dev/null
+++ b/_Main/BL/Type_TransferPlanRow/StaticMethod_IdentifyTheFactory.qbl
@@ -0,0 +1,21 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod IdentifyTheFactory (
+  StockingPoint_MP spmp
+) as String
+{
+  TextBody:
+  [*
+    factory := "";
+    
+    if ( spmp.Name().Regex( "闀挎槬" ) or spmp.Name().Regex( "CC" ) ) {
+      factory := "CC";
+    } else if ( spmp.Name().Regex( "澶ц繛" ) or spmp.Name().Regex( "DL" ) ) {
+      factory := "DL";
+    } else {
+      factory := "鎵句笉鍒板睘浜庡摢涓伐鍘�";
+    }
+    
+    return factory;
+  *]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupReport.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupReport.def
index 6028da1..5977fc5 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupReport.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupReport.def
@@ -91,17 +91,6 @@
         Taborder: 6
       ]
     }
-    Component bMachineLogisticsCostReport
-    {
-      #keys: '[413988.0.1467117990]'
-      BaseType: 'WebButton'
-      Properties:
-      [
-        Image: 'LOCATION_PIN'
-        Label: '鏈哄姞鐗╂祦鎴愭湰鎶ヨ〃'
-        Taborder: 7
-      ]
-    }
     Component ButtonScenarioComparisonDemandComparison id:ButtonScenarioComparisonDemandComparison_256
     {
       #keys: '[412672.1.90201789]'
@@ -110,7 +99,7 @@
       [
         Image: 'EQUALS'
         Label: '闇�姹傚姣�'
-        Taborder: 8
+        Taborder: 7
       ]
     }
     Component ButtonScheduleSummaryReport
@@ -135,28 +124,6 @@
         Taborder: 9
       ]
     }
-    Component bCC_EngineRackReport
-    {
-      #keys: '[413988.0.1477120930]'
-      BaseType: 'WebButton'
-      Properties:
-      [
-        Image: 'SATELLITE'
-        Label: '闀挎槬鍙戝姩鏈烘枡鏋舵姤琛�'
-        Taborder: 10
-      ]
-    }
-    Component bDL_EngineRackReport
-    {
-      #keys: '[413988.0.1488511896]'
-      BaseType: 'WebButton'
-      Properties:
-      [
-        Image: 'EARTH_LOCATION'
-        Label: '澶ц繛鍙戝姩鏈烘枡鏋舵姤琛�'
-        Taborder: 11
-      ]
-    }
     Component ButtonEngineLogisticsCostReport
     {
       #keys: '[415136.0.989557433]'
@@ -169,7 +136,7 @@
       [
         Image: 'MONEY2'
         Label: '鍙戝姩鏈虹墿娴佹垚鏈姤琛�'
-        Taborder: 12
+        Taborder: 10
       ]
     }
     Component ButtonAnnualPlanReport
@@ -180,7 +147,7 @@
       [
         Image: 'DOCUMENT_HEART'
         Label: '鍏ㄥ勾璁″垝鎶ヨ〃'
-        Taborder: 13
+        Taborder: 11
       ]
     }
   ]
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuEngineLogisticsCostReport.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuEngineLogisticsCostReport.def
index 90dcee1..e126415 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuEngineLogisticsCostReport.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuEngineLogisticsCostReport.def
@@ -12,8 +12,8 @@
       Properties:
       [
         Description: 'CC engine logistics cost report'
-        Image: 'MONEY2'
-        Taborder: 0
+        Image: 'MONEY_COINS2'
+        Taborder: 1
         Title: '闀挎槬鍙戝姩鏈虹墿娴佹垚鏈姤琛�'
       ]
     }
@@ -24,11 +24,44 @@
       Properties:
       [
         Description: 'DL engine logistics cost report'
-        Image: 'MONEY2'
-        Taborder: 1
+        Image: 'PIGGY_BANK'
+        Taborder: 2
         Title: '澶ц繛鍙戝姩鏈虹墿娴佹垚鏈姤琛�'
       ]
     }
+    Component mMachineLogisticsCostReport
+    {
+      #keys: '[413988.0.1492770837]'
+      BaseType: 'WebMenu'
+      Properties:
+      [
+        Image: 'LOCATION_PIN'
+        Taborder: 0
+        Title: '鏈哄姞鐗╂祦鎴愭湰鎶ヨ〃'
+      ]
+    }
+    Component mCC_EngineRackReport
+    {
+      #keys: '[413988.0.1492701081]'
+      BaseType: 'WebMenu'
+      Properties:
+      [
+        Image: 'SATELLITE'
+        Taborder: 3
+        Title: '闀挎槬鍙戝姩鏈烘枡鏋舵姤琛�'
+      ]
+    }
+    Component mDL_EngineRackReport
+    {
+      #keys: '[413988.0.1492780876]'
+      BaseType: 'WebMenu'
+      Properties:
+      [
+        Image: 'EARTH_LOCATION'
+        Taborder: 4
+        Title: '澶ц繛鍙戝姩鏈烘枡鏋舵姤琛�'
+      ]
+    }
   ]
   Properties:
   [
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def
index ac50d15..77bd762 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ContextMenuInterface.def
@@ -38,6 +38,16 @@
         Title: 'Finished engine inventory'
       ]
     }
+    Component mInterfacePlanInventoryDataPush
+    {
+      #keys: '[413988.0.1495640230]'
+      BaseType: 'WebMenu'
+      Properties:
+      [
+        Taborder: 3
+        Title: '璁″垝搴撳瓨鏁版嵁鎺ㄩ�佹帴鍙f祴璇�'
+      ]
+    }
   ]
   Properties:
   [
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bCC_EngineRackReport_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bCC_EngineRackReport_OnClick.def
deleted file mode 100644
index 1a91ad9..0000000
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bCC_EngineRackReport_OnClick.def
+++ /dev/null
@@ -1,16 +0,0 @@
-Quintiq file version 2.0
-#parent: ActionBarGroupReport/bCC_EngineRackReport
-Response OnClick () id:Response_MacroPlanner_ActionBarGroupReport_bCC_EngineRackReport_OnClick
-{
-  #keys: '[413988.0.1477121059]'
-  CanBindMultiple: false
-  DefinitionID: 'Responsedef_WebButton_OnClick'
-  GroupServerCalls: true
-  QuillAction
-  {
-    Body:
-    [*
-      ApplicationScope.ViewManager().ResetUserViewById( "CCEngineRackReport", true);
-    *]
-  }
-}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bDL_EngineRackReport_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bDL_EngineRackReport_OnClick.def
deleted file mode 100644
index 470ceb9..0000000
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bDL_EngineRackReport_OnClick.def
+++ /dev/null
@@ -1,16 +0,0 @@
-Quintiq file version 2.0
-#parent: ActionBarGroupReport/bDL_EngineRackReport
-Response OnClick () id:Response_MacroPlanner_ActionBarGroupReport_bDL_EngineRackReport_OnClick
-{
-  #keys: '[413988.0.1488512018]'
-  CanBindMultiple: false
-  DefinitionID: 'Responsedef_WebButton_OnClick'
-  GroupServerCalls: true
-  QuillAction
-  {
-    Body:
-    [*
-      ApplicationScope.ViewManager().ResetUserViewById( "DLEngineRackReport", true);
-    *]
-  }
-}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bMachineLogisticsCostReport_OnCli.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bMachineLogisticsCostReport_OnCli.def
deleted file mode 100644
index aa3b46f..0000000
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupReport_bMachineLogisticsCostReport_OnCli.def
+++ /dev/null
@@ -1,16 +0,0 @@
-Quintiq file version 2.0
-#parent: ActionBarGroupReport/bMachineLogisticsCostReport
-Response OnClick () id:Response_MacroPlanner_ActionBarGroupReport_bMachineLogisticsCostReport_OnClick
-{
-  #keys: '[413988.0.1467020680]'
-  CanBindMultiple: false
-  DefinitionID: 'Responsedef_WebButton_OnClick'
-  GroupServerCalls: true
-  QuillAction
-  {
-    Body:
-    [*
-      ApplicationScope.ViewManager().ResetUserViewById( "MachineLogisticsCostReport", true);
-    *]
-  }
-}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackRep.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackRep.def
new file mode 100644
index 0000000..3669d97
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackRep.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: ContextMenuEngineLogisticsCostReport/mCC_EngineRackReport
+Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mCC_EngineRackReport_OnClick
+{
+  #keys: '[413988.0.1494079933]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebMenu_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      ApplicationScope.ViewManager().ResetUserViewById( "CCEngineRackReport", true);
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackRep.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackRep.def
new file mode 100644
index 0000000..8b50fba
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackRep.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: ContextMenuEngineLogisticsCostReport/mDL_EngineRackReport
+Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mDL_EngineRackReport_OnClick
+{
+  #keys: '[413988.0.1494298669]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebMenu_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      ApplicationScope.ViewManager().ResetUserViewById( "DLEngineRackReport", true);
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogistics.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogistics.def
new file mode 100644
index 0000000..fcc2046
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogistics.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: ContextMenuEngineLogisticsCostReport/mMachineLogisticsCostReport
+Response OnClick () id:Response_MacroPlanner_ContextMenuEngineLogisticsCostReport_mMachineLogisticsCostReport_OnClick
+{
+  #keys: '[413988.0.1492720600]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebMenu_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      ApplicationScope.ViewManager().ResetUserViewById( "MachineLogisticsCostReport", true);
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_O.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_O.def
new file mode 100644
index 0000000..10c1fc2
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_O.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: ContextMenuInterface/mInterfacePlanInventoryDataPush
+Response OnClick () id:Response_MacroPlanner_ContextMenuInterface_mInterfacePlanInventoryDataPush_OnClick
+{
+  #keys: '[413988.0.1495640258]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebMenu_OnClick'
+  QuillAction
+  {
+    Body:
+    [*
+      InterfacePlanInventoryDataPush::GenerateData( MacroPlan, InterfaceDataset );
+    *]
+    GroupServerCalls: false
+  }
+}

--
Gitblit v1.9.3