From cbc46a25560e62ab65791f5267ba4913758aed28 Mon Sep 17 00:00:00 2001 From: malimova Date: Thu, 11 Apr 2024 22:16:06 +0400 Subject: [PATCH] =?UTF-8?q?=D0=9D=D0=B0=D1=87=D0=B0=D0=BB=D0=BE=20Lab4.=20?= =?UTF-8?q?Report-=20classes?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../BindingModels/ReportBindingModel.cs | 16 ++++++++++++++++ .../BindingModels/ReportOrdersViewModel.cs | 16 ++++++++++++++++ .../ReportPastryComponentViewModel.cs | 15 +++++++++++++++ 3 files changed, 47 insertions(+) create mode 100644 Confectionery/ConfectioneryContracts/BindingModels/ReportBindingModel.cs create mode 100644 Confectionery/ConfectioneryContracts/BindingModels/ReportOrdersViewModel.cs create mode 100644 Confectionery/ConfectioneryContracts/BindingModels/ReportPastryComponentViewModel.cs diff --git a/Confectionery/ConfectioneryContracts/BindingModels/ReportBindingModel.cs b/Confectionery/ConfectioneryContracts/BindingModels/ReportBindingModel.cs new file mode 100644 index 0000000..a2f79c8 --- /dev/null +++ b/Confectionery/ConfectioneryContracts/BindingModels/ReportBindingModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BindingModels +{ + public class ReportBindingModel + { + public string FileName { get; set; } = string.Empty; + public DateTime? DateFrom { get; set; } + public DateTime? DateTo { get; set; } + + } +} diff --git a/Confectionery/ConfectioneryContracts/BindingModels/ReportOrdersViewModel.cs b/Confectionery/ConfectioneryContracts/BindingModels/ReportOrdersViewModel.cs new file mode 100644 index 0000000..bfb537c --- /dev/null +++ b/Confectionery/ConfectioneryContracts/BindingModels/ReportOrdersViewModel.cs @@ -0,0 +1,16 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BindingModels +{ + public class ReportOrdersViewModel + { + public int Id { get; set; } + public DateTime DateCreate { get; set; } + public string PastryName { get; set; } = string.Empty; + public double Sum { get; set; } + } +} diff --git a/Confectionery/ConfectioneryContracts/BindingModels/ReportPastryComponentViewModel.cs b/Confectionery/ConfectioneryContracts/BindingModels/ReportPastryComponentViewModel.cs new file mode 100644 index 0000000..bc147f6 --- /dev/null +++ b/Confectionery/ConfectioneryContracts/BindingModels/ReportPastryComponentViewModel.cs @@ -0,0 +1,15 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ConfectioneryContracts.BindingModels +{ + public class ReportPastryComponentViewModel + { + public string ComponentName { get; set; } = string.Empty; + public int TotalCount { get; set; } + public List> Pastrys { get; set; } = new(); + } +}