private HoaDonKhachHangTraHangXtraReport1 CreateDateReport(int?OrderReturnMasterId)
        {
            HoaDonKhachHangTraHangXtraReport1 report = new HoaDonKhachHangTraHangXtraReport1();
            DataSet ds = GetData(OrderReturnMasterId);

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

            report.Name = "Phieu khach hang tra hang -" + OrderReturnMasterId; // Export file Name
            return(report);
        }
        public ActionResult ExportReportViewerPartial(int?OrderReturnMasterId)
        {
            HoaDonKhachHangTraHangXtraReport1 quarterReport = CreateDateReport(OrderReturnMasterId);

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

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