-- globaldt tipo de venta.
This commit is contained in:
@@ -2126,17 +2126,17 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
Property GlobalDTTipoVenta(Optional CveEmpresa As Integer = -1) As DataTable
|
Property GlobalDTTipoVenta(Optional CveEmpresa As Integer = -1) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = $"GlobalDTTipoVenta"
|
Dim AppNombre As String = $"GlobalDTTipoVenta-{CveEmpresa}"
|
||||||
'sino existe, recarga los datos
|
'sino existe, recarga los datos
|
||||||
If Application(AppNombre) Is Nothing Then
|
If Application(AppNombre) Is Nothing Then
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
If ObjVentas.GetTipoVenta() Then Application(AppNombre) = ObjVentas.DtResultados
|
If ObjVentas.GetTipoVenta(CveEmpresa) Then Application(AppNombre) = ObjVentas.DtResultados
|
||||||
ObjVentas.Dispose()
|
ObjVentas.Dispose()
|
||||||
End If
|
End If
|
||||||
GlobalDTTipoVenta = DirectCast(Application(AppNombre), DataTable)
|
GlobalDTTipoVenta = DirectCast(Application(AppNombre), DataTable)
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = $"GlobalDTTipoVenta"
|
Dim AppNombre As String = $"GlobalDTTipoVenta-{CveEmpresa}"
|
||||||
Application(AppNombre) = value
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|||||||
@@ -5953,10 +5953,12 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
#Region "TIPO VENTA"
|
#Region "TIPO VENTA"
|
||||||
|
|
||||||
Public Function GetTipoVenta() As Boolean
|
Public Function GetTipoVenta(CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Vta_TipoVentaGet")
|
DataAdapter("PA_Vta_TipoVentaGet")
|
||||||
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
|
End With
|
||||||
Try
|
Try
|
||||||
SqlAdapter.Fill(Data)
|
SqlAdapter.Fill(Data)
|
||||||
Retorno = True
|
Retorno = True
|
||||||
|
|||||||
Reference in New Issue
Block a user