develop full initial module
This commit is contained in:
@@ -2,11 +2,13 @@ using System.Text.Json.Serialization;
|
||||
using ERPCore.Infra.Auth;
|
||||
using ERPCore.Infra.Auth.AuthHex;
|
||||
using ERPCore.Infra.Persistence;
|
||||
using ERPCore.Infra.Storage;
|
||||
using ERPCore.Infra.UoW;
|
||||
using ERPCore.Repositories;
|
||||
using ERPCore.Repositories.Interfaces;
|
||||
using ERPCore.Services;
|
||||
using ERPCore.Services.Auth;
|
||||
using ERPCore.Services.Hrm;
|
||||
using ERPCore.Services.Interfaces;
|
||||
using ERPCore.Services.Stock;
|
||||
using ERPCore.System.Errors;
|
||||
@@ -95,6 +97,42 @@ builder.Services.AddScoped<IPurchaseReturnService, PurchaseReturnService>();
|
||||
// Cross-cutting: audit trail + GL-ready journal read access (docs/11 §6 / FR-X-02, FR-STK-13)
|
||||
builder.Services.AddScoped<IAuditService, AuditService>();
|
||||
|
||||
// HRM (docs/13-BACKEND-HRM-API.md): org masters, employee core, staff documents
|
||||
builder.Services.AddSingleton<IFileStorageService, LocalFileStorageService>();
|
||||
builder.Services.AddScoped<IBranchService, BranchService>();
|
||||
builder.Services.AddScoped<IDepartmentService, DepartmentService>();
|
||||
builder.Services.AddScoped<IDesignationService, DesignationService>();
|
||||
builder.Services.AddScoped<IEmploymentTypeService, EmploymentTypeService>();
|
||||
builder.Services.AddScoped<IWorkShiftService, WorkShiftService>();
|
||||
builder.Services.AddScoped<IEmployeeUserLinkService, EmployeeUserLinkService>();
|
||||
builder.Services.AddScoped<IEmployeeService, EmployeeService>();
|
||||
builder.Services.AddScoped<IHrDocumentTypeService, HrDocumentTypeService>();
|
||||
builder.Services.AddScoped<IEmployeeDocumentService, EmployeeDocumentService>();
|
||||
|
||||
// HRM: Leave (docs/13-BACKEND-HRM-API.md §5) — LeaveType/LeaveBalance built before
|
||||
// LeaveRequest since approval increments balances; Attendance depends on LeaveRequest.
|
||||
builder.Services.AddScoped<ILeaveTypeService, LeaveTypeService>();
|
||||
builder.Services.AddScoped<ILeaveBalanceService, LeaveBalanceService>();
|
||||
builder.Services.AddScoped<ILeaveRequestService, LeaveRequestService>();
|
||||
|
||||
// HRM: Attendance (docs/13-BACKEND-HRM-API.md §4)
|
||||
builder.Services.AddScoped<IAttendanceComputationService, AttendanceComputationService>();
|
||||
builder.Services.AddScoped<IAttendanceUploadService, AttendanceUploadService>();
|
||||
|
||||
// HRM: Payroll (docs/13-BACKEND-HRM-API.md §6) — masters/settings before the
|
||||
// calculation service, which composes them; PayrollRunService orchestrates last.
|
||||
builder.Services.AddScoped<ISalaryComponentService, SalaryComponentService>();
|
||||
builder.Services.AddScoped<IEmployeeSalaryStructureService, EmployeeSalaryStructureService>();
|
||||
builder.Services.AddScoped<IEmployeeLoanService, EmployeeLoanService>();
|
||||
builder.Services.AddScoped<IPayrollStatutorySettingService, PayrollStatutorySettingService>();
|
||||
builder.Services.AddScoped<ITaxSlabService, TaxSlabService>();
|
||||
builder.Services.AddScoped<IPayrollCalculationService, PayrollCalculationService>();
|
||||
builder.Services.AddScoped<IPayrollRunService, PayrollRunService>();
|
||||
builder.Services.AddScoped<IPayslipService, PayslipService>();
|
||||
|
||||
// HRM: Reports (docs/13-BACKEND-HRM-API.md §6) — read-only, no new entities
|
||||
builder.Services.AddScoped<IHrReportService, HrReportService>();
|
||||
|
||||
// Health checks (EF Core DB)
|
||||
builder.Services.AddHealthChecks().AddDbContextCheck<ErpDbContext>();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user