2023-09-05 14:43:46 +07:00
|
|
|
|
using BMA.EHR.Application.Messaging;
|
|
|
|
|
|
using BMA.EHR.Application.Repositories;
|
2023-07-13 15:03:29 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.Commands;
|
2023-11-28 12:28:20 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.Leaves.LeaveRequests;
|
2023-11-10 14:40:53 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.Leaves.TimeAttendants;
|
2023-07-12 21:08:46 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.MessageQueue;
|
2023-11-29 17:28:15 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.MetaData;
|
2023-08-22 17:24:21 +07:00
|
|
|
|
using BMA.EHR.Application.Repositories.Reports;
|
2023-06-05 20:22:51 +07:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
|
|
|
|
|
|
namespace BMA.EHR.Application
|
|
|
|
|
|
{
|
2023-06-25 18:36:02 +07:00
|
|
|
|
public static class ApplicationServicesRegistration
|
2023-06-26 14:02:04 +07:00
|
|
|
|
{
|
|
|
|
|
|
public static IServiceCollection AddApplication(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
services.AddTransient<PrefixRepository>();
|
2023-06-29 21:04:49 +07:00
|
|
|
|
services.AddTransient<PlacementRepository>();
|
2023-07-13 09:01:47 +07:00
|
|
|
|
services.AddTransient<OrganizationEmployeeRepository>();
|
2023-07-12 21:08:46 +07:00
|
|
|
|
services.AddTransient<MessageQueueRepository>();
|
2023-07-28 15:04:26 +07:00
|
|
|
|
services.AddTransient<CommandRepository>();
|
2023-07-20 14:53:09 +07:00
|
|
|
|
services.AddTransient<CommandTypeRepository>();
|
|
|
|
|
|
services.AddTransient<CommandStatusRepository>();
|
2023-07-20 20:18:09 +07:00
|
|
|
|
services.AddTransient<InsigniaPeriodsRepository>();
|
2023-07-22 22:14:50 +07:00
|
|
|
|
services.AddTransient<RetirementRepository>();
|
2023-08-07 11:53:11 +07:00
|
|
|
|
services.AddTransient<UserProfileRepository>();
|
2023-08-08 15:05:53 +07:00
|
|
|
|
services.AddTransient<OrganizationCommonRepository>();
|
2023-08-09 20:28:56 +07:00
|
|
|
|
services.AddTransient<InboxRepository>();
|
|
|
|
|
|
services.AddTransient<NotificationRepository>();
|
2023-08-17 10:46:30 +07:00
|
|
|
|
services.AddTransient<RetirementRepository>();
|
2023-08-22 17:24:21 +07:00
|
|
|
|
services.AddTransient<RetireReportRepository>();
|
2023-09-04 16:02:20 +07:00
|
|
|
|
services.AddTransient<InsigniaReportRepository>();
|
2023-08-20 19:29:03 +07:00
|
|
|
|
services.AddTransient<CommandReportRepository>();
|
2023-09-06 12:03:26 +07:00
|
|
|
|
services.AddTransient<ProbationReportRepository>();
|
2023-09-26 15:09:01 +07:00
|
|
|
|
services.AddTransient<TransferReportRepository>();
|
2023-09-05 14:43:46 +07:00
|
|
|
|
services.AddTransient<EmailSenderService>();
|
2023-10-08 13:54:20 +07:00
|
|
|
|
services.AddTransient<CandidateReportRepository>();
|
2023-10-13 06:19:30 +07:00
|
|
|
|
services.AddTransient<MinIOExamService>();
|
2023-09-05 14:43:46 +07:00
|
|
|
|
|
2023-11-29 17:28:15 +07:00
|
|
|
|
services.AddTransient<HolidayRepository>();
|
2023-11-16 13:17:54 +07:00
|
|
|
|
|
2023-12-12 14:17:00 +07:00
|
|
|
|
//services.AddTransient<UserDutyTimeRepository>();
|
|
|
|
|
|
|
2023-11-16 13:17:54 +07:00
|
|
|
|
return services;
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public static IServiceCollection AddLeaveApplication(this IServiceCollection services)
|
|
|
|
|
|
{
|
2023-11-09 14:35:08 +07:00
|
|
|
|
services.AddTransient<DutyTimeRepository>();
|
2023-11-10 14:40:53 +07:00
|
|
|
|
services.AddTransient<UserTimeStampRepository>();
|
2023-11-23 15:48:09 +07:00
|
|
|
|
services.AddTransient<ProcessUserTimeStampRepository>();
|
|
|
|
|
|
services.AddTransient<UserDutyTimeRepository>();
|
2023-11-24 11:23:18 +07:00
|
|
|
|
services.AddTransient<AdditionalCheckRequestRepository>();
|
2024-01-09 09:41:26 +07:00
|
|
|
|
services.AddTransient<UserCalendarRepository>();
|
2023-11-09 14:35:08 +07:00
|
|
|
|
|
2023-11-28 12:28:20 +07:00
|
|
|
|
services.AddTransient<LeaveTypeRepository>();
|
2023-11-29 17:28:15 +07:00
|
|
|
|
services.AddTransient<LeaveRequestRepository>();
|
2023-11-28 12:28:20 +07:00
|
|
|
|
|
2023-12-08 17:50:46 +07:00
|
|
|
|
services.AddTransient<MinIOLeaveService>();
|
|
|
|
|
|
|
2023-06-26 14:02:04 +07:00
|
|
|
|
return services;
|
|
|
|
|
|
}
|
2023-11-18 01:43:03 +07:00
|
|
|
|
|
|
|
|
|
|
public static IServiceCollection AddDisciplineApplication(this IServiceCollection services)
|
|
|
|
|
|
{
|
2023-11-23 08:48:21 +07:00
|
|
|
|
services.AddTransient<MinIODisciplineService>();
|
2023-12-21 08:41:40 +07:00
|
|
|
|
services.AddTransient<NotificationRepository>();
|
2023-11-18 01:43:03 +07:00
|
|
|
|
|
|
|
|
|
|
return services;
|
|
|
|
|
|
}
|
2023-06-26 14:02:04 +07:00
|
|
|
|
}
|
2023-06-05 20:22:51 +07:00
|
|
|
|
}
|