Änderungen Datenabfrage

This commit is contained in:
ja
2021-11-03 13:14:20 +01:00
parent 2a4d657856
commit be99a1e707

View File

@@ -319,15 +319,15 @@ Partial Class Customers_Default3
End Try End Try
Else Else
Try Try
datevon = Date.Parse(pickdate1.Text) datevon = CDate(pickdate1.Text)
datebis = Date.Parse(pickdate2.Text) datebis = CDate(pickdate2.Text)
Catch ex As Exception Catch ex As Exception
VERAG_VARIABLES.seterrorcount(14) VERAG_VARIABLES.seterrorcount(14)
lbl_status.Text = VERAG_VARIABLES.geterrornumb + "Error in date time conversions" lbl_status.Text = VERAG_VARIABLES.geterrornumb + "Error in date time conversions"
End Try End Try
End If End If
If String.IsNullOrEmpty(Kdnrtext) = False And String.IsNullOrEmpty(datevon.ToShortDateString) = False AndAlso String.IsNullOrEmpty(datebis.ToShortDateString) = False Then If String.IsNullOrEmpty(Kdnrtext) = False AndAlso String.IsNullOrEmpty(datevon.ToShortDateString) = False AndAlso String.IsNullOrEmpty(datebis.ToShortDateString) = False Then
dt = VERAG_PROG_ALLGEMEIN.cRechnungsausgang.GET_LIST_WEB(Integer.Parse(Kdnrtext), datevon, datebis, Integer.Parse(reNr), Absender, Empfaenger, LKWNR, KDNAFNR) dt = VERAG_PROG_ALLGEMEIN.cRechnungsausgang.GET_LIST_WEB(Integer.Parse(Kdnrtext), datevon, datebis, Integer.Parse(reNr), Absender, Empfaenger, LKWNR, KDNAFNR)
Else Else
valreq_pickdate1.Validate() valreq_pickdate1.Validate()
@@ -338,7 +338,7 @@ Partial Class Customers_Default3
End If End If
End If End If
If dt IsNot Nothing AndAlso Not dt.Count = 0 Then If Not dt.Count = 0 Then
Dim i As Integer = 0 Dim i As Integer = 0
For Each d In dt For Each d In dt
Dim tr As TableRow = New TableRow Dim tr As TableRow = New TableRow