This commit is contained in:
JORGE LUIS CAUDILLO ESPARZA
2020-02-18 11:57:13 -07:00
parent 0e1b2ca38d
commit b8213efdf3
3 changed files with 25 additions and 9 deletions

View File

@@ -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();
}