From c98cd8857fc5f91748a9a96f6d0f2dbb9c474196 Mon Sep 17 00:00:00 2001 From: Ismailov_Rovshan Date: Sun, 9 Apr 2023 00:09:12 +0400 Subject: [PATCH] IReportLogic --- .../BindingModels/ReportBindingModel.cs | 26 ++++++++++++ .../BusinessLogicsContracts/IReportLogic.cs | 40 +++++++++++++++++++ 2 files changed, 66 insertions(+) create mode 100644 FurnitureFactory/FurnitureContracts/BindingModels/ReportBindingModel.cs create mode 100644 FurnitureFactory/FurnitureContracts/BusinessLogicsContracts/IReportLogic.cs 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); + } +}