2024-07-23 20:29:10 +04:00
|
|
|
|
using ElectronicsShopContracts.BindingModels;
|
2024-05-31 19:49:56 +04:00
|
|
|
|
using ElectronicsShopContracts.ViewModels;
|
2024-07-23 20:29:10 +04:00
|
|
|
|
using MigraDoc.DocumentObjectModel;
|
|
|
|
|
using PdfSharp.Pdf;
|
2024-05-31 19:49:56 +04:00
|
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace ElectronicsShopContracts.BusinessLogicContracts
|
|
|
|
|
{
|
|
|
|
|
public interface IReportClientLogic
|
|
|
|
|
{
|
2024-07-02 17:28:23 +04:00
|
|
|
|
// получение списка товаров с указанием, в какие оплаты товар входит
|
2024-08-08 16:12:26 +04:00
|
|
|
|
List<ReportPaymeantProductsViewModel>? GetPaymeantProducts(List<PaymeantViewModel> paymeants);
|
2024-07-02 17:28:23 +04:00
|
|
|
|
// получения списка оплат
|
2024-07-23 20:29:10 +04:00
|
|
|
|
List<ReportPaymeantsViewModel>? GetPaymeants(ReportBindingModel model);
|
2024-07-02 17:28:23 +04:00
|
|
|
|
|
2024-07-23 20:29:10 +04:00
|
|
|
|
// Сохранение отчета оплат в .word
|
2024-08-07 21:48:54 +04:00
|
|
|
|
byte[]? SavePaymeantToWordFile(List<PaymeantViewModel> paymeants);
|
2024-07-23 20:29:10 +04:00
|
|
|
|
|
|
|
|
|
// Сохранение отчета оплат с товарами в .excel
|
2024-08-08 16:12:26 +04:00
|
|
|
|
byte[]? SavePaymeantToExcelFile(List<PaymeantViewModel> paymeants);
|
2024-07-23 20:29:10 +04:00
|
|
|
|
|
|
|
|
|
// Отчет оплаченных товаров в .pdf
|
|
|
|
|
PdfDocument SaveProductToPdfFile(ReportBindingModel model);
|
2024-06-01 02:22:36 +04:00
|
|
|
|
}
|
2024-07-27 13:38:35 +04:00
|
|
|
|
}
|