Fiskalubersicht und Creditsafe-Verbesserungen
This commit is contained in:
@@ -331,32 +331,45 @@ Public Class cCreditSafeAPI
|
||||
'},
|
||||
|
||||
|
||||
|
||||
Dim reportObj As Chilkat.JsonObject = json.ObjectOf("report")
|
||||
If (json.LastMethodSuccess = True) Then
|
||||
|
||||
If company.country = "DE" Then ' nur bei DE ausführen!
|
||||
Dim companyAddInformObj As Chilkat.JsonObject = reportObj.ObjectOf("additionalInformation")
|
||||
If (reportObj.LastMethodSuccess = True) And companyAddInformObj IsNot Nothing Then
|
||||
Dim companyMiscObj As Chilkat.JsonObject = companyAddInformObj.ObjectOf("misc")
|
||||
company.csBusinessPurpose = companyMiscObj.StringOf("businessPurpose")
|
||||
If (companyAddInformObj.LastMethodSuccess = True) Then
|
||||
Dim deCurrentRatingObj As Chilkat.JsonObject = companyMiscObj.ObjectOf("deCurrentRating")
|
||||
If (companyAddInformObj.LastMethodSuccess = True) And deCurrentRatingObj IsNot Nothing Then
|
||||
If (deCurrentRatingObj.LastMethodSuccess = True) Then
|
||||
company.csIndex = deCurrentRatingObj.StringOf("value")
|
||||
Else
|
||||
Debug.WriteLine("deCurrentRatingObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("companyMiscObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("companyAddInformObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("reportObj object not found.")
|
||||
'If company.country = "DE" Then ' nur bei DE ausführen!
|
||||
Dim companyAddInformObj As Chilkat.JsonObject = reportObj.ObjectOf("additionalInformation")
|
||||
|
||||
|
||||
If (reportObj.LastMethodSuccess = True) And companyAddInformObj IsNot Nothing Then
|
||||
|
||||
Dim turnoverArray As Chilkat.JsonArray = companyAddInformObj.ArrayOf("turnoverRanges")
|
||||
If (companyAddInformObj.LastMethodSuccess = True) And turnoverArray IsNot Nothing Then
|
||||
Dim turnover As Chilkat.JsonObject = turnoverArray.ObjectAt(0)
|
||||
company.csTurnover = turnover.StringOf("range") & " (" & turnover.StringOf("year") & ")"
|
||||
Else
|
||||
Debug.WriteLine("otherInformationObject object not found.")
|
||||
End If
|
||||
End If
|
||||
|
||||
|
||||
If (reportObj.LastMethodSuccess = True) And companyAddInformObj IsNot Nothing Then
|
||||
Dim companyMiscObj As Chilkat.JsonObject = companyAddInformObj.ObjectOf("misc")
|
||||
company.csBusinessPurpose = companyMiscObj.StringOf("businessPurpose")
|
||||
If (companyAddInformObj.LastMethodSuccess = True) Then
|
||||
Dim deCurrentRatingObj As Chilkat.JsonObject = companyMiscObj.ObjectOf("deCurrentRating")
|
||||
If (companyAddInformObj.LastMethodSuccess = True) And deCurrentRatingObj IsNot Nothing Then
|
||||
If (deCurrentRatingObj.LastMethodSuccess = True) Then
|
||||
company.csIndex = deCurrentRatingObj.StringOf("value")
|
||||
Else
|
||||
Debug.WriteLine("deCurrentRatingObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("companyMiscObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("companyAddInformObj object not found.")
|
||||
End If
|
||||
Debug.WriteLine("reportObj object not found.")
|
||||
End If
|
||||
'End If
|
||||
|
||||
|
||||
Dim companyIDObj As Chilkat.JsonObject = reportObj.ObjectOf("companyIdentification")
|
||||
If (reportObj.LastMethodSuccess = True) And companyIDObj IsNot Nothing Then
|
||||
|
||||
@@ -594,13 +607,15 @@ Public Class cCreditSafeAPI
|
||||
Public Property csShareholder As String
|
||||
Public Property csCEO As String
|
||||
|
||||
Public Property csTurnover As String
|
||||
|
||||
Public Property language As String
|
||||
|
||||
Public Property csBank As String
|
||||
|
||||
|
||||
|
||||
Public Sub New(_language As String, _name As String, _vatNo As String, _country As String, _creditsafeNo As String, _creditSafeId As String, _lastChecked As Date, _street As String, _postalCode As String, _city As String, _sumEmployees As String, _businessPurpose As String, _shareholder As String, _ceo As String, _bank As String)
|
||||
Public Sub New(_language As String, _name As String, _vatNo As String, _country As String, _creditsafeNo As String, _creditSafeId As String, _lastChecked As Date, _street As String, _postalCode As String, _city As String, _sumEmployees As String, _businessPurpose As String, _shareholder As String, _ceo As String, _bank As String, _csTurnover As String)
|
||||
creditSafeId = _creditSafeId
|
||||
name = _name
|
||||
vatNo = _vatNo
|
||||
@@ -616,6 +631,7 @@ Public Class cCreditSafeAPI
|
||||
csCEO = _ceo
|
||||
csBank = _bank
|
||||
language = _language
|
||||
csTurnover = _csTurnover
|
||||
End Sub
|
||||
|
||||
Public Sub New()
|
||||
|
||||
Reference in New Issue
Block a user