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