Пример #1
0
        private DanhSachXuatNhapTonSPXtraReport CreateDateReport()
        {
            DanhSachXuatNhapTonSPXtraReport report = new DanhSachXuatNhapTonSPXtraReport();
            DataSet ds = GetData();

            report.DataSource = ds;
            report.DataMember = "Detail";                  // Lặp lại Detail
            report.Name       = "Danh sách xuất nhập tồn"; // Export file Name
            return(report);
        }
Пример #2
0
        public ActionResult ExportReportViewerPartial()
        {
            DanhSachXuatNhapTonSPXtraReport quarterReport = CreateDateReport();

            return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport));
        }
Пример #3
0
        //
        // GET: /IEOtherMasterReport/
        //public ActionResult ReportPost(InventorySearchViewModel model)// id để report with
        //{
        //    model.WarehouseId = 1;
        //    return new JsonResult()
        //    {
        //        Data = new { WarehouseId = model.WarehouseId, ProductId = model.ProductId }
        //    };
        //}

        public ActionResult ReportViewerPartial()// id để report with
        {
            ViewData["Report"] = new DanhSachXuatNhapTonSPXtraReport();
            return(PartialView());
        }