Files
blazor-cms/Features/FeaturesDI.cs
T
2026-07-21 13:52:43 +07:00

130 lines
5.1 KiB
C#

using Indotalent.Features.Inventory.Product;
using Indotalent.Features.Inventory.ProductGroup;
using Indotalent.Features.Inventory.UnitMeasure;
using Indotalent.Features.Inventory.Warehouse;
using Indotalent.Features.Medical.MedicalRecord;
using Indotalent.Features.Medical.MedicalRecordCategory;
using Indotalent.Features.Medical.MedicalRecordGroup;
using Indotalent.Features.Organization.Employee;
using Indotalent.Features.Organization.EmployeeCategory;
using Indotalent.Features.Organization.EmployeeGroup;
using Indotalent.Features.Profile.Avatar;
using Indotalent.Features.Profile.Password;
using Indotalent.Features.Profile.PersonalInformation;
using Indotalent.Features.Purchase.Bill;
using Indotalent.Features.Purchase.BillReport;
using Indotalent.Features.Purchase.PaymentDisburse;
using Indotalent.Features.Purchase.PaymentDisburseReport;
using Indotalent.Features.Purchase.PurchaseOrder;
using Indotalent.Features.Purchase.PurchaseReport;
using Indotalent.Features.Root.Home;
using Indotalent.Features.Sales.CommissionReport;
using Indotalent.Features.Sales.Invoice;
using Indotalent.Features.Sales.InvoiceReport;
using Indotalent.Features.Sales.PaymentReceive;
using Indotalent.Features.Sales.PaymentReceiveReport;
using Indotalent.Features.Sales.SalesOrder;
using Indotalent.Features.Sales.SalesOrderCategory;
using Indotalent.Features.Sales.SalesOrderGroup;
using Indotalent.Features.Sales.SalesReport;
using Indotalent.Features.Serilogs;
using Indotalent.Features.Setting.AutoNumberSequence;
using Indotalent.Features.Setting.Company;
using Indotalent.Features.Setting.Currency;
using Indotalent.Features.Setting.SystemUser;
using Indotalent.Features.Setting.Tax;
using Indotalent.Features.Thirdparty.Patient;
using Indotalent.Features.Thirdparty.PatientCategory;
using Indotalent.Features.Thirdparty.PatientContact;
using Indotalent.Features.Thirdparty.PatientGroup;
using Indotalent.Features.Thirdparty.Vendor;
using Indotalent.Features.Thirdparty.VendorCategory;
using Indotalent.Features.Thirdparty.VendorContact;
using Indotalent.Features.Thirdparty.VendorGroup;
using Indotalent.Features.Utilities.BookingGroup;
using Indotalent.Features.Utilities.BookingManager;
using Indotalent.Features.Utilities.BookingResource;
using Indotalent.Features.Utilities.BookingScheduler;
using Indotalent.Features.Utilities.Todo;
namespace Indotalent.Features;
public static class FeaturesDI
{
public static IServiceCollection AddFeaturesDI(this IServiceCollection services)
{
//Setting
services.AddScoped<SerilogsService>();
services.AddScoped<CurrencyService>();
services.AddScoped<AutoNumberSequenceService>();
services.AddScoped<SystemUserService>();
services.AddScoped<CompanyService>();
services.AddScoped<TaxService>();
//profile
services.AddScoped<PersonalInformationService>();
services.AddScoped<PasswordService>();
services.AddScoped<AvatarService>();
//root
services.AddScoped<HomeService>();
//inventory
services.AddScoped<UnitMeasureService>();
services.AddScoped<ProductGroupService>();
services.AddScoped<WarehouseService>();
services.AddScoped<ProductService>();
//thridparty
services.AddScoped<PatientGroupService>();
services.AddScoped<PatientCategoryService>();
services.AddScoped<PatientService>();
services.AddScoped<PatientContactService>();
services.AddScoped<VendorCategoryService>();
services.AddScoped<VendorGroupService>();
services.AddScoped<VendorService>();
services.AddScoped<VendorContactService>();
//utilities
services.AddScoped<TodoService>();
services.AddScoped<BookingGroupService>();
services.AddScoped<BookingResourceService>();
services.AddScoped<BookingManagerService>();
services.AddScoped<BookingSchedulerService>();
//purchase
services.AddScoped<PurchaseOrderService>();
services.AddScoped<PurchaseReportService>();
services.AddScoped<BillReportService>();
services.AddScoped<PaymentDisburseReportService>();
services.AddScoped<BillService>();
services.AddScoped<PaymentDisburseService>();
//sales
services.AddScoped<SalesOrderService>();
services.AddScoped<SalesOrderGroupService>();
services.AddScoped<SalesOrderCategoryService>();
services.AddScoped<SalesReportService>();
services.AddScoped<CommissionReportService>();
services.AddScoped<InvoiceReportService>();
services.AddScoped<PaymentReceiveReportService>();
services.AddScoped<InvoiceService>();
services.AddScoped<PaymentReceiveService>();
//organization
services.AddScoped<EmployeeCategoryService>();
services.AddScoped<EmployeeGroupService>();
services.AddScoped<EmployeeService>();
//medical
services.AddScoped<MedicalRecordGroupService>();
services.AddScoped<MedicalRecordCategoryService>();
services.AddScoped<MedicalRecordService>();
return services;
}
}