22. Накинута базовая часть отчетов
This commit is contained in:
parent
d73933c33a
commit
c8088c5c99
28
Bank/BankBusinessLogic/BusinessLogics/ReportLogic.cs
Normal file
28
Bank/BankBusinessLogic/BusinessLogics/ReportLogic.cs
Normal 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();
|
||||
}
|
||||
}
|
||||
}
|
25
Bank/BankContracts/BindingModels/ReportBindingModel.cs
Normal file
25
Bank/BankContracts/BindingModels/ReportBindingModel.cs
Normal 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; }
|
||||
}
|
||||
}
|
28
Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs
Normal file
28
Bank/BankContracts/BusinessLogicsContracts/IReportLogic.cs
Normal 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);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user