E140 Rep Ventas Autorizaciones Exportar Excel y PDF
This commit is contained in:
@@ -12,12 +12,42 @@ public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
|
||||
public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
{
|
||||
#region PROPIEDADES
|
||||
|
||||
private DataTable DtDatos
|
||||
{
|
||||
get { return DtDatos = (DataTable)ViewState["DtDatos"]; }
|
||||
|
||||
private DataTable DtDatos
|
||||
set { ViewState["DtDatos"] = value; }
|
||||
}
|
||||
private bool Consultado {
|
||||
get { return Consultado = (bool)ViewState["Consultado"]; }
|
||||
set { ViewState["Consultado"] = value; }
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
protected void LnkExcel_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Consultado)
|
||||
{
|
||||
GvDatos.ExportToExcelG("RepVentasAutorizaciones" + DateTime.Now, "Reporte de Autorizaciones de Ventas", UsuarioActual);
|
||||
}
|
||||
else
|
||||
{
|
||||
Alert("Por favor realice una consulta primero.");
|
||||
}
|
||||
}
|
||||
|
||||
protected void LnkPdf_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (Consultado) {
|
||||
GvDatos.GenerarReportePDF("Reporte de Autorizaciones de Ventas");
|
||||
} else {
|
||||
Alert("Por favor realice una consulta primero.");
|
||||
}
|
||||
}
|
||||
public override void VerifyRenderingInServerForm(System.Web.UI.Control control)
|
||||
{
|
||||
}
|
||||
|
||||
protected void Page_Load(object sender, EventArgs e)
|
||||
@@ -45,6 +75,7 @@ public partial class Ventas_RepVentasAutorizaciones : ClsPaginas
|
||||
DdlClientes.setEsWebService(true);
|
||||
|
||||
|
||||
txtFechaI.Text = DateTime.Now.ToShortDateString();
|
||||
txtFechaF.Text = DateTime.Now.ToShortDateString();
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user