Compare commits
14 Commits
8766b9e386
...
Release_2.
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e72cfcb632 | ||
|
|
f0f96e45fd | ||
|
|
a2a568480c | ||
|
|
23f67029bd | ||
|
|
d29abf53e7 | ||
|
|
967fd2ba04 | ||
|
|
f8ce9a03ec | ||
|
|
4335a500f1 | ||
|
|
0e2c653784 | ||
|
|
92d88812e8 | ||
|
|
af60dfe338 | ||
|
|
a7fff24f80 | ||
|
|
9b70ca8ce6 | ||
|
|
66c1fb3698 |
@@ -22,6 +22,23 @@ 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
|
||||
Public Property SignatureType As String = ""
|
||||
Public Property DocumentProcess As String = ""
|
||||
|
||||
Public Sub DynamicStringsForEmails(pEnvelope As Entities.Envelope)
|
||||
|
||||
If pEnvelope.EnvelopeTypeId = 1 Then
|
||||
SignatureType = "Signieren"
|
||||
Message = "Bitte lesen und unterzeichnen Sie dieses Dokument."
|
||||
DocumentProcess = " und elektronisch unterschreiben"
|
||||
ElseIf pEnvelope.EnvelopeTypeId = 2 Then
|
||||
SignatureType = "Lesen und bestätigen"
|
||||
Message = "Bitte bestätigen Sie, dieses Dokument gelesen zu haben."
|
||||
DocumentProcess = ""
|
||||
End If
|
||||
End Sub
|
||||
|
||||
''' <summary>
|
||||
''' Constructor for sending email to receiver
|
||||
''' </summary>
|
||||
@@ -29,11 +46,14 @@ Public Class EmailData
|
||||
''' <param name="pReceiver"></param>
|
||||
''' <param name="pStatus"></param>
|
||||
Public Sub New(pEnvelope As Entities.Envelope, pReceiver As Receiver, pStatus As Constants.EnvelopeStatus)
|
||||
|
||||
DynamicStringsForEmails(pEnvelope)
|
||||
|
||||
EmailAdress = pReceiver.EmailAddress
|
||||
EmailSubject = String.Empty
|
||||
EmailType = pStatus
|
||||
|
||||
Message = TextToHtml(pEnvelope.Message)
|
||||
Message = TextToHtml(Message)
|
||||
ReferenceID = pEnvelope.Id
|
||||
ReferenceString = pEnvelope.Uuid
|
||||
ReceiverName = pReceiver.Name
|
||||
@@ -41,6 +61,9 @@ Public Class EmailData
|
||||
SenderAdress = pEnvelope.User.Email
|
||||
SenderName = pEnvelope.User.GetFullName()
|
||||
EnvelopeTitle = pEnvelope.Title
|
||||
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
|
||||
SignatureType = TextToHtml(SignatureType)
|
||||
DocumentProcess = TextToHtml(DocumentProcess)
|
||||
End Sub
|
||||
Public Function TextToHtml(input As String) As String
|
||||
If String.IsNullOrEmpty(input) Then Return ""
|
||||
@@ -65,11 +88,14 @@ Public Class EmailData
|
||||
''' <param name="pEnvelope"></param>
|
||||
''' <param name="pStatus"></param>
|
||||
Public Sub New(pEnvelope As Entities.Envelope, pStatus As Constants.EnvelopeStatus)
|
||||
|
||||
DynamicStringsForEmails(pEnvelope)
|
||||
|
||||
EmailAdress = pEnvelope.User.Email
|
||||
EmailSubject = String.Empty
|
||||
EmailType = pStatus
|
||||
|
||||
Message = pEnvelope.Message
|
||||
Message = TextToHtml(Message)
|
||||
ReferenceID = pEnvelope.Id
|
||||
ReferenceString = pEnvelope.Uuid
|
||||
ReceiverName = pEnvelope.User.GetFullName()
|
||||
@@ -77,6 +103,9 @@ Public Class EmailData
|
||||
SenderAdress = pEnvelope.User.Email
|
||||
SenderName = pEnvelope.User.GetFullName()
|
||||
EnvelopeTitle = pEnvelope.Title
|
||||
EnvelopeTypeId = pEnvelope.EnvelopeTypeId
|
||||
SignatureType = TextToHtml(SignatureType)
|
||||
DocumentProcess = TextToHtml(DocumentProcess)
|
||||
End Sub
|
||||
|
||||
End Class
|
||||
|
||||
@@ -31,5 +31,5 @@ Imports System.Runtime.InteropServices
|
||||
' indem Sie "*" wie unten gezeigt eingeben:
|
||||
' <Assembly: AssemblyVersion("1.0.*")>
|
||||
|
||||
<Assembly: AssemblyVersion("2.7.0.0")>
|
||||
<Assembly: AssemblyFileVersion("2.7.0.0")>
|
||||
<Assembly: AssemblyVersion("2.7.1.0")>
|
||||
<Assembly: AssemblyFileVersion("2.7.1.0")>
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
Imports DigitalData.Modules.Base
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports EnvelopeGenerator.CommonServices.My.Resources
|
||||
Imports EnvelopeGenerator.Domain.Constants
|
||||
Imports EnvelopeGenerator.Domain.Entities
|
||||
|
||||
Public Class TemplateService
|
||||
Inherits BaseService
|
||||
@@ -24,13 +26,14 @@ Public Class TemplateService
|
||||
{"[NAME_RECEIVER]", pEmailData.ReceiverName},
|
||||
{"[NAME_SENDER]", pEmailData.SenderName},
|
||||
{"[NAME_PORTAL]", DbConfig.ExternalProgramName},
|
||||
{"[SIGNATURE_TYPE]", "signieren"},
|
||||
{"[SIGNATURE_TYPE]", pEmailData.SignatureType},
|
||||
{"[LINK_TO_DOCUMENT]", pEmailData.SignatureLink},
|
||||
{"[LINK_TO_DOCUMENT_TEXT]", $"{pEmailData.SignatureLink.Truncate(40)}.."},
|
||||
{"[DOCUMENT_TITLE]", pEmailData.EnvelopeTitle},
|
||||
{"[MESSAGE]", pEmailData.Message},
|
||||
{"[DOCUMENT_ACCESS_CODE]", pEmailData.ReceiverAccessCode},
|
||||
{"[REASON]", pReason}
|
||||
{"[REASON]", pReason},
|
||||
{"[DOCUMENT_PROCESS]", pEmailData.DocumentProcess}
|
||||
}
|
||||
End Sub
|
||||
|
||||
@@ -79,7 +82,7 @@ Public Class TemplateService
|
||||
|
||||
For Each dictItem As KeyValuePair(Of String, String) In _replaceDictionary
|
||||
If oText.Contains(dictItem.Key) Then
|
||||
|
||||
Logger.Debug($"Replacing {dictItem.Key} with {dictItem.Value}")
|
||||
oText = oText.Replace(dictItem.Key, dictItem.Value)
|
||||
|
||||
End If
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<value>Do you want to delete the signature?</value>
|
||||
</data>
|
||||
<data name="Do you want to start the signature process now" xml:space="preserve">
|
||||
<value>Do you want to start the signature process now?</value>
|
||||
<value>Do you want to start the process now?</value>
|
||||
</data>
|
||||
<data name="Document could not be opened" xml:space="preserve">
|
||||
<value>The Document could not be opened!</value>
|
||||
@@ -163,7 +163,7 @@
|
||||
<value>Envelope could not be sent!</value>
|
||||
</data>
|
||||
<data name="Envelope Invitations Sent" xml:space="preserve">
|
||||
<value>The invitations have been scheduled for dispatch.s</value>
|
||||
<value>The envelope have been scheduled for dispatch.</value>
|
||||
</data>
|
||||
<data name="Envelope Overview" xml:space="preserve">
|
||||
<value>Overview</value>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<value>Voulez-vous supprimer la signature ?</value>
|
||||
</data>
|
||||
<data name="Do you want to start the signature process now" xml:space="preserve">
|
||||
<value>Voulez-vous démarrer le processus de signature maintenant ?</value>
|
||||
<value>Voulez-vous démarrer le processus maintenant ?</value>
|
||||
</data>
|
||||
<data name="Document could not be opened" xml:space="preserve">
|
||||
<value>Le document n’a pas pu être ouvert !</value>
|
||||
@@ -163,7 +163,7 @@
|
||||
<value>L’enveloppe n’a pas pu être envoyée !</value>
|
||||
</data>
|
||||
<data name="Envelope Invitations Sent" xml:space="preserve">
|
||||
<value>Les invitations à signer ont été mises en file d’envoi.</value>
|
||||
<value>L'enveloppe a été mises à la poste.</value>
|
||||
</data>
|
||||
<data name="Envelope Overview" xml:space="preserve">
|
||||
<value>Vue d’ensemble</value>
|
||||
|
||||
@@ -133,7 +133,7 @@
|
||||
<value>Wollen Sie die Signatur löschen?</value>
|
||||
</data>
|
||||
<data name="Do you want to start the signature process now" xml:space="preserve">
|
||||
<value>Wollen Sie den Signaturprozess nun starten?</value>
|
||||
<value>Wollen Sie den Prozess nun starten?</value>
|
||||
</data>
|
||||
<data name="Document could not be opened" xml:space="preserve">
|
||||
<value>Das Dokument konnte nicht geöffnet werden!</value>
|
||||
@@ -163,7 +163,7 @@
|
||||
<value>Umschlag konnte nicht gesendet werden!</value>
|
||||
</data>
|
||||
<data name="Envelope Invitations Sent" xml:space="preserve">
|
||||
<value>Die Einladungen zum Signieren wurden zum Versand eingereiht.</value>
|
||||
<value>Der Umschlag wurde zum Versand eingereiht.</value>
|
||||
</data>
|
||||
<data name="Envelope Overview" xml:space="preserve">
|
||||
<value>Übersicht</value>
|
||||
|
||||
@@ -164,7 +164,7 @@ Namespace My.Resources
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Wollen Sie den Signaturprozess nun starten?.
|
||||
''' Looks up a localized string similar to Wollen Sie den Prozess nun starten?.
|
||||
'''</summary>
|
||||
Public Shared ReadOnly Property Do_you_want_to_start_the_signature_process_now() As String
|
||||
Get
|
||||
@@ -263,7 +263,7 @@ Namespace My.Resources
|
||||
End Property
|
||||
|
||||
'''<summary>
|
||||
''' Looks up a localized string similar to Die Einladungen zum Signieren wurden zum Versand eingereiht..
|
||||
''' Looks up a localized string similar to Der Umschlag wurde zum Versand eingereiht..
|
||||
'''</summary>
|
||||
Public Shared ReadOnly Property Envelope_Invitations_Sent() As String
|
||||
Get
|
||||
|
||||
@@ -14,6 +14,8 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
[Table("TBSIG_ENVELOPE", Schema = "dbo")]
|
||||
public class Envelope
|
||||
{
|
||||
// removed: WithDefaultMessage()
|
||||
|
||||
// TODO: * Check the Form App and remove the default value
|
||||
[Key]
|
||||
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
|
||||
@@ -39,7 +41,7 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
|
||||
// TODO: * Check the Form App and remove the default value
|
||||
[Column("MESSAGE", TypeName = "nvarchar(max)")]
|
||||
public string Message { get; set; } = My.Resources.Envelope.Please_read_and_sign_this_document;
|
||||
public string Message { get; set; }
|
||||
|
||||
[Column("EXPIRES_WHEN", TypeName = "datetime")]
|
||||
public DateTime ExpiresWhen { get; set; }
|
||||
@@ -135,19 +137,13 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
{
|
||||
get
|
||||
{
|
||||
var resourceManager = My.Resources.Model.ResourceManager;
|
||||
var statusName = ((Constants.EnvelopeStatus)Status).ToString();
|
||||
var rescourceManager = My.Resources.Model.ResourceManager;
|
||||
|
||||
if (this.IsReadAndSign())
|
||||
{
|
||||
var statusNameRaC = statusName + "4RaC";
|
||||
var translationRaC = resourceManager.GetString(statusNameRaC);
|
||||
if (this.IsReadAndSign() && rescourceManager.GetString(statusName + "4RaC") is string translationRaC)
|
||||
return translationRaC;
|
||||
|
||||
if (!string.IsNullOrEmpty(translationRaC))
|
||||
return translationRaC;
|
||||
}
|
||||
|
||||
return resourceManager.GetString(statusName);
|
||||
return rescourceManager.GetString(statusName);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -44,5 +44,6 @@ namespace EnvelopeGenerator.Domain.Entities
|
||||
|
||||
[NotMapped]
|
||||
public string StatusTranslated => My.Resources.Model.ResourceManager.GetString(Status.ToString());
|
||||
// here i have to do it like in envelope
|
||||
}
|
||||
}
|
||||
135
EnvelopeGenerator.Domain/Resources/Envelope.Designer.cs
generated
135
EnvelopeGenerator.Domain/Resources/Envelope.Designer.cs
generated
@@ -1,10 +1,10 @@
|
||||
//------------------------------------------------------------------------------
|
||||
// <auto-generated>
|
||||
// Dieser Code wurde von einem Tool generiert.
|
||||
// Laufzeitversion:4.0.30319.42000
|
||||
// This code was generated by a tool.
|
||||
// Runtime Version:4.0.30319.42000
|
||||
//
|
||||
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn
|
||||
// der Code erneut generiert wird.
|
||||
// Changes to this file may cause incorrect behavior and will be lost if
|
||||
// the code is regenerated.
|
||||
// </auto-generated>
|
||||
//------------------------------------------------------------------------------
|
||||
|
||||
@@ -13,12 +13,12 @@ namespace My.Resources {
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw.
|
||||
/// A strongly-typed resource class, for looking up localized strings, etc.
|
||||
/// </summary>
|
||||
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert
|
||||
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert.
|
||||
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen
|
||||
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu.
|
||||
// This class was auto-generated by the StronglyTypedResourceBuilder
|
||||
// class via a tool like ResGen or Visual Studio.
|
||||
// To add or remove a member, edit your .ResX file then rerun ResGen
|
||||
// with the /str option, or rebuild your VS project.
|
||||
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
|
||||
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
|
||||
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
|
||||
@@ -33,7 +33,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird.
|
||||
/// Returns the cached ResourceManager instance used by this class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Resources.ResourceManager ResourceManager {
|
||||
@@ -47,8 +47,8 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle
|
||||
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden.
|
||||
/// Overrides the current thread's CurrentUICulture property for all
|
||||
/// resource lookups using this strongly typed resource class.
|
||||
/// </summary>
|
||||
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
|
||||
public static global::System.Globalization.CultureInfo Culture {
|
||||
@@ -61,7 +61,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Der Zugangs Code wurde erfolgreich an [@Mail] versendet! ähnelt.
|
||||
/// Looks up a localized string similar to Der Zugangs Code wurde erfolgreich an [@Mail] versendet!.
|
||||
/// </summary>
|
||||
public static string AccessCode_manually_send {
|
||||
get {
|
||||
@@ -70,7 +70,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Bitte wählen Sie die PDF-Dokumente die Sie verketten möchten: ähnelt.
|
||||
/// Looks up a localized string similar to Bitte wählen Sie die PDF-Dokumente die Sie verketten möchten:.
|
||||
/// </summary>
|
||||
public static string Dialog_Concat_PDF {
|
||||
get {
|
||||
@@ -79,7 +79,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wollen Sie diesen Umschlag wirklich zurückrufen/löschen? ähnelt.
|
||||
/// Looks up a localized string similar to Wollen Sie diesen Umschlag wirklich zurückrufen/löschen?.
|
||||
/// </summary>
|
||||
public static string Do_you_really_want_to_delete_this_envelope {
|
||||
get {
|
||||
@@ -88,7 +88,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wollen Sie dieses Dokument wirklich entfernen? ähnelt.
|
||||
/// Looks up a localized string similar to Wollen Sie dieses Dokument wirklich entfernen?.
|
||||
/// </summary>
|
||||
public static string Do_you_really_want_to_remove_this_document {
|
||||
get {
|
||||
@@ -97,7 +97,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wollen Sie den ausgewählten Empfänger löschen? ähnelt.
|
||||
/// Looks up a localized string similar to Wollen Sie den ausgewählten Empfänger löschen?.
|
||||
/// </summary>
|
||||
public static string Do_you_want_to_delete_the_selected_recipient {
|
||||
get {
|
||||
@@ -106,7 +106,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wollen Sie die Signatur löschen? ähnelt.
|
||||
/// Looks up a localized string similar to Wollen Sie die Signatur löschen?.
|
||||
/// </summary>
|
||||
public static string Do_you_want_to_delete_the_signature {
|
||||
get {
|
||||
@@ -115,7 +115,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Wollen Sie den Signaturprozess nun starten? ähnelt.
|
||||
/// Looks up a localized string similar to Wollen Sie den Signaturprozess nun starten?.
|
||||
/// </summary>
|
||||
public static string Do_you_want_to_start_the_signature_process_now {
|
||||
get {
|
||||
@@ -124,7 +124,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Das Dokument konnte nicht geöffnet werden! ähnelt.
|
||||
/// Looks up a localized string similar to Das Dokument konnte nicht geöffnet werden!.
|
||||
/// </summary>
|
||||
public static string Document_could_not_be_opened {
|
||||
get {
|
||||
@@ -133,7 +133,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Dokument konnte nicht gespeichert werden! ähnelt.
|
||||
/// Looks up a localized string similar to Dokument konnte nicht gespeichert werden!.
|
||||
/// </summary>
|
||||
public static string Document_Could_Not_Be_Saved {
|
||||
get {
|
||||
@@ -142,7 +142,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Umschlag an Empfänger {0} weitergeleitet. ähnelt.
|
||||
/// Looks up a localized string similar to Umschlag an Empfänger {0} weitergeleitet..
|
||||
/// </summary>
|
||||
public static string Document_forwarded {
|
||||
get {
|
||||
@@ -151,7 +151,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Aktuell ist per Drag and Drop nur eine PDF-Datei erlaubt. ähnelt.
|
||||
/// Looks up a localized string similar to Aktuell ist per Drag and Drop nur eine PDF-Datei erlaubt..
|
||||
/// </summary>
|
||||
public static string Drop_only_one_file {
|
||||
get {
|
||||
@@ -160,7 +160,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Aktuell sind per Drag and Drop nur PDF-Dateien erlaubt. ähnelt.
|
||||
/// Looks up a localized string similar to Aktuell sind per Drag and Drop nur PDF-Dateien erlaubt..
|
||||
/// </summary>
|
||||
public static string Drop_only_pdf {
|
||||
get {
|
||||
@@ -169,7 +169,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Bearbeite Umschlag ähnelt.
|
||||
/// Looks up a localized string similar to Bearbeite Umschlag.
|
||||
/// </summary>
|
||||
public static string Edit_Envelope {
|
||||
get {
|
||||
@@ -178,7 +178,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Signatur-Elemente konnten nicht geladen werden! ähnelt.
|
||||
/// Looks up a localized string similar to Signatur-Elemente konnten nicht geladen werden!.
|
||||
/// </summary>
|
||||
public static string Elements_could_not_be_loaded {
|
||||
get {
|
||||
@@ -187,7 +187,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Signatur-Elemente konnten nicht gespeichert werden! ähnelt.
|
||||
/// Looks up a localized string similar to Signatur-Elemente konnten nicht gespeichert werden!.
|
||||
/// </summary>
|
||||
public static string Elements_could_not_be_saved {
|
||||
get {
|
||||
@@ -196,7 +196,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Der Umschlag wurde bereits versendet! ähnelt.
|
||||
/// Looks up a localized string similar to Der Umschlag wurde bereits versendet!.
|
||||
/// </summary>
|
||||
public static string Envelope_already_sent {
|
||||
get {
|
||||
@@ -205,7 +205,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Umschlag konnte nicht gesendet werden! ähnelt.
|
||||
/// Looks up a localized string similar to Umschlag konnte nicht gesendet werden!.
|
||||
/// </summary>
|
||||
public static string Envelope_could_not_be_sent {
|
||||
get {
|
||||
@@ -214,7 +214,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Umschlag-Editor ähnelt.
|
||||
/// Looks up a localized string similar to Umschlag-Editor.
|
||||
/// </summary>
|
||||
public static string Envelope_Editor {
|
||||
get {
|
||||
@@ -223,7 +223,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Einladungen zum Signieren wurden zum Versand eingereiht. ähnelt.
|
||||
/// Looks up a localized string similar to Die Einladungen zum Signieren wurden zum Versand eingereiht..
|
||||
/// </summary>
|
||||
public static string Envelope_Invitations_Sent {
|
||||
get {
|
||||
@@ -232,7 +232,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Übersicht ähnelt.
|
||||
/// Looks up a localized string similar to Übersicht.
|
||||
/// </summary>
|
||||
public static string Envelope_Overview {
|
||||
get {
|
||||
@@ -241,7 +241,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Einladungen wurden erfolgreich zum Versand bereitgestellt. ähnelt.
|
||||
/// Looks up a localized string similar to Die Einladungen wurden erfolgreich zum Versand bereitgestellt..
|
||||
/// </summary>
|
||||
public static string Envelope_successfully_sent {
|
||||
get {
|
||||
@@ -250,7 +250,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Email-Adresse [ @Mail ] konnte nicht validiert werden! ähnelt.
|
||||
/// Looks up a localized string similar to Die Email-Adresse [ @Mail ] konnte nicht validiert werden!.
|
||||
/// </summary>
|
||||
public static string Error_email_Validation {
|
||||
get {
|
||||
@@ -259,8 +259,8 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Mobiltelefonnummer [@PhoneNr] konnte nicht validiert werden.
|
||||
///Muster: +491234567890 ähnelt.
|
||||
/// Looks up a localized string similar to Die Mobiltelefonnummer [@PhoneNr] konnte nicht validiert werden.
|
||||
///Muster: +491234567890.
|
||||
/// </summary>
|
||||
public static string Error_phone_Validation {
|
||||
get {
|
||||
@@ -269,7 +269,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehler beim Senden des Umschlags: ähnelt.
|
||||
/// Looks up a localized string similar to Fehler beim Senden des Umschlags:.
|
||||
/// </summary>
|
||||
public static string Error_sending_the_envelope {
|
||||
get {
|
||||
@@ -278,7 +278,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehler beim Speichern des Umschlags! ähnelt.
|
||||
/// Looks up a localized string similar to Fehler beim Speichern des Umschlags!.
|
||||
/// </summary>
|
||||
public static string Error_when_saving_the_envelope {
|
||||
get {
|
||||
@@ -287,7 +287,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehler beim Speichern der Empfänger! ähnelt.
|
||||
/// Looks up a localized string similar to Fehler beim Speichern der Empfänger!.
|
||||
/// </summary>
|
||||
public static string Error_when_saving_the_recipients {
|
||||
get {
|
||||
@@ -296,7 +296,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehler bei der Validierung des Umschlags: ähnelt.
|
||||
/// Looks up a localized string similar to Fehler bei der Validierung des Umschlags:.
|
||||
/// </summary>
|
||||
public static string Error_when_validating_the_envelope {
|
||||
get {
|
||||
@@ -305,7 +305,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehler beim Speichern des Umschlags: ähnelt.
|
||||
/// Looks up a localized string similar to Fehler beim Speichern des Umschlags: .
|
||||
/// </summary>
|
||||
public static string Errors_when_saving_the_envelope {
|
||||
get {
|
||||
@@ -314,7 +314,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Mindestens ein Empfänger hat keine Anrede oder keine Email Adresse. ähnelt.
|
||||
/// Looks up a localized string similar to Mindestens ein Empfänger hat keine Anrede oder keine Email Adresse..
|
||||
/// </summary>
|
||||
public static string Incomplete_Receivers {
|
||||
get {
|
||||
@@ -323,7 +323,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Empfänger {0} hat keine gültige Email Addresse. ähnelt.
|
||||
/// Looks up a localized string similar to Empfänger {0} hat keine gültige Email Addresse..
|
||||
/// </summary>
|
||||
public static string Invalid_Email_Address {
|
||||
get {
|
||||
@@ -332,7 +332,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Die Einladung an [@Mail] wurde nochmal versendet! ähnelt.
|
||||
/// Looks up a localized string similar to Die Einladung an [@Mail] wurde nochmal versendet!.
|
||||
/// </summary>
|
||||
public static string Invitation_successfully_resend {
|
||||
get {
|
||||
@@ -341,7 +341,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehlendes Dokument ähnelt.
|
||||
/// Looks up a localized string similar to Fehlendes Dokument.
|
||||
/// </summary>
|
||||
public static string Missing_Documents {
|
||||
get {
|
||||
@@ -350,7 +350,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Es muss mindestens ein Signaturfeld gesetzt werden. ähnelt.
|
||||
/// Looks up a localized string similar to Es muss mindestens ein Signaturfeld gesetzt werden..
|
||||
/// </summary>
|
||||
public static string Missing_Elements {
|
||||
get {
|
||||
@@ -359,7 +359,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Für den Empfänger {0} gibt es noch kein Signaturfeld. ähnelt.
|
||||
/// Looks up a localized string similar to Für den Empfänger {0} gibt es noch kein Signaturfeld..
|
||||
/// </summary>
|
||||
public static string Missing_Elements_for_Receiver {
|
||||
get {
|
||||
@@ -368,7 +368,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehlende Nachricht ähnelt.
|
||||
/// Looks up a localized string similar to Fehlende Nachricht.
|
||||
/// </summary>
|
||||
public static string Missing_Message {
|
||||
get {
|
||||
@@ -377,7 +377,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Fehlende Empfänger ähnelt.
|
||||
/// Looks up a localized string similar to Fehlende Empfänger.
|
||||
/// </summary>
|
||||
public static string Missing_Receivers {
|
||||
get {
|
||||
@@ -386,7 +386,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Not translated ähnelt.
|
||||
/// Looks up a localized string similar to Not translated.
|
||||
/// </summary>
|
||||
public static string ModificationOriginFile_FormFields {
|
||||
get {
|
||||
@@ -395,7 +395,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Neuer Umschlag ähnelt.
|
||||
/// Looks up a localized string similar to Neuer Umschlag.
|
||||
/// </summary>
|
||||
public static string New_Envelope {
|
||||
get {
|
||||
@@ -404,7 +404,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Es ist nur eine Datei zulässig! ähnelt.
|
||||
/// Looks up a localized string similar to Es ist nur eine Datei zulässig!.
|
||||
/// </summary>
|
||||
public static string Only_one_file_is_allowed {
|
||||
get {
|
||||
@@ -413,7 +413,16 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Bitte lesen und unterzeichnen Sie dieses Dokument. ähnelt.
|
||||
/// Looks up a localized string similar to Bitte bestätigen Sie, dieses Dokument gelesen zu haben..
|
||||
/// </summary>
|
||||
public static string Please_read_and_confirm_this_document {
|
||||
get {
|
||||
return ResourceManager.GetString("Please read and confirm this document", resourceCulture);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Looks up a localized string similar to Bitte lesen und unterzeichnen Sie dieses Dokument..
|
||||
/// </summary>
|
||||
public static string Please_read_and_sign_this_document {
|
||||
get {
|
||||
@@ -422,7 +431,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Bitte wählen Sie einen Empfänger aus dem Reiter Empfänger aus. ähnelt.
|
||||
/// Looks up a localized string similar to Bitte wählen Sie einen Empfänger aus dem Reiter Empfänger aus..
|
||||
/// </summary>
|
||||
public static string Please_select_a_recipient_from_the_Recipients_tab {
|
||||
get {
|
||||
@@ -431,7 +440,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Empfänger konnte nicht gelöscht werden! ähnelt.
|
||||
/// Looks up a localized string similar to Empfänger konnte nicht gelöscht werden!.
|
||||
/// </summary>
|
||||
public static string Recipient_could_not_be_deleted {
|
||||
get {
|
||||
@@ -440,7 +449,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Soll der Umschlag gespeichert werden? ähnelt.
|
||||
/// Looks up a localized string similar to Soll der Umschlag gespeichert werden?.
|
||||
/// </summary>
|
||||
public static string Should_The_Envelope_Be_Saved {
|
||||
get {
|
||||
@@ -449,7 +458,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Platzhalter Signatur ähnelt.
|
||||
/// Looks up a localized string similar to Platzhalter Signatur.
|
||||
/// </summary>
|
||||
public static string Signature {
|
||||
get {
|
||||
@@ -458,7 +467,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Signatur-Editor ähnelt.
|
||||
/// Looks up a localized string similar to Signatur-Editor.
|
||||
/// </summary>
|
||||
public static string Signature_Editor {
|
||||
get {
|
||||
@@ -467,7 +476,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Der Umschlag konnte nicht gelöscht werden! ähnelt.
|
||||
/// Looks up a localized string similar to Der Umschlag konnte nicht gelöscht werden!.
|
||||
/// </summary>
|
||||
public static string The_envelope_could_not_be_deleted {
|
||||
get {
|
||||
@@ -476,7 +485,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Der Umschlag enthält keine Dokumente ähnelt.
|
||||
/// Looks up a localized string similar to Der Umschlag enthält keine Dokumente.
|
||||
/// </summary>
|
||||
public static string The_envelope_does_not_contain_any_documents {
|
||||
get {
|
||||
@@ -485,7 +494,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Es gibt für diesen Empfänger bereits Elemente. Wollen Sie den Empfänger trotzdem löschen? ähnelt.
|
||||
/// Looks up a localized string similar to Es gibt für diesen Empfänger bereits Elemente. Wollen Sie den Empfänger trotzdem löschen?.
|
||||
/// </summary>
|
||||
public static string There_are_already_elements_for_this_recipient {
|
||||
get {
|
||||
@@ -494,7 +503,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Es sind ungespeicherte Änderungen vorhanden. Wollen Sie diese speichern? ähnelt.
|
||||
/// Looks up a localized string similar to Es sind ungespeicherte Änderungen vorhanden. Wollen Sie diese speichern?.
|
||||
/// </summary>
|
||||
public static string There_are_unsaved_changes {
|
||||
get {
|
||||
@@ -503,7 +512,7 @@ namespace My.Resources {
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Sucht eine lokalisierte Zeichenfolge, die Sie haben ein Dokument zum signieren erhalten: ähnelt.
|
||||
/// Looks up a localized string similar to Sie haben ein Dokument zum signieren erhalten:.
|
||||
/// </summary>
|
||||
public static string You_received_a_document_to_sign {
|
||||
get {
|
||||
|
||||
@@ -268,4 +268,7 @@ Pattern: +491234567890</value>
|
||||
<data name="AccessCode manually send" xml:space="preserve">
|
||||
<value>The access code was successfully sent to [@Mail]!</value>
|
||||
</data>
|
||||
<data name="Please read and confirm this document" xml:space="preserve">
|
||||
<value>Please confirm that you have read this document.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -268,4 +268,7 @@ Muster: +491234567890</value>
|
||||
<data name="AccessCode manually send" xml:space="preserve">
|
||||
<value>Der Zugangs Code wurde erfolgreich an [@Mail] versendet!</value>
|
||||
</data>
|
||||
<data name="Please read and confirm this document" xml:space="preserve">
|
||||
<value>Bitte bestätigen Sie, dieses Dokument gelesen zu haben.</value>
|
||||
</data>
|
||||
</root>
|
||||
@@ -157,7 +157,7 @@
|
||||
<value>Document signed</value>
|
||||
</data>
|
||||
<data name="DocumentSigned4RaC" xml:space="preserve">
|
||||
<value>Document red and confirmed</value>
|
||||
<value>Document read and confirmed</value>
|
||||
</data>
|
||||
<data name="Draft" xml:space="preserve">
|
||||
<value>Draft</value>
|
||||
|
||||
@@ -28,7 +28,7 @@ Public Class EnvelopeEditorController
|
||||
Public Sub New(pState As State, pEnvelope As Envelope)
|
||||
MyBase.New(pState)
|
||||
|
||||
Envelope = pEnvelope
|
||||
Envelope = pEnvelope.WithDefaultMessage()
|
||||
Envelope.Documents = DocumentModel.List(pEnvelope.Id).ToList()
|
||||
Envelope.Receivers = ReceiverModel.ListEnvelopeReceivers(pEnvelope.Id).ToList()
|
||||
|
||||
@@ -50,7 +50,7 @@ Public Class EnvelopeEditorController
|
||||
Public Function ValidateEnvelopeForSending(pErrors As List(Of String)) As List(Of String)
|
||||
Dim oEnvelopeErrors = pErrors
|
||||
|
||||
If Envelope.EnvelopeTypeId <> ContractType.ReadAndSign Then
|
||||
If Envelope.EnvelopeTypeId <> 2 Then
|
||||
|
||||
If ElementModel.ElementsExist(Envelope.Id) = False Then
|
||||
oEnvelopeErrors.Add(Resources.Envelope.Missing_Elements)
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
Imports DigitalData.Modules.Database
|
||||
Imports System.Runtime.CompilerServices
|
||||
Imports System.Resources
|
||||
Imports DigitalData.Modules.Database
|
||||
Imports DigitalData.Modules.Logging
|
||||
Imports EnvelopeGenerator.CommonServices
|
||||
Imports EnvelopeGenerator.CommonServices.My
|
||||
Imports EnvelopeGenerator.Domain.Entities
|
||||
Imports EnvelopeGenerator.Domain
|
||||
|
||||
Module ModuleSettings
|
||||
Public ENVELOPE_TEMP_DOCUMENT As String = ""
|
||||
@@ -27,4 +31,21 @@ Module ModuleSettings
|
||||
Public MyState As State
|
||||
Public CurrentEnvelopID As Integer = 0
|
||||
Public CurrentEnvelopetitle As String = ""
|
||||
|
||||
<Extension()>
|
||||
Public Function WithDefaultMessage(ByVal envelope As Envelope) As Envelope
|
||||
If envelope Is Nothing Then
|
||||
Throw New ArgumentNullException(NameOf(envelope))
|
||||
End If
|
||||
|
||||
Dim resourceManager As New ResourceManager("EnvelopeGenerator.Domain.Resources.Envelope", GetType(EnvelopeGenerator.Domain.Entities.Envelope).Assembly)
|
||||
|
||||
If envelope.EnvelopeTypeId = 1 Then
|
||||
envelope.Message = resourceManager.GetString("Please read and sign this document")
|
||||
ElseIf envelope.EnvelopeTypeId = 2 Then
|
||||
envelope.Message = resourceManager.GetString("Please read and confirm this document")
|
||||
End If
|
||||
|
||||
Return envelope
|
||||
End Function
|
||||
End Module
|
||||
|
||||
@@ -139,7 +139,7 @@ Partial Public Class frmEnvelopeEditor
|
||||
End If
|
||||
End If
|
||||
|
||||
txtMessage.EditValue = Controller.Envelope.Message
|
||||
txtMessage.EditValue = Controller.Envelope.WithDefaultMessage().Message
|
||||
|
||||
GridDocuments.DataSource = Documents
|
||||
GridReceivers.DataSource = Receivers
|
||||
|
||||
@@ -723,7 +723,7 @@
|
||||
<value>XtraTabControlMain</value>
|
||||
</data>
|
||||
<data name="ColSignedDateCompleted.Caption" xml:space="preserve">
|
||||
<value>Unterschrieben am</value>
|
||||
<value>Bearbeitet am</value>
|
||||
</data>
|
||||
<data name=">>btnEnvelopes_thisYear.Type" xml:space="preserve">
|
||||
<value>DevExpress.XtraEditors.SimpleButton, DevExpress.XtraEditors.v21.2, Version=21.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a</value>
|
||||
@@ -1829,7 +1829,7 @@
|
||||
<value>Panel1</value>
|
||||
</data>
|
||||
<data name="ColSignedDate.Caption" xml:space="preserve">
|
||||
<value>Unterschrieben am</value>
|
||||
<value>Bearbeitet am</value>
|
||||
</data>
|
||||
<data name=">>ViewHistory.Name" xml:space="preserve">
|
||||
<value>ViewHistory</value>
|
||||
|
||||
Reference in New Issue
Block a user