[Add] MasterData Services.

This commit is contained in:
Thanakarn Klangkasame
2025-11-26 10:29:56 +07:00
parent d4ab1cb592
commit 1e636aa3d5
205 changed files with 7814 additions and 69 deletions

View File

@@ -0,0 +1,3 @@
namespace AMREZ.EOP.Contracts.DTOs.Common;
public sealed record PagedResponse<T>(int Page, int PageSize, int Total, IReadOnlyList<T> Items);

View File

@@ -0,0 +1,15 @@
namespace AMREZ.EOP.Contracts.DTOs.ImportData.Location;
public sealed class LocationImportResultDto
{
public int RowsRead { get; set; }
public int ProvincesCreated { get; set; }
public int ProvincesUpdated { get; set; }
public int DistrictsCreated { get; set; }
public int DistrictsUpdated { get; set; }
public int SubdistrictsCreated { get; set; }
public int SubdistrictsUpdated { get; set; }
}

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Allergen;
public sealed record AllergenUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Brand;
public sealed record BrandCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Brand;
public sealed record BrandListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Brand;
public sealed record BrandResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Brand;
public sealed record BrandUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
public sealed record CategoryCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
public sealed record CategoryListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
public sealed record CategoryResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Category;
public sealed record CategoryUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.ComplianceStatus;
public sealed record ComplianceStatusCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.ComplianceStatus;
public sealed record ComplianceStatusListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.ComplianceStatus;
public sealed record ComplianceStatusResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.ComplianceStatus;
public sealed record ComplianceStatusUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Country;
public sealed record CountryCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Country;
public sealed record CountryListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Country;
public sealed record CountryResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Country;
public sealed record CountryUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Currency;
public sealed record CurrencyCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Currency;
public sealed record CurrencyListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Currency;
public sealed record CurrencyResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Currency;
public sealed record CurrencyUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.District;
public sealed record DistrictListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
Guid? ProvinceId = default,
string? ProvinceCode = default,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,17 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.District;
public sealed record DistrictResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta,
string DopaCode,
Guid ProvinceId,
string ProvinceName,
string ProvinceDopaCode
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.DocControlStatus;
public sealed record DocControlStatusCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.DocControlStatus;
public sealed record DocControlStatusListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.DocControlStatus;
public sealed record DocControlStatusResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.DocControlStatus;
public sealed record DocControlStatusUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.FuncTest;
public sealed record FuncTestCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.FuncTest;
public sealed record FuncTestListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.FuncTest;
public sealed record FuncTestResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.FuncTest;
public sealed record FuncTestUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.HazardClass;
public sealed record HazardClassCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.HazardClass;
public sealed record HazardClassListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.HazardClass;
public sealed record HazardClassResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.HazardClass;
public sealed record HazardClassUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Language;
public sealed record LanguageCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Language;
public sealed record LanguageListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Language;
public sealed record LanguageResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Language;
public sealed record LanguageUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Manufacturer;
public sealed record ManufacturerCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Manufacturer;
public sealed record ManufacturerListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Manufacturer;
public sealed record ManufacturerResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Manufacturer;
public sealed record ManufacturerUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Market;
public sealed record MarketCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Market;
public sealed record MarketListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Market;
public sealed record MarketResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Market;
public sealed record MarketUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.PackingGroup;
public sealed record PackingGroupCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.PackingGroup;
public sealed record PackingGroupListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.PackingGroup;
public sealed record PackingGroupResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.PackingGroup;
public sealed record PackingGroupUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Province;
public sealed record ProvinceListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,14 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Province;
public sealed record ProvinceResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta,
string DopaCode
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QaStage;
public sealed record QaStageCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QaStage;
public sealed record QaStageListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QaStage;
public sealed record QaStageResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QaStage;
public sealed record QaStageUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QcStatus;
public sealed record QcStatusCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QcStatus;
public sealed record QcStatusListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QcStatus;
public sealed record QcStatusResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.QcStatus;
public sealed record QcStatusUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RecallClass;
public sealed record RecallClassCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RecallClass;
public sealed record RecallClassListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RecallClass;
public sealed record RecallClassResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RecallClass;
public sealed record RecallClassUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RiskClass;
public sealed record RiskClassCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RiskClass;
public sealed record RiskClassListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RiskClass;
public sealed record RiskClassResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RiskClass;
public sealed record RiskClassUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Route;
public sealed record RouteCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Route;
public sealed record RouteListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Route;
public sealed record RouteResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Route;
public sealed record RouteUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RxSchedule;
public sealed record RxScheduleCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RxSchedule;
public sealed record RxScheduleListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RxSchedule;
public sealed record RxScheduleResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.RxSchedule;
public sealed record RxScheduleUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Species;
public sealed record SpeciesCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Species;
public sealed record SpeciesListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Species;
public sealed record SpeciesResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Species;
public sealed record SpeciesUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.StabilityStatus;
public sealed record StabilityStatusCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.StabilityStatus;
public sealed record StabilityStatusListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.StabilityStatus;
public sealed record StabilityStatusResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.StabilityStatus;
public sealed record StabilityStatusUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.SterilizationMethod;
public sealed record SterilizationMethodCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.SterilizationMethod;
public sealed record SterilizationMethodListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.SterilizationMethod;
public sealed record SterilizationMethodResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.SterilizationMethod;
public sealed record SterilizationMethodUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Subdistrict;
public sealed record SubdistrictListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
Guid? DistrictId = default,
string? DistrictCode = default,
Guid? ProvinceId = default,
string? ProvinceCode = default,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,21 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Subdistrict;
public sealed record SubdistrictResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta,
string DopaCode,
string? Postcode,
Guid DistrictId,
string DistrictName,
string DistrictDopaCode,
Guid ProvinceId,
string ProvinceName,
string ProvinceDopaCode
);

View File

@@ -0,0 +1,11 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Uom;
public sealed record UomCreateRequest(
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
string Scope = "tenant",
Guid? OverridesGlobalId = null,
bool IsActive = true
);

View File

@@ -0,0 +1,9 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Uom;
public sealed record UomListRequest(
int Page = 1,
int PageSize = 20,
string? Search = null,
bool IncludeInactive = false,
bool IncludeOverrides = true
);

View File

@@ -0,0 +1,13 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Uom;
public sealed record UomResponse(
Guid Id,
string Scope,
string Code,
string Name,
Dictionary<string, string>? NameI18n,
Guid? OverridesGlobalId,
bool IsActive,
bool IsSystem,
Dictionary<string, object>? Meta
);

View File

@@ -0,0 +1,8 @@
namespace AMREZ.EOP.Contracts.DTOs.MasterData.Uom;
public sealed record UomUpdateRequest(
string Name,
Dictionary<string, string>? NameI18n,
Dictionary<string, object>? Meta,
bool IsActive
);

Some files were not shown because too many files have changed in this diff Show More