From 36be4b0ee39895e91f18cb708f46bc90563867ca Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期五, 23 八月 2024 01:06:27 +0800
Subject: [PATCH] 添加班次计划接口调用按钮

---
 _Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button593_OnClick.def |   16 ++++++++
 _Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl                               |    6 ++-
 _Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button633_OnClick.def |   16 ++++++++
 _Main/UI/MacroPlannerWebApp/Component_Form568/Component_pOperation.def                  |   26 +++++++++++-
 4 files changed, 59 insertions(+), 5 deletions(-)

diff --git a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
index 5e58ffd..1402b5a 100644
--- a/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
+++ b/_Main/BL/Type_DispatchShiftPlan/StaticMethod_Dispatch.qbl
@@ -2,14 +2,15 @@
 #parent: #root
 StaticMethod Dispatch (
   const MacroPlan macroPlan,
-  RecycleBin owner
+  RecycleBin owner,
+  String versionFlag
 )
 {
   TextBody:
   [*
     // Akari Aug-21-2024 (created)
     owner.DispatchShiftPlan( relflush );
-    owner.RB_DispatchShiftPlanBroker().Source().FlatQuery( "truncate table A_DispatchShiftPlan" );
+    // owner.RB_DispatchShiftPlanBroker().Source().FlatQuery( "truncate table A_DispatchShiftPlan" );
     
     now := DateTime::Now();
     macroPlanName := macroPlan.MDSMacroPlan().Description();
@@ -28,6 +29,7 @@
                                 ShiftDate := shiftPlan.UnitPeriodTime().Period_MP().StartDate(),
                                 Tips := shiftPlan.Remark(),
                                 VersionName := macroPlanName,
+                                VersionFlag := versionFlag,
                                 FactoryName := factory.ID(),
                                 InterfaceTime := now
                                 );
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form568/Component_pOperation.def b/_Main/UI/MacroPlannerWebApp/Component_Form568/Component_pOperation.def
index 0a1c73c..0a92700 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_Form568/Component_pOperation.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form568/Component_pOperation.def
@@ -13,7 +13,7 @@
       [
         Image: 'EXPORT1'
         Label: '瀵煎嚭'
-        Taborder: 0
+        Taborder: 2
       ]
     }
     Component bDownload id:bDownload_774
@@ -24,7 +24,7 @@
       [
         Image: 'DOWNLOAD'
         Label: '涓嬭浇'
-        Taborder: 1
+        Taborder: 3
       ]
     }
     Component dhXMLDataListener
@@ -50,7 +50,27 @@
       ]
       Properties:
       [
-        Taborder: 2
+        Taborder: 4
+      ]
+    }
+    Component Button593
+    {
+      #keys: '[414996.1.20921786]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Label: '鍙戝竷鐗堟湰'
+        Taborder: 0
+      ]
+    }
+    Component Button633
+    {
+      #keys: '[414996.1.20921810]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Label: '姹囨姤鐗堟湰'
+        Taborder: 1
       ]
     }
   ]
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button593_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button593_OnClick.def
new file mode 100644
index 0000000..c85d3c1
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button593_OnClick.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: pOperation/Button593
+Response OnClick () id:Response_pOperation_Button593_OnClick
+{
+  #keys: '[414996.1.20921852]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      DispatchShiftPlan::Dispatch( MacroPlan,RecycleBin,this.Label() );
+    *]
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button633_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button633_OnClick.def
new file mode 100644
index 0000000..78c0710
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_Form568/Response_pOperation_Button633_OnClick.def
@@ -0,0 +1,16 @@
+Quintiq file version 2.0
+#parent: pOperation/Button633
+Response OnClick () id:Response_pOperation_Button633_OnClick
+{
+  #keys: '[414996.1.20921936]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  GroupServerCalls: true
+  QuillAction
+  {
+    Body:
+    [*
+      DispatchShiftPlan::Dispatch( MacroPlan,RecycleBin,this.Label() );
+    *]
+  }
+}

--
Gitblit v1.9.3