VAVISO LKW-Prüfung, CBAM-Filter, etc.
This commit is contained in:
@@ -747,29 +747,43 @@ Public Class frmEintragAviso
|
||||
End If
|
||||
End If
|
||||
|
||||
Dim EintragMehrfach As Boolean = False
|
||||
|
||||
If Neuanlage Then
|
||||
'jetzt eine Prüfung, ob dieser LKW bereits vor kurzem erfasst wurde
|
||||
Dim hLKWCheck2 As String = AvisoDAL.Suche_LKWStatus(txtLKW_Nr.Text.Trim.Replace(" ", "").Replace("-", ""))
|
||||
If hLKWCheck2 <> "" Then
|
||||
Dim antwort As MsgBoxResult = MsgBox(hLKWCheck2 & vbCrLf & vbCrLf & "Wollen Sie den Eintrag trotzdem speichern?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, MsgBoxStyle),
|
||||
"Aviso-Eintrag")
|
||||
If antwort = vbNo Then
|
||||
Exit Sub
|
||||
End If
|
||||
End If
|
||||
|
||||
If hLKWCheck2 = "" Then
|
||||
'jetzt eine Prüfung, ob dieser LKW bereits vor kurzem erfasst wurde
|
||||
Dim hLKWCheck As String = AvisoDAL.Suche_LKW(txtLKW_Nr.Text.Trim.Replace(" ", "").Replace("-", ""))
|
||||
If hLKWCheck <> "" Then
|
||||
Dim antwort As MsgBoxResult = MsgBox(hLKWCheck & vbCrLf & vbCrLf & "Wollen Sie den Eintrag trotzdem speichern?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, MsgBoxStyle),
|
||||
"Aviso-Eintrag")
|
||||
Dim ListOfLKWNr = VERAG_PROG_ALLGEMEIN.cProgramFunctions.checkLKWNr(txtLKW_Nr.Text.Trim.Replace(" ", "").Replace("-", ""))
|
||||
|
||||
|
||||
|
||||
For Each LKWNr In ListOfLKWNr
|
||||
|
||||
Dim hLKWCheck2 As String = AvisoDAL.Suche_LKWStatus(LKWNr)
|
||||
If hLKWCheck2 <> "" Then
|
||||
Dim antwort As MsgBoxResult = MsgBox(hLKWCheck2 & vbCrLf & vbCrLf & "Wollen Sie den Eintrag trotzdem speichern?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, MsgBoxStyle),
|
||||
"Aviso-Eintrag")
|
||||
If antwort = vbNo Then
|
||||
Exit Sub
|
||||
Else
|
||||
EintragMehrfach = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
If hLKWCheck2 = "" Then
|
||||
'jetzt eine Prüfung, ob dieser LKW bereits vor kurzem erfasst wurde
|
||||
Dim hLKWCheck As String = AvisoDAL.Suche_LKW(LKWNr)
|
||||
If hLKWCheck <> "" Then
|
||||
Dim antwort As MsgBoxResult = MsgBox(hLKWCheck & vbCrLf & vbCrLf & "Wollen Sie den Eintrag trotzdem speichern?", CType(MsgBoxStyle.YesNo + MsgBoxStyle.Exclamation, MsgBoxStyle),
|
||||
"Aviso-Eintrag")
|
||||
If antwort = vbNo Then
|
||||
Exit Sub
|
||||
Else
|
||||
EintragMehrfach = True
|
||||
End If
|
||||
End If
|
||||
End If
|
||||
|
||||
Next
|
||||
|
||||
End If
|
||||
|
||||
@@ -894,6 +908,7 @@ Public Class frmEintragAviso
|
||||
' myAviso.Auftraggeber_KdNr = IIf(kdAvisierer.KdNr_value > 0, kdAvisierer.KdNr_value, "")
|
||||
|
||||
myAviso.Handling = cbxHandling.Checked
|
||||
myAviso.EintragMehrfach = EintragMehrfach
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user