private HoaDonBanHangXtraReport1 CreateDateReport(int?OrderId)
        {
            HoaDonBanHangXtraReport1 report = new HoaDonBanHangXtraReport1();
            DataSet ds = GetData(OrderId);

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

            report.Name = "Phieu ban hang -" + OrderId; // Export file Name
            return(report);
        }
        public ActionResult ExportReportViewerPartial(int?OrderId)
        {
            HoaDonBanHangXtraReport1 quarterReport = CreateDateReport(OrderId);

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

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