Esempio n. 1
0
 public void LlenaReport(int index, string criterio)
 {
     MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
     MyReportViewer.Reset();
     MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\CategoriaReporte.rdlc");
     MyReportViewer.LocalReport.DataSources.Clear();
     MyReportViewer.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("ReportCategoria", Funcionalidades.FitrarCategoria(index, criterio)));
     MyReportViewer.LocalReport.Refresh();
 }
Esempio n. 2
0
 public void LlenaReport()
 {
     MyReportViewer.ProcessingMode = ProcessingMode.Local;
     MyReportViewer.Reset();
     MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\UI\Reportes\ListadoPagos.rdlc");
     MyReportViewer.LocalReport.DataSources.Clear();
     MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("PagoDS", Utils.FPagos()));
     MyReportViewer.LocalReport.Refresh();
 }
Esempio n. 3
0
        public void LlenaReport(int index, string criteio)
        {
            RepositorioBase <Listas> repositorio = new RepositorioBase <Listas>(new Contexto());

            MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
            MyReportViewer.Reset();
            MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ReporteLista.rdlc");
            MyReportViewer.LocalReport.DataSources.Clear();
            MyReportViewer.LocalReport.DataSources.Add(new Microsoft.Reporting.WebForms.ReportDataSource("Lista", Funcionalidades.FiltrarLista(index, criteio)));
            MyReportViewer.LocalReport.Refresh();
        }
Esempio n. 4
0
        public void LlenaReport()
        {
            RepositorioBase <Transacciones> repositorio = new RepositorioBase <Transacciones>(new Contexto());

            MyReportViewer.ProcessingMode = ProcessingMode.Local;
            MyReportViewer.Reset();
            MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\Reporte.rdlc");
            MyReportViewer.LocalReport.DataSources.Clear();
            MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Transacion", repositorio.GetList(e => true)));
            MyReportViewer.LocalReport.Refresh();
        }
Esempio n. 5
0
 protected void Page_Load(object sender, EventArgs e)
 {
     if (!Page.IsPostBack)
     {
         MyReportViewer.ProcessingMode = ProcessingMode.Local;
         MyReportViewer.Reset();
         MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ListaCategorias.rdlc");
         MyReportViewer.LocalReport.DataSources.Clear();
         MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("CategoriasDataSet", FCategorias(filtro)));
         MyReportViewer.LocalReport.Refresh();
     }
 }
Esempio n. 6
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Repositorio <Articulos> repositorio = new Repositorio <Articulos>();

                MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                MyReportViewer.Reset();

                MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ListaArticulos.rdlc");
                MyReportViewer.LocalReport.DataSources.Clear();
                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("ListaArticulosDataSet", (List <Articulos>)Session["Articulos"]));

                MyReportViewer.LocalReport.Refresh();
            }
        }
Esempio n. 7
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                RepositorioBase <Productos> repositorio = new RepositorioBase <Productos>();
                var lista = repositorio.GetList(x => true);

                MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                MyReportViewer.Reset();


                MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\UI\Reportes\ListadoProductos.rdlc");

                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSet1", lista));

                MyReportViewer.LocalReport.Refresh();
            }
        }
Esempio n. 8
0
        /// <summary>
        /// Binds the report.
        /// </summary>
        private void BindReport()
        {
            DataCommand cmd = OrderDataHelper.CreateTranDataCommand();

            cmd.CommandText  = String.Format("SELECT E.[Name], I.* from [Inventory] I INNER JOIN [CatalogEntry] E ON E.Code = I.SkuId INNER JOIN Catalog C ON C.CatalogId = E.CatalogId WHERE (I.InstockQuantity - I.ReservedQuantity) < 20 AND I.InventoryStatus <> 0 AND C.ApplicationId = '{0}';", OrderConfiguration.Instance.ApplicationId);
            cmd.CommandType  = CommandType.Text;
            cmd.Parameters   = new DataParameters();
            cmd.TableMapping = DataHelper.MapTables("EntryStock");
            cmd.DataSet      = new ProductDataSet();
            DataResult results = DataService.LoadDataSet(cmd);

            ReportDataSource source = new ReportDataSource();

            source.Name  = "EntryStock";
            source.Value = ((ProductDataSet)results.DataSet).EntryStock;

            MyReportViewer.LocalReport.DataSources.Add(source);
            MyReportViewer.DataBind();
        }
Esempio n. 9
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)
            {
                Repositorio <Prestamos>        repositorio  = new Repositorio <Prestamos>();
                Repositorio <PrestamoDetalles> repositorioD = new Repositorio <PrestamoDetalles>();

                MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                MyReportViewer.Reset();
                MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\Prestamo.rdlc");
                MyReportViewer.LocalReport.DataSources.Clear();



                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("DataSetPrestamo", (List <Prestamos>)Session["Prestamo"]));
                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Detalle", (List <PrestamoDetalles>)Session["PrestamoD"]));
                MyReportViewer.LocalReport.Refresh();
            }
        }
Esempio n. 10
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Page.IsPostBack)//solo se carga si no se esta haciendo postback
            {
                //Indicar que es con reporte local
                MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                MyReportViewer.Reset();//reiniciar el reporte para evitar que este sucio de una llamada anterior

                //Indicar la ruta del reporte en el servidor
                MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ListadoCategorias.rdlc");

                MyReportViewer.LocalReport.DataSources.Clear(); //Limpiar la fuente datos

                //Agregar una nueva fuente de datos con las categorias que deseamos imprimir
                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Categorias",
                                                                                Categorias.ObtenerDatosParaReporte("CategoriaId>17")));

                MyReportViewer.LocalReport.Refresh();//Refrescar el reporte para que muestre los datos
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            cPagos cPagos = new cPagos();

            if (!Page.IsPostBack)//solo se carga si no se esta haciendo postback
            {
                RepositorioBase <Pagos> repositorio = new RepositorioBase <Pagos>();
                var lista = repositorio.GetList(x => true);
                //Indicar que es con reporte local
                MyReportViewer.ProcessingMode = Microsoft.Reporting.WebForms.ProcessingMode.Local;
                MyReportViewer.Reset();//reiniciar el reporte para evitar que este sucio de una llamada anterior

                //Indicar la ruta del reporte en el servidor
                MyReportViewer.LocalReport.ReportPath = Server.MapPath(@"~\Reportes\ListadoPagos.rdlc");

                //Agregar una nueva fuente de datos con las categorias que deseamos imprimir
                MyReportViewer.LocalReport.DataSources.Add(new ReportDataSource("Pagos", lista));

                MyReportViewer.LocalReport.Refresh();//Refrescar el reporte para que muestre los datos
            }
        }
        /// <summary>
        /// Binds the report.
        /// </summary>
        private void BindReport()
        {
            DataCommand cmd = OrderDataHelper.CreateTranDataCommand();

            cmd.CommandText = "[ecf_reporting_CustomerNumOrders]";
            cmd.CommandType = CommandType.StoredProcedure;
            cmd.Parameters  = new DataParameters();
            cmd.Parameters.Add(new DataParameter("ApplicationId", CatalogConfiguration.Instance.ApplicationId, DataParameterType.UniqueIdentifier));
            cmd.Parameters.Add(new DataParameter("interval", GroupBy.SelectedValue, DataParameterType.VarChar));
            cmd.Parameters.Add(new DataParameter("startdate", StartDate.Value.ToUniversalTime(), DataParameterType.DateTime));
            cmd.Parameters.Add(new DataParameter("enddate", EndDate.Value.ToUniversalTime(), DataParameterType.DateTime));
            cmd.TableMapping = DataHelper.MapTables("CustomerNumOrdersReport");
            cmd.DataSet      = new CustomersDataSet();
            DataResult results = DataService.LoadDataSet(cmd);

            ReportDataSource source = new ReportDataSource();

            source.Name  = "CustomerNumOrdersReport";
            source.Value = ((CustomersDataSet)results.DataSet).CustomerNumOrdersReport;

            MyReportViewer.LocalReport.DataSources.Clear();
            MyReportViewer.LocalReport.DataSources.Add(source);
            MyReportViewer.DataBind();
        }