corrección globaldt

This commit is contained in:
2023-02-01 20:39:12 -07:00
parent 8fdc0ed59d
commit 2347e762c9

View File

@@ -32,11 +32,11 @@ Partial Class Ventas_CatPreciosLista
CvePrecioLista = -1 CvePrecioLista = -1
EsEditar = 0 EsEditar = 0
dvEstatus.Visible = False dvEstatus.Visible = False
CargaDatos(-1) CargaDatos()
End If End If
End Sub End Sub
Private Sub CargaDatos(CveConductor As Integer) Private Sub CargaDatos()
Dim ObjVta As New ClsVentas Dim ObjVta As New ClsVentas
If ObjVta.GetPrecioListas(CveEmpresa:=UsuarioActual.CveEmpresa) Then If ObjVta.GetPrecioListas(CveEmpresa:=UsuarioActual.CveEmpresa) Then
GvDatos.DataSource = ObjVta.DtResultados GvDatos.DataSource = ObjVta.DtResultados
@@ -44,13 +44,11 @@ Partial Class Ventas_CatPreciosLista
Else Else
GvDatos.DataSource = Nothing GvDatos.DataSource = Nothing
End If End If
If ObjVta.GetPrecioListas(-1) Then
GlobalDTPrecioListas(-1) = ObjVta.DtResultados
End If
ObjVta.Dispose() ObjVta.Dispose()
GvDatos.DataBind() GvDatos.DataBind()
GlobalDTPrecioListas(UsuarioActual.CveEmpresa) = Nothing
End Sub End Sub
Protected Sub imgE_Click(sender As Object, e As EventArgs) Protected Sub imgE_Click(sender As Object, e As EventArgs)
@@ -91,7 +89,7 @@ Partial Class Ventas_CatPreciosLista
TxtPrecioLista.Text = "" TxtPrecioLista.Text = ""
CargaDatos(-1) CargaDatos()
UpDatos.Update() UpDatos.Update()
UpBodyCompuesto.Update() UpBodyCompuesto.Update()
@@ -104,7 +102,7 @@ Partial Class Ventas_CatPreciosLista
Alert("El Precio de lista se eliminó correctamente", TipoMensaje.MsgInformacion) Alert("El Precio de lista se eliminó correctamente", TipoMensaje.MsgInformacion)
End If End If
ObjPrecioLista.Dispose() ObjPrecioLista.Dispose()
CargaDatos(-1) CargaDatos()
UpDatos.Update() UpDatos.Update()
End Sub End Sub