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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user