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:
parent
7ed86f18d7
commit
c2e8b335e0
@ -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,
|
||||
int ProfileId,
|
||||
int UserId,
|
||||
long ObjId,
|
||||
string ObjType,
|
||||
string AttrName,
|
||||
string CtrlType,
|
||||
string CtrlCaption,
|
||||
bool Mandatory,
|
||||
bool ReadOnly,
|
||||
string AddedWho,
|
||||
DateTime AddedWhen,
|
||||
string? ChoiceList = null,
|
||||
UserReadDto? User = null);
|
||||
public long Id { get; set; }
|
||||
|
||||
public byte? DialogNo { get; set; }
|
||||
|
||||
public string? AttrName { get; set; }
|
||||
|
||||
public string? CtrlType { get; set; }
|
||||
|
||||
public string? Caption { get; set; }
|
||||
|
||||
public string? Text { get; set; }
|
||||
|
||||
public string? Icon { get; set; }
|
||||
|
||||
public bool? Mandatory { get; set; }
|
||||
|
||||
public string? ChoiceList { get; set; }
|
||||
|
||||
public bool? ReadOnly { get; set; }
|
||||
|
||||
public byte? Sequ { get; set; }
|
||||
}
|
||||
@ -89,7 +89,7 @@ public class ProfileControlsTF
|
||||
public bool? ReadOnly { get; set; }
|
||||
|
||||
[Column("SEQU", TypeName = "tinyint")]
|
||||
public byte? Sequ { get; set; } = 0;
|
||||
public byte? Sequ { get; set; }
|
||||
|
||||
[Column("ADDED_WHO", TypeName = "nvarchar(100)")]
|
||||
public required string AddedWho { get; set; }
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user