22. Накинута базовая часть отчетов

This commit is contained in:
Nap 2023-04-08 18:03:39 +04:00
parent d73933c33a
commit c8088c5c99
3 changed files with 81 additions and 0 deletions

View File

@ -0,0 +1,28 @@
using BankContracts.BindingModels;
using BankContracts.BusinessLogicsContracts;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankBusinessLogic.BusinessLogics
{
public class ReportLogic : IReportLogic
{
public void SaveComponentsToWordFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
public void SaveManufactureComponentToExcelFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
public void SaveOrdersToPdfFile(ReportBindingModel model)
{
throw new NotImplementedException();
}
}
}

View File

@ -0,0 +1,25 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BindingModels
{
public class ReportBindingModel
{
public string FileName { get; set; } = string.Empty;
/// <summary>
/// Выбранные работы для отчета по заявкам
/// </summary>
public List<int>? SelectedWorks { get; set; }
/// <summary>
/// Начало периода для отчета по оплатам
/// </summary>
public DateTime? DateFrom { get; set; }
/// <summary>
/// Конец периода для отчета по оплатам
/// </summary>
public DateTime? DateTo { get; set; }
}
}

View File

@ -0,0 +1,28 @@
using BankContracts.BindingModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace BankContracts.BusinessLogicsContracts
{
public interface IReportLogic
{
/// <summary>
/// Сохранение компонент в файл-Word
/// </summary>
/// <param name="model"></param>
void SaveComponentsToWordFile(ReportBindingModel model);
/// <summary>
/// Сохранение компонент с указаеним продуктов в файл-Excel
/// </summary>
/// <param name="model"></param>
void SaveManufactureComponentToExcelFile(ReportBindingModel model);
/// <summary>
/// Сохранение заказов в файл-Pdf
/// </summary>
/// <param name="model"></param>
void SaveOrdersToPdfFile(ReportBindingModel model);
}
}