This commit is contained in:
Antonio Gonzalez
2020-04-18 12:31:29 -07:00
parent 94cdd34337
commit ee9fdcc216
2 changed files with 27 additions and 2 deletions

View File

@@ -106,10 +106,33 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas
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)
{
Imprimir("PDF");
//string FechaInicio = $"&emsp;<b>Fecha Inicio:</b>&nbsp;{TxtIEPSfechaInicio.Text}";
//string FechaFin = $"&emsp;<b>Fecha Inicio:</b>&nbsp;{TxtIEPSfechaFin.Text}";
//string Estado = DdlEstado.SelectedValue.ToEntero() > -1 ? $"&emsp;<b>Estado:</b>&nbsp;{DdlEstado.SelectedItem}" : "";
//string IEPS = DdlIeps.SelectedValue.ToEntero() > -1 ? $"&emsp;<b>IEPS:</b>&nbsp;{DdlIeps.SelectedItem}" : "";
//string Agrupador = DdlAgrupador.SelectedValue.ToEntero() > -1 ? $"&emsp;<b>Agrupador:</b>&nbsp;{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 = $"&emsp;<b>Fecha Inicio:</b>&nbsp;{TxtIEPSfechaInicio.Text}";
string FechaFin = $"&emsp;<b>Fecha Inicio:</b>&nbsp;{TxtIEPSfechaFin.Text}";
@@ -127,6 +150,6 @@ public partial class General_CATIEPSxEntidadFed : ClsPaginas
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");
}
}

View File

@@ -50,6 +50,8 @@