IReportLogic

This commit is contained in:
Ismailov_Rovshan 2023-04-09 00:09:12 +04:00
parent 3cc19144c6
commit c98cd8857f
2 changed files with 66 additions and 0 deletions

View File

@ -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<MaterialViewModel>? Materials { get; set; }
public List<ISalesSalonsModel>? SalesSalons { get; set; }
public DateTime? DateFrom { get; set; }
public DateTime? DateTo { get; set; }
}
}

View File

@ -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<ReportInterestLessonViewModel> GetInterestLesson(ReportBindingModel model);
List<ReportSalesSalonsFurnitureViewModel> GetInterestLesson(ReportBindingModel model);
List<ReportSalesSalonViewModel> GetInterests(ReportBindingModel model);
List<ReportHeadsetMaterialViewModel> GetDiyMaterial(ReportBindingModel model);
List<ReportFurnitureHeadsetModuleViewModel> 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);
}
}