protected void UiMenuCargaManifiesto_ItemClick(object source, DevExpress.Web.MenuItemEventArgs e) { switch (e.Item.Name) { case "UiBotonGenerarExcelVistaGeneral": UiExportarVistaCargarManifiesto.WriteXlsxToResponse(); break; } }
protected void UiMenuResultadoManifiestos_ItemClick(object source, MenuItemEventArgs e) { try { switch (e.Item.Name) { case "btnReport": ReportView(); UiPopUpReporteManifiesto.ShowOnPageLoad = true; break; case "btnExcel": UiExportarVistaCargarManifiesto.GridViewID = "UiVistaReporteManifiesto"; UiExportarVistaCargarManifiesto.WriteXlsxToResponse(); UiExportarVistaCargarManifiesto.GridViewID = "UiVistaCargaManifiesto"; break; } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }