96 lines
3.5 KiB
C#
96 lines
3.5 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 async Task<AllReport> GetAllActiveWorkshops(string year, string month)
|
|
{
|
|
return await _reportRepository.GetAllActiveWorkshopsNew(year, month);
|
|
}
|
|
|
|
public async Task<AllReport> GetAllReports(string year, string month)
|
|
{
|
|
|
|
return await _reportRepository.GetAllActiveWorkshopsNew(year, month);
|
|
}
|
|
|
|
public WorkshopResult GetWorkshopContractDone(string year, string month, long accountId, List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetWorkshopContractDone(year, month, accountId, workshopList);
|
|
}
|
|
|
|
public WorkshopResult GetWorkshopContractSignDone(string year, string month, long accountId, List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetWorkshopContractSignDone(year, month, accountId, workshopList);
|
|
}
|
|
|
|
public WorkshopResult GetWorkshopCheckoutDone(string year, string month, long accountId, List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetWorkshopCheckoutDone(year, month, accountId, workshopList);
|
|
}
|
|
|
|
public WorkshopResult GetWorkshopCheckoutSignDone(string year, string month, long accountId, List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetWorkshopCheckoutSignDone(year, month, accountId, workshopList);
|
|
}
|
|
|
|
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,
|
|
List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetPrintAllContractDone(year, month, accountId, workshopList);
|
|
}
|
|
public PrintAllContractCheckout GetPrintAllContractSignDone(string year, string month, long accountId,
|
|
List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetPrintAllContractSignDone(year, month, accountId, workshopList);
|
|
}
|
|
public PrintAllContractCheckout GetPrintAllCheckoutDone(string year, string month, long accountId,
|
|
List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetPrintAllCheckoutDone(year, month, accountId, workshopList);
|
|
}
|
|
public PrintAllContractCheckout GetPrintAllCheckoutSignDone(string year, string month, long accountId,
|
|
List<long> workshopList)
|
|
{
|
|
return _reportRepository.GetPrintAllCheckoutSignDone(year, month, accountId, workshopList);
|
|
}
|
|
|
|
#endregion
|
|
} |