using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; using Company.Domain.ReportAgg; using CompanyManagment.App.Contracts.Report; using Microsoft.Identity.Client; namespace CompanyManagment.Application; public class ReportApplication : IReportApplication { private readonly IReportRepository _reportRepository; public ReportApplication(IReportRepository reportRepository) { _reportRepository = reportRepository; } public async Task GetAllActiveWorkshops(string year, string month) { return await _reportRepository.GetAllActiveWorkshopsNew(year, month); } public async Task GetAllReports(string year, string month) { return await _reportRepository.GetAllActiveWorkshopsNew(year, month); } public async Task GetWorkshopContractDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetWorkshopContractDone(year, month, accountId, workshopList); } public async Task GetWorkshopContractSignDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetWorkshopContractSignDone(year, month, accountId, workshopList); } public async Task GetWorkshopCheckoutDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetWorkshopCheckoutDone(year, month, accountId, workshopList); } public async Task GetWorkshopCheckoutSignDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetWorkshopCheckoutSignDone(year, month, accountId, workshopList); } public async Task> GetEmployeeContract(string year, string month, long workshopId) { return await _reportRepository.GetEmployeeContract(year, month, workshopId); } public async Task> GetEmployeeContractSign(string year, string month, long workshopId) { return await _reportRepository.GetEmployeeContractSign(year, month, workshopId); } public async Task> GetEmployeeCheckout(string year, string month, long workshopId) { return await _reportRepository.GetEmployeeCheckout(year, month, workshopId); } public async Task> GetEmployeeCheckoutSign(string year, string month, long workshopId) { return await _reportRepository.GetEmployeeCheckoutSign(year, month, workshopId); } #region Print public async Task GetPrintAllContractDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetPrintAllContractDone(year, month, accountId, workshopList); } public async Task GetPrintAllContractSignDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetPrintAllContractSignDone(year, month, accountId, workshopList); } public async Task GetPrintAllCheckoutDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetPrintAllCheckoutDone(year, month, accountId, workshopList); } public async Task GetPrintAllCheckoutSignDone(string year, string month, long accountId, List workshopList) { return await _reportRepository.GetPrintAllCheckoutSignDone(year, month, accountId, workshopList); } #endregion }