Files
Backend-Api/CompanyManagment.Application/ReportApplication.cs
2024-07-05 21:36:15 +03:30

92 lines
3.1 KiB
C#

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 AllReport GetAllActiveWorkshops(string year, string month)
{
return _reportRepository.GetAllActiveWorkshops(year, month);
}
public AllReport GetAllReports(string year, string month)
{
return _reportRepository.GetAllActiveWorkshops(year, month);
}
public WorkshopResult GetWorkshopContractDone(string year, string month, long accountId)
{
return _reportRepository.GetWorkshopContractDone(year, month, accountId);
}
public WorkshopResult GetWorkshopContractSignDone(string year, string month, long accountId)
{
return _reportRepository.GetWorkshopContractSignDone(year, month, accountId);
}
public WorkshopResult GetWorkshopCheckoutDone(string year, string month, long accountId)
{
return _reportRepository.GetWorkshopCheckoutDone(year, month, accountId);
}
public WorkshopResult GetWorkshopCheckoutSignDone(string year, string month, long accountId)
{
return _reportRepository.GetWorkshopCheckoutSignDone(year, month, accountId);
}
public List<EmployeeNotDone> GetEmployeeContract(string year, string month, long workshopId)
{
return _reportRepository.GetEmployeeContract(year, month, workshopId);
}
public List<EmployeeNotDone> GetEmployeeContractSign(string year, string month, long workshopId)
{
return _reportRepository.GetEmployeeContractSign(year, month, workshopId);
}
public List<EmployeeNotDone> GetEmployeeCheckout(string year, string month, long workshopId)
{
return _reportRepository.GetEmployeeCheckout(year, month, workshopId);
}
public List<EmployeeNotDone> GetEmployeeCheckoutSign(string year, string month, long workshopId)
{
return _reportRepository.GetEmployeeCheckoutSign(year, month, workshopId);
}
#region Print
public PrintAllContractCheckout GetPrintAllContractDone(string year, string month, long accountId)
{
return _reportRepository.GetPrintAllContractDone(year, month, accountId);
}
public PrintAllContractCheckout GetPrintAllContractSignDone(string year, string month, long accountId)
{
return _reportRepository.GetPrintAllContractSignDone(year, month, accountId);
}
public PrintAllContractCheckout GetPrintAllCheckoutDone(string year, string month, long accountId)
{
return _reportRepository.GetPrintAllCheckoutDone(year, month, accountId);
}
public PrintAllContractCheckout GetPrintAllCheckoutSignDone(string year, string month, long accountId)
{
return _reportRepository.GetPrintAllCheckoutSignDone(year, month, accountId);
}
#endregion
}