private HoaDonNhapNhaCungCapXtraReport CreateDateReport(int?ImportMasterId)
        {
            HoaDonNhapNhaCungCapXtraReport report = new HoaDonNhapNhaCungCapXtraReport();
            DataSet ds = GetData(ImportMasterId);

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

            report.Name = "Phieu nhap kho -" + ImportMasterId; // Export file Name
            return(report);
        }
        public ActionResult ExportReportViewerPartial(int?ImportMasterId)
        {
            HoaDonNhapNhaCungCapXtraReport quarterReport = CreateDateReport(ImportMasterId);

            return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport));
        }
        //
        // GET: /ImportMasterReport/

        public ActionResult ReportViewerPartial(int?ImportMasterId) // id để report with
        {
            CreateViewBag(ImportMasterId);
            ViewData["Report"] = new HoaDonNhapNhaCungCapXtraReport();
            return(PartialView());
        }