-- globaldt sucursalesclientes
This commit is contained in:
@@ -1247,9 +1247,9 @@ Public Class ClsPaginas
|
|||||||
End If
|
End If
|
||||||
If EsPersonaFisica <> -1 Then
|
If EsPersonaFisica <> -1 Then
|
||||||
Dim Tipo As New StringBuilder
|
Dim Tipo As New StringBuilder
|
||||||
If EsPersonaFisica = 1 Then Tipo.Append("AplicaPersonaFisica = 1") Else Tipo.Append("AplicaPersonaMoral = 1")
|
If EsPersonaFisica = 1 Then Tipo.Append("AplicaPersonaFisica = 1 ") Else Tipo.Append("AplicaPersonaMoral = 1 ")
|
||||||
If RegimenFiscalReceptor <> "-1" Then
|
If RegimenFiscalReceptor <> "-1" Then
|
||||||
Tipo.AppendFormat("AND RegimenFiscalReceptor LIKE '%{0}%'", RegimenFiscalReceptor)
|
Tipo.AppendFormat(" AND RegimenFiscalReceptor LIKE '%{0}%'", RegimenFiscalReceptor)
|
||||||
End If
|
End If
|
||||||
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Tipo.ToString(), " UsoCFDIDescripcion", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), Tipo.ToString(), " UsoCFDIDescripcion", DataViewRowState.CurrentRows)
|
||||||
GlobalDTSATUsosCFDI = Dv.ToTable
|
GlobalDTSATUsosCFDI = Dv.ToTable
|
||||||
@@ -2245,6 +2245,31 @@ Public Class ClsPaginas
|
|||||||
Application(AppNombre) = value
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
|
|
||||||
|
Public Shared Property GlobalDTClientesSucursales(CveEmpresa As Integer, Optional CveCliente As Integer = -1) As DataTable
|
||||||
|
Get
|
||||||
|
Dim AppNombre As String = $"GlobalDTClientesSucursales-{CveEmpresa}"
|
||||||
|
If HttpContext.Current.Application(AppNombre) Is Nothing Then
|
||||||
|
Dim ObjClientes As New ClsClientes
|
||||||
|
If ObjClientes.GetClienteSucursales(-1, CveEmpresa) Then HttpContext.Current.Application(AppNombre) = ObjClientes.DtResultados.Copy()
|
||||||
|
ObjClientes.Dispose()
|
||||||
|
End If
|
||||||
|
Dim filtros As New List(Of String)
|
||||||
|
|
||||||
|
If CveCliente >= 0 Then filtros.Add($"CveCliente = {CveCliente}")
|
||||||
|
If filtros.Count > 0 Then
|
||||||
|
Dim Dv As New DataView(DirectCast(HttpContext.Current.Application(AppNombre), DataTable), String.Join(" AND ", filtros), "", DataViewRowState.CurrentRows)
|
||||||
|
GlobalDTClientesSucursales = Dv.ToTable
|
||||||
|
Dv.Dispose()
|
||||||
|
Else
|
||||||
|
GlobalDTClientesSucursales = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
|
End If
|
||||||
|
End Get
|
||||||
|
Set(value As DataTable)
|
||||||
|
Dim AppNombre As String = $"GlobalDTClientesSucursales-{CveEmpresa}"
|
||||||
|
HttpContext.Current.Application(AppNombre) = value
|
||||||
|
End Set
|
||||||
|
End Property
|
||||||
Public Shared Property GlobalDTEstatusOrdenServicios(CveEmpresa As Integer) As DataTable
|
Public Shared Property GlobalDTEstatusOrdenServicios(CveEmpresa As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
Dim AppNombre As String = $"GlobalDTEstatusOrdenServicios-{CveEmpresa}"
|
Dim AppNombre As String = $"GlobalDTEstatusOrdenServicios-{CveEmpresa}"
|
||||||
|
|||||||
Reference in New Issue
Block a user