-- SE AGREGÓ E LFILTRO POR CENTRO DE COSTO
This commit is contained in:
@@ -3297,13 +3297,14 @@ Public Class ClsVentas
|
|||||||
Return Retorno
|
Return Retorno
|
||||||
End Function
|
End Function
|
||||||
|
|
||||||
Public Function GetCortesDetalleVentasResumen(CveCorte As Integer, CveEmpresa As Integer) As Boolean
|
Public Function GetCortesDetalleVentasResumen(CveCorte As Integer, CveSubProyecto As Integer, CveEmpresa As Integer) As Boolean
|
||||||
Dim Retorno As Boolean = False
|
Dim Retorno As Boolean = False
|
||||||
|
|
||||||
DataAdapter("PA_Vta_CortesDetalleVentasResumenGet")
|
DataAdapter("PA_Vta_CortesDetalleVentasResumenGet")
|
||||||
|
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
.Add("@CveCorte", SqlDbType.Int).Value = CveCorte
|
.Add("@CveCorte", SqlDbType.Int).Value = CveCorte
|
||||||
|
.Add("@CveSubProyecto", SqlDbType.Int).Value = CveSubProyecto
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
.Add("@CveEmpresa", SqlDbType.Int).Value = CveEmpresa
|
||||||
End With
|
End With
|
||||||
|
|
||||||
|
|||||||
@@ -151,11 +151,11 @@ Partial Class Bancos_RepCortes
|
|||||||
Nombre = gvr.DataKey("Nombre").ToString
|
Nombre = gvr.DataKey("Nombre").ToString
|
||||||
Dim Vent As New ClsPuntoVenta
|
Dim Vent As New ClsPuntoVenta
|
||||||
Dim Vn As New ClsVentas
|
Dim Vn As New ClsVentas
|
||||||
If Vn.GetCortesDetalleVentasResumen(CveCorte, UsuarioActual.CveEmpresa) Then
|
If Vn.GetCortesDetalleVentasResumen(CveCorte, DdlSubProyectos.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
GvP.DataSource = Vn.DtResultados
|
GvP.DataSource = Vn.DtResultados
|
||||||
DtCortesVentasResumen = Vn.DtResultados
|
DtCortesVentasResumen = Vn.DtResultados
|
||||||
End If
|
End If
|
||||||
If Vent.GetCortesDetalleVentas(CveCorte, UsuarioActual.CveEmpresa) Then
|
If Vent.GetCortesDetalleVentas(CveCorte, DdlSubProyectos.SelectedValue.ToEntero, UsuarioActual.CveEmpresa) Then
|
||||||
GvD.DataSource = Vent.DtResultados
|
GvD.DataSource = Vent.DtResultados
|
||||||
DtCortesVentas = Vent.DtResultados
|
DtCortesVentas = Vent.DtResultados
|
||||||
divDetalle.Visible = True
|
divDetalle.Visible = True
|
||||||
|
|||||||
Reference in New Issue
Block a user