From 5bf8d2a8e00a9e2a666005ea794ebffd8dd65b94 Mon Sep 17 00:00:00 2001
From: lihongji <3117313295@qq.com>
Date: 星期二, 27 八月 2024 11:30:26 +0800
Subject: [PATCH] 导出

---
 _Main/BL/Type_MachineLogisticsCostReportCell/StaticMethod_Export.qbl                                      |    7 +++++++
 _Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Response_pHeader_bExport_OnClick.def |   22 ++++++++++++++++++++++
 _Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Component_pHeader.def                |    5 ++---
 3 files changed, 31 insertions(+), 3 deletions(-)

diff --git a/_Main/BL/Type_MachineLogisticsCostReportCell/StaticMethod_Export.qbl b/_Main/BL/Type_MachineLogisticsCostReportCell/StaticMethod_Export.qbl
new file mode 100644
index 0000000..a37bcec
--- /dev/null
+++ b/_Main/BL/Type_MachineLogisticsCostReportCell/StaticMethod_Export.qbl
@@ -0,0 +1,7 @@
+Quintiq file version 2.0
+#parent: #root
+StaticMethod Export (
+  MachineLogisticsCostReportRows mlcrrs
+)
+{
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Component_pHeader.def b/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Component_pHeader.def
index 088afc8..883b60a 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Component_pHeader.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Component_pHeader.def
@@ -26,14 +26,13 @@
         Taborder: 1
       ]
     }
-    Component Button655
+    Component bExport
     {
       #keys: '[413988.0.1467011030]'
       BaseType: 'WebButton'
       Properties:
       [
-        Image: 'PIG'
-        Label: 'Button655'
+        Image: 'EXPORT1'
         Taborder: 2
       ]
     }
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Response_pHeader_bExport_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Response_pHeader_bExport_OnClick.def
new file mode 100644
index 0000000..d6dce97
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormMachineLogisticsCostReport/Response_pHeader_bExport_OnClick.def
@@ -0,0 +1,22 @@
+Quintiq file version 2.0
+#parent: pHeader/bExport
+Response OnClick () id:Response_pHeader_bExport_OnClick
+{
+  #keys: '[413988.0.1503619865]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  Precondition:
+  [*
+    return not isnull( MacroPlan );
+  *]
+  QuillAction
+  {
+    Body:
+    [*
+      mlcrrs := selectset( MacroPlan, MachineLogisticsCostReportRow, tempMLCRR, true );
+      
+      MachineLogisticsCostReportCell::Export( mlcrrs );
+    *]
+    GroupServerCalls: false
+  }
+}

--
Gitblit v1.9.3