CourseWorkElectronicsShop/ElectronicsShop/ElectronicsShopContracts/BusinessLogicContracts/IReportClientLogic.cs
2024-08-08 16:12:26 +04:00

29 lines
1.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using ElectronicsShopContracts.BindingModels;
using ElectronicsShopContracts.ViewModels;
using MigraDoc.DocumentObjectModel;
using PdfSharp.Pdf;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ElectronicsShopContracts.BusinessLogicContracts
{
public interface IReportClientLogic
{
// получение списка товаров с указанием, в какие оплаты товар входит
List<ReportPaymeantProductsViewModel>? GetPaymeantProducts(List<PaymeantViewModel> paymeants);
// получения списка оплат
List<ReportPaymeantsViewModel>? GetPaymeants(ReportBindingModel model);
// Сохранение отчета оплат в .word
byte[]? SavePaymeantToWordFile(List<PaymeantViewModel> paymeants);
// Сохранение отчета оплат с товарами в .excel
byte[]? SavePaymeantToExcelFile(List<PaymeantViewModel> paymeants);
// Отчет оплаченных товаров в .pdf
PdfDocument SaveProductToPdfFile(ReportBindingModel model);
}
}