From a719758493295f9af121c03b3d42ab935f62fa33 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9D=D0=B8=D0=BA=D0=BE=D0=BB=D0=B0=D0=B9?= Date: Fri, 10 Mar 2023 18:41:00 +0400 Subject: [PATCH] =?UTF-8?q?=D0=B3=D0=BE=D1=82=D0=BE=D0=B2=D0=B0=D1=8F=204?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FoodOrders/FoodOrders/ReportOrders.rdlc | 70 +++ FoodOrders/FoodOrders/ReportOrders.rdlc.bak | 529 ++++++++++++++++++ .../BusinessLogics/ReportLogic.cs | 12 +- .../OfficePackage/AbstractSaveToPdf.cs | 6 +- .../ViewModels/ReportOrdersViewModel.cs | 2 +- .../Models/Order.cs | 3 +- 6 files changed, 610 insertions(+), 12 deletions(-) create mode 100644 FoodOrders/FoodOrders/ReportOrders.rdlc.bak diff --git a/FoodOrders/FoodOrders/ReportOrders.rdlc b/FoodOrders/FoodOrders/ReportOrders.rdlc index 889babc..525eaf2 100644 --- a/FoodOrders/FoodOrders/ReportOrders.rdlc +++ b/FoodOrders/FoodOrders/ReportOrders.rdlc @@ -33,6 +33,10 @@ Sum System.Decimal + + OrderStatus + System.String + FoodOrdersContracts.ViewModels @@ -126,6 +130,9 @@ 2.5cm + + + 3.21438cm @@ -258,6 +265,38 @@ 2pt + + + + + + true + true + + + + + Статус заказа + + + + + + 2pt + 2pt + 2pt + 2pt + + @@ -385,6 +424,36 @@ 2pt + + + + + + true + true + + + + + =Fields!OrderStatus.Value + + + 2pt + 2pt + 2pt + 2pt + + @@ -397,6 +466,7 @@ + diff --git a/FoodOrders/FoodOrders/ReportOrders.rdlc.bak b/FoodOrders/FoodOrders/ReportOrders.rdlc.bak new file mode 100644 index 0000000..889babc --- /dev/null +++ b/FoodOrders/FoodOrders/ReportOrders.rdlc.bak @@ -0,0 +1,529 @@ + + + 0 + + + + System.Data.DataSet + /* Local Connection */ + + 10791c83-cee8-4a38-bbd0-245fc17cefb3 + + + + + + FoodOrdersContractsViewModels + /* Local Query */ + + + + Id + System.Int32 + + + DateCreate + System.DateTime + + + DishName + System.String + + + Sum + System.Decimal + + + + FoodOrdersContracts.ViewModels + ReportOrdersViewModel + FoodOrdersContracts.ViewModels.ReportOrdersViewModel, FoodOrdersContracts, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null + + + + + + + + + true + true + + + + + =Parameters!ReportParameterPeriod.Value + + + + + + + ReportParameterPeriod + 1cm + 1cm + 21cm + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + Заказы + + + + + + + 1cm + 21cm + 1 + + + Middle + 2pt + 2pt + 2pt + 2pt + + + + + + + 2.5cm + + + 3.21438cm + + + 8.23317cm + + + 2.5cm + + + + + 0.6cm + + + + + true + true + + + + + Номер + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Дата создания + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Блюдо + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Сумма + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 0.6cm + + + + + true + true + + + + + =Fields!Id.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!DateCreate.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!DishName.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Sum.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + After + + + + + + + DataSetOrders + 2.48391cm + 0.55245cm + 1.2cm + 16.44755cm + 2 + + + + + + true + true + + + + + Итого: + + + + + + + 4cm + 12cm + 0.6cm + 2.5cm + 3 + + + 2pt + 2pt + 2pt + 2pt + + + + true + true + + + + + =Sum(Fields!Sum.Value, "DataSetOrders") + + + + + + + 4cm + 14.5cm + 0.6cm + 2.5cm + 4 + + + 2pt + 2pt + 2pt + 2pt + + + + 5.72875cm +