From 243f9e7db06cb4543bc041c7091ddfd52594f6b7 Mon Sep 17 00:00:00 2001 From: ujijrujijr Date: Fri, 14 Jun 2024 17:17:44 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9E=D1=82=D1=87=D1=91=D1=82=20pdf=20+=20?= =?UTF-8?q?=D1=84=D0=BE=D1=80=D0=BC=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- GarmentFactory/GarmentFactoryView.csproj | 3 + GarmentFactory/ReportGroupedOrders.rdlc | 444 ++++++++++++++++++ .../BusinessLogics/ReportLogic.cs | 36 +- .../OfficePackage/AbstractSaveToPdf.cs | 35 +- .../HelperModels/PdfGroupedOrdersInfo.cs | 16 + .../OfficePackage/HelperModels/PdfInfo.cs | 2 +- .../OfficePackage/Implements/SaveToPdf.cs | 4 +- .../BusinessLogicsContracts/IReportLogic.cs | 4 +- .../ReportGroupedOrdersViewModel.cs | 15 + 9 files changed, 535 insertions(+), 24 deletions(-) create mode 100644 GarmentFactory/ReportGroupedOrders.rdlc create mode 100644 GarmentFactoryBusinessLogic/OfficePackage/HelperModels/PdfGroupedOrdersInfo.cs create mode 100644 GarmentFactoryContracts/ViewModels/ReportGroupedOrdersViewModel.cs diff --git a/GarmentFactory/GarmentFactoryView.csproj b/GarmentFactory/GarmentFactoryView.csproj index 6b48d02..1ec32c7 100644 --- a/GarmentFactory/GarmentFactoryView.csproj +++ b/GarmentFactory/GarmentFactoryView.csproj @@ -44,6 +44,9 @@ + + Always + Always diff --git a/GarmentFactory/ReportGroupedOrders.rdlc b/GarmentFactory/ReportGroupedOrders.rdlc new file mode 100644 index 0000000..2eaa478 --- /dev/null +++ b/GarmentFactory/ReportGroupedOrders.rdlc @@ -0,0 +1,444 @@ + + + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 20791c83-cee8-4a38-bbd0-245fc17cefb3 + + + + + + GarmentFactoryContractsViewModels + /* Local Query */ + + + + Date + System.DateTime + + + OrdersCount + System.Int32 + + + OrdersSum + System.Decimal + + + + GarmentFactoryContracts.ViewModels + ReportGroupedOrdersViewModel + GarmentFactoryContracts.ViewModels.ReportGroupedOrdersViewModel, GarmentFactoryContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + + + + + + + + + true + true + + + + + Отчёт по заказам + + + + + + + 0.6cm + 16.51cm + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Parameters!ReportParameterPeriod.Value + + + + + + + ReportParameterPeriod + 0.6cm + 0.6cm + 16.51cm + 1 + + + 2pt + 2pt + 2pt + 2pt + + + + + + + 3.90406cm + + + 3.97461cm + + + 3.65711cm + + + + + 0.6cm + + + + + true + true + + + + + Дата создания + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Количество заказов + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Общая сумма заказов + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!Date.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!OrdersCount.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!OrdersSum.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + After + + + + + + + DataSetGroupedOrders + 1.88242cm + 2.68676cm + 1.2cm + 11.53578cm + 2 + + + + + + true + true + + + + + Итого: + + + + 3.29409cm + 8.06542cm + 0.6cm + 2.5cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!OrdersSum.Value, "DataSetGroupedOrders") + + + + + + + 3.29409cm + 10.70653cm + 0.6cm + 3.48072cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + 2in +