ATEZ -> umgebaut
This commit is contained in:
@@ -37,7 +37,6 @@ Public Class cATEZ_NCTS_DATA
|
|||||||
Public Property json As String
|
Public Property json As String
|
||||||
Public Property dakosy_ref As String
|
Public Property dakosy_ref As String
|
||||||
Public Property selectedDocuments As String
|
Public Property selectedDocuments As String
|
||||||
|
|
||||||
Public Property fehlerbeschreibung As String
|
Public Property fehlerbeschreibung As String
|
||||||
|
|
||||||
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
|
Dim SQL As New VERAG_PROG_ALLGEMEIN.SQL
|
||||||
@@ -570,7 +569,7 @@ Public Class cATEZ_NCTS_IN
|
|||||||
|
|
||||||
Dim sbRequestBody As New Chilkat.StringBuilder
|
Dim sbRequestBody As New Chilkat.StringBuilder
|
||||||
jsonData.EmitSb(sbRequestBody)
|
jsonData.EmitSb(sbRequestBody)
|
||||||
Debug.WriteLine(sbRequestBody)
|
'Debug.WriteLine(sbRequestBody)
|
||||||
|
|
||||||
Dim sbResponseBody As New Chilkat.StringBuilder
|
Dim sbResponseBody As New Chilkat.StringBuilder
|
||||||
success = rest.FullRequestSb("POST", "/api/integrations/verag", sbRequestBody, sbResponseBody)
|
success = rest.FullRequestSb("POST", "/api/integrations/verag", sbRequestBody, sbResponseBody)
|
||||||
@@ -582,8 +581,18 @@ Public Class cATEZ_NCTS_IN
|
|||||||
|
|
||||||
Else
|
Else
|
||||||
If (rest.ResponseStatusCode <> 200) Then
|
If (rest.ResponseStatusCode <> 200) Then
|
||||||
failureDesc = rest.ResponseStatusCode & "-" & rest.ResponseStatusText
|
If rest.ResponseStatusCode = 500 Then
|
||||||
Return failureDesc
|
Dim jsonResultFailure As New Chilkat.JsonObject
|
||||||
|
jsonResultFailure.LoadSb(sbResponseBody)
|
||||||
|
jsonResultFailure.Emit()
|
||||||
|
failureDesc = jsonResultFailure.StringOf("code") & "-" & jsonResultFailure.StringOf("message")
|
||||||
|
Return failureDesc
|
||||||
|
Else
|
||||||
|
|
||||||
|
failureDesc = rest.ResponseStatusCode & "-" & rest.ResponseStatusText
|
||||||
|
Return failureDesc
|
||||||
|
End If
|
||||||
|
|
||||||
Else
|
Else
|
||||||
|
|
||||||
Dim jsonResult As New Chilkat.JsonObject
|
Dim jsonResult As New Chilkat.JsonObject
|
||||||
@@ -601,7 +610,7 @@ Public Class cATEZ_NCTS_IN
|
|||||||
End Try
|
End Try
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Shared Function setJson(ncts As cATEZ_NCTS_DATA, dgv As DataGridView)
|
Shared Function setJson(ncts As cATEZ_NCTS_DATA)
|
||||||
|
|
||||||
|
|
||||||
Dim success As Boolean
|
Dim success As Boolean
|
||||||
@@ -646,6 +655,15 @@ Public Class cATEZ_NCTS_IN
|
|||||||
|
|
||||||
ncts.json = jsonData.Emit()
|
ncts.json = jsonData.Emit()
|
||||||
|
|
||||||
|
|
||||||
|
Return success
|
||||||
|
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function setJsonPDF(ncts As cATEZ_NCTS_DATA, dgv As DataGridView)
|
||||||
|
|
||||||
|
Dim success As Boolean
|
||||||
|
Dim i As Integer = 0
|
||||||
For Each r As DataGridViewRow In dgv.Rows
|
For Each r As DataGridViewRow In dgv.Rows
|
||||||
Dim isSelected = IIf(DBNull.Value Is r.Cells("anh_selekt").Value, False, r.Cells("anh_selekt").Value)
|
Dim isSelected = IIf(DBNull.Value Is r.Cells("anh_selekt").Value, False, r.Cells("anh_selekt").Value)
|
||||||
i = 0
|
i = 0
|
||||||
@@ -659,11 +677,9 @@ Public Class cATEZ_NCTS_IN
|
|||||||
success = jsonData.UpdateString("Attachments.Attachment[" & i & "].base64BinaryStream", bd.GetEncoded("base64"))
|
success = jsonData.UpdateString("Attachments.Attachment[" & i & "].base64BinaryStream", bd.GetEncoded("base64"))
|
||||||
i = i + 1
|
i = i + 1
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Next
|
Next
|
||||||
jsonData.Emit()
|
jsonData.Emit()
|
||||||
|
|
||||||
|
|
||||||
Return success
|
Return success
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
|
|||||||
Reference in New Issue
Block a user