/cambios en globalDT separados por Empresa
This commit is contained in:
@@ -1929,24 +1929,7 @@ Public Class SIGFacturacion : Implements IHttpHandler, IRequiresSessionState
|
||||
HttpContext.Current.Application("GlobalDTProductosServiciosAlias") = value
|
||||
End Set
|
||||
End Property
|
||||
Property GlobalDTProductosServiciosEquivalencias(CvePS As Integer, CveUM As Integer) As DataTable
|
||||
Get
|
||||
If CvePS <> -1 OrElse CveUM <> -1 Then
|
||||
Dim StrSQL As New StringBuilder
|
||||
If CvePS <> -1 Then StrSQL.AppendFormat(" AND CvePS = {0}", CvePS)
|
||||
If CveUM <> -1 Then StrSQL.AppendFormat(" AND CveUM = {0}", CveUM)
|
||||
|
||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application("GlobalDTProductosServiciosEquivalencias"), DataTable), StrSQL.ToString.Trim.TrimStart("A"c, "N"c, "D"c), "", DataViewRowState.CurrentRows)
|
||||
GlobalDTProductosServiciosEquivalencias = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
Else
|
||||
GlobalDTProductosServiciosEquivalencias = DirectCast(HttpContext.Current.Application("GlobalDTProductosServiciosEquivalencias"), DataTable)
|
||||
End If
|
||||
End Get
|
||||
Set(value As DataTable)
|
||||
HttpContext.Current.Application("GlobalDTProductosServiciosEquivalencias") = value
|
||||
End Set
|
||||
End Property
|
||||
Property GlobalDTProductosServiciosCaracteristicas(CveEmpresa As Integer) As DataTable
|
||||
Get
|
||||
If CveEmpresa <> -1 Then
|
||||
|
||||
@@ -344,10 +344,10 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
|
||||
End If
|
||||
|
||||
If UsaGlobal Then
|
||||
|
||||
Dim DTPS = DirectCast(context.Application("GlobalDTPSSimplificado"), EnumerableRowCollection(Of DataRow))
|
||||
|
||||
If UsaGlobal Then
|
||||
|
||||
'Dim DTPS = DirectCast(context.Application("GlobalDTPSSimplificado"), EnumerableRowCollection(Of DataRow))
|
||||
Dim DTPS = ClsPaginas.GlobalDTPSSimplificado(CveEmpresa).AsEnumerable
|
||||
|
||||
If DTPS IsNot Nothing Then
|
||||
|
||||
@@ -583,10 +583,9 @@ Public Class SIGWeb : Implements IHttpHandler, IRequiresSessionState
|
||||
|
||||
|
||||
|
||||
Dim DTPS = DirectCast(context.Application("GlobalDTPSSimplificado"), EnumerableRowCollection(Of DataRow))
|
||||
|
||||
|
||||
|
||||
Dim DTPS = ClsPaginas.GlobalDTPSSimplificado(CveEmpresa).AsEnumerable ' DirectCast(context.Application("GlobalDTPSSimplificado"), EnumerableRowCollection(Of DataRow))
|
||||
|
||||
|
||||
If DTPS IsNot Nothing Then
|
||||
|
||||
'APLICACION DE FILTROS
|
||||
|
||||
Reference in New Issue
Block a user