This commit is contained in:
@@ -133,7 +133,7 @@ Public Class ClsGenerales
|
|||||||
End With
|
End With
|
||||||
End Sub
|
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
|
Dim retorno As Boolean = False
|
||||||
DataAdapter("PA_GralIepsPorEntidadFederativa", CommandType.StoredProcedure)
|
DataAdapter("PA_GralIepsPorEntidadFederativa", CommandType.StoredProcedure)
|
||||||
With SqlAdapter.SelectCommand.Parameters
|
With SqlAdapter.SelectCommand.Parameters
|
||||||
@@ -142,6 +142,7 @@ Public Class ClsGenerales
|
|||||||
.Add("@TasaIEPS", SqlDbType.Decimal).Value = (tasaIEPS)
|
.Add("@TasaIEPS", SqlDbType.Decimal).Value = (tasaIEPS)
|
||||||
.Add("@FechaInicio", SqlDbType.VarChar).Value = (fechaInicio)
|
.Add("@FechaInicio", SqlDbType.VarChar).Value = (fechaInicio)
|
||||||
.Add("@FechaFin", SqlDbType.VarChar).Value = (fechaFin)
|
.Add("@FechaFin", SqlDbType.VarChar).Value = (fechaFin)
|
||||||
|
.Add("@Agrupador", SqlDbType.Int).Value = (Agrupador)
|
||||||
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
.Add("@CveEmpresa", SqlDbType.Int).Value = (cveEmpresa)
|
||||||
End With
|
End With
|
||||||
Try
|
Try
|
||||||
|
|||||||
@@ -32,9 +32,17 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="titlefiltros caption">
|
<div class="titlefiltros caption">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<label class="col-md-1" style="padding-top: 13px;">IEPS </label>
|
<label class="col-md-1" style="padding-top: 13px;width: 5%;">Agrupador </label>
|
||||||
<div class="col-md-1" style="">
|
<div class="col-md-1" style="">
|
||||||
<asp:DropDownList ID="DdlIeps" AutoPostBack="true" AppendDataBoundItems="true" runat="server"
|
<asp:DropDownList ID="DdlAgrupador" runat="server"
|
||||||
|
CssClass="form-control select2me" Width="100%">
|
||||||
|
<asp:ListItem Value="1" Text="IEPS - Estado" Selected="True" ></asp:ListItem>
|
||||||
|
<asp:ListItem Value="2" Text="Estado - IEPS"></asp:ListItem>
|
||||||
|
</asp:DropDownList>
|
||||||
|
</div>
|
||||||
|
<label class="col-md-1" style="padding-top: 13px;width: 4.5%;">IEPS </label>
|
||||||
|
<div class="col-md-1" style="">
|
||||||
|
<asp:DropDownList ID="DdlIeps" runat="server"
|
||||||
CssClass="form-control select2me" Width="100%">
|
CssClass="form-control select2me" Width="100%">
|
||||||
<asp:ListItem Value="-1" Text="Todos"></asp:ListItem>
|
<asp:ListItem Value="-1" Text="Todos"></asp:ListItem>
|
||||||
<asp:ListItem Value=".06" Text="6.00%"></asp:ListItem>
|
<asp:ListItem Value=".06" Text="6.00%"></asp:ListItem>
|
||||||
@@ -42,9 +50,9 @@
|
|||||||
<asp:ListItem Value=".09" Text="9.00%"></asp:ListItem>
|
<asp:ListItem Value=".09" Text="9.00%"></asp:ListItem>
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<label class="col-md-1" style="padding-top: 13px;">Estado</label>
|
<label class="col-md-1" style="padding-top: 13px;width: 5%;">Estado</label>
|
||||||
<div class="col-md-2" style="">
|
<div class="col-md-2" style="">
|
||||||
<asp:DropDownList ID="DdlEstado" AutoPostBack="true" AppendDataBoundItems="true" runat="server" DataTextField="ClaveSATEstadoNombreEstado" DataValueField="CveEstado" CssClass="form-control select2me" Width="100%">
|
<asp:DropDownList ID="DdlEstado" runat="server" DataTextField="ClaveSATEstadoNombreEstado" DataValueField="CveEstado" CssClass="form-control select2me" Width="100%">
|
||||||
</asp:DropDownList>
|
</asp:DropDownList>
|
||||||
</div>
|
</div>
|
||||||
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
<div class="col-md-1 truncate" style="padding-top: 13px;">
|
||||||
|
|||||||
@@ -6,8 +6,13 @@ using System.Web.UI;
|
|||||||
using System.Web.UI.WebControls;
|
using System.Web.UI.WebControls;
|
||||||
using Extensiones;
|
using Extensiones;
|
||||||
public partial class General_CATIEPSxEntidadFed : ClsPaginas
|
public partial class General_CATIEPSxEntidadFed : ClsPaginas
|
||||||
{
|
{
|
||||||
#region Propiedades
|
#region Propiedades
|
||||||
|
private int RAgrupador
|
||||||
|
{
|
||||||
|
get { return (ViewState["RAgrupador"] == null) ? 1 : Convert.ToInt32(ViewState["RAgrupador"]); }
|
||||||
|
set { ViewState["RAgrupador"] = value; }
|
||||||
|
}
|
||||||
private int RcveEstado
|
private int RcveEstado
|
||||||
{
|
{
|
||||||
get { return (ViewState["RcveEstado"] == null) ? 0 : Convert.ToInt32(ViewState["RcveEstado"]); }
|
get { return (ViewState["RcveEstado"] == null) ? 0 : Convert.ToInt32(ViewState["RcveEstado"]); }
|
||||||
@@ -58,11 +63,12 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas
|
|||||||
protected void CargaIEPSxEntidadFed()
|
protected void CargaIEPSxEntidadFed()
|
||||||
{
|
{
|
||||||
ClsGenerales ObjIEPS = new ClsGenerales();
|
ClsGenerales ObjIEPS = new ClsGenerales();
|
||||||
ObjIEPS.IEPSxEntidadFed(RcveEstado, RtasaIEPS, RfechaInicio, RfechaFin, 119);
|
ObjIEPS.IEPSxEntidadFed(RcveEstado, RtasaIEPS, RfechaInicio, RfechaFin, 119, RAgrupador);
|
||||||
GVIEPSxEntidadFed.DataSource = ObjIEPS.DtResultados;
|
GVIEPSxEntidadFed.DataSource = ObjIEPS.DtResultados;
|
||||||
ObjIEPS.Dispose();
|
ObjIEPS.Dispose();
|
||||||
GVIEPSxEntidadFed.DataBind();
|
GVIEPSxEntidadFed.DataBind();
|
||||||
upDatosIEPS.Update();
|
upDatosIEPS.Update();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void GVIEPSxEntidadFed_RowDataBound(object sender, GridViewRowEventArgs e)
|
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)
|
protected void BtnIEPSFiltrar_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
RAgrupador = DdlAgrupador.SelectedValue.ToEntero();
|
||||||
RcveEstado = DdlEstado.SelectedValue.ToEntero();
|
RcveEstado = DdlEstado.SelectedValue.ToEntero();
|
||||||
RtasaIEPS = DdlIeps.SelectedValue.ToDecimal();
|
RtasaIEPS = DdlIeps.SelectedValue.ToDecimal();
|
||||||
RfechaInicio = TxtIEPSfechaInicio.Text.ToDate().ToString("yyyy/MM/dd") ;
|
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();
|
CargaIEPSxEntidadFed();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user