public void ReportView() { try { if (Session["UiVistaUsuario"] != null) { var listaUsuarios = new List <Usuario>(); for (int i = 0; i < UiVistaUsuario.VisibleRowCount; i++) { listaUsuarios.Add((Usuario)UiVistaUsuario.GetRow(i)); } listaUsuarios = listaUsuarios.Distinct().ToList(); if (listaUsuarios.Count != 0) { var reporte = new ReportUser { DataSource = ListToDataTableClass.ListToDataTable(listaUsuarios) , DataMember = "USERS" }; UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
/// <summary> /// Generar Reporte /// </summary> private void GenerarReporteVistaGeneral() { try { if (Session["UiListaCanales"] == null) { return; } var listaCanal = new List <Canal>(); for (int i = 0; i < UiVistaCanal.VisibleRowCount; i++) { listaCanal.Add((Canal)UiVistaCanal.GetRow(i)); } listaCanal = listaCanal.Distinct().ToList(); if (listaCanal.Count != 0) { var reporte = new ReporteCanal { DataSource = ListToDataTableClass.ListToDataTable(listaCanal) , DataMember = "Canal" }; UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaPerformanceDeRuta"] == null && !UiPopupReporteVistaGeneral.IsClientVisible()) { return; } var reporte = new ReportPerformanceRoute() { DataSource = ListToDataTableClass.ListToDataTable(((IList <PerformanceDeRuta>)UiVistaPerformanceDeRuta.DataSource).ToList()) , DataMember = "PerformanceDeRuta" }; reporte.Parameters["symbolCurrency"].Value = Session["SYMBOL_CURRENCY"].ToString(); UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaEficienciaSemanalDeRuta"] == null) { return; } var reporte = new ReportWeeklvEfficientRoute() { DataSource = ListToDataTableClass.ListToDataTable(((IList <EficienciaSemanalDeRuta>)UiVistaEficienciaSemanalDeRuta.DataSource).ToList()) , DataMember = "EficienciaSemanalDeRuta" }; reporte.Parameters["prmFechaInicial"].Value = (DateTime)Session["FechaInicial"]; reporte.Parameters["symbolCurrency"].Value = Session["SYMBOL_CURRENCY"].ToString(); UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); var listaDeFechas = ObtenerFechas(int.Parse(UiListaRadioButton.Value.ToString())); UiEtiquetaFecha.Text = $"De {listaDeFechas[0].ToString("dd/MM/yyyy")} a {listaDeFechas[1].ToString("dd/MM/yyyy")}"; } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaEncuestaDeCompetencia"] == null) { return; } var listaEncuestas = new List <EncuestaDeCompetencia>(); for (int i = 0; i < UiVistaEncuestaDeCompetencia.VisibleRowCount; i++) { listaEncuestas.Add((EncuestaDeCompetencia)UiVistaEncuestaDeCompetencia.GetRow(i)); } listaEncuestas = listaEncuestas.Distinct().ToList(); if (listaEncuestas.Count != 0) { var reporte = new ReportBussinesRivalPoll { DataSource = ListToDataTableClass.ListToDataTable(listaEncuestas) , DataMember = "SONDA_BUSINESS_RIVAL_POLL" }; reporte.Parameters["symbolCurrency"].Value = Session["SYMBOL_CURRENCY"].ToString(); UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaEncabezadoFacturaPorSku"] == null) { return; } var reporte = new InvoiceBySku() { DataSource = ListToDataTableClass.ListToDataTable(FacturaDetalles.ToList()) , DataMember = "FacturaDetalles" }; UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaConsignacion"] == null) { return; } var ds = new DataSet(); var encabezado = (ConsignacionEncabezado)UiVistaConsignacion.GetRow(UiVistaConsignacion.FocusedRowIndex); if (encabezado == null) { return; } var listaEncabezado = new List <ConsignacionEncabezado>(); listaEncabezado.Add(encabezado); ds.Tables.Add(ListToDataTableClass.ListToDataTable((listaEncabezado).ToList())); ds.Tables.Add(ListToDataTableClass.ListToDataTable((DetallesConsignacion).ToList())); ds.Tables.Add(ListToDataTableClass.ListToDataTable((TransaccionesConsignacion).ToList())); var reporte = new ReportConsignment() { DataSource = ds //, //DataMember = "ConsignacionEncabezado" }; UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaCumplimientoDeRuta"] == null) { return; } var reporte = new Report.ReportComplianceRoute() { DataSource = ListToDataTableClass.ListToDataTable(((IList <Tarea>)UiVistaCumplimientoDeRuta.DataSource).ToList()) , DataMember = "Tarea" }; UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }
private void GenerarReporteVistaGeneral() { try { if (Session["UiVistaDetallesDeOrdenesDeVenta"] == null) { return; } var reporte = new ReportDetailsSaleOrders() { DataSource = ListToDataTableClass.ListToDataTable(((IList <OrdenDeVentaDetalle>)UiVistaDetallesDeOrdenesDeVenta.DataSource).ToList()) , DataMember = "OrdenDeVentaDetalle" }; reporte.Parameters["symbolCurrency"].Value = Session["SYMBOL_CURRENCY"].ToString(); UiDocumentoVistaReporteVistaGeneral.Report = reporte; UiDocumentoVistaReporteVistaGeneral.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this, GetType(), "ErrorText", "CallError('Error: " + ex.Message + "');", true); } }