Example #1
0
        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);
        }
Example #2
0
        public ActionResult ExportReportViewerPartial(int?IEOtherMasterId)
        {
            HoaDonXuatNhapKhacXtraReport quarterReport = CreateDateReport(IEOtherMasterId);

            return(DevExpress.Web.Mvc.ReportViewerExtension.ExportTo(quarterReport));
        }
Example #3
0
        //
        // GET: /IEOtherMasterReport/

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