Compare commits

...

3 Commits

Author SHA1 Message Date
OlgunR
d29abf53e7 Set envelope default message by type using resources
Added "Please read and confirm this document" to resource files and updated resource class. Replaced Envelope constructor with WithDefaultMessage extension method to set default message based on EnvelopeTypeId. Updated controller and editor form to use this method. Cleaned up imports and comments.
2026-03-06 14:23:18 +01:00
OlgunR
967fd2ba04 Set Message default via ctor for .NET Framework only
Removed default value assignment from Message property and added a constructor to set the default message only when compiling for .NET Framework, using conditional compilation. This improves cross-platform compatibility.
2026-03-06 11:16:27 +01:00
OlgunR
f8ce9a03ec Update envelope prompts for clarity and consistency
Revised resource strings in English, French, and German to generalize the "start process" prompt and update "Envelope Invitations Sent" to refer to the envelope dispatch. Updated designer file comments to match new localized text. These changes improve clarity and consistency across all supported languages.
2026-03-06 11:03:05 +01:00
11 changed files with 113 additions and 75 deletions

View File

@@ -133,7 +133,7 @@
<value>Do you want to delete the signature?</value> <value>Do you want to delete the signature?</value>
</data> </data>
<data name="Do you want to start the signature process now" xml:space="preserve"> <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>
<data name="Document could not be opened" xml:space="preserve"> <data name="Document could not be opened" xml:space="preserve">
<value>The Document could not be opened!</value> <value>The Document could not be opened!</value>
@@ -163,7 +163,7 @@
<value>Envelope could not be sent!</value> <value>Envelope could not be sent!</value>
</data> </data>
<data name="Envelope Invitations Sent" xml:space="preserve"> <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>
<data name="Envelope Overview" xml:space="preserve"> <data name="Envelope Overview" xml:space="preserve">
<value>Overview</value> <value>Overview</value>

View File

@@ -133,7 +133,7 @@
<value>Voulez-vous supprimer la signature ?</value> <value>Voulez-vous supprimer la signature ?</value>
</data> </data>
<data name="Do you want to start the signature process now" xml:space="preserve"> <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>
<data name="Document could not be opened" xml:space="preserve"> <data name="Document could not be opened" xml:space="preserve">
<value>Le document na pas pu être ouvert !</value> <value>Le document na pas pu être ouvert !</value>
@@ -163,7 +163,7 @@
<value>Lenveloppe na pas pu être envoyée !</value> <value>Lenveloppe na pas pu être envoyée !</value>
</data> </data>
<data name="Envelope Invitations Sent" xml:space="preserve"> <data name="Envelope Invitations Sent" xml:space="preserve">
<value>Les invitations à signer ont été mises en file denvoi.</value> <value>L'enveloppe a été mises à la poste.</value>
</data> </data>
<data name="Envelope Overview" xml:space="preserve"> <data name="Envelope Overview" xml:space="preserve">
<value>Vue densemble</value> <value>Vue densemble</value>

View File

@@ -133,7 +133,7 @@
<value>Wollen Sie die Signatur löschen?</value> <value>Wollen Sie die Signatur löschen?</value>
</data> </data>
<data name="Do you want to start the signature process now" xml:space="preserve"> <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>
<data name="Document could not be opened" xml:space="preserve"> <data name="Document could not be opened" xml:space="preserve">
<value>Das Dokument konnte nicht geöffnet werden!</value> <value>Das Dokument konnte nicht geöffnet werden!</value>
@@ -163,7 +163,7 @@
<value>Umschlag konnte nicht gesendet werden!</value> <value>Umschlag konnte nicht gesendet werden!</value>
</data> </data>
<data name="Envelope Invitations Sent" xml:space="preserve"> <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>
<data name="Envelope Overview" xml:space="preserve"> <data name="Envelope Overview" xml:space="preserve">
<value>Übersicht</value> <value>Übersicht</value>

View File

@@ -164,7 +164,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<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> '''</summary>
Public Shared ReadOnly Property Do_you_want_to_start_the_signature_process_now() As String Public Shared ReadOnly Property Do_you_want_to_start_the_signature_process_now() As String
Get Get
@@ -263,7 +263,7 @@ Namespace My.Resources
End Property End Property
'''<summary> '''<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> '''</summary>
Public Shared ReadOnly Property Envelope_Invitations_Sent() As String Public Shared ReadOnly Property Envelope_Invitations_Sent() As String
Get Get

View File

@@ -14,6 +14,8 @@ namespace EnvelopeGenerator.Domain.Entities
[Table("TBSIG_ENVELOPE", Schema = "dbo")] [Table("TBSIG_ENVELOPE", Schema = "dbo")]
public class Envelope public class Envelope
{ {
// removed: WithDefaultMessage()
// TODO: * Check the Form App and remove the default value // TODO: * Check the Form App and remove the default value
[Key] [Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)] [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
@@ -39,7 +41,7 @@ namespace EnvelopeGenerator.Domain.Entities
// TODO: * Check the Form App and remove the default value // TODO: * Check the Form App and remove the default value
[Column("MESSAGE", TypeName = "nvarchar(max)")] [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")] [Column("EXPIRES_WHEN", TypeName = "datetime")]
public DateTime ExpiresWhen { get; set; } public DateTime ExpiresWhen { get; set; }

View File

@@ -1,10 +1,10 @@
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
// <auto-generated> // <auto-generated>
// Dieser Code wurde von einem Tool generiert. // This code was generated by a tool.
// Laufzeitversion:4.0.30319.42000 // Runtime Version:4.0.30319.42000
// //
// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn // Changes to this file may cause incorrect behavior and will be lost if
// der Code erneut generiert wird. // the code is regenerated.
// </auto-generated> // </auto-generated>
//------------------------------------------------------------------------------ //------------------------------------------------------------------------------
@@ -13,12 +13,12 @@ namespace My.Resources {
/// <summary> /// <summary>
/// Eine stark typisierte Ressourcenklasse zum Suchen von lokalisierten Zeichenfolgen usw. /// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary> /// </summary>
// Diese Klasse wurde von der StronglyTypedResourceBuilder automatisch generiert // This class was auto-generated by the StronglyTypedResourceBuilder
// -Klasse über ein Tool wie ResGen oder Visual Studio automatisch generiert. // class via a tool like ResGen or Visual Studio.
// Um einen Member hinzuzufügen oder zu entfernen, bearbeiten Sie die .ResX-Datei und führen dann ResGen // To add or remove a member, edit your .ResX file then rerun ResGen
// mit der /str-Option erneut aus, oder Sie erstellen Ihr VS-Projekt neu. // with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")] [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()] [global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
@@ -33,7 +33,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Gibt die zwischengespeicherte ResourceManager-Instanz zurück, die von dieser Klasse verwendet wird. /// Returns the cached ResourceManager instance used by this class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Resources.ResourceManager ResourceManager { public static global::System.Resources.ResourceManager ResourceManager {
@@ -47,8 +47,8 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Überschreibt die CurrentUICulture-Eigenschaft des aktuellen Threads für alle /// Overrides the current thread's CurrentUICulture property for all
/// Ressourcenzuordnungen, die diese stark typisierte Ressourcenklasse verwenden. /// resource lookups using this strongly typed resource class.
/// </summary> /// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
public static global::System.Globalization.CultureInfo Culture { public static global::System.Globalization.CultureInfo Culture {
@@ -61,7 +61,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string AccessCode_manually_send { public static string AccessCode_manually_send {
get { get {
@@ -70,7 +70,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Dialog_Concat_PDF { public static string Dialog_Concat_PDF {
get { get {
@@ -79,7 +79,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Do_you_really_want_to_delete_this_envelope { public static string Do_you_really_want_to_delete_this_envelope {
get { get {
@@ -88,7 +88,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Do_you_really_want_to_remove_this_document { public static string Do_you_really_want_to_remove_this_document {
get { get {
@@ -97,7 +97,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Do_you_want_to_delete_the_selected_recipient { public static string Do_you_want_to_delete_the_selected_recipient {
get { get {
@@ -106,7 +106,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Do_you_want_to_delete_the_signature { public static string Do_you_want_to_delete_the_signature {
get { get {
@@ -115,7 +115,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Do_you_want_to_start_the_signature_process_now { public static string Do_you_want_to_start_the_signature_process_now {
get { get {
@@ -124,7 +124,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Document_could_not_be_opened { public static string Document_could_not_be_opened {
get { get {
@@ -133,7 +133,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Document_Could_Not_Be_Saved { public static string Document_Could_Not_Be_Saved {
get { get {
@@ -142,7 +142,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Document_forwarded { public static string Document_forwarded {
get { get {
@@ -151,7 +151,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Drop_only_one_file { public static string Drop_only_one_file {
get { get {
@@ -160,7 +160,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Drop_only_pdf { public static string Drop_only_pdf {
get { get {
@@ -169,7 +169,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Bearbeite Umschlag ähnelt. /// Looks up a localized string similar to Bearbeite Umschlag.
/// </summary> /// </summary>
public static string Edit_Envelope { public static string Edit_Envelope {
get { get {
@@ -178,7 +178,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Elements_could_not_be_loaded { public static string Elements_could_not_be_loaded {
get { get {
@@ -187,7 +187,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Elements_could_not_be_saved { public static string Elements_could_not_be_saved {
get { get {
@@ -196,7 +196,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Envelope_already_sent { public static string Envelope_already_sent {
get { get {
@@ -205,7 +205,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Envelope_could_not_be_sent { public static string Envelope_could_not_be_sent {
get { get {
@@ -214,7 +214,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Umschlag-Editor ähnelt. /// Looks up a localized string similar to Umschlag-Editor.
/// </summary> /// </summary>
public static string Envelope_Editor { public static string Envelope_Editor {
get { get {
@@ -223,7 +223,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Envelope_Invitations_Sent { public static string Envelope_Invitations_Sent {
get { get {
@@ -232,7 +232,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Übersicht ähnelt. /// Looks up a localized string similar to Übersicht.
/// </summary> /// </summary>
public static string Envelope_Overview { public static string Envelope_Overview {
get { get {
@@ -241,7 +241,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Envelope_successfully_sent { public static string Envelope_successfully_sent {
get { get {
@@ -250,7 +250,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Error_email_Validation { public static string Error_email_Validation {
get { get {
@@ -259,8 +259,8 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Die Mobiltelefonnummer [@PhoneNr] konnte nicht validiert werden. /// Looks up a localized string similar to Die Mobiltelefonnummer [@PhoneNr] konnte nicht validiert werden.
///Muster: +491234567890 ähnelt. ///Muster: +491234567890.
/// </summary> /// </summary>
public static string Error_phone_Validation { public static string Error_phone_Validation {
get { get {
@@ -269,7 +269,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Error_sending_the_envelope { public static string Error_sending_the_envelope {
get { get {
@@ -278,7 +278,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Error_when_saving_the_envelope { public static string Error_when_saving_the_envelope {
get { get {
@@ -287,7 +287,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Error_when_saving_the_recipients { public static string Error_when_saving_the_recipients {
get { get {
@@ -296,7 +296,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Error_when_validating_the_envelope { public static string Error_when_validating_the_envelope {
get { get {
@@ -305,7 +305,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Errors_when_saving_the_envelope { public static string Errors_when_saving_the_envelope {
get { get {
@@ -314,7 +314,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Incomplete_Receivers { public static string Incomplete_Receivers {
get { get {
@@ -323,7 +323,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Invalid_Email_Address { public static string Invalid_Email_Address {
get { get {
@@ -332,7 +332,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Invitation_successfully_resend { public static string Invitation_successfully_resend {
get { get {
@@ -341,7 +341,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Fehlendes Dokument ähnelt. /// Looks up a localized string similar to Fehlendes Dokument.
/// </summary> /// </summary>
public static string Missing_Documents { public static string Missing_Documents {
get { get {
@@ -350,7 +350,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Missing_Elements { public static string Missing_Elements {
get { get {
@@ -359,7 +359,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Missing_Elements_for_Receiver { public static string Missing_Elements_for_Receiver {
get { get {
@@ -368,7 +368,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Fehlende Nachricht ähnelt. /// Looks up a localized string similar to Fehlende Nachricht.
/// </summary> /// </summary>
public static string Missing_Message { public static string Missing_Message {
get { get {
@@ -377,7 +377,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Fehlende Empfänger ähnelt. /// Looks up a localized string similar to Fehlende Empfänger.
/// </summary> /// </summary>
public static string Missing_Receivers { public static string Missing_Receivers {
get { get {
@@ -386,7 +386,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Not translated ähnelt. /// Looks up a localized string similar to Not translated.
/// </summary> /// </summary>
public static string ModificationOriginFile_FormFields { public static string ModificationOriginFile_FormFields {
get { get {
@@ -395,7 +395,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Neuer Umschlag ähnelt. /// Looks up a localized string similar to Neuer Umschlag.
/// </summary> /// </summary>
public static string New_Envelope { public static string New_Envelope {
get { get {
@@ -404,7 +404,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Only_one_file_is_allowed { public static string Only_one_file_is_allowed {
get { get {
@@ -413,7 +413,16 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Please_read_and_sign_this_document { public static string Please_read_and_sign_this_document {
get { get {
@@ -422,7 +431,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Please_select_a_recipient_from_the_Recipients_tab { public static string Please_select_a_recipient_from_the_Recipients_tab {
get { get {
@@ -431,7 +440,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Recipient_could_not_be_deleted { public static string Recipient_could_not_be_deleted {
get { get {
@@ -440,7 +449,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string Should_The_Envelope_Be_Saved { public static string Should_The_Envelope_Be_Saved {
get { get {
@@ -449,7 +458,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Platzhalter Signatur ähnelt. /// Looks up a localized string similar to Platzhalter Signatur.
/// </summary> /// </summary>
public static string Signature { public static string Signature {
get { get {
@@ -458,7 +467,7 @@ namespace My.Resources {
} }
/// <summary> /// <summary>
/// Sucht eine lokalisierte Zeichenfolge, die Signatur-Editor ähnelt. /// Looks up a localized string similar to Signatur-Editor.
/// </summary> /// </summary>
public static string Signature_Editor { public static string Signature_Editor {
get { get {
@@ -467,7 +476,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string The_envelope_could_not_be_deleted { public static string The_envelope_could_not_be_deleted {
get { get {
@@ -476,7 +485,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string The_envelope_does_not_contain_any_documents { public static string The_envelope_does_not_contain_any_documents {
get { get {
@@ -485,7 +494,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string There_are_already_elements_for_this_recipient { public static string There_are_already_elements_for_this_recipient {
get { get {
@@ -494,7 +503,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string There_are_unsaved_changes { public static string There_are_unsaved_changes {
get { get {
@@ -503,7 +512,7 @@ namespace My.Resources {
} }
/// <summary> /// <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> /// </summary>
public static string You_received_a_document_to_sign { public static string You_received_a_document_to_sign {
get { get {

View File

@@ -268,4 +268,7 @@ Pattern: +491234567890</value>
<data name="AccessCode manually send" xml:space="preserve"> <data name="AccessCode manually send" xml:space="preserve">
<value>The access code was successfully sent to [@Mail]!</value> <value>The access code was successfully sent to [@Mail]!</value>
</data> </data>
<data name="Please read and confirm this document" xml:space="preserve">
<value>Please confirm that you have read this document.</value>
</data>
</root> </root>

View File

@@ -268,4 +268,7 @@ Muster: +491234567890</value>
<data name="AccessCode manually send" xml:space="preserve"> <data name="AccessCode manually send" xml:space="preserve">
<value>Der Zugangs Code wurde erfolgreich an [@Mail] versendet!</value> <value>Der Zugangs Code wurde erfolgreich an [@Mail] versendet!</value>
</data> </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> </root>

View File

@@ -28,7 +28,7 @@ Public Class EnvelopeEditorController
Public Sub New(pState As State, pEnvelope As Envelope) Public Sub New(pState As State, pEnvelope As Envelope)
MyBase.New(pState) MyBase.New(pState)
Envelope = pEnvelope Envelope = pEnvelope.WithDefaultMessage()
Envelope.Documents = DocumentModel.List(pEnvelope.Id).ToList() Envelope.Documents = DocumentModel.List(pEnvelope.Id).ToList()
Envelope.Receivers = ReceiverModel.ListEnvelopeReceivers(pEnvelope.Id).ToList() Envelope.Receivers = ReceiverModel.ListEnvelopeReceivers(pEnvelope.Id).ToList()

View File

@@ -1,7 +1,11 @@
Imports DigitalData.Modules.Database Imports System.Runtime.CompilerServices
Imports System.Resources
Imports DigitalData.Modules.Database
Imports DigitalData.Modules.Logging Imports DigitalData.Modules.Logging
Imports EnvelopeGenerator.CommonServices Imports EnvelopeGenerator.CommonServices
Imports EnvelopeGenerator.CommonServices.My
Imports EnvelopeGenerator.Domain.Entities Imports EnvelopeGenerator.Domain.Entities
Imports EnvelopeGenerator.Domain
Module ModuleSettings Module ModuleSettings
Public ENVELOPE_TEMP_DOCUMENT As String = "" Public ENVELOPE_TEMP_DOCUMENT As String = ""
@@ -27,4 +31,21 @@ Module ModuleSettings
Public MyState As State Public MyState As State
Public CurrentEnvelopID As Integer = 0 Public CurrentEnvelopID As Integer = 0
Public CurrentEnvelopetitle As String = "" 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 End Module

View File

@@ -139,7 +139,7 @@ Partial Public Class frmEnvelopeEditor
End If End If
End If End If
txtMessage.EditValue = Controller.Envelope.Message txtMessage.EditValue = Controller.Envelope.WithDefaultMessage().Message
GridDocuments.DataSource = Documents GridDocuments.DataSource = Documents
GridReceivers.DataSource = Receivers GridReceivers.DataSource = Receivers