Пример #1
0
        //Not done
        public ActionResult ListReport(IDbConnection connection, CommonReportRequest request)
        {
            var entities = List(connection, request).Entities;

            var report      = new DynamicDataReport(entities, request.IncludeColumns, typeof(Columns.ProductColumns));
            var reportTitle = typeof(MyRow).CustomAttributes.Where(q => q.AttributeType.Name == "DisplayNameAttribute").FirstOrDefault().ConstructorArguments[0].Value.ToString();

            //var htmlText = new _Ext.Reports.ReportGenerator().RenderHtml(report, typeof(Columns.PmsMeetingdiffCommitteDetailColumns), typeof(List<PmsMeetingdiffCommitteDetailRow>));
            var htmlText = new _Ext.Reports.ReportGenerator().RenderHtml(report);
            var data     = new CommonReportModel(connection, request);

            data.ReportBody  = htmlText;
            data.ReportTitle = reportTitle;
            return(View(MVC.Views.Common.Reporting.GridExport.CommonReport, data));
        }
Пример #2
0
        public ActionResult Report(IDbConnection connection, CommonReportRequest request)
        {
            var data = new CommonReportModel(connection, request);

            return(View(MVC.Views.Common.Reporting.GridExport.CommonReport, data));
        }