Merge branch 'master' of https://verag.visualstudio.com/SDL/_git/SDL
This commit is contained in:
@@ -15,14 +15,14 @@ Public Class cGesamtsicherheitsPositionen
|
||||
Property gsp_abfertigungsNr As Object = Nothing
|
||||
Property gsp_ATCNr As Object = Nothing
|
||||
Property gsp_MRNNr As Object = Nothing
|
||||
|
||||
|
||||
Property gsp_erstellungsdatum As DateTime
|
||||
|
||||
Public hasEntry = False
|
||||
|
||||
Dim SQL As New SQL
|
||||
|
||||
Sub New(gsp_gspPosId)
|
||||
Sub New(gsp_gsId, gsp_gspPosId)
|
||||
Me.gsp_gsId = gsp_gsId
|
||||
Me.gsp_gspPosId = gsp_gspPosId
|
||||
LOAD()
|
||||
End Sub
|
||||
@@ -33,7 +33,7 @@ Public Class cGesamtsicherheitsPositionen
|
||||
|
||||
Function getParameterList() As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable)
|
||||
Dim list As New List(Of VERAG_PROG_ALLGEMEIN.SQLVariable)
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_gspPosId", gsp_gspPosId,, True))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_gspPosId", gsp_gspPosId))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_gsId", gsp_gsId))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_warenwert", gsp_warenwert))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_sicherheitsbetrag", gsp_sicherheitsbetrag))
|
||||
@@ -45,6 +45,8 @@ Public Class cGesamtsicherheitsPositionen
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_abfertigungsNr", gsp_abfertigungsNr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_ATCNr", gsp_ATCNr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_MRNNr", gsp_MRNNr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gsp_erstellungsdatum", gsp_erstellungsdatum))
|
||||
|
||||
|
||||
Return list
|
||||
End Function
|
||||
@@ -54,20 +56,20 @@ Public Class cGesamtsicherheitsPositionen
|
||||
Public Function SAVE() As Boolean
|
||||
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM [tblGesamtsicherheitsPositionen] WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId ) " &
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM tblGesamtsicherheitsPositionen WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId ) " &
|
||||
" BEGIN " & getUpdateCmd() & " END " &
|
||||
" Else " &
|
||||
" BEGIN " & getInsertCmd() & " END " &
|
||||
" commit tran "
|
||||
|
||||
Return SQL.doSQLVarList(sqlstr, "FMZOLL", , list)
|
||||
Return SQL.doSQLVarList(sqlstr, "AVISO", , list)
|
||||
End Function
|
||||
|
||||
Public Sub LOAD()
|
||||
Try
|
||||
hasEntry = False
|
||||
Using conn As SqlConnection = SQL.GetNewOpenConnectionFMZOLL()
|
||||
Using cmd As New SqlCommand("SELECT * FROM [tblGesamtsicherheitsPositionen] WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId ", conn)
|
||||
Using conn As SqlConnection = SQL.GetNewOpenConnectionAVISO()
|
||||
Using cmd As New SqlCommand("SELECT * FROM tblGesamtsicherheitsPositionen WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId ", conn)
|
||||
cmd.Parameters.AddWithValue("@gsp_gspPosId", gsp_gspPosId)
|
||||
cmd.Parameters.AddWithValue("@gsp_gsId", gsp_gsId)
|
||||
Dim dr = cmd.ExecuteReader()
|
||||
@@ -105,7 +107,7 @@ Public Class cGesamtsicherheitsPositionen
|
||||
End If
|
||||
Next
|
||||
str = str.Substring(0, str.Length - 1) 'wg. ','
|
||||
Return (" UPDATE [[tblGesamtsicherheitsPositionen]] SET " & str & " WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId")
|
||||
Return (" UPDATE [tblGesamtsicherheitsPositionen] SET " & str & " WHERE gsp_gspPosId=@gsp_gspPosId AND gsp_gsId=@gsp_gsId")
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox("Fehler in der Funktion '" & System.Reflection.MethodInfo.GetCurrentMethod.Name & "'" & vbNewLine & vbNewLine & ex.Message & vbNewLine & vbNewLine & ex.StackTrace)
|
||||
@@ -135,7 +137,9 @@ Public Class cGesamtsicherheitsPositionen
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Public Function Delete()
|
||||
SQL.doSQL("delete from [tblGesamtsicherheitsPositionen] where gsp_gsId = '" & gsp_gsId & "' AND gsp_gspPosId = '" & gsp_gspPosId & "' ", "AVISO")
|
||||
End Function
|
||||
|
||||
|
||||
End Class
|
||||
|
||||
@@ -334,7 +334,7 @@
|
||||
<Compile Include="Classes\cFirmen.vb" />
|
||||
<Compile Include="Classes\cFremdSpeditionenZuordnung.vb" />
|
||||
<Compile Include="Classes\cGelangensbestaetigung.vb" />
|
||||
<Compile Include="Classes\cGesamtssicherheitsPositionen.vb" />
|
||||
<Compile Include="Classes\cGesamtsicherheitsPositionen.vb" />
|
||||
<Compile Include="Classes\cGestellungsgarantien.vb" />
|
||||
<Compile Include="Classes\cGestellungsmitteilung.vb" />
|
||||
<Compile Include="Classes\cGrenzstelle.vb" />
|
||||
|
||||
@@ -18,7 +18,7 @@ Public Class cSicherheiten
|
||||
Property gs_freitext As String
|
||||
Property gs_filialenNr As Integer
|
||||
Property gs_abfertigungsnr As String
|
||||
Property gs_LKWID As String
|
||||
Property gs_LKWKZ As String
|
||||
Property gs_atr As String = ""
|
||||
Property gs_warenort As String
|
||||
Property gs_warenwertFix As Object
|
||||
@@ -54,7 +54,7 @@ Public Class cSicherheiten
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_freitext", gs_freitext))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_filialenNr", gs_filialenNr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_abfertigungsnr", gs_abfertigungsnr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_LKWID", gs_LKWID))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_LKWKZ", gs_LKWKZ))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_atr", gs_atr))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_warenort", gs_warenort))
|
||||
list.Add(New VERAG_PROG_ALLGEMEIN.SQLVariable("gs_warenwertFix", gs_warenwertFix))
|
||||
@@ -78,6 +78,21 @@ Public Class cSicherheiten
|
||||
Return SQL.doSQLVarList(sqlstr, "AVISO", , list)
|
||||
End Function
|
||||
|
||||
Public Function SAVEOBJECT() As Integer
|
||||
Dim list As List(Of VERAG_PROG_ALLGEMEIN.SQLVariable) = getParameterList()
|
||||
|
||||
Dim sqlstr = " BEGIN TRAN IF EXISTS(SELECT * FROM [tblGesamtsicherheit] WHERE gs_gsId=@gs_gsId) " &
|
||||
" BEGIN " & getUpdateCmd() & " END " &
|
||||
" Else " &
|
||||
" BEGIN " & getInsertCmd() & " END " &
|
||||
" commit tran "
|
||||
|
||||
gs_gsId = SQL.doSQLVarListID(gs_gsId, sqlstr, "AVISO", , list)
|
||||
Return gs_gsId
|
||||
End Function
|
||||
|
||||
|
||||
|
||||
Public Sub LOAD()
|
||||
Try
|
||||
hasEntry = False
|
||||
|
||||
Reference in New Issue
Block a user