- mejoras en carta porte
This commit is contained in:
@@ -3301,6 +3301,30 @@ Public Class ClsGenerales
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
Public Function GetCartaPorteTipoPermiso() As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Gral_CP_TipoPermisoGet")
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los permisos de carta porte.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
|
Public Function GetCartaPorteConfigAutoTransportes() As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
|
DataAdapter("PA_Gral_CP_ConfigAutoTransportesGet")
|
||||||
|
Try
|
||||||
|
SqlAdapter.Fill(Data)
|
||||||
|
Retorno = True
|
||||||
|
Catch ex As Exception
|
||||||
|
OnError("Ocurrió un error al obtener los configuración de autotransporte de carta porte.", ex, SqlAdapter.SelectCommand.Parameters.ParametrosInfo())
|
||||||
|
End Try
|
||||||
|
Return Retorno
|
||||||
|
End Function
|
||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
|
Protected Overridable Sub Dispose(ByVal disposing As Boolean)
|
||||||
|
|||||||
@@ -3182,18 +3182,26 @@ Public Class ClsPaginas
|
|||||||
|
|
||||||
Property GlobalDTContaConceptosContables(CveConceptoContable As Integer) As DataTable
|
Property GlobalDTContaConceptosContables(CveConceptoContable As Integer) As DataTable
|
||||||
Get
|
Get
|
||||||
|
Dim AppNombre As String = String.Format("GlobalDTContaConceptosContables")
|
||||||
|
'sino existe, recarga los datos
|
||||||
|
If Application(AppNombre) Is Nothing Then
|
||||||
|
Using ObjContabilidad As New ClsContabilidad
|
||||||
|
If ObjContabilidad.GetConta_ConceptosContables() Then Application(AppNombre) = ObjContabilidad.DtResultados Else Application(AppNombre) = Nothing
|
||||||
|
End Using
|
||||||
|
|
||||||
|
End If
|
||||||
If CveConceptoContable <> -1 Then
|
If CveConceptoContable <> -1 Then
|
||||||
Dim Dv As New DataView(DirectCast(Application("GlobalDTContaConceptosContables"), DataTable), String.Format("CveConceptoContable = {0}", CveConceptoContable), "", DataViewRowState.CurrentRows)
|
Dim Dv As New DataView(DirectCast(Application(AppNombre), DataTable), String.Format("CveConceptoContable = {0}", CveConceptoContable), "", DataViewRowState.CurrentRows)
|
||||||
GlobalDTContaConceptosContables = Dv.ToTable
|
GlobalDTContaConceptosContables = Dv.ToTable
|
||||||
Dv.Dispose()
|
Dv.Dispose()
|
||||||
Else
|
Else
|
||||||
GlobalDTContaConceptosContables = DirectCast(Application("GlobalDTContaConceptosContables"), DataTable)
|
GlobalDTContaConceptosContables = DirectCast(Application(AppNombre), DataTable)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
End Get
|
End Get
|
||||||
Set(value As DataTable)
|
Set(value As DataTable)
|
||||||
Application("GlobalDTContaConceptosContables") = value
|
Dim AppNombre As String = String.Format("GlobalDTContaConceptosContables")
|
||||||
|
Application(AppNombre) = value
|
||||||
End Set
|
End Set
|
||||||
End Property
|
End Property
|
||||||
#End Region
|
#End Region
|
||||||
|
|||||||
Reference in New Issue
Block a user