2026-09-20 16:21:15 +07:00
|
|
|
using mws.backend.dotnet.application.Audit;
|
|
|
|
|
|
2026-08-19 23:25:08 +07:00
|
|
|
namespace mws.backend.dotnet.application.MasterData;
|
|
|
|
|
|
2026-09-20 16:21:15 +07:00
|
|
|
public class MasterDataDto : IHasEntityId
|
2026-08-19 23:25:08 +07:00
|
|
|
{
|
|
|
|
|
public Guid Id { get; set; }
|
2026-09-20 16:21:15 +07:00
|
|
|
public Guid EntityId => Id;
|
2026-08-19 23:25:08 +07:00
|
|
|
public string Group { get; set; } = string.Empty;
|
|
|
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
|
public string Value { get; set; } = string.Empty;
|
|
|
|
|
public int SortOrder { get; set; }
|
|
|
|
|
public bool IsActive { get; set; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class SaveMasterDataRequest
|
|
|
|
|
{
|
|
|
|
|
public string Group { get; set; } = string.Empty;
|
|
|
|
|
public string Label { get; set; } = string.Empty;
|
|
|
|
|
public string Value { get; set; } = string.Empty;
|
|
|
|
|
public int SortOrder { get; set; }
|
|
|
|
|
public bool IsActive { get; set; } = true;
|
|
|
|
|
}
|
2026-09-13 18:02:09 +07:00
|
|
|
|
|
|
|
|
public record MasterDataFilter(string? Group, string? Term, bool? IsActive);
|