Files
Backend-Api/CompanyManagment.Application/ReportApplication.cs

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