option explicit on
This commit is contained in:
@@ -776,7 +776,7 @@ Public Class ClsAF
|
|||||||
|
|
||||||
Public Function ActivoFijoResguardoADD(FechaInicio As Date, CvePersonal As Integer, CveUsuario As Integer, CveSubProyecto As Integer, CveActivoFijo As Integer, TipoDocto As String, Tipo As Integer, CveEmpresa As Integer, Optional Observaciones As String = " ", Optional CveResguardo As Integer = -1) As Boolean
|
Public Function ActivoFijoResguardoADD(FechaInicio As Date, CvePersonal As Integer, CveUsuario As Integer, CveSubProyecto As Integer, CveActivoFijo As Integer, TipoDocto As String, Tipo As Integer, CveEmpresa As Integer, Optional Observaciones As String = " ", Optional CveResguardo As Integer = -1) As Boolean
|
||||||
'Dim CveResguardo As Integer = -1
|
'Dim CveResguardo As Integer = -1
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_AF_ActivosFijosResguardosAdd")
|
DataAdapter("PA_AF_ActivosFijosResguardosAdd")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|||||||
@@ -2532,7 +2532,7 @@ Public Class ClsBancos
|
|||||||
OtrosGastos As Double, CveProveedor As Integer, ClasificacionContable As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
OtrosGastos As Double, CveProveedor As Integer, ClasificacionContable As Integer, CveUsuario As Integer, CveEmpresa As Integer,
|
||||||
Optional CveCuentaTarjeta As Integer = -1, Optional AplicaAnticipo As Boolean = False, Optional CreditoAnticipo As Double = 0.0, Optional ComisionAnticipo As Double = 0.0, Optional SeguroAnticipo As Double = 0.0,
|
Optional CveCuentaTarjeta As Integer = -1, Optional AplicaAnticipo As Boolean = False, Optional CreditoAnticipo As Double = 0.0, Optional ComisionAnticipo As Double = 0.0, Optional SeguroAnticipo As Double = 0.0,
|
||||||
Optional OtrosGastosAnticipo As Double = 0.0, Optional FondoGarantia As Double = 0.0, Optional SeguroValor As Double = 0.0, Optional TipoInteres As Boolean = False) As Integer
|
Optional OtrosGastosAnticipo As Double = 0.0, Optional FondoGarantia As Double = 0.0, Optional SeguroValor As Double = 0.0, Optional TipoInteres As Boolean = False) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Banc_CreditosAdd")
|
DataAdapter("PA_Banc_CreditosAdd")
|
||||||
|
|
||||||
@@ -3074,7 +3074,7 @@ Public Class ClsBancos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddLayoutEnvios(Archivo As String, Fecha As Date, CveCuenta As Integer, Optional PorGrupos As Boolean = False) As Integer
|
Public Function AddLayoutEnvios(Archivo As String, Fecha As Date, CveCuenta As Integer, Optional PorGrupos As Boolean = False) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Banc_LayoutEnviosAdd")
|
DataAdapter("PA_Banc_LayoutEnviosAdd")
|
||||||
|
|
||||||
|
|||||||
@@ -1295,7 +1295,7 @@ Public Class ClsCompras
|
|||||||
#Region "I M P O R T A C I O N E S"
|
#Region "I M P O R T A C I O N E S"
|
||||||
Public Function GetImportaciones(CveImportacion As Integer, CveProveedor As Integer, CveActivoFijo As Integer, FechaInicio As String, FechaFin As String, CveEmpresa As Integer, Optional CveEstatus As Integer = -1) As Boolean
|
Public Function GetImportaciones(CveImportacion As Integer, CveProveedor As Integer, CveActivoFijo As Integer, FechaInicio As String, FechaFin As String, CveEmpresa As Integer, Optional CveEstatus As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesGet")
|
DataAdapter("PA_Comp_ImportacionesGet")
|
||||||
|
|
||||||
@@ -1320,7 +1320,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function AddImportacion(Pedimento As String, Descripcion As String, CveProveedor As Integer, CveActivoFijo As Integer, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Integer
|
Public Function AddImportacion(Pedimento As String, Descripcion As String, CveProveedor As Integer, CveActivoFijo As Integer, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Integer
|
||||||
|
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesAdd")
|
DataAdapter("PA_Comp_ImportacionesAdd")
|
||||||
|
|
||||||
@@ -1346,7 +1346,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function UpdateImportacion(Pedimento As String, CveImportacion As Integer, Descripcion As String, CveProveedor As Integer, CveActivoFijo As Integer, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateImportacion(Pedimento As String, CveImportacion As Integer, Descripcion As String, CveProveedor As Integer, CveActivoFijo As Integer, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesUpdate")
|
DataAdapter("PA_Comp_ImportacionesUpdate")
|
||||||
|
|
||||||
@@ -1372,7 +1372,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function RemoveImportacion(CveImportacion As Integer) As Boolean
|
Public Function RemoveImportacion(CveImportacion As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesRemove")
|
DataAdapter("PA_Comp_ImportacionesRemove")
|
||||||
|
|
||||||
@@ -1391,7 +1391,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetImportacionCompra(CveCompra As Integer) As Boolean
|
Public Function GetImportacionCompra(CveCompra As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesCompraGet")
|
DataAdapter("PA_Comp_ImportacionesCompraGet")
|
||||||
|
|
||||||
@@ -1410,7 +1410,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function GetImportacionesDetalle(CveImportacion As Integer, CveImportacionDetalle As Integer) As Boolean
|
Public Function GetImportacionesDetalle(CveImportacion As Integer, CveImportacionDetalle As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesDetalleGet")
|
DataAdapter("PA_Comp_ImportacionesDetalleGet")
|
||||||
|
|
||||||
@@ -1430,7 +1430,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function AddImportacionDetalle(CveImportacion As Integer, CveCompra As Integer) As Boolean
|
Public Function AddImportacionDetalle(CveImportacion As Integer, CveCompra As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesDetalleAdd")
|
DataAdapter("PA_Comp_ImportacionesDetalleAdd")
|
||||||
|
|
||||||
@@ -1450,7 +1450,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function UpdateImportacionDetalle(CveImportacionDetalle As Integer, CveCompra As Integer) As Boolean
|
Public Function UpdateImportacionDetalle(CveImportacionDetalle As Integer, CveCompra As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesDetalleUpdate")
|
DataAdapter("PA_Comp_ImportacionesDetalleUpdate")
|
||||||
|
|
||||||
@@ -1470,7 +1470,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
Public Function RemoveImportacionDetalle(CveImportacionDetalle As Integer) As Boolean
|
Public Function RemoveImportacionDetalle(CveImportacionDetalle As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_ImportacionesDetalleRemove")
|
DataAdapter("PA_Comp_ImportacionesDetalleRemove")
|
||||||
|
|
||||||
@@ -1489,7 +1489,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddImportacionCompra(CveImportacion As Integer, CveCompra As Integer) As Boolean
|
Public Function AddImportacionCompra(CveImportacion As Integer, CveCompra As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Comp_ImportacionesCompraAdd")
|
DataAdapter("PA_Comp_ImportacionesCompraAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveImportacion", SqlDbType.Int).Value = CveImportacion
|
.Add("@CveImportacion", SqlDbType.Int).Value = CveImportacion
|
||||||
@@ -1505,7 +1505,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function RemoveImportacionCompra(CveImportacionCompra As Integer) As Boolean
|
Public Function RemoveImportacionCompra(CveImportacionCompra As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Comp_ImportacionesCompraRemove")
|
DataAdapter("PA_Comp_ImportacionesCompraRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveImportacionCompra", SqlDbType.Int).Value = CveImportacionCompra
|
.Add("@CveImportacionCompra", SqlDbType.Int).Value = CveImportacionCompra
|
||||||
@@ -1520,7 +1520,7 @@ Public Class ClsCompras
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetImportacionCompras(Optional CveImportacion As Integer = -1, Optional CveCompra As Integer = -1) As Boolean
|
Public Function GetImportacionCompras(Optional CveImportacion As Integer = -1, Optional CveCompra As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Comp_ImportacionesComprasGet")
|
DataAdapter("PA_Comp_ImportacionesComprasGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveImportacion", SqlDbType.Int).Value = CveImportacion
|
.Add("@CveImportacion", SqlDbType.Int).Value = CveImportacion
|
||||||
@@ -1563,7 +1563,7 @@ Public Class ClsCompras
|
|||||||
#Region "B E N E F I C I A R I O S"
|
#Region "B E N E F I C I A R I O S"
|
||||||
Public Function GetBeneficiarios(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBeneficiarios(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_BeneficiariosGet")
|
DataAdapter("PA_Comp_BeneficiariosGet")
|
||||||
|
|
||||||
@@ -1584,7 +1584,7 @@ Public Class ClsCompras
|
|||||||
|
|
||||||
Public Function GetBeneficiarios2(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBeneficiarios2(CveProveedor As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_BeneficiariosGet2")
|
DataAdapter("PA_Comp_BeneficiariosGet2")
|
||||||
|
|
||||||
@@ -1605,7 +1605,7 @@ Public Class ClsCompras
|
|||||||
|
|
||||||
Public Function GetBeneficiariosDetalle(CveProveedor As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBeneficiariosDetalle(CveProveedor As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_BeneficiariosDetalleGet")
|
DataAdapter("PA_Comp_BeneficiariosDetalleGet")
|
||||||
|
|
||||||
@@ -1630,7 +1630,7 @@ Public Class ClsCompras
|
|||||||
#Region "N O T A S - C R E D I T O"
|
#Region "N O T A S - C R E D I T O"
|
||||||
Public Function GetNotasCreditoRep(CveProveedor As Integer, Opcion As Integer, FechaI As String, FechaF As String, CveEmpresa As Integer) As Boolean
|
Public Function GetNotasCreditoRep(CveProveedor As Integer, Opcion As Integer, FechaI As String, FechaF As String, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Comp_RepNotasCredito")
|
DataAdapter("PA_Comp_RepNotasCredito")
|
||||||
|
|
||||||
@@ -1775,7 +1775,7 @@ Public Class ClsCompras
|
|||||||
CveEmpresa As Integer, PreFijo As String) As Integer
|
CveEmpresa As Integer, PreFijo As String) As Integer
|
||||||
Dim Retorno As Integer = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
Dim StrSQL = New StringBuilder()
|
Dim StrSQL As StringBuilder = New StringBuilder()
|
||||||
StrSQL.Append(" BEGIN ")
|
StrSQL.Append(" BEGIN ")
|
||||||
StrSQL.Append(" DECLARE @tTotal INT; ")
|
StrSQL.Append(" DECLARE @tTotal INT; ")
|
||||||
StrSQL.Append(" ")
|
StrSQL.Append(" ")
|
||||||
@@ -1832,7 +1832,7 @@ Public Class ClsCompras
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateArchivo(CveFactura As Integer, Columna As String) As Boolean
|
Public Function UpdateArchivo(CveFactura As Integer, Columna As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
Dim Str As String = ""
|
Dim Str As String = ""
|
||||||
If Columna = "XML" Then
|
If Columna = "XML" Then
|
||||||
Str = "UPDATE Comp_Facturas SET XML = CONCAT(@CveFactura,'.xml') WHERE CveFactura = @CveFactura"
|
Str = "UPDATE Comp_Facturas SET XML = CONCAT(@CveFactura,'.xml') WHERE CveFactura = @CveFactura"
|
||||||
|
|||||||
@@ -1040,7 +1040,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetNumeroPoliza(TipoPoliza As Integer, Fecha As String) As Integer
|
Public Function GetNumeroPoliza(TipoPoliza As Integer, Fecha As String) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
If Not FNC_GetNumPoliza() Then
|
If Not FNC_GetNumPoliza() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End If
|
End If
|
||||||
@@ -3345,8 +3345,6 @@ Public Class ClsContPAQi
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
#Region " C U E N T A S "
|
#Region " C U E N T A S "
|
||||||
|
|
||||||
|
|
||||||
Public Function GetCuentas(IdCuenta As Integer, Codigo As String, Afectable As Integer, Optional RowNum As Integer = 100000, Optional IdPadre As Integer = -1) As Boolean
|
Public Function GetCuentas(IdCuenta As Integer, Codigo As String, Afectable As Integer, Optional RowNum As Integer = 100000, Optional IdPadre As Integer = -1) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -3685,7 +3683,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "P R E S U P U E S T O - I N G R E S O S "
|
#Region "P R E S U P U E S T O - I N G R E S O S "
|
||||||
Public Function GetPresupuestoIngresosRep(Ejercicio As Integer, Fecha As Date, Gpo As Integer) As Boolean
|
Public Function GetPresupuestoIngresosRep(Ejercicio As Integer, Fecha As Date, Gpo As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_PresupuestosIngresosRep")
|
SqlDataAdapter("PA_PresupuestosIngresosRep")
|
||||||
|
|
||||||
@@ -3706,7 +3704,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetPresupuestoIngresosMensualesRep(Ejercicio As Integer, MomentoContable As Integer, CveFuenteRecaudacion As Integer, CveRubroIngreso As Integer, GPO As Integer) As Boolean
|
Public Function GetPresupuestoIngresosMensualesRep(Ejercicio As Integer, MomentoContable As Integer, CveFuenteRecaudacion As Integer, CveRubroIngreso As Integer, GPO As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_PresupuestosIngresosMensualesRep")
|
SqlDataAdapter("PA_PresupuestosIngresosMensualesRep")
|
||||||
|
|
||||||
@@ -3735,7 +3733,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function GetBalanceGeneral(FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1, Optional UsaAC As Boolean = False, Optional IdCuentaAhorroDesahorro As Integer = 9999, Optional SegmentoNegocio As Integer = -1) As Boolean
|
Public Function GetBalanceGeneral(FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1, Optional UsaAC As Boolean = False, Optional IdCuentaAhorroDesahorro As Integer = 9999, Optional SegmentoNegocio As Integer = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
Dim IdCtaSup As String = ""
|
Dim IdCtaSup As String = ""
|
||||||
Dim IdCtaSup2 As String = ""
|
Dim IdCtaSup2 As String = ""
|
||||||
|
|
||||||
@@ -3910,7 +3908,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function BalanceGeneral(FechaF As Date, Optional TipoMovtos As Integer = -1, Optional UsaAcumulado As Integer = 0, Optional NivelInferior As Integer = -2, Optional NivelInferior2 As Integer = -2, Optional NivelSuperior As Integer = 2) As Boolean
|
Public Function BalanceGeneral(FechaF As Date, Optional TipoMovtos As Integer = -1, Optional UsaAcumulado As Integer = 0, Optional NivelInferior As Integer = -2, Optional NivelInferior2 As Integer = -2, Optional NivelSuperior As Integer = 2) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_BalanceGeneralIP")
|
SqlDataAdapter("PA_BalanceGeneralIP")
|
||||||
|
|
||||||
@@ -3933,7 +3931,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer) As Boolean
|
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalMensualBG() Then
|
If Not FNC_TotalMensualBG() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -4459,7 +4457,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer) As Boolean
|
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalAnual() Then
|
If Not FNC_TotalAnual() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -4833,7 +4831,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralProForma(Unidad As Integer) As Boolean
|
Public Function GetBalanceGeneralProForma(Unidad As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_BalanceGeneralProForma")
|
SqlDataAdapter("PA_BalanceGeneralProForma")
|
||||||
|
|
||||||
@@ -4855,7 +4853,7 @@ Public Class ClsContPAQi
|
|||||||
#Region "E S T A D O - D E - A C T I V I D A D E S"
|
#Region "E S T A D O - D E - A C T I V I D A D E S"
|
||||||
|
|
||||||
Public Function GetEstadoActividades(FechaI As Date, FechaF As Date, Optional TipoMovtos As Integer = -1, Optional UsaAC As Boolean = False, Optional IdSegNeg As Integer = -1) As Boolean
|
Public Function GetEstadoActividades(FechaI As Date, FechaF As Date, Optional TipoMovtos As Integer = -1, Optional UsaAC As Boolean = False, Optional IdSegNeg As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalComplementaria(UsaAC) Then
|
If Not FNC_TotalComplementaria(UsaAC) Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -4973,7 +4971,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoActividadesSegmento(FechaI As Date, FechaF As Date, TipoMovtos As Integer, IdSegNeg As Integer) As Boolean
|
Public Function GetEstadoActividadesSegmento(FechaI As Date, FechaF As Date, TipoMovtos As Integer, IdSegNeg As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalComplementaria(False) Then
|
If Not FNC_TotalComplementaria(False) Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -5135,7 +5133,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoActividadesSegmentoDetalle(FechaI As Date, FechaF As Date, IdCta As Integer, IdsSegmentos As String) As Boolean
|
Public Function GetEstadoActividadesSegmentoDetalle(FechaI As Date, FechaF As Date, IdCta As Integer, IdsSegmentos As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalComplementaria(False) Then
|
If Not FNC_TotalComplementaria(False) Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -5297,7 +5295,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoResultadosMensual(ANO As Integer, TipoMovtos As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
Public Function GetEstadoResultadosMensual(ANO As Integer, TipoMovtos As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalMensual() Then
|
If Not FNC_TotalMensual() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -5868,7 +5866,7 @@ Public Class ClsContPAQi
|
|||||||
' Return Retorno
|
' Return Retorno
|
||||||
'End Function
|
'End Function
|
||||||
Public Function GetEstadoResultadosAnual(ANO As Integer, TipoMovtos As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
Public Function GetEstadoResultadosAnual(ANO As Integer, TipoMovtos As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalAnual() Then
|
If Not FNC_TotalAnual() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6135,7 +6133,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoResultadosProForma(Unidad As Integer) As Boolean
|
Public Function GetEstadoResultadosProForma(Unidad As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_EstadoResultadosProForma")
|
SqlDataAdapter("PA_EstadoResultadosProForma")
|
||||||
|
|
||||||
@@ -6157,7 +6155,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "E S T A D O - A N A L Í T I C O - D E L - A C T I V O"
|
#Region "E S T A D O - A N A L Í T I C O - D E L - A C T I V O"
|
||||||
Public Function GetEstadoAnaliticoActivo(FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetEstadoAnaliticoActivo(FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_Total() Then
|
If Not FNC_Total() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6228,10 +6226,8 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "A N E X O - D E L - C A T A L O G O"
|
#Region "A N E X O - D E L - C A T A L O G O"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetAnexoCatalogo(IdCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, Optional TipoMovtos As Integer = -1, Optional SegmentoNegocio As Integer = -1, Optional UsaAC As Boolean = False) As Boolean
|
Public Function GetAnexoCatalogo(IdCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, Optional TipoMovtos As Integer = -1, Optional SegmentoNegocio As Integer = -1, Optional UsaAC As Boolean = False) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalComplementaria(UsaAC) Then
|
If Not FNC_TotalComplementaria(UsaAC) Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6318,7 +6314,7 @@ Public Class ClsContPAQi
|
|||||||
''Esta es
|
''Esta es
|
||||||
|
|
||||||
Public Function GetAnexoCatalogoMes(IdCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, Optional TipoMovtos As Integer = -1, Optional SegmentoNegocio As Integer = -1, Optional UsaAC As Boolean = False) As Boolean
|
Public Function GetAnexoCatalogoMes(IdCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, Optional TipoMovtos As Integer = -1, Optional SegmentoNegocio As Integer = -1, Optional UsaAC As Boolean = False) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_TotalComplementaria(UsaAC) Then
|
If Not FNC_TotalComplementaria(UsaAC) Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6510,7 +6506,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "B A L A N Z A - D E - C O M P R O B A C I O N"
|
#Region "B A L A N Z A - D E - C O M P R O B A C I O N"
|
||||||
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, TipoCuentas As Integer) As Boolean
|
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, TipoCuentas As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_Total() Then
|
If Not FNC_Total() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6669,7 +6665,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "M O V I M I E N T O S - A U X I L I A R E S - C A T A L O G O"
|
#Region "M O V I M I E N T O S - A U X I L I A R E S - C A T A L O G O"
|
||||||
Public Function GetMovimientosAuxiliaresCatalogo(IdCuenta As Integer, FechaI As Date, FechaF As Date, CveMoneda As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
Public Function GetMovimientosAuxiliaresCatalogo(IdCuenta As Integer, FechaI As Date, FechaF As Date, CveMoneda As Integer, Optional IdSegNeg As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
If Not FNC_Total_Segmento() Then
|
If Not FNC_Total_Segmento() Then
|
||||||
Return Retorno
|
Return Retorno
|
||||||
@@ -6870,7 +6866,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "E S T A D O - D E - F L U J O - D E - E F E C T I V O "
|
#Region "E S T A D O - D E - F L U J O - D E - E F E C T I V O "
|
||||||
Public Function GetFlujoEfectivo(FechaI As Date, FechaF As Date, Unidad As Integer) As Boolean
|
Public Function GetFlujoEfectivo(FechaI As Date, FechaF As Date, Unidad As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_RepFlujoEfectivo")
|
SqlDataAdapter("PA_RepFlujoEfectivo")
|
||||||
|
|
||||||
@@ -6893,7 +6889,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "E S T A D O - D E - C A M B I O - D E - S I T U A C I O N - F I N A N C I E R A"
|
#Region "E S T A D O - D E - C A M B I O - D E - S I T U A C I O N - F I N A N C I E R A"
|
||||||
Public Function GetCambioSituacionFinanciera(FechaI As Date, FechaF As Date, Unidad As Integer) As Boolean
|
Public Function GetCambioSituacionFinanciera(FechaI As Date, FechaF As Date, Unidad As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_RepCambioSituacionFinanciera")
|
SqlDataAdapter("PA_RepCambioSituacionFinanciera")
|
||||||
|
|
||||||
@@ -6916,7 +6912,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "E S T A D O - D E - V A R I A C I O N - H A C I E N D A - P U B L I C A "
|
#Region "E S T A D O - D E - V A R I A C I O N - H A C I E N D A - P U B L I C A "
|
||||||
Public Function GetVariacionHaciendaPublica(FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetVariacionHaciendaPublica(FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'StrSQL.Clear()
|
'StrSQL.Clear()
|
||||||
|
|
||||||
@@ -6993,7 +6989,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region " O R I G E N - Y - A P L I C A C I O N "
|
#Region " O R I G E N - Y - A P L I C A C I O N "
|
||||||
Public Function GetOrigenAplicacion(FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetOrigenAplicacion(FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_RepOrigenAplicacion")
|
SqlDataAdapter("PA_RepOrigenAplicacion")
|
||||||
|
|
||||||
@@ -7012,7 +7008,7 @@ Public Class ClsContPAQi
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetOrigenAplicacionMensual(Ejercicio As Integer, TipoMovtos As Integer) As Boolean
|
Public Function GetOrigenAplicacionMensual(Ejercicio As Integer, TipoMovtos As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_RepOrigenAplicacionMensual")
|
SqlDataAdapter("PA_RepOrigenAplicacionMensual")
|
||||||
|
|
||||||
@@ -7031,7 +7027,7 @@ Public Class ClsContPAQi
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetOrigenAplicacionAnual(Ejercicio As Integer, TipoMovtos As Integer) As Boolean
|
Public Function GetOrigenAplicacionAnual(Ejercicio As Integer, TipoMovtos As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_RepOrigenAplicacionAnual")
|
SqlDataAdapter("PA_RepOrigenAplicacionAnual")
|
||||||
|
|
||||||
@@ -7053,7 +7049,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region " P O L I Z A S - C O M P L E M E N T A R I A S "
|
#Region " P O L I Z A S - C O M P L E M E N T A R I A S "
|
||||||
Public Function BalanceGeneralGet(TipoReporte As Integer, FechaI As Date, FechaF As Date) As Boolean
|
Public Function BalanceGeneralGet(TipoReporte As Integer, FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_Conta_BalanceGeneralGet")
|
SqlDataAdapter("PA_Conta_BalanceGeneralGet")
|
||||||
|
|
||||||
@@ -7073,7 +7069,7 @@ Public Class ClsContPAQi
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function EstadoResultadosGet(TipoReporte As Integer, FechaI As Date, FechaF As Date) As Boolean
|
Public Function EstadoResultadosGet(TipoReporte As Integer, FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_Conta_EstadoResultadosGet")
|
SqlDataAdapter("PA_Conta_EstadoResultadosGet")
|
||||||
|
|
||||||
@@ -7196,7 +7192,7 @@ Public Class ClsContPAQi
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
SqlDataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
||||||
|
|
||||||
@@ -7249,7 +7245,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetRepPresupuestosIngresosSaldosDetalle(MomentoContable As Integer, FuenteRecaudacion As Integer, RubroIngreso As Integer, FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetRepPresupuestosIngresosSaldosDetalle(MomentoContable As Integer, FuenteRecaudacion As Integer, RubroIngreso As Integer, FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
SqlDataAdapter("PA_PresupuestosIngresosSaldosDetalleRep")
|
SqlDataAdapter("PA_PresupuestosIngresosSaldosDetalleRep")
|
||||||
|
|
||||||
@@ -7509,7 +7505,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFolioProveedores(CuentaPadre As String) As Integer
|
Public Function GetFolioProveedores(CuentaPadre As String) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
SqlDataAdapter("PA_AC_ProveedoresCuentasGetFolio")
|
SqlDataAdapter("PA_AC_ProveedoresCuentasGetFolio")
|
||||||
|
|
||||||
@@ -8133,8 +8129,8 @@ Public Class ClsContPAQi
|
|||||||
'StrSQL.Append(file.OpenText().ReadToEnd())
|
'StrSQL.Append(file.OpenText().ReadToEnd())
|
||||||
|
|
||||||
|
|
||||||
Dim file = System.IO.File.ReadAllText(HttpContext.Current.Server.MapPath("~/Empresas/TriggerConta.sql"))
|
Dim file As String = System.IO.File.ReadAllText(HttpContext.Current.Server.MapPath("~/Empresas/TriggerConta.sql"))
|
||||||
Dim Comandos As [String]() = file.Split(New String() {"GO"}, StringSplitOptions.None)
|
Dim Comandos As String() = file.Split(New String() {"GO"}, StringSplitOptions.None)
|
||||||
For Each Script As String In Comandos
|
For Each Script As String In Comandos
|
||||||
SqlDataCommand(Script, CommandType.Text)
|
SqlDataCommand(Script, CommandType.Text)
|
||||||
SqlCommand.ExecuteNonQuery()
|
SqlCommand.ExecuteNonQuery()
|
||||||
@@ -8559,10 +8555,6 @@ Public Class ClsContPAQi
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
'SqlDataAdapter("PA_AddMovimiento")
|
|
||||||
|
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.AppendLine(" BEGIN ")
|
StrSQL.AppendLine(" BEGIN ")
|
||||||
StrSQL.AppendLine(" DECLARE @Error nvarchar(300) ")
|
StrSQL.AppendLine(" DECLARE @Error nvarchar(300) ")
|
||||||
@@ -8685,8 +8677,6 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "CONTABILIDAD ELECTRONICA"
|
#Region "CONTABILIDAD ELECTRONICA"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetBancos() As Boolean
|
Public Function GetBancos() As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
@@ -9852,7 +9842,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_GetSigno() As Boolean
|
Public Function FNC_GetSigno() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_GetSigno') IS NOT NULL DROP FUNCTION FNC_GetSigno")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_GetSigno') IS NOT NULL DROP FUNCTION FNC_GetSigno")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -9903,7 +9893,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_GetNumPoliza() As Boolean
|
Public Function FNC_GetNumPoliza() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumPoliza') IS NOT NULL DROP FUNCTION FNC_GetNumPoliza")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumPoliza') IS NOT NULL DROP FUNCTION FNC_GetNumPoliza")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -9963,7 +9953,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_GetNumMovtoDevIVA() As Boolean
|
Public Function FNC_GetNumMovtoDevIVA() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumMovtoDevIVA') IS NOT NULL DROP FUNCTION FNC_GetNumMovtoDevIVA")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumMovtoDevIVA') IS NOT NULL DROP FUNCTION FNC_GetNumMovtoDevIVA")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10008,7 +9998,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_GetNumMovto() As Boolean
|
Public Function FNC_GetNumMovto() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumMovto') IS NOT NULL DROP FUNCTION FNC_GetNumMovto")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_GetNumMovto') IS NOT NULL DROP FUNCTION FNC_GetNumMovto")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10056,7 +10046,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_GetCounter() As Boolean
|
Public Function FNC_GetCounter() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
'StrSQL.Clear()
|
'StrSQL.Clear()
|
||||||
'StrSQL.Append(" IF OBJECT_ID ('FNC_GetCounter') IS NOT NULL DROP FUNCTION FNC_GetCounter")
|
'StrSQL.Append(" IF OBJECT_ID ('FNC_GetCounter') IS NOT NULL DROP FUNCTION FNC_GetCounter")
|
||||||
'SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
'SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10103,7 +10093,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_TotalAnualBG() As Boolean
|
Public Function FNC_TotalAnualBG() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalAnualBG') IS NOT NULL DROP FUNCTION FNC_TotalAnualBG")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalAnualBG') IS NOT NULL DROP FUNCTION FNC_TotalAnualBG")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10214,7 +10204,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_TotalAnual() As Boolean
|
Public Function FNC_TotalAnual() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalAnual') IS NOT NULL DROP FUNCTION FNC_TotalAnual")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalAnual') IS NOT NULL DROP FUNCTION FNC_TotalAnual")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10327,7 +10317,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_TotalMensualBG() As Boolean
|
Public Function FNC_TotalMensualBG() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensualBG') IS NOT NULL DROP FUNCTION FNC_TotalMensualBG")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensualBG') IS NOT NULL DROP FUNCTION FNC_TotalMensualBG")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10425,7 +10415,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_TotalMensual() As Boolean
|
Public Function FNC_TotalMensual() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensual') IS NOT NULL DROP FUNCTION FNC_TotalMensual")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensual') IS NOT NULL DROP FUNCTION FNC_TotalMensual")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10539,7 +10529,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_TotalMensualERSubTotales() As Boolean
|
Public Function FNC_TotalMensualERSubTotales() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensualERSubTotales') IS NOT NULL DROP FUNCTION FNC_TotalMensualERSubTotales")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalMensualERSubTotales') IS NOT NULL DROP FUNCTION FNC_TotalMensualERSubTotales")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10656,7 +10646,7 @@ Public Class ClsContPAQi
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function FNC_TotalComplementaria(UsaAC As Boolean) As Boolean
|
Public Function FNC_TotalComplementaria(UsaAC As Boolean) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalComplementaria') IS NOT NULL DROP FUNCTION FNC_TotalComplementaria")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_TotalComplementaria') IS NOT NULL DROP FUNCTION FNC_TotalComplementaria")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10847,7 +10837,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_CargosComplementaria() As Boolean
|
Public Function FNC_CargosComplementaria() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_CargosComplementaria') IS NOT NULL DROP FUNCTION FNC_CargosComplementaria")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_CargosComplementaria') IS NOT NULL DROP FUNCTION FNC_CargosComplementaria")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -10954,7 +10944,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_AbonosComplementaria() As Boolean
|
Public Function FNC_AbonosComplementaria() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_AbonosComplementaria') IS NOT NULL DROP FUNCTION FNC_AbonosComplementaria")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_AbonosComplementaria') IS NOT NULL DROP FUNCTION FNC_AbonosComplementaria")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11064,7 +11054,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_Total() As Boolean
|
Public Function FNC_Total() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Total') IS NOT NULL DROP FUNCTION FNC_Total")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Total') IS NOT NULL DROP FUNCTION FNC_Total")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11141,7 +11131,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_Cargos() As Boolean
|
Public Function FNC_Cargos() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Cargos') IS NOT NULL DROP FUNCTION FNC_Cargos")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Cargos') IS NOT NULL DROP FUNCTION FNC_Cargos")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11211,7 +11201,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_Abonos() As Boolean
|
Public Function FNC_Abonos() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Abonos') IS NOT NULL DROP FUNCTION FNC_Abonos")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Abonos') IS NOT NULL DROP FUNCTION FNC_Abonos")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11285,10 +11275,9 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
#Region "Funciones con Segmento"
|
#Region "Funciones con Segmento"
|
||||||
|
|
||||||
|
|
||||||
Public Function FNC_Total_Segmento() As Boolean
|
Public Function FNC_Total_Segmento() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Total_Segmento') IS NOT NULL DROP FUNCTION FNC_Total_Segmento")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Total_Segmento') IS NOT NULL DROP FUNCTION FNC_Total_Segmento")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11366,7 +11355,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_Cargos_Segmento() As Boolean
|
Public Function FNC_Cargos_Segmento() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Cargos_Segmento') IS NOT NULL DROP FUNCTION FNC_Cargos_Segmento")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Cargos_Segmento') IS NOT NULL DROP FUNCTION FNC_Cargos_Segmento")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11437,7 +11426,7 @@ Public Class ClsContPAQi
|
|||||||
|
|
||||||
Public Function FNC_Abonos_Segmento() As Boolean
|
Public Function FNC_Abonos_Segmento() As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
StrSQL.Clear()
|
StrSQL.Clear()
|
||||||
StrSQL.Append(" IF OBJECT_ID ('FNC_Abonos_Segmento') IS NOT NULL DROP FUNCTION FNC_Abonos_Segmento")
|
StrSQL.Append(" IF OBJECT_ID ('FNC_Abonos_Segmento') IS NOT NULL DROP FUNCTION FNC_Abonos_Segmento")
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
@@ -11491,9 +11480,6 @@ Public Class ClsContPAQi
|
|||||||
StrSQL.Append(" END; ")
|
StrSQL.Append(" END; ")
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
SqlDataAdapter(StrSQL.ToString, CommandType.Text)
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -2989,7 +2989,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "F I N A N C I A M I E N T O - M E T A S"
|
#Region "F I N A N C I A M I E N T O - M E T A S"
|
||||||
Public Function AddFinan_Metas(Meta As Decimal, CveCuenta As Integer, Anio As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddFinan_Metas(Meta As Decimal, CveCuenta As Integer, Anio As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Finan_MetasAdd")
|
DataAdapter("PA_Finan_MetasAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3090,7 +3090,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "F I N A N C I A M I E N T O - V E N T A S - P R O Y E C C I O N E S"
|
#Region "F I N A N C I A M I E N T O - V E N T A S - P R O Y E C C I O N E S"
|
||||||
Public Function AddFinan_VentasProyecciones(CvePS As Integer, Cantidad As Double, PU As Double, Fecha As Date, Anio As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddFinan_VentasProyecciones(CvePS As Integer, Cantidad As Double, PU As Double, Fecha As Date, Anio As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Finan_MetasAdd")
|
DataAdapter("PA_Finan_MetasAdd")
|
||||||
|
|
||||||
@@ -3196,7 +3196,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region " CUENTAS "
|
#Region " CUENTAS "
|
||||||
Public Function GetCuentas(CveCuenta As Integer, Codigo As String, Afectable As Integer, CveEmpresa As Integer, Optional RowNum As Integer = 100000, Optional CvePadre As Integer = -1, Optional Nombre As String = "-1") As Boolean ', Codigo As String, Nombre As String, CveClasificacionCuenta As Integer, TipoCuenta As Integer, Afectable As Integer, Estatus As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetCuentas(CveCuenta As Integer, Codigo As String, Afectable As Integer, CveEmpresa As Integer, Optional RowNum As Integer = 100000, Optional CvePadre As Integer = -1, Optional Nombre As String = "-1") As Boolean ', Codigo As String, Nombre As String, CveClasificacionCuenta As Integer, TipoCuenta As Integer, Afectable As Integer, Estatus As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasGet")
|
DataAdapter("PA_Conta_CuentasGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3220,7 +3220,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetClasificacionesCuentas() As Boolean
|
Public Function GetClasificacionesCuentas() As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ClasificacionesCuentaGet")
|
DataAdapter("PA_Conta_ClasificacionesCuentaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3240,7 +3240,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region " EJERCICIOS "
|
#Region " EJERCICIOS "
|
||||||
Public Function GetEjercicios(CveEmpresa As Integer) As Boolean
|
Public Function GetEjercicios(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EjerciciosGet")
|
DataAdapter("PA_Conta_EjerciciosGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3258,7 +3258,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddEjercicio(Ejercicio As String, PeriodoActual As Integer, Estatus As Boolean, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddEjercicio(Ejercicio As String, PeriodoActual As Integer, Estatus As Boolean, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EjerciciosAdd")
|
DataAdapter("PA_Conta_EjerciciosAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3279,7 +3279,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateEjercicio(CveEjercicio As Integer, Ejercicio As String, Estatus As Boolean, CveEmpresa As Integer) As Boolean
|
Public Function UpdateEjercicio(CveEjercicio As Integer, Ejercicio As String, Estatus As Boolean, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EjerciciosUpdate")
|
DataAdapter("PA_Conta_EjerciciosUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3300,7 +3300,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function RemoveEjercicio(CveEjercicio As Integer, CveEmpresa As Integer) As Boolean
|
Public Function RemoveEjercicio(CveEjercicio As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EjerciciosRemove")
|
DataAdapter("PA_Conta_EjerciciosRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3324,7 +3324,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "REPORTE DE CONTABILIDAD"
|
#Region "REPORTE DE CONTABILIDAD"
|
||||||
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosMensual")
|
DataAdapter("PA_Conta_EstadoResultadosMensual")
|
||||||
|
|
||||||
@@ -3351,7 +3351,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer, CveEmpresa As Integer, CveSubProyecto As String) As Boolean
|
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer, CveEmpresa As Integer, CveSubProyecto As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralAnual")
|
DataAdapter("PA_Conta_BalanceGeneralAnual")
|
||||||
|
|
||||||
@@ -3375,7 +3375,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetSituacionFinanciera(FechaI As Date, FechaF As Date, CveEmpresa As Integer, CveSubProyecto As String, TipoMovtos As Integer, Optional SAT As Integer = 0, Optional Opcion As Integer = 1) As Boolean
|
Public Function GetSituacionFinanciera(FechaI As Date, FechaF As Date, CveEmpresa As Integer, CveSubProyecto As String, TipoMovtos As Integer, Optional SAT As Integer = 0, Optional Opcion As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3405,7 +3405,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
Public Function GetSituacionFinanciera2(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetSituacionFinanciera2(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3436,7 +3436,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetSituacionFinancieraMensuallHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetSituacionFinancieraMensuallHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3465,7 +3465,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetSituacionFinancieraAnualHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetSituacionFinancieraAnualHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3495,7 +3495,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetSituacionFinancieraSubProyectolHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetSituacionFinancieraSubProyectolHorizontal(FechaI As Date, FechaF As Date, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3524,7 +3524,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetAnexoCatalogo(CveCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1, Optional SAT As Integer = 0) As Boolean
|
Public Function GetAnexoCatalogo(CveCuenta As Integer, FechaI As Date, FechaF As Date, OpcionCuentas As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1, Optional SAT As Integer = 0) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_AnexoCatalogoGet")
|
DataAdapter("PA_Conta_AnexoCatalogoGet")
|
||||||
|
|
||||||
@@ -3551,7 +3551,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetMovimientosAuxiliaresCatalogo(CveCuenta As Integer, FechaI As Date, FechaF As Date, CveMoneda As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, TipoReporte As String, OpcionCuentas As Integer) As Boolean
|
Public Function GetMovimientosAuxiliaresCatalogo(CveCuenta As Integer, FechaI As Date, FechaF As Date, CveMoneda As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, TipoReporte As String, OpcionCuentas As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_MovimientosAuxiliaresCatalogoGet")
|
DataAdapter("PA_Conta_MovimientosAuxiliaresCatalogoGet")
|
||||||
|
|
||||||
@@ -3598,7 +3598,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoActividades(FechaI As Date, FechaF As Date, TipoMovtos As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional SAT As Integer = 0, Optional Opcion As Integer = 1) As Boolean
|
Public Function GetEstadoActividades(FechaI As Date, FechaF As Date, TipoMovtos As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional SAT As Integer = 0, Optional Opcion As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoActividadesGet")
|
DataAdapter("PA_Conta_EstadoActividadesGet")
|
||||||
|
|
||||||
@@ -3625,7 +3625,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, TipoCuentas As Integer, TipoReporte As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional Sat As Integer = 0, Optional NivelCuenta As Integer = -1) As Boolean
|
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, TipoCuentas As Integer, TipoReporte As Integer, CveProyecto As Integer, CveSubProyecto As Integer, CveEmpresa As Integer, Optional Sat As Integer = 0, Optional NivelCuenta As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanzaComprobacionGet")
|
DataAdapter("PA_Conta_BalanzaComprobacionGet")
|
||||||
@@ -3654,7 +3654,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetCambioSituacionFinanciera(FechaI As Date, FechaF As Date, Unidad As Integer, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer, Optional ConMovimientos As Integer = -1) As Boolean
|
Public Function GetCambioSituacionFinanciera(FechaI As Date, FechaF As Date, Unidad As Integer, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer, Optional ConMovimientos As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepCambioSituacionFinanciera")
|
DataAdapter("PA_Conta_RepCambioSituacionFinanciera")
|
||||||
|
|
||||||
@@ -3679,7 +3679,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetFlujoEfectivo(FechaI As Date, FechaF As Date, Unidad As Integer, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetFlujoEfectivo(FechaI As Date, FechaF As Date, Unidad As Integer, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepFlujoEfectivo")
|
DataAdapter("PA_Conta_RepFlujoEfectivo")
|
||||||
|
|
||||||
@@ -3703,7 +3703,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFlujoEfectivo2(FechaF As Date, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetFlujoEfectivo2(FechaF As Date, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepFlujoEfectivo2")
|
DataAdapter("PA_Conta_RepFlujoEfectivo2")
|
||||||
|
|
||||||
@@ -3724,7 +3724,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetOrigenAplicacion(FechaI As String, FechaF As String, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetOrigenAplicacion(FechaI As String, FechaF As String, TipoReporte As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepOrigenAplicacion")
|
DataAdapter("PA_Conta_RepOrigenAplicacion")
|
||||||
|
|
||||||
@@ -3802,7 +3802,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoResultadosMensual(ANO As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadosMensual(ANO As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosMensual")
|
DataAdapter("PA_Conta_EstadoResultadosMensual")
|
||||||
|
|
||||||
@@ -3824,7 +3824,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoResultadosAnual(ANO As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadosAnual(ANO As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosAnual")
|
DataAdapter("PA_Conta_EstadoResultadosAnual")
|
||||||
|
|
||||||
@@ -3845,7 +3845,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetOrigenAplicacionMensual(Ejercicio As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetOrigenAplicacionMensual(Ejercicio As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepOrigenAplicacionMensual")
|
DataAdapter("PA_Conta_RepOrigenAplicacionMensual")
|
||||||
|
|
||||||
@@ -3868,7 +3868,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetOrigenAplicacionAnual(Ejercicio As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetOrigenAplicacionAnual(Ejercicio As Integer, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_RepOrigenAplicacionAnual")
|
DataAdapter("PA_Conta_RepOrigenAplicacionAnual")
|
||||||
|
|
||||||
@@ -3890,7 +3890,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetVariacionHaciendaPublica(FechaI As Date, FechaF As Date, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
Public Function GetVariacionHaciendaPublica(FechaI As Date, FechaF As Date, TipoMovtos As Integer, CveSubProyecto As String, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_RepVariacionHaciendaPublica")
|
DataAdapter("PA_RepVariacionHaciendaPublica")
|
||||||
|
|
||||||
@@ -3913,7 +3913,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetLibroDiario(FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer, Optional CveTipoPoliza As Integer = -1) As Boolean
|
Public Function GetLibroDiario(FechaInicio As Date, FechaFin As Date, CveEmpresa As Integer, Optional CveTipoPoliza As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
'SqlAdapter.SelectCommand.t
|
'SqlAdapter.SelectCommand.t
|
||||||
|
|
||||||
@@ -3984,7 +3984,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region " REPORTES FINANCIEROS DICIEMBRE 2016 "
|
#Region " REPORTES FINANCIEROS DICIEMBRE 2016 "
|
||||||
Public Function GetBalanceGeneralVertical(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralVertical(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralVerticalGet")
|
DataAdapter("PA_Conta_BalanceGeneralVerticalGet")
|
||||||
|
|
||||||
@@ -4006,7 +4006,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetBalanceGeneralMensualVertical(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralMensualVertical(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralVerticalMensualGet")
|
DataAdapter("PA_Conta_BalanceGeneralVerticalMensualGet")
|
||||||
|
|
||||||
@@ -4027,7 +4027,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetBalanceGeneralAnualVertical(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralAnualVertical(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralAnualGet")
|
DataAdapter("PA_Conta_BalanceGeneralAnualGet")
|
||||||
|
|
||||||
@@ -4049,7 +4049,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralMensualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralMensualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralHorizontalMensualGet")
|
DataAdapter("PA_Conta_BalanceGeneralHorizontalMensualGet")
|
||||||
|
|
||||||
@@ -4071,7 +4071,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralHorizontalCC(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralHorizontalCC(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_BalanceGeneralHorizontalCCGet")
|
DataAdapter("PA_Conta_BalanceGeneralHorizontalCCGet")
|
||||||
|
|
||||||
@@ -4093,7 +4093,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetEstadoResultadosVertical(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadosVertical(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosVerticalGet")
|
DataAdapter("PA_Conta_EstadoResultadosVerticalGet")
|
||||||
|
|
||||||
@@ -4115,7 +4115,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetEstadoResultadoMensualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadoMensualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosHorizontalMensual")
|
DataAdapter("PA_Conta_EstadoResultadosHorizontalMensual")
|
||||||
|
|
||||||
@@ -4137,7 +4137,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadoResultadosAnualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadosAnualHorizontal(Ejercicio As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosHorizontalAnual")
|
DataAdapter("PA_Conta_EstadoResultadosHorizontalAnual")
|
||||||
|
|
||||||
@@ -4160,7 +4160,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetEstadoResultadosHorizontalCC(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEstadoResultadosHorizontalCC(Ejercicio As Integer, Periodo As Integer, CveSubProyecto As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EstadoResultadosHorizontalCCGet")
|
DataAdapter("PA_Conta_EstadoResultadosHorizontalCCGet")
|
||||||
|
|
||||||
@@ -4183,7 +4183,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetAnexoCatalogoMensual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer, Divisor As Integer, CveUsuario As Integer, Periodo As Integer) As Boolean
|
Public Function GetAnexoCatalogoMensual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer, Divisor As Integer, CveUsuario As Integer, Periodo As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_AnexoCatalogoMensualGet")
|
DataAdapter("PA_Conta_AnexoCatalogoMensualGet")
|
||||||
|
|
||||||
@@ -4207,7 +4207,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetAnexoCatalogoAnual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer, EjercicioFinal As Integer, Divisor As Integer, CveUsuario As Integer, Periodo As Integer) As Boolean
|
Public Function GetAnexoCatalogoAnual(CveCuenta As Integer, Ejercicio As Integer, CveSubproyecto As Integer, CveEmpresa As Integer, EjercicioFinal As Integer, Divisor As Integer, CveUsuario As Integer, Periodo As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_AnexoCatalogoAnualGet")
|
DataAdapter("PA_Conta_AnexoCatalogoAnualGet")
|
||||||
|
|
||||||
@@ -4236,7 +4236,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetAnexoCatalagoCC(CveCuenta As Integer, FechaI As Date, FechaF As Date, CveSubProyecto As Integer, CveEmpresa As Integer, Divisor As Integer, CveUsuario As Integer) As Boolean
|
Public Function GetAnexoCatalagoCC(CveCuenta As Integer, FechaI As Date, FechaF As Date, CveSubProyecto As Integer, CveEmpresa As Integer, Divisor As Integer, CveUsuario As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_AnexoCatalogoCCGet")
|
DataAdapter("PA_Conta_AnexoCatalogoCCGet")
|
||||||
|
|
||||||
@@ -4261,7 +4261,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date) As Boolean
|
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
DataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
||||||
|
|
||||||
@@ -4288,7 +4288,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetRepPresupuestosIngresosSaldosDetalle(MomentoContable As Integer, FuenteRecaudacion As Integer, RubroIngreso As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
Public Function GetRepPresupuestosIngresosSaldosDetalle(MomentoContable As Integer, FuenteRecaudacion As Integer, RubroIngreso As Integer, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_PresupuestosIngresosSaldosDetalleRep")
|
DataAdapter("PA_PresupuestosIngresosSaldosDetalleRep")
|
||||||
|
|
||||||
@@ -4311,7 +4311,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetPresupuestoIngresosRep(Ejercicio As Integer, Fecha As Date, Gpo As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetPresupuestoIngresosRep(Ejercicio As Integer, Fecha As Date, Gpo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_PresupuestosIngresosRep")
|
DataAdapter("PA_PresupuestosIngresosRep")
|
||||||
|
|
||||||
@@ -4357,7 +4357,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetPresupuestoIngresosMensualesRep(Ejercicio As Integer, MomentoContable As Integer, CveFuenteRecaudacion As Integer, CveRubroIngreso As Integer, GPO As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetPresupuestoIngresosMensualesRep(Ejercicio As Integer, MomentoContable As Integer, CveFuenteRecaudacion As Integer, CveRubroIngreso As Integer, GPO As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_PresupuestosIngresosMensualesRep")
|
DataAdapter("PA_PresupuestosIngresosMensualesRep")
|
||||||
|
|
||||||
@@ -4381,7 +4381,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetDependenciasUnidadesResponsables(CveEmpresa As Integer) As Boolean
|
Public Function GetDependenciasUnidadesResponsables(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_DepUnidadResponsableGET")
|
DataAdapter("PA_DepUnidadResponsableGET")
|
||||||
|
|
||||||
@@ -4399,7 +4399,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetProgramaSubPrograma(CveEmpresa As Integer) As Boolean
|
Public Function GetProgramaSubPrograma(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ProGSubProgramaGET")
|
DataAdapter("PA_ProGSubProgramaGET")
|
||||||
|
|
||||||
@@ -4417,7 +4417,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetGrupoVulnerable(CveEmpresa As Integer) As Boolean
|
Public Function GetGrupoVulnerable(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_GrupoVulnerable")
|
DataAdapter("PA_GrupoVulnerable")
|
||||||
|
|
||||||
@@ -4435,7 +4435,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetTipoGasto(CveEmpresa As Integer) As Boolean
|
Public Function GetTipoGasto(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AC_TipoGastoGet")
|
DataAdapter("PA_AC_TipoGastoGet")
|
||||||
|
|
||||||
@@ -4449,7 +4449,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetClasificadorOG(CveEmpresa As Integer) As Boolean
|
Public Function GetClasificadorOG(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AC_ClasificadorOGGet")
|
DataAdapter("PA_AC_ClasificadorOGGet")
|
||||||
|
|
||||||
@@ -4467,7 +4467,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetClasificacion(CveEmpresa As Integer) As Boolean
|
Public Function GetClasificacion(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ClasificacionGET")
|
DataAdapter("PA_ClasificacionGET")
|
||||||
|
|
||||||
@@ -4485,7 +4485,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetClasificacionEconomica(CveEmpresa As Integer) As Boolean
|
Public Function GetClasificacionEconomica(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ClasificacionEconomicaGET")
|
DataAdapter("PA_ClasificacionEconomicaGET")
|
||||||
|
|
||||||
@@ -4503,7 +4503,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetFuenteFinanciera(CveEmpresa As Integer) As Boolean
|
Public Function GetFuenteFinanciera(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AC_FuentesFinanciamientoGet")
|
DataAdapter("PA_AC_FuentesFinanciamientoGet")
|
||||||
|
|
||||||
@@ -4715,7 +4715,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
Public Function GetRepPresupuestosEgresosSaldosDetalle(MomentoContable As Integer, ProgramaOperativo As Integer, FuenteFinanciamiento As Integer, TipoGasto As Integer, UnidadAdministrativa As Integer, ClasificacionOG As Integer, CodigoOG As String, FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
DataAdapter("PA_PresupuestosEgresosSaldosDetalleRep")
|
||||||
|
|
||||||
@@ -4743,7 +4743,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetGeneraPolizaPresupuestoEgresos(CveEmpresa As Integer, CveEjercicio As Integer) As Boolean
|
Public Function GetGeneraPolizaPresupuestoEgresos(CveEmpresa As Integer, CveEjercicio As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_GeneraPolizaPresupuestoEgresos")
|
DataAdapter("PA_Conta_GeneraPolizaPresupuestoEgresos")
|
||||||
|
|
||||||
@@ -5014,7 +5014,7 @@ Public Class ClsContabilidad
|
|||||||
#Region "FIS IMPUESTOS"
|
#Region "FIS IMPUESTOS"
|
||||||
|
|
||||||
Public Function GetFisImpuestos(CveImpuesto As Integer, CveImpuestoTipo As Integer, CveProveedor As Integer, Folio As String, CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date) As Boolean
|
Public Function GetFisImpuestos(CveImpuesto As Integer, CveImpuestoTipo As Integer, CveProveedor As Integer, Folio As String, CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_FisImpuestosGet")
|
DataAdapter("PA_Conta_FisImpuestosGet")
|
||||||
|
|
||||||
@@ -5039,7 +5039,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetFisImpuestosDetalle(CveImpuesto As Integer, CveImpuestoTipo As Integer, CveProveedor As Integer, Folio As String, CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date) As Boolean
|
Public Function GetFisImpuestosDetalle(CveImpuesto As Integer, CveImpuestoTipo As Integer, CveProveedor As Integer, Folio As String, CveEmpresa As Integer, FechaInicio As Date, FechaFin As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_FisImpuestosDetalleGet")
|
DataAdapter("PA_Conta_FisImpuestosDetalleGet")
|
||||||
|
|
||||||
@@ -5064,7 +5064,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddUpdateFisImpuestos(CveImpuesto As Integer, CveImpuestoTipo As Integer, CvePrePoliza As Integer, CveProveedor As Integer, Fecha As Date, Folio As String, Comprobante As String, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddUpdateFisImpuestos(CveImpuesto As Integer, CveImpuestoTipo As Integer, CvePrePoliza As Integer, CveProveedor As Integer, Fecha As Date, Folio As String, Comprobante As String, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_FisImpuestosAddUpdate")
|
DataAdapter("PA_Conta_FisImpuestosAddUpdate")
|
||||||
|
|
||||||
@@ -5119,7 +5119,7 @@ Public Class ClsContabilidad
|
|||||||
'End Function
|
'End Function
|
||||||
|
|
||||||
Public Function GetFisImpuestosTipos(Estatus As Integer) As Boolean
|
Public Function GetFisImpuestosTipos(Estatus As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Fis_ImpuestosTiposGet")
|
DataAdapter("PA_Fis_ImpuestosTiposGet")
|
||||||
|
|
||||||
@@ -5141,7 +5141,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "Contabilidad Electronica"
|
#Region "Contabilidad Electronica"
|
||||||
Public Function GetCuentasElectronica(CveEmpresa As Integer) As Boolean
|
Public Function GetCuentasElectronica(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaElectronicaCuentasGet")
|
DataAdapter("PA_Conta_ContaElectronicaCuentasGet")
|
||||||
|
|
||||||
@@ -5160,7 +5160,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanzaComprobacion(FechaI As Date, FechaF As Date, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaElectronicaBalanzaGet")
|
DataAdapter("PA_Conta_ContaElectronicaBalanzaGet")
|
||||||
|
|
||||||
@@ -5183,7 +5183,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "Estado de Situacion Financiera"
|
#Region "Estado de Situacion Financiera"
|
||||||
Public Function GetSituacionFinanciera(FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1) As Boolean
|
Public Function GetSituacionFinanciera(FechaI As Date, FechaF As Date, CveEmpresa As Integer, Optional TipoMovtos As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_SituacionFinancieraGet")
|
DataAdapter("PA_SituacionFinancieraGet")
|
||||||
|
|
||||||
@@ -5205,7 +5205,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralMensual(ANO As Integer, TipoMovtos As Integer, SubTotales As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_BalanceGeneralMensual")
|
DataAdapter("PA_BalanceGeneralMensual")
|
||||||
|
|
||||||
@@ -5227,7 +5227,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetBalanceGeneralAnual(ANO As Integer, TipoMovtos As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_BalanceGeneralAnual")
|
DataAdapter("PA_BalanceGeneralAnual")
|
||||||
|
|
||||||
@@ -5337,7 +5337,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "Cierre Contable"
|
#Region "Cierre Contable"
|
||||||
Public Function GetCuentasCierre(FechaI As Date, FechaF As Date, CveCuentaCierre As Integer, CveEmpresa As Integer, CveUsuario As Integer) As Integer
|
Public Function GetCuentasCierre(FechaI As Date, FechaF As Date, CveCuentaCierre As Integer, CveEmpresa As Integer, CveUsuario As Integer) As Integer
|
||||||
Dim Retorno = 0
|
Dim Retorno As Integer = 0
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CierrePolizaCuentasGet")
|
DataAdapter("PA_Conta_CierrePolizaCuentasGet")
|
||||||
|
|
||||||
@@ -5409,7 +5409,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetGastosRepCC(FechaInicio As DateTime, FechaFin As DateTime, CveEmpresa As Integer) As Boolean
|
Public Function GetGastosRepCC(FechaInicio As DateTime, FechaFin As DateTime, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ReporteGastos")
|
DataAdapter("PA_Conta_ReporteGastos")
|
||||||
|
|
||||||
@@ -5431,7 +5431,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetEdoResultadosMes(FechaInicio As Date, FechaFin As Date, CveTipoGasto As Integer, CveClasificacion As Integer, CveSubProyecto As Integer, Agrupador As Integer, CveEmpresa As Integer, Unidad As Integer) As DataSet
|
Public Function GetEdoResultadosMes(FechaInicio As Date, FechaFin As Date, CveTipoGasto As Integer, CveClasificacion As Integer, CveSubProyecto As Integer, Agrupador As Integer, CveEmpresa As Integer, Unidad As Integer) As DataSet
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
Dim ds As New DataSet
|
Dim ds As New DataSet
|
||||||
DataAdapter("PA_Conta_EdoResultado2")
|
DataAdapter("PA_Conta_EdoResultado2")
|
||||||
|
|
||||||
@@ -5621,7 +5621,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetCuentasAsignaciones(CveEmpresa As Integer) As Boolean
|
Public Function GetCuentasAsignaciones(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasAsignacionesGet")
|
DataAdapter("PA_Conta_CuentasAsignacionesGet")
|
||||||
|
|
||||||
@@ -5640,7 +5640,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetCuentasAsignacionesSistema(CveEmpresa As Integer, Tipo As Integer, Opcion As Integer, CveConcepto As Integer) As Boolean
|
Public Function GetCuentasAsignacionesSistema(CveEmpresa As Integer, Tipo As Integer, Opcion As Integer, CveConcepto As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasAsignacionesSistemaGet")
|
DataAdapter("PA_Conta_CuentasAsignacionesSistemaGet")
|
||||||
|
|
||||||
@@ -5667,7 +5667,7 @@ Public Class ClsContabilidad
|
|||||||
Optional CveSubProyecto As Integer = -1, Optional CveActivoFijo As Integer = -1, Optional CveTipoGasto As Integer = -1, Optional CveCredito As Integer = -1,
|
Optional CveSubProyecto As Integer = -1, Optional CveActivoFijo As Integer = -1, Optional CveTipoGasto As Integer = -1, Optional CveCredito As Integer = -1,
|
||||||
Optional RegeneraCuenta As Boolean = False,
|
Optional RegeneraCuenta As Boolean = False,
|
||||||
Optional OpActualizarClasificacion As Boolean = False) As Boolean
|
Optional OpActualizarClasificacion As Boolean = False) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasAsignacionesAdd")
|
DataAdapter("PA_Conta_CuentasAsignacionesAdd")
|
||||||
|
|
||||||
@@ -5707,7 +5707,7 @@ Public Class ClsContabilidad
|
|||||||
Optional PorcentajeIVA As Decimal = -1, Optional CveConceptoNomina As Decimal = -1, Optional CveBancoCuenta As Integer = -1,
|
Optional PorcentajeIVA As Decimal = -1, Optional CveConceptoNomina As Decimal = -1, Optional CveBancoCuenta As Integer = -1,
|
||||||
Optional CveSubProyecto As Integer = -1, Optional CveActivoFijo As Integer = -1, Optional CveTipoGasto As Integer = -1,
|
Optional CveSubProyecto As Integer = -1, Optional CveActivoFijo As Integer = -1, Optional CveTipoGasto As Integer = -1,
|
||||||
Optional CveCredito As Integer = -1, Optional RegeneraCuenta As Boolean = False) As Boolean
|
Optional CveCredito As Integer = -1, Optional RegeneraCuenta As Boolean = False) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasAsignacionesUpdate")
|
DataAdapter("PA_Conta_CuentasAsignacionesUpdate")
|
||||||
|
|
||||||
@@ -5740,7 +5740,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function RemoveCuentasAsignaciones(CveCuentaAsignacion As Integer) As Boolean
|
Public Function RemoveCuentasAsignaciones(CveCuentaAsignacion As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasAsignacionesDelete")
|
DataAdapter("PA_Conta_CuentasAsignacionesDelete")
|
||||||
|
|
||||||
@@ -5760,7 +5760,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "Globales"
|
#Region "Globales"
|
||||||
Public Function GetCuentasGlobales(CveEmpresa As Integer, Optional CveConcepto As Integer = -1) As Boolean
|
Public Function GetCuentasGlobales(CveEmpresa As Integer, Optional CveConcepto As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasGlobalesGet")
|
DataAdapter("PA_Conta_CuentasGlobalesGet")
|
||||||
|
|
||||||
@@ -5780,7 +5780,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddCuentasGlobales(CveConceptoContable As Integer, CveCuenta As Integer, TipoGlobal As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddCuentasGlobales(CveConceptoContable As Integer, CveCuenta As Integer, TipoGlobal As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasGlobalesAdd")
|
DataAdapter("PA_Conta_CuentasGlobalesAdd")
|
||||||
|
|
||||||
@@ -5802,7 +5802,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function RemoveCuentasGlobales(CveConceptoContable As Integer, CveEmpresa As Integer) As Boolean
|
Public Function RemoveCuentasGlobales(CveConceptoContable As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_CuentasGlobalesDelete")
|
DataAdapter("PA_Conta_CuentasGlobalesDelete")
|
||||||
|
|
||||||
@@ -5825,7 +5825,7 @@ Public Class ClsContabilidad
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Public Function GetContaEjercicio(CveEmpresa As Integer) As Boolean
|
Public Function GetContaEjercicio(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaEjerciciosGet")
|
DataAdapter("PA_Conta_ContaEjerciciosGet")
|
||||||
|
|
||||||
@@ -5845,7 +5845,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
Public Function AddContaEjercicio(Ejercicio As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional PeriodoActual As Integer = 0,
|
Public Function AddContaEjercicio(Ejercicio As Integer, CveUsuario As Integer, CveEmpresa As Integer, Optional PeriodoActual As Integer = 0,
|
||||||
Optional CveCuentaCierre As Integer = -1, Optional CvePoliza As Integer = -1, Optional CvePrePoliza As Integer = -1) As Boolean
|
Optional CveCuentaCierre As Integer = -1, Optional CvePoliza As Integer = -1, Optional CvePrePoliza As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaEjerciciosAdd")
|
DataAdapter("PA_Conta_ContaEjerciciosAdd")
|
||||||
|
|
||||||
@@ -5871,7 +5871,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
Public Function UpdateContaEjercicio(CveEjercicio As Integer, Optional Ejercicio As Integer = -1, Optional PeriodoActual As Integer = 0, Optional CveCuentaCierre As Integer = -1,
|
Public Function UpdateContaEjercicio(CveEjercicio As Integer, Optional Ejercicio As Integer = -1, Optional PeriodoActual As Integer = 0, Optional CveCuentaCierre As Integer = -1,
|
||||||
Optional CvePoliza As Integer = -1, Optional CvePrePoliza As Integer = -1, Optional Estatus As Boolean = False) As Boolean
|
Optional CvePoliza As Integer = -1, Optional CvePrePoliza As Integer = -1, Optional Estatus As Boolean = False) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaEjerciciosUpdate")
|
DataAdapter("PA_Conta_ContaEjerciciosUpdate")
|
||||||
|
|
||||||
@@ -5896,7 +5896,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function RemoveContaEjercicio(CveEjercicio As Integer) As Boolean
|
Public Function RemoveContaEjercicio(CveEjercicio As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ContaEjerciciosDelete")
|
DataAdapter("PA_Conta_ContaEjerciciosDelete")
|
||||||
|
|
||||||
@@ -5976,7 +5976,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region " RECONSTRUCCION DE PREPOLIZAS "
|
#Region " RECONSTRUCCION DE PREPOLIZAS "
|
||||||
Public Function ReconstruirPP_PagoCompra(CvePrePoliza As Integer) As Boolean
|
Public Function ReconstruirPP_PagoCompra(CvePrePoliza As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AD_PrePolizaReconstruccionPagoCompra")
|
DataAdapter("PA_AD_PrePolizaReconstruccionPagoCompra")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -5993,7 +5993,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function ReconstruirPP_Compra(CveCompra As Integer) As Boolean
|
Public Function ReconstruirPP_Compra(CveCompra As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AD_PrePolizaReconstruccionCompra")
|
DataAdapter("PA_AD_PrePolizaReconstruccionCompra")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6010,7 +6010,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function ReconstruirPP_PagoVenta(CvePrePoliza As Integer) As Boolean
|
Public Function ReconstruirPP_PagoVenta(CvePrePoliza As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AD_PrePolizaReconstruccionPagoVenta")
|
DataAdapter("PA_AD_PrePolizaReconstruccionPagoVenta")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6027,7 +6027,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function ReconstruirPP_PagoCompraVenta(CveIE As Integer) As Boolean
|
Public Function ReconstruirPP_PagoCompraVenta(CveIE As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_AD_PrePolizaReconstruccionPagoCompraVenta")
|
DataAdapter("PA_AD_PrePolizaReconstruccionPagoCompraVenta")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6048,7 +6048,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "VALIDACION POLIZA DESCUADRADA"
|
#Region "VALIDACION POLIZA DESCUADRADA"
|
||||||
Public Function ValidacionPrePolizaCuadre(CvePrePoliza As Integer, Opcion As Integer, Optional CveVenta As Integer = -1, Optional AutoConta As Boolean = True) As Boolean
|
Public Function ValidacionPrePolizaCuadre(CvePrePoliza As Integer, Opcion As Integer, Optional CveVenta As Integer = -1, Optional AutoConta As Boolean = True) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_PrePolizasValidacion")
|
DataAdapter("PA_Conta_PrePolizasValidacion")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6081,7 +6081,7 @@ Public Class ClsContabilidad
|
|||||||
Public Function ValidacionesPrePoliza(CvePrePoliza As Integer, ByRef UsuarioActual As Usuario, Optional Opcion As Integer = 1,
|
Public Function ValidacionesPrePoliza(CvePrePoliza As Integer, ByRef UsuarioActual As Usuario, Optional Opcion As Integer = 1,
|
||||||
Optional CveVenta As Integer = -1, Optional AutoConta As Boolean = True,
|
Optional CveVenta As Integer = -1, Optional AutoConta As Boolean = True,
|
||||||
Optional ObjConta As ClsContPAQi = Nothing) As Boolean
|
Optional ObjConta As ClsContPAQi = Nothing) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_PrePolizasValidacion")
|
DataAdapter("PA_Conta_PrePolizasValidacion")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6175,7 +6175,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "Periodos Bloqueo Meses"
|
#Region "Periodos Bloqueo Meses"
|
||||||
Public Function GetPeriodosBloqueo(CveEmpresa As Integer) As Boolean
|
Public Function GetPeriodosBloqueo(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EmpresasBloqueoMesesGet")
|
DataAdapter("PA_Conta_EmpresasBloqueoMesesGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6192,7 +6192,7 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddPeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer, Mes1 As Integer, Mes2 As Integer, Mes3 As Integer, Mes4 As Integer, Mes5 As Integer, Mes6 As Integer, Mes7 As Integer, Mes8 As Integer, Mes9 As Integer, Mes10 As Integer, Mes11 As Integer, Mes12 As Integer) As Boolean
|
Public Function AddPeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer, Mes1 As Integer, Mes2 As Integer, Mes3 As Integer, Mes4 As Integer, Mes5 As Integer, Mes6 As Integer, Mes7 As Integer, Mes8 As Integer, Mes9 As Integer, Mes10 As Integer, Mes11 As Integer, Mes12 As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EmpresasBloqueoMesesAdd")
|
DataAdapter("PA_Conta_EmpresasBloqueoMesesAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6224,7 +6224,7 @@ Public Class ClsContabilidad
|
|||||||
Public Function UpdatePeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer, Mes1 As Boolean, Mes2 As Boolean, Mes3 As Boolean, Mes4 As Boolean, Mes5 As Boolean,
|
Public Function UpdatePeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer, Mes1 As Boolean, Mes2 As Boolean, Mes3 As Boolean, Mes4 As Boolean, Mes5 As Boolean,
|
||||||
Mes6 As Boolean, Mes7 As Boolean, Mes8 As Boolean, Mes9 As Boolean, Mes10 As Boolean, Mes11 As Boolean, Mes12 As Boolean,
|
Mes6 As Boolean, Mes7 As Boolean, Mes8 As Boolean, Mes9 As Boolean, Mes10 As Boolean, Mes11 As Boolean, Mes12 As Boolean,
|
||||||
CveUsuario As Integer) As String
|
CveUsuario As Integer) As String
|
||||||
Dim Retorno = ""
|
Dim Retorno As String = ""
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EmpresasBloqueoMesesUpdate")
|
DataAdapter("PA_Conta_EmpresasBloqueoMesesUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6258,7 +6258,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
Public Function RemovePeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer) As Boolean
|
Public Function RemovePeriodosBloqueo(CveEmpresa As Integer, Ejercicio As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_EmpresasBloqueoMesesRemove")
|
DataAdapter("PA_Conta_EmpresasBloqueoMesesRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -6277,7 +6277,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetBloqueoMesesBitacora(CveEmpresa As Integer) As Boolean
|
Public Function GetBloqueoMesesBitacora(CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_GetBloqueoMesesBitacora")
|
DataAdapter("PA_Conta_GetBloqueoMesesBitacora")
|
||||||
|
|
||||||
@@ -6300,7 +6300,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetEstadosMensual(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetEstadosMensual(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta2_EstadoResultadosMensual")
|
DataAdapter("PA_Conta2_EstadoResultadosMensual")
|
||||||
|
|
||||||
@@ -6329,7 +6329,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetEstadosMensualHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetEstadosMensualHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta2_EstadoResultadosMensualHorizontal")
|
DataAdapter("PA_Conta2_EstadoResultadosMensualHorizontal")
|
||||||
|
|
||||||
@@ -6357,11 +6357,8 @@ Public Class ClsContabilidad
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetEstadosAnualHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1, Optional Periodo As Integer = 12) As Boolean
|
Public Function GetEstadosAnualHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1, Optional Periodo As Integer = 12) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta2_EstadoResultadosAnualHorizontal")
|
DataAdapter("PA_Conta2_EstadoResultadosAnualHorizontal")
|
||||||
|
|
||||||
@@ -6392,7 +6389,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetEstadosSubProyectoHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
Public Function GetEstadosSubProyectoHorizontal(FechaI As Date, FechaF As Date, CveProyecto As Integer, CveSubProyecto As Integer, Divisor As Integer, CveEmpresa As Integer, CveUsuario As Integer, Optional Tipo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta2_EstadoResultadosSubProyectolHorizontal")
|
DataAdapter("PA_Conta2_EstadoResultadosSubProyectolHorizontal")
|
||||||
|
|
||||||
@@ -6423,7 +6420,7 @@ Public Class ClsContabilidad
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Public Function UpdateTraspasoPrepoliza(CveEmpresa As Integer, CveCuenta As Integer, CveCuentaNueva As Integer) As Boolean
|
Public Function UpdateTraspasoPrepoliza(CveEmpresa As Integer, CveCuenta As Integer, CveCuentaNueva As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_Traspaso_Prepolizas")
|
DataAdapter("PA_Conta_Traspaso_Prepolizas")
|
||||||
|
|
||||||
@@ -6444,7 +6441,7 @@ Public Class ClsContabilidad
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateProveedorPoliza(CveOrdenCompra As Integer, CveProveedor As Integer, Concepto As String) As Boolean
|
Public Function UpdateProveedorPoliza(CveOrdenCompra As Integer, CveProveedor As Integer, Concepto As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_ActualizarProveedor")
|
DataAdapter("PA_Conta_ActualizarProveedor")
|
||||||
|
|
||||||
@@ -6466,7 +6463,7 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#Region "F L U C T U A C I O N - C A M B I A R I A"
|
#Region "F L U C T U A C I O N - C A M B I A R I A"
|
||||||
Public Function UpdateTCValuacion(CveVenta As Integer, CveCompra As Integer, CveIE As Integer, TCValuacion As Decimal, CveEmpresa As Integer) As Boolean
|
Public Function UpdateTCValuacion(CveVenta As Integer, CveCompra As Integer, CveIE As Integer, TCValuacion As Decimal, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Conta_TipoCambioValuacionUpdate")
|
DataAdapter("PA_Conta_TipoCambioValuacionUpdate")
|
||||||
|
|
||||||
@@ -6490,8 +6487,6 @@ Public Class ClsContabilidad
|
|||||||
|
|
||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetPolizas(Ejercicio As Integer, Periodo As Integer, TipoPoliza As Integer, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetPolizas(Ejercicio As Integer, Periodo As Integer, TipoPoliza As Integer, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Respuesta As Boolean = False
|
Dim Respuesta As Boolean = False
|
||||||
|
|
||||||
|
|||||||
@@ -401,7 +401,7 @@ Public Class ClsContratos
|
|||||||
Optional TipoGarantia As Integer = -1, Optional Folio As Integer = -1, Optional FechaVenc As Date = Nothing, Optional EstatusFianza As Integer = -1, Optional CveContratoPlantilla As Integer = -1, Optional CveCuentaEquipo As Integer = -1,
|
Optional TipoGarantia As Integer = -1, Optional Folio As Integer = -1, Optional FechaVenc As Date = Nothing, Optional EstatusFianza As Integer = -1, Optional CveContratoPlantilla As Integer = -1, Optional CveCuentaEquipo As Integer = -1,
|
||||||
Optional CveVendedor As Integer = -1, Optional Observaciones As String = "", Optional CveDireccionEnvio As Integer = -1, Optional AplicaImpuestosLocales As Boolean = False, Optional CorreoNotificacionPedDev As String = "", Optional FacturacionCicilica As Boolean = False, Optional FacturacionCiclicaAutomatico As Boolean = False,
|
Optional CveVendedor As Integer = -1, Optional Observaciones As String = "", Optional CveDireccionEnvio As Integer = -1, Optional AplicaImpuestosLocales As Boolean = False, Optional CorreoNotificacionPedDev As String = "", Optional FacturacionCicilica As Boolean = False, Optional FacturacionCiclicaAutomatico As Boolean = False,
|
||||||
Optional DiaMesFacturacion As Integer = 1, Optional CvePeriodo As Integer = -1, Optional ObservacionesGenerales As String = "") As Boolean
|
Optional DiaMesFacturacion As Integer = 1, Optional CvePeriodo As Integer = -1, Optional ObservacionesGenerales As String = "") As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosUpdate")
|
DataAdapter("PA_Con_ContratosUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -475,7 +475,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function TerminarContrato(CveContrato As Integer, CveTipoEstatus As Integer, CveEmpresa As Integer) As Integer
|
Public Function TerminarContrato(CveContrato As Integer, CveTipoEstatus As Integer, CveEmpresa As Integer) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosTerminar")
|
DataAdapter("PA_Con_ContratosTerminar")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -498,7 +498,7 @@ Public Class ClsContratos
|
|||||||
'Usado en conrtatos Obra
|
'Usado en conrtatos Obra
|
||||||
Public Function AbrirCerrarContrato(CveContrato As Integer, CveEmpresa As Integer, Cerrar As Boolean, CveUsuario As Integer) As Boolean
|
Public Function AbrirCerrarContrato(CveContrato As Integer, CveEmpresa As Integer, Cerrar As Boolean, CveUsuario As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraAbrirCerrar")
|
DataAdapter("PA_Con_ContratosObraAbrirCerrar")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -529,7 +529,7 @@ Public Class ClsContratos
|
|||||||
'End Function
|
'End Function
|
||||||
Public Function RemoveContrato(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function RemoveContrato(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosRemove")
|
DataAdapter("PA_Con_ContratosRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -660,7 +660,7 @@ Public Class ClsContratos
|
|||||||
Optional TipoGarantia As Integer = -1, Optional Folio As Integer = -1, Optional FechaVenc As Date = Nothing, Optional EstatusFianza As Integer = -1, Optional CveContratoPlantilla As Integer = -1, Optional CveCuentaEquipo As Integer = -1,
|
Optional TipoGarantia As Integer = -1, Optional Folio As Integer = -1, Optional FechaVenc As Date = Nothing, Optional EstatusFianza As Integer = -1, Optional CveContratoPlantilla As Integer = -1, Optional CveCuentaEquipo As Integer = -1,
|
||||||
Optional CveVendedor As Integer = -1, Optional Observaciones As String = "", Optional CveDireccionEnvio As Integer = -1, Optional AplicaImpuestosLocales As Boolean = False, Optional CorreoNotificacionPedDev As String = "", Optional Lugar As String = "", Optional LimiteDeGasto As Double = 0,
|
Optional CveVendedor As Integer = -1, Optional Observaciones As String = "", Optional CveDireccionEnvio As Integer = -1, Optional AplicaImpuestosLocales As Boolean = False, Optional CorreoNotificacionPedDev As String = "", Optional Lugar As String = "", Optional LimiteDeGasto As Double = 0,
|
||||||
Optional ImporteSubTotal As Decimal = 0) As Boolean
|
Optional ImporteSubTotal As Decimal = 0) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraUpdate")
|
DataAdapter("PA_Con_ContratosObraUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -731,7 +731,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetContratosObraEstadoCuenta(CveContrato As Integer, CveEmpresa As Integer, Opcion As Integer) As Boolean
|
Public Function GetContratosObraEstadoCuenta(CveContrato As Integer, CveEmpresa As Integer, Opcion As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosEstadoCuentaGet")
|
DataAdapter("PA_Con_ContratosEstadoCuentaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -755,7 +755,7 @@ Public Class ClsContratos
|
|||||||
#Region "ESTIMACION OBRA"
|
#Region "ESTIMACION OBRA"
|
||||||
|
|
||||||
Public Function GetContratosObraRepAvances(FechaI As Date, FechaF As Date, CveCliente As Integer, CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraRepAvances(FechaI As Date, FechaF As Date, CveCliente As Integer, CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraRepAvancesGet")
|
DataAdapter("PA_Con_ContratosObraRepAvancesGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -778,7 +778,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObraRepAvancesDetalle(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraRepAvancesDetalle(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraRepAvancesDetalleGet")
|
DataAdapter("PA_Con_ContratosObraRepAvancesDetalleGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -798,7 +798,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObraRepAvancesPartida(CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraRepAvancesPartida(CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraRepAvancesPartidaGet")
|
DataAdapter("PA_Con_ContratosObraRepAvancesPartidaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -817,7 +817,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetContratosObraRepAvancesPartida(FechaI As Date, FechaF As Date, CveCliente As Integer, CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraRepAvancesPartida(FechaI As Date, FechaF As Date, CveCliente As Integer, CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraRepAvancesPartidaGet")
|
DataAdapter("PA_Con_ContratosObraRepAvancesPartidaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -840,7 +840,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObraAvancesControlAcumulativo(CveContrato As Integer, CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraAvancesControlAcumulativo(CveContrato As Integer, CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraAvancesControlAcumulativo")
|
DataAdapter("PA_Con_ContratosObraAvancesControlAcumulativo")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -866,11 +866,8 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "GASTOS OBRA"
|
#Region "GASTOS OBRA"
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObragGastosVeiculos(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObragGastosVeiculos(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraGastosVeiculosGet")
|
DataAdapter("PA_Con_ContratosObraGastosVeiculosGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -888,10 +885,8 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObragGastosCompras(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObragGastosCompras(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraGastosComprasGet")
|
DataAdapter("PA_Con_ContratosObraGastosComprasGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -911,7 +906,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosObragGastosNomina(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObragGastosNomina(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosObraGastosNominaGet")
|
DataAdapter("PA_Con_ContratosObraGastosNominaGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1048,7 +1043,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
Public Function AddContratosDetalle(CveContrato As Integer, CvePS As Integer, Cantidad As Double, PU As Double, CveUsuario As Integer, CveTipoPresupuesto As Integer, NoIdentificacion As String, LimitarCantidad As Boolean, OCInterna As String,
|
Public Function AddContratosDetalle(CveContrato As Integer, CvePS As Integer, Cantidad As Double, PU As Double, CveUsuario As Integer, CveTipoPresupuesto As Integer, NoIdentificacion As String, LimitarCantidad As Boolean, OCInterna As String,
|
||||||
Optional Observacion As String = "", Optional CveRubro As Integer = -1, Optional CveActividad As Integer = -1, Optional CveSubTipoActivoFijo As Integer = -1, Optional Dias As Integer = -1) As Boolean
|
Optional Observacion As String = "", Optional CveRubro As Integer = -1, Optional CveActividad As Integer = -1, Optional CveSubTipoActivoFijo As Integer = -1, Optional Dias As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleAdd")
|
DataAdapter("PA_Con_ContratosDetalleAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1083,7 +1078,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
Public Function UpdateContratosDetalle(CveContratoDetalle As Integer, CveContrato As Integer, CvePS As Integer, Cantidad As Double, PU As Double, CveUsuario As Integer, NoIdentificacion As String, LimitarCantidad As Boolean, OCInterna As String,
|
Public Function UpdateContratosDetalle(CveContratoDetalle As Integer, CveContrato As Integer, CvePS As Integer, Cantidad As Double, PU As Double, CveUsuario As Integer, NoIdentificacion As String, LimitarCantidad As Boolean, OCInterna As String,
|
||||||
Optional Observacion As String = "", Optional CveRubro As Integer = -1, Optional CveActividad As Integer = -1, Optional CveSubTipoActivoFijo As Integer = -1, Optional Dias As Integer = -1) As Boolean
|
Optional Observacion As String = "", Optional CveRubro As Integer = -1, Optional CveActividad As Integer = -1, Optional CveSubTipoActivoFijo As Integer = -1, Optional Dias As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleUpdate")
|
DataAdapter("PA_Con_ContratosDetalleUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1116,7 +1111,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosDetalle(CveContrato As Integer, CveEmpresa As Integer, Optional Grupo As Integer = 1) As Boolean
|
Public Function GetContratosDetalle(CveContrato As Integer, CveEmpresa As Integer, Optional Grupo As Integer = 1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleGet")
|
DataAdapter("PA_Con_ContratosDetalleGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1136,7 +1131,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetContratosDetalleOC(CveCliente As Integer, OCs As String, Tipo As Integer) As Boolean
|
Public Function GetContratosDetalleOC(CveCliente As Integer, OCs As String, Tipo As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleOCGet")
|
DataAdapter("PA_Con_ContratosDetalleOCGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1156,7 +1151,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AutorizarContratos(CveContrato As Integer, CveUsuario As Integer) As Boolean
|
Public Function AutorizarContratos(CveContrato As Integer, CveUsuario As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAutorizar")
|
DataAdapter("PA_Con_ContratosAutorizar")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1175,7 +1170,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function UpdateContratosDetalleEstimacion(CveContratoDetalle As Integer, Estimacion As Integer) As Boolean
|
Public Function UpdateContratosDetalleEstimacion(CveContratoDetalle As Integer, Estimacion As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleUpdateEstimacion")
|
DataAdapter("PA_Con_ContratosDetalleUpdateEstimacion")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1194,7 +1189,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function RemoveContratosDetalle(CveContratoDetalle As Integer, CveContrato As Integer) As Boolean
|
Public Function RemoveContratosDetalle(CveContratoDetalle As Integer, CveContrato As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleRemove")
|
DataAdapter("PA_Con_ContratosDetalleRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1213,7 +1208,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function ValidaPSContrato(DtPS As String) As Boolean
|
Public Function ValidaPSContrato(DtPS As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ValidarPSContrato")
|
DataAdapter("PA_Con_ValidarPSContrato")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1231,7 +1226,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetPSContratoDetalle(CveContrato As Integer, DtPS As String) As Boolean
|
Public Function GetPSContratoDetalle(CveContrato As Integer, DtPS As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_GetPSContratoDetalle")
|
DataAdapter("PA_Con_GetPSContratoDetalle")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1253,7 +1248,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "Contratos detalles Avance"
|
#Region "Contratos detalles Avance"
|
||||||
Public Function GetContratosAvanceHistoricos(CveContrato As Integer, CveTipoPresupuesto As Integer, fecha As String) As Boolean
|
Public Function GetContratosAvanceHistoricos(CveContrato As Integer, CveTipoPresupuesto As Integer, fecha As String) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceHistorico")
|
DataAdapter("PA_Con_ContratosAvanceHistorico")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1272,7 +1267,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetContratosAvanceTodos(CveContrato As Integer, CveTipoPresupuesto As Integer) As Boolean
|
Public Function GetContratosAvanceTodos(CveContrato As Integer, CveTipoPresupuesto As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceTodos")
|
DataAdapter("PA_Con_ContratosAvanceTodos")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1290,7 +1285,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetContratosAvanceFecha(CveContrato As Integer, CveTipoPresupuesto As Integer) As Boolean
|
Public Function GetContratosAvanceFecha(CveContrato As Integer, CveTipoPresupuesto As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceFechas")
|
DataAdapter("PA_Con_ContratosAvanceFechas")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1308,7 +1303,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddContratosAvance(CveContratoDetalle As Integer, Cantidad As Double, Fecha As Date, CveUsuario As Integer, Optional CveEstimacion As Integer = -1) As Boolean
|
Public Function AddContratosAvance(CveContratoDetalle As Integer, Cantidad As Double, Fecha As Date, CveUsuario As Integer, Optional CveEstimacion As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Con_ContratosAvanceAdd")
|
DataAdapter("PA_Con_ContratosAvanceAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
|
.Add("@CveContratoDetalle", SqlDbType.Int).Value = CveContratoDetalle
|
||||||
@@ -1328,7 +1323,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateContratosDetalleAvance(CveContratoDetalle As Integer, Avance As Integer) As Boolean
|
Public Function UpdateContratosDetalleAvance(CveContratoDetalle As Integer, Avance As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosDetalleUpdateAvance")
|
DataAdapter("PA_Con_ContratosDetalleUpdateAvance")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1346,7 +1341,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function AddContratosAvanceAnexo(CveContratoAvance As Integer, Archivo As String, CveUsuario As Integer) As Boolean
|
Public Function AddContratosAvanceAnexo(CveContratoAvance As Integer, Archivo As String, CveUsuario As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Con_ContratosAvanceAnexosAdd")
|
DataAdapter("PA_Con_ContratosAvanceAnexosAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveContratoAvance", SqlDbType.Int).Value = CveContratoAvance
|
.Add("@CveContratoAvance", SqlDbType.Int).Value = CveContratoAvance
|
||||||
@@ -1363,7 +1358,7 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetContratosAvanceAnexos(CveContratoDetalle As Integer, CveUsuario As Integer, Optional CveEstimacion As Integer = -1, Optional CveContratoAvance As Integer = -1) As Boolean
|
Public Function GetContratosAvanceAnexos(CveContratoDetalle As Integer, CveUsuario As Integer, Optional CveEstimacion As Integer = -1, Optional CveContratoAvance As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceAnexos")
|
DataAdapter("PA_Con_ContratosAvanceAnexos")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1386,9 +1381,8 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "ESTIMACION"
|
#Region "ESTIMACION"
|
||||||
|
|
||||||
|
|
||||||
Public Function AddContratosObraAvance(CveContrato As Integer, CveContratoDetalle As Integer, Cantidad As Double, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddContratosObraAvance(CveContrato As Integer, CveContratoDetalle As Integer, Cantidad As Double, Fecha As Date, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
CveEstimacionActual = 0
|
CveEstimacionActual = 0
|
||||||
|
|
||||||
@@ -1422,7 +1416,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosAvanceEstimacion(CveContrato As Integer, CveEmpresa As Integer, CveEstimacion As Integer) As Boolean
|
Public Function GetContratosAvanceEstimacion(CveContrato As Integer, CveEmpresa As Integer, CveEstimacion As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceEstimacionGet")
|
DataAdapter("PA_Con_ContratosAvanceEstimacionGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1443,7 +1437,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function AddContratosAvanceEstimacion(CveContrato As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
Public Function AddContratosAvanceEstimacion(CveContrato As Integer, CveUsuario As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
NumeroEstimacionNueva = -1
|
NumeroEstimacionNueva = -1
|
||||||
CveEstimacionNueva = -1
|
CveEstimacionNueva = -1
|
||||||
@@ -1475,7 +1469,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
Public Function UpdateContratosAvanceEstimacion(CveContratoAvance As Integer, CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
Public Function UpdateContratosAvanceEstimacion(CveContratoAvance As Integer, CveEstimacion As Integer, CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceEstimacionUpdate")
|
DataAdapter("PA_Con_ContratosAvanceEstimacionUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1494,12 +1488,9 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Public Function UpdateContratosEstimacion(CveEstimacion As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveEstimacionEstatus As Integer) As Boolean
|
Public Function UpdateContratosEstimacion(CveEstimacion As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveEstimacionEstatus As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosEstimacionUpdate")
|
DataAdapter("PA_Con_ContratosEstimacionUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1524,7 +1515,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function RemoveContratosAvance(CveContratoAvance As Integer, CveEmpresa As Integer) As Boolean
|
Public Function RemoveContratosAvance(CveContratoAvance As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceRemove")
|
DataAdapter("PA_Con_ContratosAvanceRemove")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1549,7 +1540,7 @@ Public Class ClsContratos
|
|||||||
#Region "CONTRATOS OBRA COMPRAS"
|
#Region "CONTRATOS OBRA COMPRAS"
|
||||||
|
|
||||||
Public Function GetContratosObraCompras(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosObraCompras(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAvanceObraComprasGet")
|
DataAdapter("PA_Con_ContratosAvanceObraComprasGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1880,10 +1871,8 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "S U B - T O T A L E S"
|
#Region "S U B - T O T A L E S"
|
||||||
|
|
||||||
|
|
||||||
Public Function GetSubTotalesConDetalle(CveEmpresa As Integer) As Boolean
|
Public Function GetSubTotalesConDetalle(CveEmpresa As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
Dim Retorno = False
|
|
||||||
|
|
||||||
DataAdapter("PA_Con_SubtotalesWDetalles")
|
DataAdapter("PA_Con_SubtotalesWDetalles")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1902,8 +1891,7 @@ Public Class ClsContratos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetSubTotales(CveEmpresa As Integer, CveContrato As Integer) As Boolean
|
Public Function GetSubTotales(CveEmpresa As Integer, CveContrato As Integer) As Boolean
|
||||||
|
Dim Retorno As Boolean = False
|
||||||
Dim Retorno = False
|
|
||||||
|
|
||||||
DataAdapter("PA_Con_SubTotalesGet")
|
DataAdapter("PA_Con_SubTotalesGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1921,14 +1909,11 @@ Public Class ClsContratos
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
Public Function UpdateSubTotales(Descripcion As String, Porcentaje As Double,
|
Public Function UpdateSubTotales(Descripcion As String, Porcentaje As Double, CveSeccion As Integer, CveSubTotal As Integer, CveEmpresa As Integer) As Boolean
|
||||||
CveSeccion As Integer, CveSubTotal As Integer, CveEmpresa As Integer) As Boolean
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
Dim Retorno = False
|
|
||||||
|
|
||||||
DataAdapter("PA_Con_SubTotalesUpdate")
|
DataAdapter("PA_Con_SubTotalesUpdate")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|
||||||
.Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
|
.Add("@Descripcion", SqlDbType.VarChar).Value = Descripcion
|
||||||
.Add("@Porcentaje", SqlDbType.Float).Value = Porcentaje
|
.Add("@Porcentaje", SqlDbType.Float).Value = Porcentaje
|
||||||
.Add("@CveSeccion", SqlDbType.Int).Value = CveSeccion
|
.Add("@CveSeccion", SqlDbType.Int).Value = CveSeccion
|
||||||
@@ -1944,7 +1929,6 @@ Public Class ClsContratos
|
|||||||
End Try
|
End Try
|
||||||
|
|
||||||
Return Retorno
|
Return Retorno
|
||||||
|
|
||||||
End Function
|
End Function
|
||||||
Public Function AddContratosSubTotales(CveContrato As Integer, CveSubTotal As Integer, Porcentaje As Double, Importe As Double) As Boolean
|
Public Function AddContratosSubTotales(CveContrato As Integer, CveSubTotal As Integer, Porcentaje As Double, Importe As Double) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
@@ -1989,7 +1973,7 @@ Public Class ClsContratos
|
|||||||
#Region "S U B - T O T A L E S - D E T A L L E S"
|
#Region "S U B - T O T A L E S - D E T A L L E S"
|
||||||
Public Function GetSubTotalesDetalle(CveEmpresa As Integer) As Boolean
|
Public Function GetSubTotalesDetalle(CveEmpresa As Integer) As Boolean
|
||||||
|
|
||||||
Dim Retorno = True
|
Dim Retorno As Boolean = True
|
||||||
|
|
||||||
DataAdapter("PA_Con_SubTotalesDetalleGet")
|
DataAdapter("PA_Con_SubTotalesDetalleGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2795,7 +2779,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "Addendum"
|
#Region "Addendum"
|
||||||
Public Function GetContratosAddendum(CveContrato As Integer) As Boolean
|
Public Function GetContratosAddendum(CveContrato As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosAddendumGet")
|
DataAdapter("PA_Con_ContratosAddendumGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2814,7 +2798,7 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
|
|
||||||
Public Function GetContratosSuministros(CveContrato As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveEstatus As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosSuministros(CveContrato As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveEstatus As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosSuministrosGet")
|
DataAdapter("PA_Con_ContratosSuministrosGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2838,7 +2822,7 @@ Public Class ClsContratos
|
|||||||
#End Region
|
#End Region
|
||||||
|
|
||||||
Public Function GetContratosCostos(CveContrato As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveEstatus As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetContratosCostos(CveContrato As Integer, FechaInicio As DateTime, FechaFin As DateTime, CveEstatus As Integer, Tipo As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Con_ContratosCostosGet")
|
DataAdapter("PA_Con_ContratosCostosGet")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
|
|||||||
@@ -772,9 +772,9 @@ Public Class ClsGPS
|
|||||||
'Dim datos As New JArray()
|
'Dim datos As New JArray()
|
||||||
|
|
||||||
Using Row = SqlAdapter.SelectCommand.ExecuteReader()
|
Using Row = SqlAdapter.SelectCommand.ExecuteReader()
|
||||||
Dim Contador = 0
|
Dim Contador As Integer = 0
|
||||||
Dim Info = ""
|
Dim Info As String = ""
|
||||||
Dim Direccion = ""
|
Dim Direccion As String = ""
|
||||||
Dim SBBody As New StringBuilder
|
Dim SBBody As New StringBuilder
|
||||||
Dim StrPolyPath As New StringBuilder
|
Dim StrPolyPath As New StringBuilder
|
||||||
Dim StrScriptsMakers As New StringBuilder
|
Dim StrScriptsMakers As New StringBuilder
|
||||||
@@ -1051,7 +1051,7 @@ Public Class ClsGPS
|
|||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim noRows = SqlAdapter.SelectCommand.ExecuteNonQuery()
|
Dim noRows As Integer = SqlAdapter.SelectCommand.ExecuteNonQuery()
|
||||||
Retorno = (noRows = 1)
|
Retorno = (noRows = 1)
|
||||||
If Retorno Then
|
If Retorno Then
|
||||||
CveGeoReferencia = SqlAdapter.SelectCommand.Parameters("@CveGeoReferencia").Value.ToString.ToEntero
|
CveGeoReferencia = SqlAdapter.SelectCommand.Parameters("@CveGeoReferencia").Value.ToString.ToEntero
|
||||||
|
|||||||
@@ -105,7 +105,7 @@ Public Class ClsGPSHerramientas
|
|||||||
|
|
||||||
End Sub
|
End Sub
|
||||||
Public Function EjecutarComandoManualSMS(Trama As String, Telefono As String, CveDispositivo As Integer, CveUsuario As Integer, Optional Valor As String = "") As Boolean
|
Public Function EjecutarComandoManualSMS(Trama As String, Telefono As String, CveDispositivo As Integer, CveUsuario As Integer, Optional Valor As String = "") As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
Dim ObjMensaje As New ClsTecnoMovil
|
Dim ObjMensaje As New ClsTecnoMovil
|
||||||
If ObjMensaje.EnviarMensajeWS(Telefono, Trama) Then
|
If ObjMensaje.EnviarMensajeWS(Telefono, Trama) Then
|
||||||
Retorno = InsertarComandoEnviar(Trama, 2, 1, CveDispositivo, CveUsuario, -1)
|
Retorno = InsertarComandoEnviar(Trama, 2, 1, CveDispositivo, CveUsuario, -1)
|
||||||
|
|||||||
@@ -1817,7 +1817,7 @@ Public Class ClsGenerales
|
|||||||
|
|
||||||
End Function
|
End Function
|
||||||
Public Function GetTipoCambio(CveTipoCambio As Integer, Fecha As Date) As Boolean
|
Public Function GetTipoCambio(CveTipoCambio As Integer, Fecha As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Gral_TipoCambioGet")
|
DataAdapter("PA_Gral_TipoCambioGet")
|
||||||
|
|
||||||
@@ -1836,7 +1836,7 @@ Public Class ClsGenerales
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetTipoCambioUltimaFluctuacion(CveTipoCambio As Integer, Fecha As Date, Optional Top As Integer = 1000) As Boolean
|
Public Function GetTipoCambioUltimaFluctuacion(CveTipoCambio As Integer, Fecha As Date, Optional Top As Integer = 1000) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Gral_TipoCambioUltimaFluctuacionGet")
|
DataAdapter("PA_Gral_TipoCambioUltimaFluctuacionGet")
|
||||||
|
|
||||||
@@ -1856,7 +1856,7 @@ Public Class ClsGenerales
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetTiposCambio(FechaInicio As Date, FechaFin As Date) As Boolean
|
Public Function GetTiposCambio(FechaInicio As Date, FechaFin As Date) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Gral_TiposCambioGet")
|
DataAdapter("PA_Gral_TiposCambioGet")
|
||||||
|
|
||||||
|
|||||||
@@ -2028,7 +2028,7 @@ Public Class ClsOC
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetOCFacturacion(pCveOrdenCompra As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetOCFacturacion(pCveOrdenCompra As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_OC_OrdenesCompraFacturacionGet")
|
DataAdapter("PA_OC_OrdenesCompraFacturacionGet")
|
||||||
|
|
||||||
|
|||||||
@@ -1466,7 +1466,7 @@ Public Class ClsOIEventos
|
|||||||
|
|
||||||
#Region "E V E N T O S"
|
#Region "E V E N T O S"
|
||||||
Public Function GetEvento(CveEvento As Integer, CveUsuarioConsulta As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetEvento(CveEvento As Integer, CveUsuarioConsulta As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno = GetEventos(CveEvento, -1, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, CveUsuarioConsulta, CveEmpresa)
|
Dim Retorno As Boolean = GetEventos(CveEvento, -1, -1, "-1", "-1", -1, -1, -1, -1, -1, -1, "-1", -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, CveUsuarioConsulta, CveEmpresa)
|
||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function GetEvento(objEvento As Modelos.Evento, CveUsuarioConsulta As Integer) As Boolean
|
Public Function GetEvento(objEvento As Modelos.Evento, CveUsuarioConsulta As Integer) As Boolean
|
||||||
|
|||||||
@@ -19,8 +19,8 @@ Imports Newtonsoft.Json.Linq
|
|||||||
Public Class ClsPaginas
|
Public Class ClsPaginas
|
||||||
Inherits System.Web.UI.Page
|
Inherits System.Web.UI.Page
|
||||||
Public Const CveUsuarioAsistencia As Integer = 100
|
Public Const CveUsuarioAsistencia As Integer = 100
|
||||||
Public Const ContraseñaPredeterminada = "-acceso-"
|
Public Const ContraseñaPredeterminada As String = "-acceso-"
|
||||||
Public Const ContraseñaPredeterminadaEncriptada = "aQDyjiv2NgoTct4c84VnLQ==" ' "-acceso-"
|
Public Const ContraseñaPredeterminadaEncriptada As String = "aQDyjiv2NgoTct4c84VnLQ==" ' "-acceso-"
|
||||||
Private Shared EncryptKey() As Byte = {}
|
Private Shared EncryptKey() As Byte = {}
|
||||||
Private Shared ReadOnly IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}
|
Private Shared ReadOnly IV() As Byte = {&H12, &H34, &H56, &H78, &H90, &HAB, &HCD, &HEF}
|
||||||
Private Const SEncryptionKey As String = "__sig__$gj7+5&j__sig__"
|
Private Const SEncryptionKey As String = "__sig__$gj7+5&j__sig__"
|
||||||
@@ -1622,7 +1622,7 @@ Public Class ClsPaginas
|
|||||||
ObjPS.Dispose()
|
ObjPS.Dispose()
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim Cons = DirectCast(HttpContext.Current.Application(AppNombre), EnumerableRowCollection(Of DataRow))
|
Dim Cons As EnumerableRowCollection(Of DataRow) = DirectCast(HttpContext.Current.Application(AppNombre), EnumerableRowCollection(Of DataRow))
|
||||||
'Cons = Cons.Where((Function(a) Convert.ToInt32(a!CveEmpresa) = CveEmpresa))
|
'Cons = Cons.Where((Function(a) Convert.ToInt32(a!CveEmpresa) = CveEmpresa))
|
||||||
If CveClasificacion >= 0 Then Cons = Cons.Where((Function(a) Convert.ToInt32(a!CveClasificacion) = CveClasificacion))
|
If CveClasificacion >= 0 Then Cons = Cons.Where((Function(a) Convert.ToInt32(a!CveClasificacion) = CveClasificacion))
|
||||||
If PSCodigo <> "-1" Then Cons = Cons.Where((Function(a) Convert.ToString(a!PSCodigo) = PSCodigo))
|
If PSCodigo <> "-1" Then Cons = Cons.Where((Function(a) Convert.ToString(a!PSCodigo) = PSCodigo))
|
||||||
@@ -4327,15 +4327,15 @@ Public Class ClsPaginas
|
|||||||
Return URLParametros
|
Return URLParametros
|
||||||
End Function
|
End Function
|
||||||
Private Function AuthorizePageWithoutSessions() As List(Of String)
|
Private Function AuthorizePageWithoutSessions() As List(Of String)
|
||||||
Dim pages = New List(Of String)
|
Dim pages As List(Of String) = New List(Of String)
|
||||||
pages.Add("/Compras/PopUpVerFactura.aspx")
|
pages.Add("/Compras/PopUpVerFactura.aspx")
|
||||||
Return pages
|
Return pages
|
||||||
End Function
|
End Function
|
||||||
Protected Overridable Sub Page_PreInit(sender As Object, e As EventArgs) Handles Me.PreInit
|
Protected Overridable Sub Page_PreInit(sender As Object, e As EventArgs) Handles Me.PreInit
|
||||||
If Not User.Identity.IsAuthenticated OrElse UsuarioActual Is Nothing Then
|
If Not User.Identity.IsAuthenticated OrElse UsuarioActual Is Nothing Then
|
||||||
Dim AuthorizeRequest As Boolean = False
|
Dim AuthorizeRequest As Boolean = False
|
||||||
Dim HuboError = False
|
Dim HuboError As Boolean = False
|
||||||
Dim statusCode = 200
|
Dim statusCode As Integer = 200
|
||||||
If AuthorizePageWithoutSessions().Contains(Request.ServerVariables("URL")) Then
|
If AuthorizePageWithoutSessions().Contains(Request.ServerVariables("URL")) Then
|
||||||
If Request.Headers("ADSToken") IsNot Nothing AndAlso Request.Headers("Host") IsNot Nothing Then
|
If Request.Headers("ADSToken") IsNot Nothing AndAlso Request.Headers("Host") IsNot Nothing Then
|
||||||
Try
|
Try
|
||||||
@@ -4634,7 +4634,7 @@ Public Class ClsPaginas
|
|||||||
rds.Name = RDSName
|
rds.Name = RDSName
|
||||||
rds.Value = DtDatos
|
rds.Value = DtDatos
|
||||||
lrds.Add(rds)
|
lrds.Add(rds)
|
||||||
Dim Extension = "pdf"
|
Dim Extension As String = "pdf"
|
||||||
If Formato.ToLower() = "excel" Then
|
If Formato.ToLower() = "excel" Then
|
||||||
Extension = "xlsx"
|
Extension = "xlsx"
|
||||||
End If
|
End If
|
||||||
@@ -4746,7 +4746,7 @@ Public Class ClsPaginas
|
|||||||
reportobjects.Add(ojext)
|
reportobjects.Add(ojext)
|
||||||
End If
|
End If
|
||||||
Else
|
Else
|
||||||
Dim dt = New DataTable()
|
Dim dt As DataTable = New DataTable()
|
||||||
dt.TableName = If(String.IsNullOrEmpty(rpds.Name), "DataTable1", rpds.Name)
|
dt.TableName = If(String.IsNullOrEmpty(rpds.Name), "DataTable1", rpds.Name)
|
||||||
ds.Tables.Add(dt)
|
ds.Tables.Add(dt)
|
||||||
End If
|
End If
|
||||||
@@ -4846,7 +4846,7 @@ Public Class ClsPaginas
|
|||||||
End Function
|
End Function
|
||||||
Private Sub LocalReport_SubreportProcessing(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
|
Private Sub LocalReport_SubreportProcessing(ByVal sender As Object, ByVal e As SubreportProcessingEventArgs)
|
||||||
If SubReportData IsNot Nothing Then
|
If SubReportData IsNot Nothing Then
|
||||||
For Each ds In SubReportData.DataSources
|
For Each ds As ReportDataSource In SubReportData.DataSources
|
||||||
e.DataSources.Add(ds)
|
e.DataSources.Add(ds)
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
@@ -5146,9 +5146,9 @@ Public Class ClsPaginas
|
|||||||
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
Dim RutaCBB As String = String.Format("{0}CBB\{1}.jpg", Ruta, Vta.SerieFolio)
|
||||||
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
Dim ImagenCBB As New System.IO.FileInfo(RutaCBB)
|
||||||
Dim ImgCBB As String '= String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
Dim ImgCBB As String '= String.Format("{0}://{1}:{2}/Empresas/{3}/CBB/{4}.jpg", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa, Vta.SerieFolio)
|
||||||
Dim ImagenPath = String.Format("{0}Formatos\Suc{1}\logo.png", UsuarioActual.Empresa.Ruta, Vta.CveSucursal)
|
Dim ImagenPath As String = String.Format("{0}Formatos\Suc{1}\logo.png", UsuarioActual.Empresa.Ruta, Vta.CveSucursal)
|
||||||
Dim Logo As New System.IO.FileInfo(ImagenPath)
|
Dim Logo As New System.IO.FileInfo(ImagenPath)
|
||||||
Dim ImgLogo = New Uri(String.Format("{0}Empresas/{1}/Formatos/Suc{2}.png", UrlSitio, UsuarioActual.CveEmpresa, Vta.CveSucursal)).AbsoluteUri
|
Dim ImgLogo As String = New Uri(String.Format("{0}Empresas/{1}/Formatos/Suc{2}.png", UrlSitio, UsuarioActual.CveEmpresa, Vta.CveSucursal)).AbsoluteUri
|
||||||
Dim SBDomicilioSucursal As New StringBuilder()
|
Dim SBDomicilioSucursal As New StringBuilder()
|
||||||
Dim CiudadSucursal As String = String.Format("{0},{1}", Vta.SubProyecto.Municipio, Vta.SubProyecto.Estado)
|
Dim CiudadSucursal As String = String.Format("{0},{1}", Vta.SubProyecto.Municipio, Vta.SubProyecto.Estado)
|
||||||
Dim DomicilioSucursal As String = ""
|
Dim DomicilioSucursal As String = ""
|
||||||
@@ -5171,7 +5171,7 @@ Public Class ClsPaginas
|
|||||||
Vta.SelloCFDi = "Sin Timbrar"
|
Vta.SelloCFDi = "Sin Timbrar"
|
||||||
Vta.SelloSAT = "Sin Timbrar"
|
Vta.SelloSAT = "Sin Timbrar"
|
||||||
#Region "COMERCIO EXTERIOR VARIABLES Y TABLAS"
|
#Region "COMERCIO EXTERIOR VARIABLES Y TABLAS"
|
||||||
Dim CETipoOperacion = "", CEClavePedimento As String = "", CEIncoterm As String = "", CEId As String = "", CEMotivoTraslado As String = "", CETipoCambio As String = ""
|
Dim CETipoOperacion As String = "", CEClavePedimento As String = "", CEIncoterm As String = "", CEId As String = "", CEMotivoTraslado As String = "", CETipoCambio As String = ""
|
||||||
Dim RCETipoOperacion As String = "", RCEClavePedimento As String = "", RCEIncoterm As String = "", RCEMotivoTraslado As String = ""
|
Dim RCETipoOperacion As String = "", RCEClavePedimento As String = "", RCEIncoterm As String = "", RCEMotivoTraslado As String = ""
|
||||||
|
|
||||||
Dim CE_DT_Cabecera As New DataTable
|
Dim CE_DT_Cabecera As New DataTable
|
||||||
@@ -5210,7 +5210,7 @@ Public Class ClsPaginas
|
|||||||
'SI ESTA TIMBRADA - CON XML
|
'SI ESTA TIMBRADA - CON XML
|
||||||
If File.Exists(PathXML) AndAlso Vta.Serie <> "VistaPrevia" Then 'Cuando es vista previe y coincide la serie y folio se ponen los datos fiscales
|
If File.Exists(PathXML) AndAlso Vta.Serie <> "VistaPrevia" Then 'Cuando es vista previe y coincide la serie y folio se ponen los datos fiscales
|
||||||
Dim XmlDoc As New System.Xml.XmlDocument
|
Dim XmlDoc As New System.Xml.XmlDocument
|
||||||
Dim EsXMLValido = False
|
Dim EsXMLValido As Boolean = False
|
||||||
Try
|
Try
|
||||||
XmlDoc.Load(PathXML)
|
XmlDoc.Load(PathXML)
|
||||||
EsXMLValido = True
|
EsXMLValido = True
|
||||||
@@ -5225,7 +5225,7 @@ Public Class ClsPaginas
|
|||||||
If ValorNodoXML(XmlDoc.DocumentElement, "version").Contiene("3.3", "4.0") Then
|
If ValorNodoXML(XmlDoc.DocumentElement, "version").Contiene("3.3", "4.0") Then
|
||||||
Vta.FechaEmision = ValorNodoXML(XmlDoc.DocumentElement, "fecha").ToDate
|
Vta.FechaEmision = ValorNodoXML(XmlDoc.DocumentElement, "fecha").ToDate
|
||||||
Vta.NoSerieCertificadoContribuyente = ValorNodoXML(XmlDoc.DocumentElement, "NoCertificado")
|
Vta.NoSerieCertificadoContribuyente = ValorNodoXML(XmlDoc.DocumentElement, "NoCertificado")
|
||||||
Dim validaElemento = XmlDoc.DocumentElement("cfdi:Complemento")
|
Dim validaElemento As XmlElement = XmlDoc.DocumentElement("cfdi:Complemento")
|
||||||
If Not IsNothing(validaElemento) Then
|
If Not IsNothing(validaElemento) Then
|
||||||
For i As Integer = 0 To XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes.Count - 1
|
For i As Integer = 0 To XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes.Count - 1
|
||||||
If XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes(i).Name = "tfd:TimbreFiscalDigital" Then
|
If XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes(i).Name = "tfd:TimbreFiscalDigital" Then
|
||||||
@@ -5344,7 +5344,7 @@ Public Class ClsPaginas
|
|||||||
Else
|
Else
|
||||||
Vta.FechaEmision = XmlDoc.DocumentElement.Attributes("fecha").InnerText.ToDate
|
Vta.FechaEmision = XmlDoc.DocumentElement.Attributes("fecha").InnerText.ToDate
|
||||||
Vta.NoSerieCertificadoContribuyente = XmlDoc.DocumentElement.Attributes("noCertificado").InnerText
|
Vta.NoSerieCertificadoContribuyente = XmlDoc.DocumentElement.Attributes("noCertificado").InnerText
|
||||||
Dim validaElemento = XmlDoc.DocumentElement("cfdi:Complemento")
|
Dim validaElemento As XmlElement = XmlDoc.DocumentElement("cfdi:Complemento")
|
||||||
If Not IsNothing(validaElemento) Then
|
If Not IsNothing(validaElemento) Then
|
||||||
For i As Integer = 0 To XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes.Count - 1
|
For i As Integer = 0 To XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes.Count - 1
|
||||||
If XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes(i).Name = "tfd:TimbreFiscalDigital" Then
|
If XmlDoc.DocumentElement("cfdi:Complemento").ChildNodes(i).Name = "tfd:TimbreFiscalDigital" Then
|
||||||
@@ -5641,8 +5641,8 @@ Public Class ClsPaginas
|
|||||||
'VSH
|
'VSH
|
||||||
If UsuarioActual.CveEmpresa.Contiene(4, 7, 11, 12, 122, 145) Then
|
If UsuarioActual.CveEmpresa.Contiene(4, 7, 11, 12, 122, 145) Then
|
||||||
'DATOS CLIENTES
|
'DATOS CLIENTES
|
||||||
Dim ClienteRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", Vta.CveCliente.ToString))
|
Dim ClienteRow As DataRow = GlobalDTCliente(UsuarioActual.CveEmpresa).FiltroPrimero(String.Format("CveCliente = {0}", Vta.CveCliente.ToString))
|
||||||
Dim DatosCliente = ""
|
Dim DatosCliente As String = ""
|
||||||
If ClienteRow IsNot Nothing Then
|
If ClienteRow IsNot Nothing Then
|
||||||
DatosCliente = String.Format("{0} | {1} | {2}", Vta.SubProyecto.Municipio, ClienteRow("CuentaContable"), ClienteRow("Codigo"))
|
DatosCliente = String.Format("{0} | {1} | {2}", Vta.SubProyecto.Municipio, ClienteRow("CuentaContable"), ClienteRow("Codigo"))
|
||||||
End If
|
End If
|
||||||
@@ -5919,7 +5919,7 @@ Public Class ClsPaginas
|
|||||||
For i As Integer = 0 To Vta.DtFirmas.Rows.Count - 1
|
For i As Integer = 0 To Vta.DtFirmas.Rows.Count - 1
|
||||||
'Si DtDetalle es menor al DtFirmas, crea un nuevo Row en DtDetalle y le asigna valor, Si no solo asigna valor
|
'Si DtDetalle es menor al DtFirmas, crea un nuevo Row en DtDetalle y le asigna valor, Si no solo asigna valor
|
||||||
If DtDetalleFirmas.Rows.Count < i + 1 Then
|
If DtDetalleFirmas.Rows.Count < i + 1 Then
|
||||||
Dim Dr = DtDetalleFirmas.NewRow
|
Dim Dr As DataRow = DtDetalleFirmas.NewRow
|
||||||
Dr("Titulo") = Vta.DtFirmas(i)("Titulo").ToString
|
Dr("Titulo") = Vta.DtFirmas(i)("Titulo").ToString
|
||||||
Dr("Nombre") = Vta.DtFirmas(i)("Nombre").ToString
|
Dr("Nombre") = Vta.DtFirmas(i)("Nombre").ToString
|
||||||
Dr("Puesto") = Vta.DtFirmas(i)("Puesto").ToString
|
Dr("Puesto") = Vta.DtFirmas(i)("Puesto").ToString
|
||||||
@@ -6084,7 +6084,7 @@ Public Class ClsPaginas
|
|||||||
urlHost = "http://sig.adssistemas.mx:6599/"
|
urlHost = "http://sig.adssistemas.mx:6599/"
|
||||||
End If
|
End If
|
||||||
'SITIO DE PRUEBA EN IIS
|
'SITIO DE PRUEBA EN IIS
|
||||||
Dim Url = New Uri(String.Format("{0}{1}", urlHost, Opcion))
|
Dim Url As Uri = New Uri(String.Format("{0}{1}", urlHost, Opcion))
|
||||||
Try
|
Try
|
||||||
Dim dataSourceArray As New JArray()
|
Dim dataSourceArray As New JArray()
|
||||||
Dim paramsArray As New JArray()
|
Dim paramsArray As New JArray()
|
||||||
@@ -6150,7 +6150,7 @@ Public Class ClsPaginas
|
|||||||
Public Sub GenerarFacturaVenta(CveVenta As Integer)
|
Public Sub GenerarFacturaVenta(CveVenta As Integer)
|
||||||
Dim ObjVentas As New ClsVentas
|
Dim ObjVentas As New ClsVentas
|
||||||
Dim Vta As Modelos.Factura = Nothing
|
Dim Vta As Modelos.Factura = Nothing
|
||||||
Dim TmpDTImpuestos = New DataTable
|
Dim TmpDTImpuestos As DataTable = New DataTable
|
||||||
TmpDTImpuestos.Columns.Add("ImpuestoLocal", GetType(String))
|
TmpDTImpuestos.Columns.Add("ImpuestoLocal", GetType(String))
|
||||||
TmpDTImpuestos.Columns.Add("Importe", GetType(Double))
|
TmpDTImpuestos.Columns.Add("Importe", GetType(Double))
|
||||||
TmpDTImpuestos.Columns.Add("Orden", GetType(Integer))
|
TmpDTImpuestos.Columns.Add("Orden", GetType(Integer))
|
||||||
@@ -6230,7 +6230,7 @@ Public Class ClsPaginas
|
|||||||
Dim dtImpuesto As DataTable = ObjVentas.DtResultados
|
Dim dtImpuesto As DataTable = ObjVentas.DtResultados
|
||||||
If dtImpuesto.Rows.Count > 0 Then
|
If dtImpuesto.Rows.Count > 0 Then
|
||||||
For Each Row As DataRow In dtImpuesto.Rows
|
For Each Row As DataRow In dtImpuesto.Rows
|
||||||
Dim Orden = 80
|
Dim Orden As Integer = 80
|
||||||
If Row("Importe").ToString.ToDouble <> 0 Then
|
If Row("Importe").ToString.ToDouble <> 0 Then
|
||||||
DR("ImpuestoLocal") = Row("ImpuestoLocal").ToString
|
DR("ImpuestoLocal") = Row("ImpuestoLocal").ToString
|
||||||
DR("Importe") = Row("Importe").ToString.ToDouble
|
DR("Importe") = Row("Importe").ToString.ToDouble
|
||||||
@@ -6619,11 +6619,11 @@ Public Class ClsPaginas
|
|||||||
End If
|
End If
|
||||||
If DTCxPTempral IsNot Nothing AndAlso DTCxPTempral.Rows.Count > 0 Then
|
If DTCxPTempral IsNot Nothing AndAlso DTCxPTempral.Rows.Count > 0 Then
|
||||||
Dim dr As DataRow = DTCxPTempral.Rows(0)
|
Dim dr As DataRow = DTCxPTempral.Rows(0)
|
||||||
Dim NombreProv = ""
|
Dim NombreProv As String = ""
|
||||||
Dim Direccion = ""
|
Dim Direccion As String = ""
|
||||||
Dim RFC = ""
|
Dim RFC As String = ""
|
||||||
Dim Tel = ""
|
Dim Tel As String = ""
|
||||||
Dim DiasCredito = ""
|
Dim DiasCredito As String = ""
|
||||||
Dim LimCredito As Double
|
Dim LimCredito As Double
|
||||||
CveEmpresaActual = dr("CveEmpresa").ToString.ToEntero
|
CveEmpresaActual = dr("CveEmpresa").ToString.ToEntero
|
||||||
Dim ObjEmpresa As New ClsSisEmpresas()
|
Dim ObjEmpresa As New ClsSisEmpresas()
|
||||||
@@ -6634,7 +6634,7 @@ Public Class ClsPaginas
|
|||||||
ObjEmpresa.Dispose()
|
ObjEmpresa.Dispose()
|
||||||
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepProveedorCxP.rpt", EmpresaActual.Ruta))
|
Dim Archivo As New System.IO.FileInfo(String.Format("{0}Formatos/RepProveedorCxP.rpt", EmpresaActual.Ruta))
|
||||||
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", EmpresaActual.Ruta))
|
Dim Imagen As New System.IO.FileInfo(String.Format("{0}/Logo.png", EmpresaActual.Ruta))
|
||||||
Dim logouri = String.Format("{0}Logo.png", EmpresaActual.Ruta) 'String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, CveEmpresaActual)
|
Dim logouri As String = String.Format("{0}Logo.png", EmpresaActual.Ruta) 'String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, CveEmpresaActual)
|
||||||
Dim ObjProveedor As New ClsCompProveedores()
|
Dim ObjProveedor As New ClsCompProveedores()
|
||||||
If ObjProveedor.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, CveProveedor, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, EmpresaActual.CveEmpresa) Then
|
If ObjProveedor.GetProveedores(ClsCompProveedores.TipoConsulta.ParaUsoEnEmpresa, CveProveedor, "-1", "-1", "-1", "-1", "-1", "-1", "-1", -1, EmpresaActual.CveEmpresa) Then
|
||||||
If ObjProveedor.DtResultados.Rows.Count > 0 Then
|
If ObjProveedor.DtResultados.Rows.Count > 0 Then
|
||||||
@@ -6647,7 +6647,7 @@ Public Class ClsPaginas
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
ObjProveedor.Dispose()
|
ObjProveedor.Dispose()
|
||||||
Dim lista = New List(Of CrystalParametro)
|
Dim lista As List(Of CrystalParametro) = New List(Of CrystalParametro)
|
||||||
lista.Add(New CrystalParametro("Empresa", EmpresaActual.Empresa))
|
lista.Add(New CrystalParametro("Empresa", EmpresaActual.Empresa))
|
||||||
lista.Add(New CrystalParametro("TipoCuentas", "Todas"))
|
lista.Add(New CrystalParametro("TipoCuentas", "Todas"))
|
||||||
lista.Add(New CrystalParametro("FechaInicio", "-"))
|
lista.Add(New CrystalParametro("FechaInicio", "-"))
|
||||||
@@ -6682,7 +6682,7 @@ Public Class ClsPaginas
|
|||||||
Public Function GeneraPDFNomina(CvePersonal As Integer, CvePeriodo As Integer, CveEmpresa As Integer, RutaEmpresa As String, Optional indemnizacion As Boolean = False) As Byte()
|
Public Function GeneraPDFNomina(CvePersonal As Integer, CvePeriodo As Integer, CveEmpresa As Integer, RutaEmpresa As String, Optional indemnizacion As Boolean = False) As Byte()
|
||||||
Dim ObjNomina As New ClsNominas
|
Dim ObjNomina As New ClsNominas
|
||||||
Dim ObjPersonal As New ClsRH
|
Dim ObjPersonal As New ClsRH
|
||||||
Dim TieneError = False
|
Dim TieneError As Boolean = False
|
||||||
Dim Retorno As Byte() = Nothing
|
Dim Retorno As Byte() = Nothing
|
||||||
If Not ObjNomina.GetNom_Nominas(-1, CvePersonal, CvePeriodo, -1, CveEmpresa) Then
|
If Not ObjNomina.GetNom_Nominas(-1, CvePersonal, CvePeriodo, -1, CveEmpresa) Then
|
||||||
Alert("Ocurrio un erro al obtener datos de la nomina", TipoMensaje.MsgError)
|
Alert("Ocurrio un erro al obtener datos de la nomina", TipoMensaje.MsgError)
|
||||||
@@ -6690,7 +6690,7 @@ Public Class ClsPaginas
|
|||||||
ObjNomina.Dispose()
|
ObjNomina.Dispose()
|
||||||
Return Nothing
|
Return Nothing
|
||||||
End If
|
End If
|
||||||
Dim CveNomina = ObjNomina.CveNomina
|
Dim CveNomina As Integer = ObjNomina.CveNomina
|
||||||
Dim DTPercepciones As Data.DataTable
|
Dim DTPercepciones As Data.DataTable
|
||||||
Dim DTDeducciones As Data.DataTable
|
Dim DTDeducciones As Data.DataTable
|
||||||
Dim DTDeducciones2 As New Data.DataTable
|
Dim DTDeducciones2 As New Data.DataTable
|
||||||
@@ -6990,26 +6990,26 @@ Public Class ClsPaginas
|
|||||||
Public Sub PDFReciboDePagos(CveVenta As Integer, CveIE As Integer, CveComplementoPago As Integer, Optional imprimir As Boolean = True, Optional SobreescribirPDF As Boolean = False)
|
Public Sub PDFReciboDePagos(CveVenta As Integer, CveIE As Integer, CveComplementoPago As Integer, Optional imprimir As Boolean = True, Optional SobreescribirPDF As Boolean = False)
|
||||||
Dim params As New List(Of ReportParameter)
|
Dim params As New List(Of ReportParameter)
|
||||||
Dim SerieFolio As String = ""
|
Dim SerieFolio As String = ""
|
||||||
Dim Serie = ""
|
Dim Serie As String = ""
|
||||||
Dim Folio = ""
|
Dim Folio As String = ""
|
||||||
Dim CveCliente = -1
|
Dim CveCliente As Integer = -1
|
||||||
Dim RFCOrdenante = ""
|
Dim RFCOrdenante As String = ""
|
||||||
Dim CveMoneda As Integer = 1
|
Dim CveMoneda As Integer = 1
|
||||||
Dim FolioFiscal = ""
|
Dim FolioFiscal As String = ""
|
||||||
Dim NoSerieCertificado = ""
|
Dim NoSerieCertificado As String = ""
|
||||||
Dim FechaCertificacion = ""
|
Dim FechaCertificacion As String = ""
|
||||||
Dim SelloCFDi = ""
|
Dim SelloCFDi As String = ""
|
||||||
Dim SelloSAT = ""
|
Dim SelloSAT As String = ""
|
||||||
Dim CertificadoSAT = ""
|
Dim CertificadoSAT As String = ""
|
||||||
Dim FechaComprobante As Date
|
Dim FechaComprobante As Date
|
||||||
Dim CveUnidad = ""
|
Dim CveUnidad As String = ""
|
||||||
Dim Descripcion = ""
|
Dim Descripcion As String = ""
|
||||||
Dim Cantidad = ""
|
Dim Cantidad As String = ""
|
||||||
Dim CvePS = ""
|
Dim CvePS As String = ""
|
||||||
Dim PU = ""
|
Dim PU As String = ""
|
||||||
Dim Importe = ""
|
Dim Importe As String = ""
|
||||||
Dim TotalLetra = ""
|
Dim TotalLetra As String = ""
|
||||||
Dim FechaRecibo = ""
|
Dim FechaRecibo As String = ""
|
||||||
Dim ProveedorIntermediario As String = ""
|
Dim ProveedorIntermediario As String = ""
|
||||||
Dim RegimenFiscalCodigo As String = ""
|
Dim RegimenFiscalCodigo As String = ""
|
||||||
Dim CFDIVersion As String = "4.0"
|
Dim CFDIVersion As String = "4.0"
|
||||||
@@ -7135,13 +7135,13 @@ Public Class ClsPaginas
|
|||||||
If File.Exists(PathXML) Then
|
If File.Exists(PathXML) Then
|
||||||
Dim XmlDoc As New System.Xml.XmlDocument
|
Dim XmlDoc As New System.Xml.XmlDocument
|
||||||
XmlDoc.Load(PathXML)
|
XmlDoc.Load(PathXML)
|
||||||
Dim Version = ValorXML(XmlDoc.DocumentElement, "version")
|
Dim Version As String = ValorXML(XmlDoc.DocumentElement, "version")
|
||||||
Dim namespaces As New XmlNamespaceManager(XmlDoc.NameTable)
|
Dim namespaces As New XmlNamespaceManager(XmlDoc.NameTable)
|
||||||
Dim Prefijo As String = If(XmlDoc.DocumentElement.Prefix = "", "cfd", XmlDoc.DocumentElement.Prefix)
|
Dim Prefijo As String = If(XmlDoc.DocumentElement.Prefix = "", "cfd", XmlDoc.DocumentElement.Prefix)
|
||||||
Dim cfdVer As String = ""
|
Dim cfdVer As String = ""
|
||||||
Dim PagoVersion As String = "pago20"
|
Dim PagoVersion As String = "pago20"
|
||||||
Dim validaElemento = XmlDoc.DocumentElement("cfdi:Complemento")
|
Dim validaElemento As XmlElement = XmlDoc.DocumentElement("cfdi:Complemento")
|
||||||
Dim validaElementoPago = XmlDoc.DocumentElement("cfdi:Conceptos")
|
Dim validaElementoPago As XmlElement = XmlDoc.DocumentElement("cfdi:Conceptos")
|
||||||
If Version = "3.3" Then
|
If Version = "3.3" Then
|
||||||
cfdVer = "http://www.sat.gob.mx/cfd/3"
|
cfdVer = "http://www.sat.gob.mx/cfd/3"
|
||||||
PagoVersion = "pago10"
|
PagoVersion = "pago10"
|
||||||
@@ -7208,7 +7208,7 @@ Public Class ClsPaginas
|
|||||||
If Version = "4.0" Then DrRelacionado("ObjetoImpDR") = Relacionado.Attributes("ObjetoImpDR").Value
|
If Version = "4.0" Then DrRelacionado("ObjetoImpDR") = Relacionado.Attributes("ObjetoImpDR").Value
|
||||||
DrRelacionado("MonedaDR") = Relacionado.Attributes("MonedaDR").Value
|
DrRelacionado("MonedaDR") = Relacionado.Attributes("MonedaDR").Value
|
||||||
If Version = "4.0" Then
|
If Version = "4.0" Then
|
||||||
Dim NodosTraslados = Relacionado.SelectNodes($"{PagoVersion}:ImpuestosDR/{PagoVersion}:TrasladosDR/{PagoVersion}:TrasladoDR", namespaces)
|
Dim NodosTraslados As XmlNodeList = Relacionado.SelectNodes($"{PagoVersion}:ImpuestosDR/{PagoVersion}:TrasladosDR/{PagoVersion}:TrasladoDR", namespaces)
|
||||||
For Each NodoTraslados As XmlNode In NodosTraslados
|
For Each NodoTraslados As XmlNode In NodosTraslados
|
||||||
Dim BaseDR As String = ValorXML(NodoTraslados, "BaseDR")
|
Dim BaseDR As String = ValorXML(NodoTraslados, "BaseDR")
|
||||||
Dim ImpuestoDR As String = ValorXML(NodoTraslados, "ImpuestoDR") ' ImpuestoDR
|
Dim ImpuestoDR As String = ValorXML(NodoTraslados, "ImpuestoDR") ' ImpuestoDR
|
||||||
|
|||||||
@@ -1316,8 +1316,7 @@ Public Class ClsProductosServicios
|
|||||||
|
|
||||||
'Ubicacion temporal
|
'Ubicacion temporal
|
||||||
Public Function GetMetodosInv() As Boolean
|
Public Function GetMetodosInv() As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Inv_MetodosGet")
|
DataAdapter("PA_Inv_MetodosGet")
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -147,7 +147,7 @@ Public Class ClsProyectos
|
|||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function AddProyecto(Proyecto As String, CveUsuario As Integer, CveEmpresa As Integer, Optional CveSucursal As Integer = -1) As Boolean
|
Public Function AddProyecto(Proyecto As String, CveUsuario As Integer, CveEmpresa As Integer, Optional CveSucursal As Integer = -1) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_ProyectoAdd")
|
DataAdapter("PA_ProyectoAdd")
|
||||||
|
|
||||||
|
|||||||
@@ -1942,7 +1942,7 @@ Public Class ClsRH
|
|||||||
Optional Pensionado As Boolean = False, Optional CveMedioTransporte As Integer = -1, Optional CveRegistroPatronal As Integer = -1, Optional CveEmpresaAsignado As Integer = -1, Optional CveTipoTrabajador As Integer = -1, Optional NetoPeriodo As Decimal = -1) As Boolean
|
Optional Pensionado As Boolean = False, Optional CveMedioTransporte As Integer = -1, Optional CveRegistroPatronal As Integer = -1, Optional CveEmpresaAsignado As Integer = -1, Optional CveTipoTrabajador As Integer = -1, Optional NetoPeriodo As Decimal = -1) As Boolean
|
||||||
|
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
Dim noguardoXcurp = False
|
Dim noguardoXcurp As Boolean = False
|
||||||
SqlDataAdapter("PA_RH_PersonalAdd")
|
SqlDataAdapter("PA_RH_PersonalAdd")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -7061,7 +7061,7 @@ Public Class ClsRH
|
|||||||
#Region "T A G S - RH "
|
#Region "T A G S - RH "
|
||||||
|
|
||||||
Public Function GetDatosTagsDocumentos(CvePersonal As Integer, CveEmpresa As Integer) As List(Of TagsDocumentos)
|
Public Function GetDatosTagsDocumentos(CvePersonal As Integer, CveEmpresa As Integer) As List(Of TagsDocumentos)
|
||||||
Dim ListaTagsDocumentost = New List(Of TagsDocumentos)
|
Dim ListaTagsDocumentost As List(Of TagsDocumentos) = New List(Of TagsDocumentos)
|
||||||
|
|
||||||
If PersonalReclutamientoGet(CvePersonal, CveEmpresa) Then
|
If PersonalReclutamientoGet(CvePersonal, CveEmpresa) Then
|
||||||
|
|
||||||
|
|||||||
@@ -218,7 +218,7 @@ Public Class ClsSAT
|
|||||||
Private Function ToDataTable69B(Ruta As String) As DataTable
|
Private Function ToDataTable69B(Ruta As String) As DataTable
|
||||||
|
|
||||||
' Dim conn As Odbc.OdbcConnection = Nothing
|
' Dim conn As Odbc.OdbcConnection = Nothing
|
||||||
Dim HasError = False
|
Dim HasError As Boolean = False
|
||||||
Dim DTRespuesta As DataTable = New DataTable
|
Dim DTRespuesta As DataTable = New DataTable
|
||||||
DTRespuesta.TableName = "Detalles"
|
DTRespuesta.TableName = "Detalles"
|
||||||
|
|
||||||
|
|||||||
@@ -273,8 +273,7 @@ Public Class ClsSisUsuarios
|
|||||||
Retorno.Procesos = UsuariosProcesos
|
Retorno.Procesos = UsuariosProcesos
|
||||||
|
|
||||||
Dim UsuariosIndicadores As New HybridDictionary
|
Dim UsuariosIndicadores As New HybridDictionary
|
||||||
Dim dTableIndicadores = getUsuarioIndicadores(Retorno.CveUsuario, Retorno.CveEmpresa, Retorno.CveRol)
|
Dim dTableIndicadores As DataTable = getUsuarioIndicadores(Retorno.CveUsuario, Retorno.CveEmpresa, Retorno.CveRol)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
For Each Row As DataRow In dTableIndicadores.Rows
|
For Each Row As DataRow In dTableIndicadores.Rows
|
||||||
@@ -843,7 +842,7 @@ Public Class ClsSisUsuarios
|
|||||||
CveUsuarioIng As Integer, CveEmpresa As Integer, CveSubProyecto As Integer, Optional Rol As String = "-1", Optional CveAlmacenAsignado As Integer = -1, Optional AsignarSubProyecto As Boolean = False, Optional AsignarOC As Boolean = False,
|
CveUsuarioIng As Integer, CveEmpresa As Integer, CveSubProyecto As Integer, Optional Rol As String = "-1", Optional CveAlmacenAsignado As Integer = -1, Optional AsignarSubProyecto As Boolean = False, Optional AsignarOC As Boolean = False,
|
||||||
Optional CvePlataforma As Integer = -1, Optional CveClientePlataforma As Integer = -1, Optional CveProveedorPlataforma As Integer = -1, Optional DescuentoAutorizado As Double = 0, Optional CodigoAcceso As String = "-1",
|
Optional CvePlataforma As Integer = -1, Optional CveClientePlataforma As Integer = -1, Optional CveProveedorPlataforma As Integer = -1, Optional DescuentoAutorizado As Double = 0, Optional CodigoAcceso As String = "-1",
|
||||||
Optional LimiteCreditoAutorizado As Decimal = 0, Optional PorcentajeMaximoAutorizacion As Decimal = 0, Optional DiasMaximoAutorizacion As Integer = 0) As Integer
|
Optional LimiteCreditoAutorizado As Decimal = 0, Optional PorcentajeMaximoAutorizacion As Decimal = 0, Optional DiasMaximoAutorizacion As Integer = 0) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Sis_UsuarioAdd")
|
DataAdapter("PA_Sis_UsuarioAdd")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@Usuario", SqlDbType.VarChar).Value = Usuario
|
.Add("@Usuario", SqlDbType.VarChar).Value = Usuario
|
||||||
@@ -910,7 +909,7 @@ Public Class ClsSisUsuarios
|
|||||||
End Function
|
End Function
|
||||||
Public Function AddUsuarioPopUp(Usuario As String, Contraseña As String, Nombre As String, Correo As String, CambiarContraseña As Boolean,
|
Public Function AddUsuarioPopUp(Usuario As String, Contraseña As String, Nombre As String, Correo As String, CambiarContraseña As Boolean,
|
||||||
CveUsuarioIng As Integer, CveEmpresa As Integer, CveCliente As Integer, CveProveedor As Integer, Optional CvePlataforma As Integer = -1) As Integer
|
CveUsuarioIng As Integer, CveEmpresa As Integer, CveCliente As Integer, CveProveedor As Integer, Optional CvePlataforma As Integer = -1) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Sis_UsuarioAddPopUp")
|
DataAdapter("PA_Sis_UsuarioAddPopUp")
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@Usuario", SqlDbType.VarChar).Value = Usuario
|
.Add("@Usuario", SqlDbType.VarChar).Value = Usuario
|
||||||
@@ -941,7 +940,7 @@ Public Class ClsSisUsuarios
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
Public Function DeleteClienteUsuario(CveUsuario As Integer, CveCliente As Integer) As Boolean
|
Public Function DeleteClienteUsuario(CveUsuario As Integer, CveCliente As Integer) As Boolean
|
||||||
Dim Retorno = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Sis_UsuariosClienteDelete")
|
DataAdapter("PA_Sis_UsuariosClienteDelete")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -1832,7 +1831,7 @@ Public Class ClsSisUsuarios
|
|||||||
dtMenu.TableName = "UsuariosModulos"
|
dtMenu.TableName = "UsuariosModulos"
|
||||||
|
|
||||||
Try
|
Try
|
||||||
Dim Carpeta = ""
|
Dim Carpeta As String = ""
|
||||||
|
|
||||||
'GPS
|
'GPS
|
||||||
Carpeta = $"{AppDomain.CurrentDomain.BaseDirectory}/Menu/GPS"
|
Carpeta = $"{AppDomain.CurrentDomain.BaseDirectory}/Menu/GPS"
|
||||||
|
|||||||
@@ -120,7 +120,7 @@ Public Class ClsValidaCFDi
|
|||||||
'SI NO PUEDE ENCONTRAR EL ESTATUS UTILIZA EL SERVICIO PARA ESTATUS DE CANCELACION
|
'SI NO PUEDE ENCONTRAR EL ESTATUS UTILIZA EL SERVICIO PARA ESTATUS DE CANCELACION
|
||||||
If EsValida = 0 Then
|
If EsValida = 0 Then
|
||||||
|
|
||||||
Dim Vigencia = Timbrado.VerificarVigenciaSAT(LFolioFiscal.ToUpper, LRFCEmisor.Replace("%26", "&"), LRFCReceptor.Replace("%26", "&"), Importe, True)
|
Dim Vigencia As Timbrado.AcuseCancelacionSAT = Timbrado.VerificarVigenciaSAT(LFolioFiscal.ToUpper, LRFCEmisor.Replace("%26", "&"), LRFCReceptor.Replace("%26", "&"), Importe, True)
|
||||||
|
|
||||||
If Vigencia IsNot Nothing Then
|
If Vigencia IsNot Nothing Then
|
||||||
If Not Vigencia.Estado.ToUpper().Contains("NO ENCONTRADO") AndAlso Vigencia.EsCancelable.ToUpper() = "NO CANCELABLE" Then
|
If Not Vigencia.Estado.ToUpper().Contains("NO ENCONTRADO") AndAlso Vigencia.EsCancelable.ToUpper() = "NO CANCELABLE" Then
|
||||||
|
|||||||
@@ -2174,7 +2174,7 @@ Public Class ClsVentas
|
|||||||
Public Function AddPromociones(Promocion As String, FechaInicio As Date, FechaFin As Date, CveVendedor As Integer, CveCliente As Integer, Estatus As Boolean,
|
Public Function AddPromociones(Promocion As String, FechaInicio As Date, FechaFin As Date, CveVendedor As Integer, CveCliente As Integer, Estatus As Boolean,
|
||||||
CveMoneda As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveSubProyecto As Integer, TipoAplicacion As String,
|
CveMoneda As Integer, CveUsuario As Integer, CveEmpresa As Integer, CveSubProyecto As Integer, TipoAplicacion As String,
|
||||||
Optional CveMarca As Integer = -1, Optional EsDistribuidor As Integer = -1) As Integer
|
Optional CveMarca As Integer = -1, Optional EsDistribuidor As Integer = -1) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Vta_PromocionesAdd")
|
DataAdapter("PA_Vta_PromocionesAdd")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -2206,7 +2206,7 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
|
|
||||||
Public Function AddPromociones(CvePromocion As Integer, CveUsuario As Integer, CveEmpresa As Integer, Actualizar As Boolean) As Integer
|
Public Function AddPromociones(CvePromocion As Integer, CveUsuario As Integer, CveEmpresa As Integer, Actualizar As Boolean) As Integer
|
||||||
Dim Retorno = -1
|
Dim Retorno As Integer = -1
|
||||||
DataAdapter("PA_Vta_PromocionesAddClonar")
|
DataAdapter("PA_Vta_PromocionesAddClonar")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -3172,7 +3172,7 @@ Public Class ClsVentas
|
|||||||
theDataSet.ReadXml(theReader)
|
theDataSet.ReadXml(theReader)
|
||||||
|
|
||||||
If theDataSet.Tables(0).Rows(0)("Uuid").ToString() <> "null" Then
|
If theDataSet.Tables(0).Rows(0)("Uuid").ToString() <> "null" Then
|
||||||
Dim sb = New StringBuilder()
|
Dim sb As StringBuilder = New StringBuilder()
|
||||||
|
|
||||||
For Each item As DataRow In theDataSet.Tables(0).Rows
|
For Each item As DataRow In theDataSet.Tables(0).Rows
|
||||||
sb.AppendFormat("{0};", item("Uuid").ToString())
|
sb.AppendFormat("{0};", item("Uuid").ToString())
|
||||||
@@ -3331,7 +3331,7 @@ Public Class ClsVentas
|
|||||||
|
|
||||||
#Region " CANCELAR ANTE SAT "
|
#Region " CANCELAR ANTE SAT "
|
||||||
Public Function CancelarVentasSAT(StrVentas As String) As String
|
Public Function CancelarVentasSAT(StrVentas As String) As String
|
||||||
Dim CveVentas = StrVentas.Split(","c)
|
Dim CveVentas As String() = StrVentas.Split(","c)
|
||||||
Dim CveVentasError As New List(Of Integer)
|
Dim CveVentasError As New List(Of Integer)
|
||||||
|
|
||||||
If CveVentas IsNot Nothing Then
|
If CveVentas IsNot Nothing Then
|
||||||
@@ -3341,17 +3341,17 @@ Public Class ClsVentas
|
|||||||
Dim Usuario As Usuario = Nothing
|
Dim Usuario As Usuario = Nothing
|
||||||
Dim ObjEmpresa As New ClsSisEmpresas()
|
Dim ObjEmpresa As New ClsSisEmpresas()
|
||||||
|
|
||||||
Dim FolioFiscal = "-1"
|
Dim FolioFiscal As String = "-1"
|
||||||
Dim CveEstatus = -1
|
Dim CveEstatus As Integer = -1
|
||||||
Dim Total = 0.0D
|
Dim Total As Decimal = 0.0D
|
||||||
Dim RFCReceptor = "-1"
|
Dim RFCReceptor As String = "-1"
|
||||||
Dim Nombre = "-1"
|
Dim Nombre As String = "-1"
|
||||||
Dim DbRowVenta As DataRow
|
Dim DbRowVenta As DataRow
|
||||||
Dim CveUsuario = -1
|
Dim CveUsuario As Integer = -1
|
||||||
Dim pCveEmpresa = -1
|
Dim pCveEmpresa As Integer = -1
|
||||||
Dim Contraseña = "-1"
|
Dim Contraseña As String = "-1"
|
||||||
|
|
||||||
For Each PCveVenta In CveVentas
|
For Each PCveVenta As String In CveVentas
|
||||||
If ObjVentas.GetVenta(PCveVenta.ToEntero, -1) Then
|
If ObjVentas.GetVenta(PCveVenta.ToEntero, -1) Then
|
||||||
DbRowVenta = ObjVentas.DtResultados.Rows(0)
|
DbRowVenta = ObjVentas.DtResultados.Rows(0)
|
||||||
|
|
||||||
@@ -3379,7 +3379,6 @@ Public Class ClsVentas
|
|||||||
Continue For
|
Continue For
|
||||||
End If
|
End If
|
||||||
|
|
||||||
|
|
||||||
'SOLO SI ESTA CANCELADA ANTE SAT EN SIG SE INTENTARA CANCELAR DE NUEVO CONTRA EL SAT
|
'SOLO SI ESTA CANCELADA ANTE SAT EN SIG SE INTENTARA CANCELAR DE NUEVO CONTRA EL SAT
|
||||||
If CveEstatus = 5 Then
|
If CveEstatus = 5 Then
|
||||||
Dim Resp As RespuestaCancelacionSAT = ObjCancelacion.CFDICancelar(Usuario.Empresa, FolioFiscal, Total, RFCReceptor, Usuario.Empresa.RFC)
|
Dim Resp As RespuestaCancelacionSAT = ObjCancelacion.CFDICancelar(Usuario.Empresa, FolioFiscal, Total, RFCReceptor, Usuario.Empresa.RFC)
|
||||||
|
|||||||
Reference in New Issue
Block a user