Beispiel #1
0
        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;
        }
Beispiel #2
0
        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;
        }
Beispiel #4
0
        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);
        }
Beispiel #6
0
        /// <summary>
        /// Metodo ObtenerListaVentasReporte VentasListBRL
        /// </summary>
        /// <returns>DataSetcubestore</returns>
        public static DataSetcubestore ObtenerListaVentasReporte()
        {
            DataSetcubestore dataSetcubestore = null;

            try
            {
                dataSetcubestore = VentasListDAL.ObtenerListaVentasReporte();
            }
            catch (Exception)
            {
                throw;
            }


            return(dataSetcubestore);
        }
Beispiel #7
0
        /// <summary>
        /// Metodo ObtenerListaEmpleadosReporte EmpleadoListBRL
        /// </summary>
        /// <returns>DataSetcubestore</returns>
        public static DataSetcubestore ObtenerListaEmpleadosReporte()
        {
            DataSetcubestore dataSetcubestore = null;

            try
            {
                dataSetcubestore = EmpleadoListDal.ObtenerListaEmpleadosReporte();
            }
            catch (Exception)
            {
                throw;
            }


            return(dataSetcubestore);
        }