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,
|
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; }
|
||||||
}
|
}
|
||||||
@ -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; }
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user