Add EnvelopeTypeId to EmailData and dynamic signature type

Introduced EnvelopeTypeId as a read-only property in EmailData, set during construction. Updated TemplateService.InitDictionary to use EnvelopeTypeId for determining signature type and message content, replacing the hardcoded [SIGNATURE_TYPE] value. Also added necessary imports for domain entities and constants.
This commit is contained in:
OlgunR
2026-03-03 09:19:18 +01:00
parent 9b70ca8ce6
commit a7fff24f80
2 changed files with 16 additions and 1 deletions

View File

@@ -22,6 +22,8 @@ Public Class EmailData
Public Property ATT1_REL_TYPE As String = ""
Public Property ADDED_WHO_PROCESS As String = "DDEnvelopGenerator"
Public ReadOnly Property EnvelopeTypeId As Integer = 0
''' <summary>
''' Constructor for sending email to receiver
''' </summary>
@@ -41,6 +43,7 @@ Public Class EmailData
SenderAdress = pEnvelope.User.Email
SenderName = pEnvelope.User.GetFullName()
EnvelopeTitle = pEnvelope.Title
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
End Sub
Public Function TextToHtml(input As String) As String
If String.IsNullOrEmpty(input) Then Return ""
@@ -77,6 +80,7 @@ Public Class EmailData
SenderAdress = pEnvelope.User.Email
SenderName = pEnvelope.User.GetFullName()
EnvelopeTitle = pEnvelope.Title
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
End Sub
End Class