private HoaDonXuatNhapKhacXtraReport CreateDateReport(int?IEOtherMasterId) { HoaDonXuatNhapKhacXtraReport report = new HoaDonXuatNhapKhacXtraReport(); DataSet ds = GetData(IEOtherMasterId); report.DataSource = ds; report.DataMember = "Detail"; // Lặp lại Detail string orderid = IEOtherMasterId == null ? "" : IEOtherMasterId.ToString(); report.Name = "Phieu xuat - nhap khac -" + IEOtherMasterId; // Export file Name return(report); }
public ActionResult ExportReportViewerPartial(int?IEOtherMasterId) { HoaDonXuatNhapKhacXtraReport quarterReport = CreateDateReport(IEOtherMasterId); return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport)); }
// // GET: /IEOtherMasterReport/ public ActionResult ReportViewerPartial(int?IEOtherMasterId) // id để report with { CreateViewBag(IEOtherMasterId); ViewData["Report"] = new HoaDonXuatNhapKhacXtraReport(); return(PartialView()); }