From b8213efdf39fb5a7ce8a1e752ee6fea933bbdce6 Mon Sep 17 00:00:00 2001 From: JORGE LUIS CAUDILLO ESPARZA Date: Tue, 18 Feb 2020 11:57:13 -0700 Subject: [PATCH] --- App_Code/ClsGenerales.vb | 3 ++- General/CATIEPSxEntidadFed.aspx | 16 ++++++++++++---- General/CATIEPSxEntidadFed.aspx.cs | 15 +++++++++++---- 3 files changed, 25 insertions(+), 9 deletions(-) diff --git a/App_Code/ClsGenerales.vb b/App_Code/ClsGenerales.vb index 0966d0143..8121ebca4 100644 --- a/App_Code/ClsGenerales.vb +++ b/App_Code/ClsGenerales.vb @@ -133,7 +133,7 @@ Public Class ClsGenerales End With End Sub - Public Function IEPSxEntidadFed(cveEstado As Int32, tasaIEPS As Decimal, fechaInicio As String, fechaFin As String, cveEmpresa As Int32) As Boolean + Public Function IEPSxEntidadFed(cveEstado As Int32, tasaIEPS As Decimal, fechaInicio As String, fechaFin As String, cveEmpresa As Int32, Agrupador As Int32) As Boolean Dim retorno As Boolean = False DataAdapter("PA_GralIepsPorEntidadFederativa", CommandType.StoredProcedure) With SqlAdapter.SelectCommand.Parameters @@ -142,6 +142,7 @@ Public Class ClsGenerales .Add("@TasaIEPS", SqlDbType.Decimal).Value = (tasaIEPS) .Add("@FechaInicio", SqlDbType.VarChar).Value = (fechaInicio) .Add("@FechaFin", SqlDbType.VarChar).Value = (fechaFin) + .Add("@Agrupador", SqlDbType.Int).Value = (Agrupador) .Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa) End With Try diff --git a/General/CATIEPSxEntidadFed.aspx b/General/CATIEPSxEntidadFed.aspx index 59670ee41..f7f1983ea 100644 --- a/General/CATIEPSxEntidadFed.aspx +++ b/General/CATIEPSxEntidadFed.aspx @@ -32,9 +32,17 @@
- +
- + + + +
+ +
+ @@ -42,9 +50,9 @@
- +
- +
diff --git a/General/CATIEPSxEntidadFed.aspx.cs b/General/CATIEPSxEntidadFed.aspx.cs index 66f2eff2b..35888f156 100644 --- a/General/CATIEPSxEntidadFed.aspx.cs +++ b/General/CATIEPSxEntidadFed.aspx.cs @@ -6,8 +6,13 @@ using System.Web.UI; using System.Web.UI.WebControls; using Extensiones; public partial class General_CATIEPSxEntidadFed : ClsPaginas -{ +{ #region Propiedades + private int RAgrupador + { + get { return (ViewState["RAgrupador"] == null) ? 1 : Convert.ToInt32(ViewState["RAgrupador"]); } + set { ViewState["RAgrupador"] = value; } + } private int RcveEstado { get { return (ViewState["RcveEstado"] == null) ? 0 : Convert.ToInt32(ViewState["RcveEstado"]); } @@ -58,11 +63,12 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas protected void CargaIEPSxEntidadFed() { ClsGenerales ObjIEPS = new ClsGenerales(); - ObjIEPS.IEPSxEntidadFed(RcveEstado, RtasaIEPS, RfechaInicio, RfechaFin, 119); + ObjIEPS.IEPSxEntidadFed(RcveEstado, RtasaIEPS, RfechaInicio, RfechaFin, 119, RAgrupador); GVIEPSxEntidadFed.DataSource = ObjIEPS.DtResultados; ObjIEPS.Dispose(); GVIEPSxEntidadFed.DataBind(); upDatosIEPS.Update(); + } protected void GVIEPSxEntidadFed_RowDataBound(object sender, GridViewRowEventArgs e) @@ -83,11 +89,12 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas protected void BtnIEPSFiltrar_Click(object sender, EventArgs e) { + RAgrupador = DdlAgrupador.SelectedValue.ToEntero(); RcveEstado = DdlEstado.SelectedValue.ToEntero(); RtasaIEPS = DdlIeps.SelectedValue.ToDecimal(); RfechaInicio = TxtIEPSfechaInicio.Text.ToDate().ToString("yyyy/MM/dd") ; - RfechaFin = TxtIEPSfechaFin.Text.ToDate().ToString("yyyy/MM/dd"); - + RfechaFin = TxtIEPSfechaFin.Text.ToDate().ToString("yyyy/MM/dd"); + CargaIEPSxEntidadFed(); }