parametro empresa
This commit is contained in:
@@ -2267,12 +2267,13 @@ Public Class ClsContratos
|
|||||||
|
|
||||||
#Region "C O N T R A T O S G A S T O S"
|
#Region "C O N T R A T O S G A S T O S"
|
||||||
|
|
||||||
Public Function GetContratoGastos(CveContrato As Integer) As Boolean
|
Public Function GetContratoGastos(CveContrato As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
DataAdapter("PA_Con_ContratosGastosGet")
|
DataAdapter("PA_Con_ContratosGastosGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveContrato", SqlDbType.Int).Value = CveContrato
|
.Add("@CveContrato", SqlDbType.Int).Value = CveContrato
|
||||||
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -698,7 +698,7 @@ Partial Class PopUpVerFactura
|
|||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
Dim dt As DataTable = Nothing
|
Dim dt As DataTable = Nothing
|
||||||
If ObjContratos.GetContratoGastos(CveContrato) Then
|
If ObjContratos.GetContratoGastos(CveContrato, UsuarioActual.CveEmpresa) Then
|
||||||
dt = ObjContratos.DtResultados.FiltraParametros($"CveContratoGasto = {CveContratoGasto}")
|
dt = ObjContratos.DtResultados.FiltraParametros($"CveContratoGasto = {CveContratoGasto}")
|
||||||
SumaGasto = ObjContratos.DtResultados.SUM("Importe", "CveContratoGasto IS NULL")
|
SumaGasto = ObjContratos.DtResultados.SUM("Importe", "CveContratoGasto IS NULL")
|
||||||
End If
|
End If
|
||||||
|
|||||||
Reference in New Issue
Block a user