This commit is contained in:
2025-01-08 10:53:58 -07:00
parent 1f3a19ebdf
commit 94f4dc0f11
2 changed files with 22 additions and 22 deletions

View File

@@ -384,21 +384,24 @@ Partial Class Ventas_PVCobranza
End Sub
Private Sub CargaCancelaciones()
DivCancelacionesPendientes.Visible = True
Dim DtVentas As DataTable = Nothing
If DdlSubProyecto.SelectedValue.ToEntero() > 0 Then
DivCancelacionesPendientes.Visible = True
Dim DtVentas As DataTable = Nothing
Dim ObjVentas = New ClsVentas()
If ObjVentas.GetVentasPendientesCancelacion(UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
DtVentas = ObjVentas.DtResultados.Copy()
Dim ObjVentas = New ClsVentas()
If ObjVentas.GetVentasPendientesCancelacion(UsuarioActual.CveEmpresa, UsuarioActual.CveUsuario) Then
DtVentas = ObjVentas.DtResultados.Copy()
End If
ObjVentas.Dispose()
If DtVentas IsNot Nothing Then
GvCancelaciones.DataSource = DtVentas.FiltraParametros($"(CveEstatusFactura IN (20) AND CveEstatusRefacturacion IN (0,4)) AND CveSubProyecto={DdlSubProyecto.SelectedValue.ToEntero()}")
GvCancelaciones.DataBind()
End If
UpL.Update()
End If
ObjVentas.Dispose()
If DtVentas IsNot Nothing Then
GvCancelaciones.DataSource = DtVentas.FiltraParametros("(CveEstatusFactura IN (20,23) AND CveEstatusRefacturacion IN (0,4))")
GvCancelaciones.DataBind()
End If
UpL.Update()
End Sub
Private Sub GvDatos_RowDataBound(sender As Object, e As GridViewRowEventArgs) Handles GvDatos.RowDataBound