addin
This commit is contained in:
@@ -93,7 +93,8 @@ Public Class frmAvisoAnfuegen
|
||||
|
||||
Dim sql = "SELECT TOP 10 AvisoID, Grenzstelle as Grenze, Datum, LKW_Nr,Auftraggeber,Frächter,Firma FROM Aviso left join tblSendungen on tblSnd_AvisoID=AvisoID WHERE status <>2 " & firma & " "
|
||||
If IsDate(txtSrchDat.Text) Then sql &= " AND Datum > '" & CDate(txtSrchDat.Text).ToShortDateString & "'"
|
||||
If txtLKWNr.Text <> "" Then sql &= " AND (LKW_Nr LIKE '%" & txtLKWNr.Text & "%' OR AvisoID ='" & txtLKWNr.Text & "')"
|
||||
If txtLKWNr.Text <> "" Then sql &= " AND (LKW_Nr LIKE '%" & txtLKWNr.Text & "%'" & IIf(IsNumeric(txtLKWNr.Text), " OR AvisoID ='" & txtLKWNr.Text & "')", ")")
|
||||
|
||||
|
||||
|
||||
If cboFiliale._value <> "" Then sql &= " AND FilialenNr LIKE '%" & cboFiliale._value & "%'"
|
||||
@@ -104,8 +105,8 @@ Public Class frmAvisoAnfuegen
|
||||
.LOAD()
|
||||
|
||||
'.Columns("AvisoId").Visible = False
|
||||
.Columns("AvisoId").HeaderText = "LKW-ID"
|
||||
.Columns("AvisoId").Width = 60
|
||||
.Columns("AvisoID").HeaderText = "LKW-ID"
|
||||
.Columns("AvisoID").Width = 60
|
||||
.AutoSizeColumnsMode = Windows.Forms.DataGridViewAutoSizeColumnsMode.Fill
|
||||
.Columns("Grenze").Width = 40
|
||||
.Columns("Datum").Width = 80
|
||||
@@ -117,7 +118,7 @@ Public Class frmAvisoAnfuegen
|
||||
End With
|
||||
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message & ex.StackTrace)
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
|
||||
UseWaitCursor = False
|
||||
@@ -167,7 +168,7 @@ Public Class frmAvisoAnfuegen
|
||||
End If
|
||||
End With
|
||||
Catch ex As Exception
|
||||
MsgBox(ex.Message & ex.StackTrace)
|
||||
VERAG_PROG_ALLGEMEIN.cErrorHandler.ERR(ex.Message, ex.StackTrace, System.Reflection.MethodInfo.GetCurrentMethod.Name)
|
||||
End Try
|
||||
UseWaitCursor = False
|
||||
End Sub
|
||||
|
||||
Reference in New Issue
Block a user