Добавили новые классы в Contracts.

This commit is contained in:
Programmist73 2023-03-15 19:10:00 +04:00
parent b25a248c54
commit 15fb786e03
4 changed files with 59 additions and 1 deletions

View File

@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlacksmithWorkshopContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set;}
}
}

View File

@ -11,6 +11,10 @@ namespace BlacksmithWorkshopContracts.SearchModels
{
//для поиска по идентификатору
public int? Id { get; set; }
}
//два поля для возможности производить выборку
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}

View File

@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlacksmithWorkshopContracts.ViewModels
{
public class ReportManufactureWorkPieceViewModel
{
public string WorkPieceName { get; set; } = string.Empty;
public int TotalCount { get; set; }
//список кортежей
public List<(string Manufacure, int Count)> Manufactures { get; set; } = new();
}
}

View File

@ -0,0 +1,19 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BlacksmithWorkshopContracts.ViewModels
{
public class ReportOrdersViewModel
{
public int Id { get; set; }
public DateTime DateCreate { get; set; }
public string ProductName { get; set; } = string.Empty;
public double Sum { get; set; }
}
}