--BDH. Validacion de recolecciones

subir:
--PA_Inv_EntregaAlmacenRutaDetalleGet
This commit is contained in:
2024-05-03 15:43:30 -07:00
parent c5413c53ca
commit d14887b5c3

View File

@@ -1781,6 +1781,25 @@ Partial Class Inventarios_EntradasSalidas
Exit Sub
End If
If CveMovimiento <= 0 Then
If Request("CveEntregaAlmacen") IsNot Nothing AndAlso Request("CveEntregaAlmacen").ToString.ToEntero > 0 Then
Dim TieneRegistros As Boolean = False
Dim ObjGenerales As New ClsGenerales()
If ObjGenerales.GetEntregaAlmacenRutaDetalle(Request("CveEntregaAlmacen").ToString.ToEntero, ValidaEntrega:=True) Then
If ObjGenerales.DtResultados.Rows.Count = 0 Then
TieneRegistros = True
End If
End If
ObjGenerales.Dispose()
If TieneRegistros Then
Alert("La recolección ya ha sido realizada.", TipoMensaje.MsgAdvertencia)
Exit Sub
End If
End If
End If
If GvM.Rows.Count > 0 Then
'Dim CveMovimiento As Integer