This commit is contained in:
@@ -106,10 +106,33 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas
|
|||||||
|
|
||||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
GVIEPSxEntidadFed.ExportToExcelx("IEPS porEntidad Federativa");
|
//GVIEPSxEntidadFed.ExportToExcelx("IEPS porEntidad Federativa");
|
||||||
|
Imprimir("Excel");
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void LnkPDF_Click(object sender, EventArgs e)
|
protected void LnkPDF_Click(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
Imprimir("PDF");
|
||||||
|
//string FechaInicio = $" <b>Fecha Inicio:</b> {TxtIEPSfechaInicio.Text}";
|
||||||
|
//string FechaFin = $" <b>Fecha Inicio:</b> {TxtIEPSfechaFin.Text}";
|
||||||
|
//string Estado = DdlEstado.SelectedValue.ToEntero() > -1 ? $" <b>Estado:</b> {DdlEstado.SelectedItem}" : "";
|
||||||
|
//string IEPS = DdlIeps.SelectedValue.ToEntero() > -1 ? $" <b>IEPS:</b> {DdlIeps.SelectedItem}" : "";
|
||||||
|
//string Agrupador = DdlAgrupador.SelectedValue.ToEntero() > -1 ? $" <b>Agrupador:</b> {DdlAgrupador.SelectedItem}" : "";
|
||||||
|
//List<ReportParameter> paramList = new List<ReportParameter>();
|
||||||
|
//paramList.Add(new ReportParameter("Logo", String.Format("{0}://{1}:{2}/Empresas/{3}/Logo.png", Request.Url.Scheme, Request.Url.Host, Request.Url.Port, UsuarioActual.CveEmpresa)));
|
||||||
|
//paramList.Add(new ReportParameter("FechaInicio", FechaInicio));
|
||||||
|
//paramList.Add(new ReportParameter("FechaFin", TxtIEPSfechaFin.Text));
|
||||||
|
//paramList.Add(new ReportParameter("Agrupador", DdlAgrupador.SelectedValue));
|
||||||
|
//paramList.Add(new ReportParameter("Empresa", UsuarioActual.Empresa.Empresa));
|
||||||
|
//paramList.Add(new ReportParameter("UsuarioImprimio", UsuarioActual.Nombre));
|
||||||
|
//paramList.Add(new ReportParameter("FechaImpresion", DateTime.Now.ToString()));
|
||||||
|
//paramList.Add(new ReportParameter("Filtros", $"{FechaInicio}{FechaFin}{IEPS}{Estado}{Agrupador}"));
|
||||||
|
|
||||||
|
|
||||||
|
//ImprimirPDF("Empresas/Grales/Formatos/CatIepsEntidadFed.rdlc", DtIEPS, paramList,"IEPS por entidades federativa",RDSName:"DsInventarios");
|
||||||
|
}
|
||||||
|
|
||||||
|
private void Imprimir(string formato)
|
||||||
{
|
{
|
||||||
string FechaInicio = $" <b>Fecha Inicio:</b> {TxtIEPSfechaInicio.Text}";
|
string FechaInicio = $" <b>Fecha Inicio:</b> {TxtIEPSfechaInicio.Text}";
|
||||||
string FechaFin = $" <b>Fecha Inicio:</b> {TxtIEPSfechaFin.Text}";
|
string FechaFin = $" <b>Fecha Inicio:</b> {TxtIEPSfechaFin.Text}";
|
||||||
@@ -127,6 +150,6 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas
|
|||||||
paramList.Add(new ReportParameter("Filtros", $"{FechaInicio}{FechaFin}{IEPS}{Estado}{Agrupador}"));
|
paramList.Add(new ReportParameter("Filtros", $"{FechaInicio}{FechaFin}{IEPS}{Estado}{Agrupador}"));
|
||||||
|
|
||||||
|
|
||||||
ImprimirPDF("Empresas/Grales/Formatos/CatIepsEntidadFed.rdlc", DtIEPS, paramList,"IEPS por entidades federativa",RDSName:"DsInventarios");
|
ImprimirPDF("Empresas/Grales/Formatos/CatIepsEntidadFed.rdlc", DtIEPS, paramList, "IEPS por entidades federativa",formato, RDSName: "DsInventarios");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -50,6 +50,8 @@
|
|||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user