C# Class jsreport.MVC.JsReportFilterAttribute

Inheritance: System.Attribute, IActionFilter
显示文件 Open project: jsreport/net

Public Methods

Method Description
JsReportFilterAttribute ( ) : System
JsReportFilterAttribute ( IReportingService reportingService ) : System
OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void

Protected Methods

Method Description
AddResponseHeaders ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, Report output ) : void
CreateRenderingRequest ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, string htmlContent ) : object
RemoveVisualStudioBrowserLink ( string content ) : string
RenderPartialViewToString ( System.Web.Mvc.ActionExecutedContext context, string viewName, object model ) : string
RenderReport ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, string htmlContent ) : Task
ShouldUseJsReport ( System.Web.Mvc.ActionExecutedContext filterContext, EnableJsReportAttribute &attr ) : bool

Private Methods

Method Description
ConvertToDynamic ( object o ) : object

Method Details

AddResponseHeaders() protected method

protected AddResponseHeaders ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, Report output ) : void
context System.Web.Mvc.ActionExecutedContext
jsreportAttribute EnableJsReportAttribute
output jsreport.Client.Report
return void

CreateRenderingRequest() protected method

protected CreateRenderingRequest ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, string htmlContent ) : object
context System.Web.Mvc.ActionExecutedContext
jsreportAttribute EnableJsReportAttribute
htmlContent string
return object

JsReportFilterAttribute() public method

public JsReportFilterAttribute ( ) : System
return System

JsReportFilterAttribute() public method

public JsReportFilterAttribute ( IReportingService reportingService ) : System
reportingService IReportingService
return System

OnActionExecuted() public method

public OnActionExecuted ( System.Web.Mvc.ActionExecutedContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutedContext
return void

OnActionExecuting() public method

public OnActionExecuting ( System.Web.Mvc.ActionExecutingContext filterContext ) : void
filterContext System.Web.Mvc.ActionExecutingContext
return void

RemoveVisualStudioBrowserLink() protected method

protected RemoveVisualStudioBrowserLink ( string content ) : string
content string
return string

RenderPartialViewToString() protected method

protected RenderPartialViewToString ( System.Web.Mvc.ActionExecutedContext context, string viewName, object model ) : string
context System.Web.Mvc.ActionExecutedContext
viewName string
model object
return string

RenderReport() protected method

protected RenderReport ( System.Web.Mvc.ActionExecutedContext context, EnableJsReportAttribute jsreportAttribute, string htmlContent ) : Task
context System.Web.Mvc.ActionExecutedContext
jsreportAttribute EnableJsReportAttribute
htmlContent string
return Task

ShouldUseJsReport() protected method

protected ShouldUseJsReport ( System.Web.Mvc.ActionExecutedContext filterContext, EnableJsReportAttribute &attr ) : bool
filterContext System.Web.Mvc.ActionExecutedContext
attr EnableJsReportAttribute
return bool