private void ViewerVerReportesVentas_Loaded(object sender, RoutedEventArgs e) { ReporteVentas reporte = new ReporteVentas(); DataSetcubestore dataset = VentasListBRL.ObtenerListaVentasReporte(); reporte.Load("../../ReporteVentas.rpt"); reporte.SetDataSource(dataset); viewerVerReportesVentas.ViewerCore.ReportSource = reporte; }
private void ViewerActivos_Loaded(object sender, RoutedEventArgs e) { VerReporteEmpleadosActivos reporte = new VerReporteEmpleadosActivos(); DataSetcubestore dataset = EmpleadoActivoListBRL.ObtenerListaEmpleadosActivosReporte(); reporte.Load("../../VerReporteEmpleadosActivos.rpt"); reporte.SetDataSource(dataset); viewerActivos.ViewerCore.ReportSource = reporte; }
private void CrystalViewerEmpleados_Loaded(object sender, RoutedEventArgs e) { ReporteVentasEmpleados reporte = new ReporteVentasEmpleados(); DataSetcubestore dataset = EmpleadoListBRL.ObtenerListaEmpleadosReporte(); reporte.Load("../../ReporteVentasEmpleados.rpt"); reporte.SetDataSource(dataset); crystalViewerEmpleados.ViewerCore.ReportSource = reporte; }
public static DataSetcubestore ObtenerListaVentasReporte() { DataSetcubestore dataSetcubestore = new DataSetcubestore(); VentasListReportTableAdapter ventaTableAdapter = new VentasListReportTableAdapter(); try { ventaTableAdapter.Fill(dataSetcubestore.Tables["VentasListReport"] as DataSetcubestore.VentasListReportDataTable); } catch (Exception ex) { Methods.GenerateLogsErrors(DateTime.Now, ex.Message); } return(dataSetcubestore); }
public static DataSetcubestore ObtenerListaEmpleadosReporte() { DataSetcubestore dataSetcubestore = new DataSetcubestore(); EmpleadoListReportTableAdapter empleadoTableAdapter = new EmpleadoListReportTableAdapter(); try { empleadoTableAdapter.Fill(dataSetcubestore.Tables["EmpleadoListReport"] as DataSetcubestore.EmpleadoListReportDataTable); } catch (Exception ex) { Methods.GenerateLogsErrors(DateTime.Now, ex.Message); } return(dataSetcubestore); }
/// <summary> /// Metodo ObtenerListaVentasReporte VentasListBRL /// </summary> /// <returns>DataSetcubestore</returns> public static DataSetcubestore ObtenerListaVentasReporte() { DataSetcubestore dataSetcubestore = null; try { dataSetcubestore = VentasListDAL.ObtenerListaVentasReporte(); } catch (Exception) { throw; } return(dataSetcubestore); }
/// <summary> /// Metodo ObtenerListaEmpleadosReporte EmpleadoListBRL /// </summary> /// <returns>DataSetcubestore</returns> public static DataSetcubestore ObtenerListaEmpleadosReporte() { DataSetcubestore dataSetcubestore = null; try { dataSetcubestore = EmpleadoListDal.ObtenerListaEmpleadosReporte(); } catch (Exception) { throw; } return(dataSetcubestore); }