mirror of
https://github.com/KeymonSoft/Guna_CuentaKilometros_2.git
synced 2026-04-22 05:30:25 +00:00
Se agregaron validaciones, se modificaron los campos de Ruta y Kms Inicial para que sean campos Numericos. Version 4.06.07
This commit is contained in:
@@ -225,6 +225,11 @@ Sub JobDone(Job As HttpJob)
|
||||
P_Color.Color = Colors.Red
|
||||
MsgboxAsync("No se encuentra Carta Porte", "AVISO")
|
||||
End If
|
||||
If PLACA_OK <> "OK" And OPERADOR_OK <> "OK" And CHECK_LIST <> "OK" And CARTAPORTE_OK <> "OK" Then
|
||||
P_Color.Visible = True
|
||||
P_Color.Color = Colors.Red
|
||||
MsgboxAsync("No se encuentran Placas, Operador, CheckList, CartaPorte", "AVISO")
|
||||
End If
|
||||
End If
|
||||
|
||||
Job.Release
|
||||
@@ -392,6 +397,10 @@ Private Sub b_guardar_Click
|
||||
If et_rutaReparto.Text = "" Then
|
||||
ValDato.Add("la ruta")
|
||||
End If
|
||||
|
||||
If et_kmsInicial.Text = "" Then
|
||||
ValDato.Add("el Kilometraje Inicial")
|
||||
End If
|
||||
|
||||
If ValDato.Size > 0 Then
|
||||
Dim MS As String
|
||||
@@ -504,3 +513,16 @@ Private Sub b_escanRuta_Click
|
||||
End If
|
||||
End Sub
|
||||
|
||||
|
||||
|
||||
Private Sub et_rutaReparto_TextChanged (Old As String, New As String)
|
||||
If New.Length > 4 Then
|
||||
et_rutaReparto.Text = Old
|
||||
End If
|
||||
End Sub
|
||||
|
||||
Private Sub et_kmsInicial_TextChanged (Old As String, New As String)
|
||||
If New.Length > 6 Then
|
||||
et_kmsInicial.Text = Old
|
||||
End If
|
||||
End Sub
|
||||
Reference in New Issue
Block a user