div. Änderungen, etc.
This commit is contained in:
@@ -121,13 +121,15 @@ Public Class cTimasAPI
|
||||
rest.AddQueryParam("format", datetimeformat)
|
||||
|
||||
If timeStamp_deadline <> "" AndAlso IsDate(timeStamp_deadline) Then
|
||||
rest.AddQueryParam("stamp", CDate(timeStamp_deadline).ToString("yyyy-MM-dd"))
|
||||
rest.IdleTimeoutMs = 300000
|
||||
rest.AddQueryParam("stamp", CDate(timeStamp_deadline).ToString("dd.MM.yyyy"))
|
||||
rest.IdleTimeoutMs = 60000
|
||||
Else
|
||||
rest.IdleTimeoutMs = 30000 'defualt
|
||||
|
||||
End If
|
||||
|
||||
Dim sw = Stopwatch.StartNew()
|
||||
|
||||
Dim responseJson As String = rest.FullRequestNoBody("GET", "/rest/web-api/employees/" & maid & "/balance")
|
||||
If (rest.LastMethodSuccess <> True) Then
|
||||
Debug.WriteLine(rest.LastErrorText)
|
||||
@@ -135,6 +137,10 @@ Public Class cTimasAPI
|
||||
|
||||
Return timesaldo
|
||||
End If
|
||||
sw.Stop()
|
||||
Debug.WriteLine($"Request dauerte {sw.ElapsedMilliseconds} ms")
|
||||
Debug.WriteLine(rest.LastErrorText)
|
||||
|
||||
|
||||
If (rest.ResponseStatusCode <> 200) Then
|
||||
Debug.WriteLine(rest.ResponseHeader)
|
||||
@@ -1059,7 +1065,7 @@ Public Class cTimasAPI
|
||||
dt.Columns.Add("Geschlecht", GetType(String))
|
||||
dt.Columns.Add("Ausweis-Nr", GetType(Integer))
|
||||
dt.Columns.Add("Info", GetType(String))
|
||||
dt.Columns.Add("Mandant", GetType(String))
|
||||
'dt.Columns.Add("Mandant", GetType(String))
|
||||
End If
|
||||
dt.Clear()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user