MS Sichtbeleg Jobs
This commit is contained in:
parent
0261d237b6
commit
1d31298d8d
@ -30,5 +30,5 @@ Imports System.Runtime.InteropServices
|
|||||||
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
' Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
|
||||||
' übernehmen, indem Sie "*" eingeben:
|
' übernehmen, indem Sie "*" eingeben:
|
||||||
|
|
||||||
<Assembly: AssemblyVersion("2.9.3.0")>
|
<Assembly: AssemblyVersion("2.9.4.0")>
|
||||||
<Assembly: AssemblyFileVersion("2.9.3.0")>
|
<Assembly: AssemblyFileVersion("2.9.4.0")>
|
||||||
|
|||||||
@ -87,6 +87,7 @@ Public Class XRechnungViewDocument
|
|||||||
Dim oIndex As Integer = 0
|
Dim oIndex As Integer = 0
|
||||||
Dim oYPlus As Integer = 0
|
Dim oYPlus As Integer = 0
|
||||||
Dim oCreateTextBox As Boolean = False
|
Dim oCreateTextBox As Boolean = False
|
||||||
|
Dim oPosRowY As Integer = 0
|
||||||
For Each oRow As DataRow In pDTItemValues.Rows
|
For Each oRow As DataRow In pDTItemValues.Rows
|
||||||
Dim Y_eq_lastrow As Boolean = CBool(oRow.Item("Y_eq_lastrow"))
|
Dim Y_eq_lastrow As Boolean = CBool(oRow.Item("Y_eq_lastrow"))
|
||||||
Dim oRowCaption As String = oRow.Item("Row_Caption")
|
Dim oRowCaption As String = oRow.Item("Row_Caption")
|
||||||
@ -150,6 +151,9 @@ Public Class XRechnungViewDocument
|
|||||||
End If
|
End If
|
||||||
|
|
||||||
If Not oAREACaption = String.Empty Then
|
If Not oAREACaption = String.Empty Then
|
||||||
|
If oArea = "AMOUNT" Then
|
||||||
|
Dim oY = yPosition
|
||||||
|
End If
|
||||||
'erste Area-Linie
|
'erste Area-Linie
|
||||||
yPosition += 5
|
yPosition += 5
|
||||||
MyGDPicturePDF.DrawLine(10, yPosition, oWidthLine, yPosition)
|
MyGDPicturePDF.DrawLine(10, yPosition, oWidthLine, yPosition)
|
||||||
@ -186,20 +190,12 @@ Public Class XRechnungViewDocument
|
|||||||
oIsPosition = True
|
oIsPosition = True
|
||||||
If oItemSPECNAME = "INVOICE_POSITION_AMOUNT" Then
|
If oItemSPECNAME = "INVOICE_POSITION_AMOUNT" Then
|
||||||
oPosCount += 1
|
oPosCount += 1
|
||||||
'oPosTerm = $"{oPosCount}. {oItemValue} * "
|
|
||||||
'oItemValue = oPosTerm
|
|
||||||
'Tabellendarstellung
|
|
||||||
oPosTerm = ""
|
oPosTerm = ""
|
||||||
|
oPosRowY = yPosition
|
||||||
MyGDPicturePDF.DrawText(fontResName, 10, yPosition, oPosCount)
|
MyGDPicturePDF.DrawText(fontResName, 10, yPosition, oPosCount)
|
||||||
'
|
|
||||||
'Dim otextBoxYPos As Integer = yPosition - 3.5
|
|
||||||
'MyGDPicturePDF.DrawTextBox(fontResName, 10, otextBoxYPos, 16, YCoo_TextBoxPlus5(otextBoxYPos),
|
|
||||||
' TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
|
||||||
' oPosCount)
|
|
||||||
MyGDPicturePDF.DrawText(fontResName, 19, yPosition, oItemValue)
|
MyGDPicturePDF.DrawText(fontResName, 19, yPosition, oItemValue)
|
||||||
'Tabellendarstellung Ende
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
' yPosition -= 5
|
|
||||||
End If
|
End If
|
||||||
ElseIf oArea = "TAXPOS" Then
|
ElseIf oArea = "TAXPOS" Then
|
||||||
oIsPosition = True
|
oIsPosition = True
|
||||||
@ -219,17 +215,13 @@ Public Class XRechnungViewDocument
|
|||||||
If oArea = "POSITION" Then
|
If oArea = "POSITION" Then
|
||||||
If oItemSPECNAME = "INVOICE_POSITION_AMOUNT" Then
|
If oItemSPECNAME = "INVOICE_POSITION_AMOUNT" Then
|
||||||
oPosCount += 1
|
oPosCount += 1
|
||||||
oYPlus = 0
|
|
||||||
'Tabellendarstellung
|
|
||||||
yPosition += 5
|
yPosition += 5
|
||||||
|
oYPlus = 0
|
||||||
|
|
||||||
oPosTerm = ""
|
oPosTerm = ""
|
||||||
MyGDPicturePDF.DrawText(fontResName, 10, yPosition, oPosCount)
|
MyGDPicturePDF.DrawText(fontResName, 10, yPosition, oPosCount)
|
||||||
'otextBoxYPos = yPosition - 3.5
|
oPosRowY = yPosition
|
||||||
'MyGDPicturePDF.DrawTextBox(fontResName, 10, otextBoxYPos, 16, YCoo_TextBoxPlus5(otextBoxYPos),
|
|
||||||
' TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
|
||||||
' oPosCount)
|
|
||||||
MyGDPicturePDF.DrawText(fontResName, 19, yPosition, oItemValue)
|
MyGDPicturePDF.DrawText(fontResName, 19, yPosition, oItemValue)
|
||||||
'Tabellendarstellung Ende
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_UNIT_TYPE" Then
|
ElseIf oItemSPECNAME = "INVOICE_POSITION_UNIT_TYPE" Then
|
||||||
oYPlus = 0
|
oYPlus = 0
|
||||||
@ -237,11 +229,11 @@ Public Class XRechnungViewDocument
|
|||||||
MyGDPicturePDF.DrawText(fontResName, 35, yPosition, oUnit)
|
MyGDPicturePDF.DrawText(fontResName, 35, yPosition, oUnit)
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_ARTICLE" Then
|
ElseIf oItemSPECNAME = "INVOICE_POSITION_ARTICLE" Then
|
||||||
'Tabellendarstellung
|
|
||||||
oYPlus = 0
|
oYPlus = 0
|
||||||
oPosDesc = ""
|
oPosDesc = ""
|
||||||
oPosDesc = oItemValue
|
oPosDesc = oItemValue
|
||||||
Dim oYDyn As Integer = yPosition - 5
|
Dim oYDyn As Integer = yPosition - 5
|
||||||
|
|
||||||
Dim oPartsNL As List(Of String) = StringFunctions.SplitTextByNewLine(oItemValue)
|
Dim oPartsNL As List(Of String) = StringFunctions.SplitTextByNewLine(oItemValue)
|
||||||
For Each olinepart As String In oPartsNL
|
For Each olinepart As String In oPartsNL
|
||||||
Dim oParts As List(Of String) = StringFunctions.SplitText_Length(olinepart, 67)
|
Dim oParts As List(Of String) = StringFunctions.SplitText_Length(olinepart, 67)
|
||||||
@ -252,14 +244,15 @@ Public Class XRechnungViewDocument
|
|||||||
MyGDPicturePDF.DrawText(fontResName, 50, oYDyn, part)
|
MyGDPicturePDF.DrawText(fontResName, 50, oYDyn, part)
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
'Tabellendarstellung Ende
|
yPosition = oYDyn
|
||||||
' oPosTerm += $" {oItemValue}"
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_NOTE" Then
|
ElseIf oItemSPECNAME = "INVOICE_POSITION_ARTICLE_DESCRIPTION" Or
|
||||||
'Tabellendarstellung
|
oItemSPECNAME = "INVOICE_POSITION_NOTE" Then
|
||||||
Dim cleanedText As String = RemoveNewlinesAndTabs(oItemValue)
|
_logger.Debug($"oItemSPECNAME: {oItemSPECNAME}")
|
||||||
Dim oParts As List(Of String) = StringFunctions.SplitText_Length(cleanedText, 70)
|
|
||||||
' Durchlaufen der einzelnen Teile in einer Schleife
|
'Dim cleanedText As String = RemoveNewlinesAndTabs(oItemValue)
|
||||||
|
'Dim oParts As List(Of String) = StringFunctions.SplitText_Length(cleanedText, 70)
|
||||||
|
'' Durchlaufen der einzelnen Teile in einer Schleife
|
||||||
Dim oYDyn As Integer = yPosition
|
Dim oYDyn As Integer = yPosition
|
||||||
Dim oPartsNL As List(Of String) = StringFunctions.SplitTextByNewLine(oItemValue)
|
Dim oPartsNL As List(Of String) = StringFunctions.SplitTextByNewLine(oItemValue)
|
||||||
For Each olinepart As String In oPartsNL
|
For Each olinepart As String In oPartsNL
|
||||||
@ -271,37 +264,17 @@ Public Class XRechnungViewDocument
|
|||||||
MyGDPicturePDF.DrawText(fontResName, 50, oYDyn, part)
|
MyGDPicturePDF.DrawText(fontResName, 50, oYDyn, part)
|
||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
|
yPosition = oYDyn
|
||||||
|
|
||||||
'oPosTerm += $" {oItemValue}"
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_ARTICLE_DESCRIPTION" Then
|
|
||||||
'Tabellendarstellung
|
|
||||||
Dim cleanedText As String = RemoveNewlinesAndTabs(oItemValue)
|
|
||||||
Dim oParts As List(Of String) = StringFunctions.SplitText_Length(cleanedText, 70)
|
|
||||||
' Durchlaufen der einzelnen Teile in einer Schleife
|
|
||||||
Dim oYDyn As Integer = yPosition
|
|
||||||
Dim oPartsNL As List(Of String) = StringFunctions.SplitTextByNewLine(oItemValue)
|
|
||||||
For Each olinepart As String In oPartsNL
|
|
||||||
Dim oPartsPN As List(Of String) = StringFunctions.SplitText_Length(olinepart, 70)
|
|
||||||
' Durchlaufen der einzelnen Teile in einer Schleife
|
|
||||||
For Each part As String In oPartsPN
|
|
||||||
oYDyn += 5
|
|
||||||
oYPlus += 5
|
|
||||||
MyGDPicturePDF.DrawText(fontResName, 50, oYDyn, part)
|
|
||||||
Next
|
|
||||||
Next
|
|
||||||
|
|
||||||
'oPosTerm += $" {oItemValue}"
|
|
||||||
oDisplay = False
|
|
||||||
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_TAX_RATE" Or oItemSPECNAME = "INVOICE_TAXPOS_RATE" Then
|
ElseIf oItemSPECNAME = "INVOICE_TAXPOS_TAX_RATE" Or oItemSPECNAME = "INVOICE_TAXPOS_RATE" Then
|
||||||
'Tabellendarstellung
|
|
||||||
MyGDPicturePDF.DrawText(fontResName, 164, yPosition, $"{oItemValue} %")
|
MyGDPicturePDF.DrawText(fontResName, 164, oPosRowY, $"{oItemValue} %")
|
||||||
'Tabellendarstellung ENDE
|
|
||||||
' oPosTerm += $" - {oItemValue} %"
|
|
||||||
oDisplay = False
|
oDisplay = False
|
||||||
ElseIf oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" Then
|
ElseIf oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" Then
|
||||||
'Tabellendarstellung
|
|
||||||
Dim oYPos = yPosition - 3.5
|
Dim oYPos = oPosRowY - 3.5
|
||||||
Dim oBetrag As Decimal = oItemValue
|
Dim oBetrag As Decimal = oItemValue
|
||||||
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
Dim oFormatiert As String = oBetrag.ToString("N2", New Globalization.CultureInfo("de-DE"))
|
||||||
|
|
||||||
@ -309,9 +282,7 @@ Public Class XRechnungViewDocument
|
|||||||
MyGDPicturePDF.DrawTextBox(fontResName, 177, oYPos, 198, YCoo_TextBoxPlus5(oYPos),
|
MyGDPicturePDF.DrawTextBox(fontResName, 177, oYPos, 198, YCoo_TextBoxPlus5(oYPos),
|
||||||
TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
TextAlignment.TextAlignmentFar, TextAlignment.TextAlignmentNear,
|
||||||
TAXTERM)
|
TAXTERM)
|
||||||
' MyGDPicturePDF.DrawText(fontResName, 180, yPosition, $"{oItemValue} {oCurrencySymbol}")
|
oDisplay = False
|
||||||
|
|
||||||
'Tabellendarstellung Ende
|
|
||||||
End If
|
End If
|
||||||
oItemValue = oPosTerm
|
oItemValue = oPosTerm
|
||||||
ElseIf oArea = "HEAD" Then
|
ElseIf oArea = "HEAD" Then
|
||||||
@ -391,12 +362,12 @@ Public Class XRechnungViewDocument
|
|||||||
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Else
|
'Else
|
||||||
'Tabellendarstellung
|
' 'Tabellendarstellung
|
||||||
If oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" And oYPlus > 0 Then
|
' If oItemSPECNAME = "INVOICE_POSITION_TAX_AMOUNT" And oYPlus > 0 Then
|
||||||
yPosition += oYPlus - 5
|
' yPosition += oYPlus - 5
|
||||||
End If
|
' End If
|
||||||
'Tabellendarstellung Ende
|
' 'Tabellendarstellung Ende
|
||||||
End If
|
End If
|
||||||
oIndex += 1
|
oIndex += 1
|
||||||
Next
|
Next
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user