Exemplo n.º 1
0
        private BaocaoTonkhoXtraReport CreateDateReport(int?StoreId, DateTime?ToDate, DateTime?FromDate, int?SupplierId, int?EmployeeId, int?WarehouseId)
        {
            BaocaoTonkhoXtraReport report = new BaocaoTonkhoXtraReport();
            DataSet ds = GetData(StoreId, ToDate, FromDate, SupplierId, EmployeeId, WarehouseId);

            report.DataSource = ds;
            report.DataMember = "Detail"; // Lặp lại Detail
            string orderid = StoreId == null ? "" : StoreId.ToString();

            report.Name = "Bao cao ton kho -" + StoreId; // Export file Name
            return(report);
        }
Exemplo n.º 2
0
        public ActionResult ExportReportViewerPartial(int?StoreId, DateTime?ToDate, DateTime?FromDate, int?SupplierId, int?EmployeeId, int?WarehouseId)
        {
            BaocaoTonkhoXtraReport quarterReport = CreateDateReport(StoreId, ToDate, FromDate, SupplierId, EmployeeId, WarehouseId);

            return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport));
        }
Exemplo n.º 3
0
        //
        // GET: /InventoryProductReportView/

        public ActionResult ReportViewerPartial(int?StoreId, DateTime?ToDate, DateTime?FromDate, int?SupplierId, int?EmployeeId, int?WarehouseId)      // id để report with
        {
            CreateViewBag(StoreId, ToDate, FromDate, SupplierId, EmployeeId, WarehouseId);
            ViewData["Report"] = new BaocaoTonkhoXtraReport();
            return(PartialView());
        }