This commit is contained in:
Sergey Kozyrev 2024-03-21 23:30:07 +04:00
parent 01f88864c8
commit c53e5fb8ac
4 changed files with 44 additions and 0 deletions

View File

@ -0,0 +1,10 @@

namespace SewingDressesContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set;}
}
}

View File

@ -0,0 +1,13 @@
using SewingDressesContracts.BindingModels;
using SewingDressesContracts.ViewModels;
using System.Collections.Generic;
namespace SewingDressesContracts.BusinessLogicsContracts
{
public interface IReportLogic
{
List<ReportDressComponentViewModel> GetDressComponent();
List<ReportOrdersViewModel> GetOrders(ReportBindingModel model);
void SaveComponentsToWordFile(ReportBindingModel model)
}
}

View File

@ -0,0 +1,10 @@

namespace SewingDressesContracts.ViewModels
{
public class ReportDressComponentViewModel
{
public string ComponentName { get; set; } = string.Empty;
public int TotalCount { get; set; }
public List<Tuple<string, int>> Dresses { get; set; } = new();
}
}

View File

@ -0,0 +1,11 @@

namespace SewingDressesContracts.ViewModels
{
public class ReportOrdersViewModel
{
public int Id { get; set; }
public DateTime DateCreate { get; set; }
public string DressName { get; set; } = string.Empty;
public double Sum { get; set; }
}
}