feat: Envelope Status Name geändert in Envelope Name mit contant.Status Enum. Diese Eigenschaft wurde zu envelope entitiy und dto hinzugefügt. Die angular Tabelle wurde entsprechend aktualisiert.

This commit is contained in:
Developer 02 2024-08-15 18:13:51 +02:00
parent b7569982ff
commit 387777972b
3 changed files with 7 additions and 2 deletions

View File

@ -12,7 +12,9 @@ namespace EnvelopeGenerator.Application.DTOs
public int Status { get; set; } public int Status { get; set; }
public string Uuid { get; set; } public string StatusName { get; set; }
public string Uuid { get; set; }
[TemplatePlaceholder("[MESSAGE]")] [TemplatePlaceholder("[MESSAGE]")]
public string Message { get; set; } public string Message { get; set; }

View File

@ -21,6 +21,9 @@ namespace EnvelopeGenerator.Domain.Entities
[Column("STATUS")] [Column("STATUS")]
public int Status { get; set; } public int Status { get; set; }
[NotMapped]
public string StatusName => ((Constants.EnvelopeStatus)Status).ToString();
[Required] [Required]
[Column("ENVELOPE_UUID", TypeName = "nvarchar(36)")] [Column("ENVELOPE_UUID", TypeName = "nvarchar(36)")]
public string Uuid { get; set; } public string Uuid { get; set; }

View File

@ -68,7 +68,7 @@ export class EnvelopeTableComponent {
}, },
{ {
header: "Status", header: "Status",
field: er => er.envelope.status field: er => er.envelope.statusName
}, },
{ {
header: 'Type', header: 'Type',