diff --git a/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs b/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs new file mode 100644 index 0000000..ea09938 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs @@ -0,0 +1,26 @@ +using FurnitureContracts.ViewModel; +using FurnitureFactoryDataModels.Models; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BindingModels +{ + public class ReportBindingModel + { + public string FileName { get; set; } = string.Empty; + + public int? MasterId { get; set; } + public int? ManagerId { get; set; } + + public List? Materials { get; set; } + + public List? SalesSalons { get; set; } + + public DateTime? DateFrom { get; set; } + + public DateTime? DateTo { get; set; } + } +} diff --git a/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IReportLogic.cs b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IReportLogic.cs new file mode 100644 index 0000000..ac911d4 --- /dev/null +++ b/FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IReportLogic.cs @@ -0,0 +1,40 @@ +using FurnitureContracts.BindingModels; +using FurnitureContracts.ViewModel; +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace FurnitureContracts.BusinessLogicsContracts +{ + public interface IReportLogic + { + // List GetInterestLesson(ReportBindingModel model); + List GetInterestLesson(ReportBindingModel model); + + + List GetInterests(ReportBindingModel model); + List GetDiyMaterial(ReportBindingModel model); + + + List GetLessonTask(ReportBindingModel model); + + + void SaveInterestLessonToWordFile(ReportBindingModel model); + + + void SaveInterestLessonToExcelFile(ReportBindingModel model); + + + void SaveInterestsToPdfFile(ReportBindingModel model); + + void SaveDiyMaterialToWordFile(ReportBindingModel model); + + + void SaveDiyMaterialToExcelFile(ReportBindingModel model); + + + void SaveLessonTaskToPdfFile(ReportBindingModel model); + } +}