C# Class Mictlanix.BE.Web.Mvc.CustomController

Inheritance: Controller
显示文件 Open project: mictlanix/mbe

Public Methods

Method Description
ExcelView ( string viewPath, object model ) : System.Web.Mvc.FileResult
GetPdf ( string viewPath, object model ) : Stream
GetPdf ( string viewPath, object model, Phantom phantom ) : Stream
GetPdfTicket ( string viewPath, object model ) : Stream
PdfTicketView ( string viewPath, object model ) : System.Web.Mvc.FileStreamResult
PdfView ( string viewPath, object model ) : System.Web.Mvc.FileStreamResult
PdfView ( string viewPath, object model, Phantom phantom ) : System.Web.Mvc.FileStreamResult
RenderPartialView ( string viewPath, object model ) : string
RenderView ( string viewPath, object model ) : string
SendEmailWithAttachment ( string recipient, string subject, string message, string attachmentName, Stream attachmentContent ) : void
SendEmailWithAttachments ( string sender, string recipient, string subject, string message, IEnumerable attachments ) : void

Protected Methods

Method Description
RenderViewToStringInternal ( string viewPath, object model, bool partial = false ) : string

Method Details

ExcelView() public method

public ExcelView ( string viewPath, object model ) : System.Web.Mvc.FileResult
viewPath string
model object
return System.Web.Mvc.FileResult

GetPdf() public method

public GetPdf ( string viewPath, object model ) : Stream
viewPath string
model object
return Stream

GetPdf() public method

public GetPdf ( string viewPath, object model, Phantom phantom ) : Stream
viewPath string
model object
phantom jsreport.Client.Entities.Phantom
return Stream

GetPdfTicket() public method

public GetPdfTicket ( string viewPath, object model ) : Stream
viewPath string
model object
return Stream

PdfTicketView() public method

public PdfTicketView ( string viewPath, object model ) : System.Web.Mvc.FileStreamResult
viewPath string
model object
return System.Web.Mvc.FileStreamResult

PdfView() public method

public PdfView ( string viewPath, object model ) : System.Web.Mvc.FileStreamResult
viewPath string
model object
return System.Web.Mvc.FileStreamResult

PdfView() public method

public PdfView ( string viewPath, object model, Phantom phantom ) : System.Web.Mvc.FileStreamResult
viewPath string
model object
phantom jsreport.Client.Entities.Phantom
return System.Web.Mvc.FileStreamResult

RenderPartialView() public method

public RenderPartialView ( string viewPath, object model ) : string
viewPath string
model object
return string

RenderView() public method

public RenderView ( string viewPath, object model ) : string
viewPath string
model object
return string

RenderViewToStringInternal() protected method

protected RenderViewToStringInternal ( string viewPath, object model, bool partial = false ) : string
viewPath string
model object
partial bool
return string

SendEmailWithAttachment() public method

public SendEmailWithAttachment ( string recipient, string subject, string message, string attachmentName, Stream attachmentContent ) : void
recipient string
subject string
message string
attachmentName string
attachmentContent Stream
return void

SendEmailWithAttachments() public method

public SendEmailWithAttachments ( string sender, string recipient, string subject, string message, IEnumerable attachments ) : void
sender string
recipient string
subject string
message string
attachments IEnumerable
return void