From ff2d9d3b8e8a71f1d291c107dace37f54ba6de4d Mon Sep 17 00:00:00 2001
From: xiaoding721 <33130084+xiaoding721@users.noreply.github.com>
Date: 星期五, 22 十一月 2024 14:37:35 +0800
Subject: [PATCH] 添加shift plan存档界面

---
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixEditorActionBarPageArchiveShiftPlan.def                             |   10 +
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan812.def                                              |   14 +
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/_ROOT_Component_FormArchiveShiftPlan.def                                            |   18 ++
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def                                          |   98 ++++++++++++
 _Main/UI/MacroPlannerWebApp/Views/ArchiveShiftPlan.vw                                                                                          |  233 +++++++++++++++++++++++++++++
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupArchiveReport.def                                        |   11 +
 _Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonArchiveReport_OnClic.def |   17 ++
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixeditorContextMenuArchiveShiftPlan.def                               |   10 +
 _Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan.def                                                 |   11 +
 9 files changed, 422 insertions(+), 0 deletions(-)

diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupArchiveReport.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupArchiveReport.def
index 269a374..6192c0e 100644
--- a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupArchiveReport.def
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Component_ActionBarGroupArchiveReport.def
@@ -79,6 +79,17 @@
       [
         Image: 'RSS'
         Label: '瀹為檯姣忔棩鐢熶骇璁″垝'
+        Taborder: 7
+      ]
+    }
+    Component ButtonArchiveReport
+    {
+      #keys: '[414996.1.245462991]'
+      BaseType: 'WebButton'
+      Properties:
+      [
+        Image: 'KEYBOARD_KEY_SHIFT'
+        Label: 'Archive shift plan'
         Taborder: 6
       ]
     }
diff --git a/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonArchiveReport_OnClic.def b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonArchiveReport_OnClic.def
new file mode 100644
index 0000000..e8d262c
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_ApplicationMacroPlanner/Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonArchiveReport_OnClic.def
@@ -0,0 +1,17 @@
+Quintiq file version 2.0
+#parent: ActionBarGroupArchiveReport/ButtonArchiveReport
+Response OnClick () id:Response_MacroPlanner_ActionBarGroupArchiveReport_ButtonArchiveReport_OnClick
+{
+  #keys: '[414996.1.245463078]'
+  CanBindMultiple: false
+  DefinitionID: 'Responsedef_WebButton_OnClick'
+  QuillAction
+  {
+    Body:
+    [*
+      // Open view
+      ApplicationMacroPlanner.OpenView( 'ArchiveShiftPlan', this );
+    *]
+    GroupServerCalls: false
+  }
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def
new file mode 100644
index 0000000..68a79ae
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_MatrixEditorArchiveShiftPlan.def
@@ -0,0 +1,98 @@
+Quintiq file version 2.0
+Component MatrixEditorArchiveShiftPlan
+{
+  #keys: '[414996.1.242621343]'
+  BaseType: 'WebMatrixEditor'
+  Children:
+  [
+    Component MatrixEditorCellArchiveShiftPlan
+    {
+      #keys: '[414996.1.242621344]'
+      BaseType: 'WebMatrixEditorCell'
+      Children:
+      [
+        Component DataExtractorArchiveShiftPlan
+        {
+          #keys: '[414996.1.242621345]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'Archive'
+            Source: 'Archive'
+            Taborder: 0
+            Transformation: 'ArchiveShiftPlanRow.ArchiveShiftPlanCell'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Attributes: 'EventType;IsHoliday;Outcome;Remark;MacroPlanName'
+        Column: 'ArchiveShiftPlanColumn'
+        Row: 'ArchiveShiftPlanRow'
+        Taborder: 0
+      ]
+    }
+    Component MatrixEditorRowsArchiveShiftPlan
+    {
+      #keys: '[414996.1.242621348]'
+      BaseType: 'WebMatrixEditorHeaderLevel'
+      Children:
+      [
+        Component DataExtractor830
+        {
+          #keys: '[414996.1.242621349]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'Archive'
+            Source: 'Archive'
+            Taborder: 0
+            Transformation: 'ArchiveShiftPlanRow'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Legend: 'UnitID'
+        SortCriteria: 'UnitID'
+        Taborder: 1
+      ]
+    }
+    Component MatrixEditorColumnsArchiveShiftPlan
+    {
+      #keys: '[414996.1.242621352]'
+      BaseType: 'WebMatrixEditorHeaderLevel'
+      Children:
+      [
+        Component DataExtractor576
+        {
+          #keys: '[414996.1.242621353]'
+          BaseType: 'WebDataExtractor'
+          Properties:
+          [
+            DataType: 'Archive'
+            Source: 'Archive'
+            Taborder: 0
+            Transformation: 'ArchiveShiftPlanColumn'
+          ]
+        }
+      ]
+      Properties:
+      [
+        Legend: 'StartDate'
+        SortCriteria: 'StartDate'
+        Taborder: 2
+      ]
+    }
+    #child: matrixEditorActionBarPageArchiveShiftPlan
+    #child: matrixeditorContextMenuArchiveShiftPlan
+  ]
+  Properties:
+  [
+    AllowMultipleAttributes: true
+    Columns: 'MatrixEditorColumnsArchiveShiftPlan'
+    ContextMenu: 'matrixeditorContextMenuArchiveShiftPlan'
+    Rows: 'MatrixEditorRowsArchiveShiftPlan'
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan.def
new file mode 100644
index 0000000..13df5cc
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan.def
@@ -0,0 +1,11 @@
+Quintiq file version 2.0
+Component PanelArchiveShiftPlan
+{
+  #keys: '[414996.1.242621266]'
+  BaseType: 'WebPanel'
+  Properties:
+  [
+    FixedSize: true
+    Taborder: 0
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan812.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan812.def
new file mode 100644
index 0000000..fa097a3
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_PanelArchiveShiftPlan812.def
@@ -0,0 +1,14 @@
+Quintiq file version 2.0
+Component PanelArchiveShiftPlan812
+{
+  #keys: '[414996.1.242621284]'
+  BaseType: 'WebPanel'
+  Children:
+  [
+    #child: MatrixEditorArchiveShiftPlan
+  ]
+  Properties:
+  [
+    Taborder: 1
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixEditorActionBarPageArchiveShiftPlan.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixEditorActionBarPageArchiveShiftPlan.def
new file mode 100644
index 0000000..b46f52d
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixEditorActionBarPageArchiveShiftPlan.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component matrixEditorActionBarPageArchiveShiftPlan
+{
+  #keys: '[414996.1.242621356]'
+  BaseType: 'matrixEditorActionBarPage'
+  Properties:
+  [
+    Taborder: 3
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixeditorContextMenuArchiveShiftPlan.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixeditorContextMenuArchiveShiftPlan.def
new file mode 100644
index 0000000..c06b193
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/Component_matrixeditorContextMenuArchiveShiftPlan.def
@@ -0,0 +1,10 @@
+Quintiq file version 2.0
+Component matrixeditorContextMenuArchiveShiftPlan
+{
+  #keys: '[414996.1.242621359]'
+  BaseType: 'matrixeditorContextMenu'
+  Properties:
+  [
+    Taborder: 4
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/_ROOT_Component_FormArchiveShiftPlan.def b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/_ROOT_Component_FormArchiveShiftPlan.def
new file mode 100644
index 0000000..1ec637a
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Component_FormArchiveShiftPlan/_ROOT_Component_FormArchiveShiftPlan.def
@@ -0,0 +1,18 @@
+Quintiq file version 2.0
+#root
+#parent: MacroPlannerWebApp
+OrphanComponent FormArchiveShiftPlan
+{
+  #keys: '[414996.1.242621193]'
+  BaseType: 'WebForm'
+  Children:
+  [
+    #child: PanelArchiveShiftPlan
+    #child: PanelArchiveShiftPlan812
+  ]
+  Properties:
+  [
+    Image: 'KEYBOARD_KEY_SHIFT'
+    Title: 'Archive Shift Plan'
+  ]
+}
diff --git a/_Main/UI/MacroPlannerWebApp/Views/ArchiveShiftPlan.vw b/_Main/UI/MacroPlannerWebApp/Views/ArchiveShiftPlan.vw
new file mode 100644
index 0000000..55a716f
--- /dev/null
+++ b/_Main/UI/MacroPlannerWebApp/Views/ArchiveShiftPlan.vw
@@ -0,0 +1,233 @@
+Quintiq file version 2.0
+{
+  viewcontents
+  {
+    forms
+    {
+      form_FormArchiveShiftPlan
+      {
+        title: 'QMacroPlanner::FormArchiveShiftPlan'
+        shown: true
+        componentID: 'QMacroPlanner::FormArchiveShiftPlan'
+        layout
+        {
+          mode: 'open'
+          rowPosition: 1
+          rowSpan: 25
+          columnPosition: 1
+          columnSpan: 9
+        }
+        components
+        {
+          FormArchiveShiftPlan_PanelArchiveShiftPlan
+          {
+            sizeRatio: 1
+          }
+          FormArchiveShiftPlan_PanelArchiveShiftPlan812
+          {
+            sizeRatio: 1
+          }
+          FormArchiveShiftPlan_MatrixEditorArchiveShiftPlan
+          {
+            gridColor: '#c4c4c4'
+            totalHeaderWidth: 200
+            attributeHeaderWidthRatio: 0.6
+            nameHeaderWidthRatio: 0.4
+            columnWidth: 100
+            horizontalGrid: true
+            verticalGrid: true
+            backendState
+            {
+              componentId: 'QMacroPlanner::FormArchiveShiftPlan.MatrixEditorArchiveShiftPlan'
+              state
+              {
+                cells
+                {
+                  attributes
+                  {
+                    attribute_EventType
+                    {
+                      type: 'MatrixEditorWebApiCellDataModelInterest'
+                      index: 0
+                      rowsubtotal: ''
+                      columnsubtotal: ''
+                      attribute: 'EventType'
+                    }
+                    attribute_IsHoliday
+                    {
+                      type: 'MatrixEditorWebApiCellDataModelInterest'
+                      index: 1
+                      rowsubtotal: ''
+                      columnsubtotal: ''
+                      attribute: 'IsHoliday'
+                    }
+                    attribute_Outcome
+                    {
+                      type: 'MatrixEditorWebApiCellDataModelInterest'
+                      index: 2
+                      rowsubtotal: ''
+                      columnsubtotal: ''
+                      attribute: 'Outcome'
+                    }
+                    attribute_Remark
+                    {
+                      type: 'MatrixEditorWebApiCellDataModelInterest'
+                      index: 3
+                      rowsubtotal: ''
+                      columnsubtotal: ''
+                      attribute: 'Remark'
+                    }
+                    attribute_MacroPlanName
+                    {
+                      type: 'MatrixEditorWebApiCellDataModelInterest'
+                      index: 4
+                      rowsubtotal: ''
+                      columnsubtotal: ''
+                      attribute: 'MacroPlanName'
+                    }
+                  }
+                }
+                columns
+                {
+                  sorting
+                  {
+                    criteria: "datamember:'StartDate'"
+                  }
+                }
+                rows
+                {
+                  sorting
+                  {
+                    criteria: "datamember:'UnitID'"
+                  }
+                }
+              }
+            }
+          }
+        }
+      }
+      form_FormOptimizerPuzzles
+      {
+        title: 'Optimizer Puzzles'
+        shown: false
+        componentID: 'FormOptimizerPuzzles'
+        layout
+        {
+          mode: 'dockright'
+          index: 0
+        }
+        components
+        {
+          FormOptimizerPuzzles_ListOptimizerPuzzles
+          {
+          }
+          FormOptimizerPuzzles_DataSetLevelOptimizerPuzzles
+          {
+            groupDepth: -1
+            column_All_constraints
+            {
+              columnId: 'All constraints'
+              dataPath: 'All constraints'
+              dataType: 'string'
+              title: 'All constraints'
+              index: 0
+              subtotals: ''
+              width: 32
+            }
+            column_Name
+            {
+              columnId: 'Name'
+              dataPath: 'Name'
+              dataType: 'string'
+              title: 'Name'
+              index: 1
+              subtotals: ''
+              width: 109
+            }
+            column_Description
+            {
+              columnId: 'Description'
+              dataPath: 'Description'
+              dataType: 'string'
+              title: 'Description'
+              index: 2
+              subtotals: ''
+              width: 207
+            }
+          }
+        }
+      }
+      form_FormKPI
+      {
+        title: 'KPI Dashboard'
+        shown: true
+        componentID: 'FormKPI'
+        layout
+        {
+          mode: 'dockright'
+          index: 1
+        }
+        components
+        {
+          FormKPI_PanelKPI
+          {
+            sizeRatio: 1
+            activeChild: 'PanelKPISelection'
+          }
+          FormKPI_PanelKPIDashboard
+          {
+            sizeRatio: 1
+          }
+          FormKPI_PanelKPISelection
+          {
+            sizeRatio: 1
+          }
+          FormKPI_ListKPISelection
+          {
+            QuillViewData
+            {
+              Food_KPISetting: 'Cost of sales;Fulfillment;Fulfillment target;Inventory holding cost;Labor cost;Margin;Safety stock;Sales;Sourcing cost;Total CO2 emission;Transportation cost;Volume'
+            }
+          }
+          FormKPI_DataSetLevelKPISelection
+          {
+            groupDepth: -1
+            column_All_constraints
+            {
+              columnId: 'All constraints'
+              dataPath: 'All constraints'
+              dataType: 'string'
+              title: 'All constraints'
+              index: 0
+              subtotals: ''
+              width: 32
+            }
+            column_Name
+            {
+              columnId: 'Name'
+              dataPath: 'Name'
+              dataType: 'string'
+              title: 'Name'
+              index: 1
+              subtotals: ''
+              width: 200
+            }
+          }
+        }
+      }
+    }
+    userconfigurableinformation
+    {
+    }
+    image: 'KEYBOARD_KEY_SHIFT'
+    page: ''
+    group: ''
+    index: 0
+    description: ''
+  }
+  formatversion: 2
+  id: 'ArchiveShiftPlan'
+  name: 'ArchiveShiftPlan'
+  isglobal: false
+  isroot: true
+}

--
Gitblit v1.9.3