06-12-2023
This commit is contained in:
parent
7abde3a1f4
commit
7c450c56ed
@ -55,6 +55,11 @@
|
|||||||
ReceiverColor9 = 9
|
ReceiverColor9 = 9
|
||||||
ReceiverColor10 = 10
|
ReceiverColor10 = 10
|
||||||
End Enum
|
End Enum
|
||||||
|
|
||||||
|
Public Enum PageOrientation
|
||||||
|
Portrait = 0
|
||||||
|
Landscape = 1
|
||||||
|
End Enum
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -133,10 +133,10 @@
|
|||||||
<value>Dokument konnte nicht gespeichert werden!</value>
|
<value>Dokument konnte nicht gespeichert werden!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Elements could not be loaded" xml:space="preserve">
|
<data name="Elements could not be loaded" xml:space="preserve">
|
||||||
<value>Elemente konnten nicht geladen werden!</value>
|
<value>Signatur-Elemente konnten nicht geladen werden!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Elements could not be saved" xml:space="preserve">
|
<data name="Elements could not be saved" xml:space="preserve">
|
||||||
<value>Elemente konnten nicht gespeichert werden!</value>
|
<value>Signatur-Elemente konnten nicht gespeichert werden!</value>
|
||||||
</data>
|
</data>
|
||||||
<data name="Envelope already sent" xml:space="preserve">
|
<data name="Envelope already sent" xml:space="preserve">
|
||||||
<value>Der Umschlag wurde bereits versendet!</value>
|
<value>Der Umschlag wurde bereits versendet!</value>
|
||||||
|
|||||||
@ -110,7 +110,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Sucht eine lokalisierte Zeichenfolge, die Elemente konnten nicht geladen werden! ähnelt.
|
''' Sucht eine lokalisierte Zeichenfolge, die Signatur-Elemente konnten nicht geladen werden! ähnelt.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Public Shared ReadOnly Property Elements_could_not_be_loaded() As String
|
Public Shared ReadOnly Property Elements_could_not_be_loaded() As String
|
||||||
Get
|
Get
|
||||||
@ -119,7 +119,7 @@ Namespace My.Resources
|
|||||||
End Property
|
End Property
|
||||||
|
|
||||||
'''<summary>
|
'''<summary>
|
||||||
''' Sucht eine lokalisierte Zeichenfolge, die Elemente konnten nicht gespeichert werden! ähnelt.
|
''' Sucht eine lokalisierte Zeichenfolge, die Signatur-Elemente konnten nicht gespeichert werden! ähnelt.
|
||||||
'''</summary>
|
'''</summary>
|
||||||
Public Shared ReadOnly Property Elements_could_not_be_saved() As String
|
Public Shared ReadOnly Property Elements_could_not_be_saved() As String
|
||||||
Get
|
Get
|
||||||
|
|||||||
@ -1,4 +1,5 @@
|
|||||||
Imports EnvelopeGenerator.Common
|
Imports DevExpress.XtraPrinting.Native
|
||||||
|
Imports EnvelopeGenerator.Common
|
||||||
Imports GdPicture14.Annotations
|
Imports GdPicture14.Annotations
|
||||||
|
|
||||||
Public Class FieldEditorController
|
Public Class FieldEditorController
|
||||||
@ -59,12 +60,24 @@ Public Class FieldEditorController
|
|||||||
End If
|
End If
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Sub AddOrUpdateElement(pAnnotation As AnnotationStickyNote)
|
Public Sub AddOrUpdateElement(pAnnotation As AnnotationStickyNote, pPageOrientation As PageOrientation)
|
||||||
Dim oElement = GetElement(pAnnotation)
|
Dim oElement = GetElement(pAnnotation)
|
||||||
|
|
||||||
|
Dim oAnnotationHeight As Single = pAnnotation.Height
|
||||||
|
Dim oAnnotationWidth As Single = pAnnotation.Width
|
||||||
|
|
||||||
|
'If pPageOrientation = PageOrientation.Portrait Then
|
||||||
|
' oAnnotationHeight = pAnnotation.Height
|
||||||
|
' oAnnotationWidth = pAnnotation.Width
|
||||||
|
'Else
|
||||||
|
' oAnnotationHeight = pAnnotation.Width
|
||||||
|
' oAnnotationWidth = pAnnotation.Height
|
||||||
|
'End If
|
||||||
|
|
||||||
|
|
||||||
If oElement IsNot Nothing Then
|
If oElement IsNot Nothing Then
|
||||||
oElement.Height = pAnnotation.Height
|
oElement.Height = oAnnotationHeight
|
||||||
oElement.Width = pAnnotation.Width
|
oElement.Width = oAnnotationWidth
|
||||||
oElement.X = pAnnotation.Left
|
oElement.X = pAnnotation.Left
|
||||||
oElement.Y = pAnnotation.Top
|
oElement.Y = pAnnotation.Top
|
||||||
Else
|
Else
|
||||||
@ -72,8 +85,8 @@ Public Class FieldEditorController
|
|||||||
|
|
||||||
Elements.Add(New EnvelopeDocumentElement() With {
|
Elements.Add(New EnvelopeDocumentElement() With {
|
||||||
.ElementType = Constants.ElementType.Signature,
|
.ElementType = Constants.ElementType.Signature,
|
||||||
.Height = pAnnotation.Height,
|
.Height = oAnnotationHeight,
|
||||||
.Width = pAnnotation.Width,
|
.Width = oAnnotationWidth,
|
||||||
.X = pAnnotation.Left,
|
.X = pAnnotation.Left,
|
||||||
.Y = pAnnotation.Top,
|
.Y = pAnnotation.Top,
|
||||||
.DocumentId = Document.Id,
|
.DocumentId = Document.Id,
|
||||||
|
|||||||
@ -282,7 +282,7 @@ Partial Public Class frmEnvelopeEditor
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oErrors = ValidateEnvelope()
|
Dim oErrors = ValidateEnvelope()
|
||||||
oErrors = Controller.ValidateEn06 - 12 - 2velopeForSending(oErrors)
|
oErrors = Controller.ValidateEnvelopeForSending(oErrors)
|
||||||
|
|
||||||
If oErrors.Any() Then
|
If oErrors.Any() Then
|
||||||
ShowValidationErrors(Resources.Envelope.Error_when_validating_the_envelope, oErrors)
|
ShowValidationErrors(Resources.Envelope.Error_when_validating_the_envelope, oErrors)
|
||||||
|
|||||||
@ -4,6 +4,7 @@ Imports DevExpress.Utils.Svg
|
|||||||
Imports DevExpress.XtraBars
|
Imports DevExpress.XtraBars
|
||||||
Imports DigitalData.Modules.Logging
|
Imports DigitalData.Modules.Logging
|
||||||
Imports EnvelopeGenerator.Common
|
Imports EnvelopeGenerator.Common
|
||||||
|
Imports EnvelopeGenerator.Common.Constants
|
||||||
Imports EnvelopeGenerator.Common.My
|
Imports EnvelopeGenerator.Common.My
|
||||||
Imports GdPicture14
|
Imports GdPicture14
|
||||||
Imports GdPicture14.Annotations
|
Imports GdPicture14.Annotations
|
||||||
@ -188,7 +189,8 @@ Partial Public Class frmFieldEditor
|
|||||||
Dim oAnnotation As Annotation = GDViewer.GetAnnotationFromIdx(oAnnotationIndex)
|
Dim oAnnotation As Annotation = GDViewer.GetAnnotationFromIdx(oAnnotationIndex)
|
||||||
If TypeOf oAnnotation Is AnnotationStickyNote Then
|
If TypeOf oAnnotation Is AnnotationStickyNote Then
|
||||||
Dim oStickyNote As AnnotationStickyNote = oAnnotation
|
Dim oStickyNote As AnnotationStickyNote = oAnnotation
|
||||||
Controller.AddOrUpdateElement(oStickyNote)
|
Dim oPageOrientation As PageOrientation = GetOrientation()
|
||||||
|
Controller.AddOrUpdateElement(oStickyNote, oPageOrientation)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
End Sub
|
End Sub
|
||||||
@ -292,6 +294,18 @@ Partial Public Class frmFieldEditor
|
|||||||
End If
|
End If
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
Private Function GetOrientation() As PageOrientation
|
||||||
|
Dim oWidth = GDViewer.Width
|
||||||
|
Dim oHeight = GDViewer.PageHeight
|
||||||
|
|
||||||
|
If oHeight >= oWidth Then
|
||||||
|
Return PageOrientation.Portrait
|
||||||
|
Else
|
||||||
|
Return PageOrientation.Landscape
|
||||||
|
End If
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
Private Sub ApplyAnnotationStyleForExistingAnnotation(ByRef pAnnotation As Annotation, pColor As Color)
|
Private Sub ApplyAnnotationStyleForExistingAnnotation(ByRef pAnnotation As Annotation, pColor As Color)
|
||||||
ApplyAnnotationStyle(pAnnotation, pColor, pIsNewAnnotation:=False)
|
ApplyAnnotationStyle(pAnnotation, pColor, pIsNewAnnotation:=False)
|
||||||
End Sub
|
End Sub
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user