ustva, etc.
This commit is contained in:
@@ -278,6 +278,18 @@ Public Class cUSTVAntrag
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
Public Function getMaxPosinterneNr() As Integer
|
||||
Try
|
||||
Dim maxPosNr = -1
|
||||
|
||||
Return SQL.getValueTxtBySql("SELECT isnull(max([UStVPo_interneNr]),0)+1 FROM [tblUStVPositionen] where UStVAn_ID='" & UStVAn_ID & "'", "FMZOLL",,, "1")
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
|
||||
End Try
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
Public Function getMaxPosNrErst() As Integer
|
||||
Try
|
||||
Dim maxPosNr = -1
|
||||
@@ -290,6 +302,18 @@ Public Class cUSTVAntrag
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
Public Function getMaxinternePosNrErst() As Integer
|
||||
Try
|
||||
Dim maxPosNr = -1
|
||||
|
||||
Return SQL.getValueTxtBySql("SELECT isnull(max([UStVEr_interneNr]),0)+1 FROM [tblUStVErstattung] where UStVAn_ID='" & UStVAn_ID & "'", "FMZOLL",,, "1")
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
|
||||
End Try
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Public Function DELETE() As Boolean
|
||||
@@ -323,6 +347,8 @@ Public Class cUStVPositionen
|
||||
Property UStVPo_LeistenderId As Integer '
|
||||
Property UStVPo_VZ As Boolean = False
|
||||
Property UStVPo_VZ_RKID As Object = Nothing '
|
||||
Property UStVPo_interneNr As Integer
|
||||
|
||||
|
||||
Dim SQL As New SQL
|
||||
|
||||
@@ -439,6 +465,7 @@ Public Class cUStVPositionen
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVPo_LeistenderId", UStVPo_LeistenderId))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVPo_VZ", UStVPo_VZ))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVPo_VZ_RKID", UStVPo_VZ_RKID))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVPo_interneNr", UStVPo_interneNr))
|
||||
Return list
|
||||
End Function
|
||||
|
||||
@@ -496,6 +523,7 @@ Public Class cUStVErstattungPositionen
|
||||
Property UStVEr_Sachbearbeiter As Object = Nothing
|
||||
Property UStVEr_Zeitstempel As Object = Nothing
|
||||
Property UStVEr_daId As Object = Nothing
|
||||
Property UStVEr_interneNr As Integer
|
||||
|
||||
Public hasEntry = False
|
||||
|
||||
@@ -521,6 +549,7 @@ Public Class cUStVErstattungPositionen
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVEr_Sachbearbeiter", UStVEr_Sachbearbeiter))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVEr_Zeitstempel", UStVEr_Zeitstempel))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVEr_daId", UStVEr_daId))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("UStVEr_interneNr", UStVEr_interneNr))
|
||||
Return list
|
||||
End Function
|
||||
|
||||
@@ -646,6 +675,18 @@ Public Class cUStVErstattungPositionen
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
Public Function getMaxInternePosNr() As Integer
|
||||
Try
|
||||
Dim maxPosNr = -1
|
||||
|
||||
Return SQL.getValueTxtBySql("SELECT isnull(max([UStVEr_interneNr]),0)+1 FROM [tblUStVErstattung] where UStVAn_ID='" & UStVAn_ID & "'", "FMZOLL",,, "1")
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
|
||||
End Try
|
||||
Return -1
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
Reference in New Issue
Block a user