From f8cbed6c69c351f1607d3e5f35f0d70f2bb5eaac Mon Sep 17 00:00:00 2001 From: admin <420599804@qq.com> Date: 星期四, 25 七月 2024 16:58:44 +0800 Subject: [PATCH] 添加视图 --- _Main/BL/Type_ActualDailyProductionReport/StaticMethod_Synchronize.qbl | 2 _Main/UI/MacroPlannerWebApp/Views/OfflinePlanComparisonReport.vw | 100 +++++++++++++++++++++++++++++++++ _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Component_PanelRibbon504.def | 10 +++ _Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelRibbon504_ButtonRibbon_OnClick.def | 16 +++++ 4 files changed, 127 insertions(+), 1 deletions(-) diff --git a/_Main/BL/Type_ActualDailyProductionReport/StaticMethod_Synchronize.qbl b/_Main/BL/Type_ActualDailyProductionReport/StaticMethod_Synchronize.qbl index 297cef4..9b78c60 100644 --- a/_Main/BL/Type_ActualDailyProductionReport/StaticMethod_Synchronize.qbl +++ b/_Main/BL/Type_ActualDailyProductionReport/StaticMethod_Synchronize.qbl @@ -25,7 +25,7 @@ cnv2.SetCustomConversion(); cnv2.CustomFormatString( 'yyyy-MM-dd' ); - + info( data.AsString() ); } *] } diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Component_PanelRibbon504.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Component_PanelRibbon504.def index abb2e55..1350b9a 100644 --- a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Component_PanelRibbon504.def +++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Component_PanelRibbon504.def @@ -52,6 +52,16 @@ Taborder: 2 ] } + Component ButtonRibbon + { + #keys: '[415720.0.38711791]' + BaseType: 'WebButton' + Properties: + [ + Label: '瀹為檯鐢熶骇鏁版嵁鎺ュ彛鍚屾' + Taborder: 3 + ] + } ] Properties: [ diff --git a/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelRibbon504_ButtonRibbon_OnClick.def b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelRibbon504_ButtonRibbon_OnClick.def new file mode 100644 index 0000000..c472499 --- /dev/null +++ b/_Main/UI/MacroPlannerWebApp/Component_FormOfflinePlanComparison/Response_PanelRibbon504_ButtonRibbon_OnClick.def @@ -0,0 +1,16 @@ +Quintiq file version 2.0 +#parent: PanelRibbon504/ButtonRibbon +Response OnClick () id:Response_PanelRibbon504_ButtonRibbon_OnClick +{ + #keys: '[415720.0.38711805]' + CanBindMultiple: false + DefinitionID: 'Responsedef_WebButton_OnClick' + QuillAction + { + Body: + [* + ActualDailyProductionData::Synchronize( MacroPlan,InterfaceDataset ); + *] + GroupServerCalls: false + } +} diff --git a/_Main/UI/MacroPlannerWebApp/Views/OfflinePlanComparisonReport.vw b/_Main/UI/MacroPlannerWebApp/Views/OfflinePlanComparisonReport.vw index 0bb5878..874c68f 100644 --- a/_Main/UI/MacroPlannerWebApp/Views/OfflinePlanComparisonReport.vw +++ b/_Main/UI/MacroPlannerWebApp/Views/OfflinePlanComparisonReport.vw @@ -2,6 +2,106 @@ { viewcontents { + forms + { + form_FormOfflinePlanComparison + { + title: 'QMacroPlanner::FormOfflinePlanComparison' + shown: true + componentID: 'QMacroPlanner::FormOfflinePlanComparison' + layout + { + mode: 'open' + rowPosition: 1 + rowSpan: 27 + columnPosition: 1 + columnSpan: 9 + } + components + { + FormOfflinePlanComparison_PanelRibbon + { + sizeRatio: 1 + } + FormOfflinePlanComparison_PanelRibbon504 + { + sizeRatio: 1 + } + FormOfflinePlanComparison_PanelFilter + { + sizeRatio: 1 + } + FormOfflinePlanComparison_PanelDemandComparison + { + sizeRatio: 1 + } + FormOfflinePlanComparison_MatrixEditor + { + gridColor: '#c4c4c4' + totalHeaderWidth: 200 + attributeHeaderWidthRatio: 0.6 + nameHeaderWidthRatio: 0.4 + columnWidth: 100 + horizontalGrid: true + verticalGrid: true + backendState + { + componentId: 'QMacroPlanner::FormOfflinePlanComparison.MatrixEditor' + state + { + cells + { + attributes + { + attribute_Plan + { + type: 'MatrixEditorWebApiCellDataModelInterest' + index: 0 + rowsubtotal: '' + columnsubtotal: '' + attribute: 'Plan' + } + attribute_Actual + { + type: 'MatrixEditorWebApiCellDataModelInterest' + index: 1 + rowsubtotal: '' + columnsubtotal: '' + attribute: 'Actual' + } + attribute_Gap + { + type: 'MatrixEditorWebApiCellDataModelInterest' + index: 2 + rowsubtotal: '' + columnsubtotal: '' + attribute: 'Gap' + } + } + } + columns + { + sorting + { + criteria: "datamember:'Index'" + } + } + rows + { + sorting + { + criteria: "datamember:'Index'" + } + } + } + } + } + } + } + } + userconfigurableinformation + { + } page: '' group: '' index: 0 -- Gitblit v1.9.3