Add SignatureLinkText to EmailData and template support
Introduced SignatureLinkText property in EmailData to hold signature-related text, set dynamically based on envelope type. Updated constructor to HTML-encode SignatureLinkText. Added [SIGNATURE_LINK_TEXT] to template dictionary in TemplateService for email customization.
This commit is contained in:
@@ -24,15 +24,18 @@ Public Class EmailData
|
||||
|
||||
Public ReadOnly Property EnvelopeTypeId As Integer = 0
|
||||
Public Property SignatureType As String = ""
|
||||
Public Property SignatureLinkText As String = ""
|
||||
|
||||
Public Sub DynamicStringsForEmails(pEnvelope As Entities.Envelope)
|
||||
|
||||
If pEnvelope.EnvelopeTypeId = 1 Then
|
||||
SignatureType = "Signieren"
|
||||
Message = "Bitte lesen und unterzeichnen Sie dieses Dokument."
|
||||
SignatureLinkText = " und elektronisch unterschreiben"
|
||||
ElseIf pEnvelope.EnvelopeTypeId = 2 Then
|
||||
SignatureType = "Lesen und bestätigen"
|
||||
Message = "Bitte lesen und bestätigen Sie, dieses Dokument gelesen zu haben."
|
||||
SignatureLinkText = ""
|
||||
End If
|
||||
End Sub
|
||||
|
||||
@@ -60,6 +63,7 @@ Public Class EmailData
|
||||
EnvelopeTitle = pEnvelope.Title
|
||||
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
|
||||
SignatureType = TextToHtml(SignatureType)
|
||||
SignatureLinkText = TextToHtml(SignatureLinkText)
|
||||
End Sub
|
||||
Public Function TextToHtml(input As String) As String
|
||||
If String.IsNullOrEmpty(input) Then Return ""
|
||||
@@ -101,6 +105,7 @@ Public Class EmailData
|
||||
EnvelopeTitle = pEnvelope.Title
|
||||
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
|
||||
SignatureType = TextToHtml(SignatureType)
|
||||
SignatureLinkText = TextToHtml(SignatureLinkText)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user