-- 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
|
||||
ObjInventarios.Dispose()
|
||||
End If
|
||||
Dim Str As New StringBuilder
|
||||
If CveCamion > 0 Then Str.AppendFormat("CveCamion = {0}", CveCamion)
|
||||
If CveTipoCamion > 0 Then Str.AppendFormat("CveTipoCamion = {0}", CveTipoCamion)
|
||||
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), Str.ToString, "", DataViewRowState.CurrentRows)
|
||||
GlobalDTInvCamiones = Dv.ToTable
|
||||
Dv.Dispose()
|
||||
|
||||
Dim filtros As New List(Of String)
|
||||
If CveCamion >= 0 Then filtros.Add($"CveCamion = {CveCamion} ")
|
||||
If CveTipoCamion >= 0 Then filtros.Add($"CveTipoCamion = {CveTipoCamion} ")
|
||||
If filtros.Count > 0 Then
|
||||
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
|
||||
Set(value As DataTable)
|
||||
Dim AppNombre As String = $"GlobalDTInvCamiones-{CveEmpresa}"
|
||||
|
||||
Reference in New Issue
Block a user