C# Class Worki.Service.InvoiceService

Inheritance: IInvoiceService
Show file Open project: tah91/eworkyWebSite

Public Methods

Method Description
GenerateInvoice ( MemoryStream stream, Invoice invoiceData ) : void
InvoiceService ( ILogger logger ) : System

Private Methods

Method Description
AddCell ( PdfPTable table, string text, int align, int border, int colspan = 1, float borderWidth = 0.5f, Font font = null ) : void
AddCellHeader ( PdfPTable table, string text ) : void
AddPageWithTable ( Document doc, Invoice invoiceData ) : void

Add all the booking content

AddParagraph ( Document doc, int alignment, Font font, IElement content ) : void

Add a paragraph object containing the specified element to the PDF document.

SetStandardPageSize ( Document doc ) : void

Set margins and page size for the document

Method Details

GenerateInvoice() public method

public GenerateInvoice ( MemoryStream stream, Invoice invoiceData ) : void
stream System.IO.MemoryStream
invoiceData Worki.Data.Models.Invoice
return void

InvoiceService() public method

public InvoiceService ( ILogger logger ) : System
logger ILogger
return System