feat(Receiver): Entsprechend aktualisiert, um die Eigenschaften der Formularanwendung einzubeziehen
This commit is contained in:
@@ -134,7 +134,7 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
public IEnumerable<EnvelopeHistory> History { get; set; } = new List<EnvelopeHistory>();
|
||||
|
||||
// TODO: * Check the Form App and remove the default value
|
||||
public IEnumerable<EnvelopeReceiver> Receivers { get; set; } = new List<EnvelopeReceiver>();
|
||||
public IEnumerable<Receiver> Receivers { get; set; } = new List<Receiver>();
|
||||
|
||||
/// <summary>
|
||||
/// Validates whether the receiver and document data are complete.
|
||||
|
||||
@@ -1,5 +1,7 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
using System.ComponentModel.DataAnnotations.Schema;
|
||||
using System.Drawing;
|
||||
using DigitalData.Modules.Base;
|
||||
#if NETFRAMEWORK
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -34,5 +36,55 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
public DateTime TfaRegDeadline { get; set; }
|
||||
|
||||
public IEnumerable<EnvelopeReceiver> EnvelopeReceivers { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string Name { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public string Company { get; set; } = string.Empty;
|
||||
|
||||
[NotMapped]
|
||||
public string JobTitle { get; set; } = string.Empty;
|
||||
|
||||
[NotMapped]
|
||||
public string PhoneNumber { get; set; } = string.Empty;
|
||||
|
||||
[NotMapped]
|
||||
public string AccessCode { get; set; } = string.Empty;
|
||||
|
||||
[NotMapped]
|
||||
public string PrivateMessage { get; set; } = string.Empty;
|
||||
|
||||
[NotMapped]
|
||||
public int Sequence { get; set; } = 0;
|
||||
|
||||
[NotMapped]
|
||||
public DateTime SignedDate { get; set; } = DateTime.MinValue;
|
||||
|
||||
[NotMapped]
|
||||
public Constants.ReceiverStatus Status { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public Constants.ColorType ColorType { get; set; }
|
||||
|
||||
[NotMapped]
|
||||
public bool HasId => Id > 0;
|
||||
|
||||
[NotMapped]
|
||||
public bool HasEmailAndName =>
|
||||
!string.IsNullOrWhiteSpace(EmailAddress) &&
|
||||
!string.IsNullOrWhiteSpace(Name);
|
||||
|
||||
[NotMapped]
|
||||
public string SignedDateDisplayValue =>
|
||||
SignedDate == DateTime.MinValue ? "-" : SignedDate.ToString("G");
|
||||
|
||||
[NotMapped]
|
||||
public Color Color => Helpers.ColorTypeToColor(ColorType);
|
||||
|
||||
public string GetSignature()
|
||||
{
|
||||
return StringEx.GetChecksum(EmailAddress?.ToUpperInvariant() ?? string.Empty);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -20,6 +20,7 @@
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="DigitalData.EmailProfilerDispatcher.Abstraction.Attributes" Version="1.0.0" />
|
||||
<PackageReference Include="DigitalData.Modules.Base" Version="1.3.8" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
|
||||
Reference in New Issue
Block a user