Refactor ProfileControlsTFDto and update ProfileControlsTF

The `ProfileControlsTFDto` class has been changed from a record type to a class with auto-implemented properties, enhancing its structure and usability. Several properties have been renamed or removed, and new properties like `DialogNo`, `Text`, and `Icon` have been added.

In the `ProfileControlsTF` class, the `Sequ` property has been updated to remove its default value assignment, maintaining its nullable byte type.
This commit is contained in:
tekh 2025-08-01 11:10:24 +02:00
parent 7ed86f18d7
commit c2e8b335e0
2 changed files with 24 additions and 17 deletions

View File

@ -1,19 +1,26 @@
using DigitalData.UserManager.Application.DTOs.User; namespace WorkFlow.Application.Dto;
namespace WorkFlow.Application.Dto public record ProfileControlsTFDto
{ {
public record ProfileControlsTFDto(int Id, public long Id { get; set; }
int ProfileId,
int UserId, public byte? DialogNo { get; set; }
long ObjId,
string ObjType, public string? AttrName { get; set; }
string AttrName,
string CtrlType, public string? CtrlType { get; set; }
string CtrlCaption,
bool Mandatory, public string? Caption { get; set; }
bool ReadOnly,
string AddedWho, public string? Text { get; set; }
DateTime AddedWhen,
string? ChoiceList = null, public string? Icon { get; set; }
UserReadDto? User = null);
public bool? Mandatory { get; set; }
public string? ChoiceList { get; set; }
public bool? ReadOnly { get; set; }
public byte? Sequ { get; set; }
} }

View File

@ -89,7 +89,7 @@ public class ProfileControlsTF
public bool? ReadOnly { get; set; } public bool? ReadOnly { get; set; }
[Column("SEQU", TypeName = "tinyint")] [Column("SEQU", TypeName = "tinyint")]
public byte? Sequ { get; set; } = 0; public byte? Sequ { get; set; }
[Column("ADDED_WHO", TypeName = "nvarchar(100)")] [Column("ADDED_WHO", TypeName = "nvarchar(100)")]
public required string AddedWho { get; set; } public required string AddedWho { get; set; }