-- corrección globalinvcamiones
This commit is contained in:
@@ -1952,12 +1952,18 @@ Public Class ClsPaginas
|
|||||||
If ObjInventarios.GetCamiones(-1, UsuarioActual.CveEmpresa) Then Application(AppNombre) = ObjInventarios.DtResultados
|
If ObjInventarios.GetCamiones(-1, UsuarioActual.CveEmpresa) Then Application(AppNombre) = ObjInventarios.DtResultados
|
||||||
ObjInventarios.Dispose()
|
ObjInventarios.Dispose()
|
||||||
End If
|
End If
|
||||||
Dim Str As New StringBuilder
|
|
||||||
If CveCamion > 0 Then Str.AppendFormat("CveCamion = {0}", CveCamion)
|
Dim filtros As New List(Of String)
|
||||||
If CveTipoCamion > 0 Then Str.AppendFormat("CveTipoCamion = {0}", CveTipoCamion)
|
If CveCamion >= 0 Then filtros.Add($"CveCamion = {CveCamion} ")
|
||||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
If CveTipoCamion >= 0 Then filtros.Add($"CveTipoCamion = {CveTipoCamion} ")
|
||||||
GlobalDTInvCamiones = Dv.ToTable
|
If filtros.Count > 0 Then
|
||||||
Dv.Dispose()
|
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), String.Join(" AND ", filtros), "", DataViewRowState.CurrentRows)
|
||||||
|
GlobalDTInvCamiones = Dv.ToTable
|
||||||
|
Dv.Dispose()
|
||||||
|
Else
|
||||||
|
GlobalDTInvCamiones = DirectCast(HttpContext.Current.Application(AppNombre), DataTable)
|
||||||
|
End If
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Dim AppNombre As String = $"GlobalDTInvCamiones-{CveEmpresa}"
|
Dim AppNombre As String = $"GlobalDTInvCamiones-{CveEmpresa}"
|
||||||
|
|||||||
Reference in New Issue
Block a user