Class CustomReceiptFormatter
Inheritance
System.Object
CustomReceiptFormatter
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: TimApi.dll
public class CustomReceiptFormatter : ReceiptFormatter
Fields
Declaration
public string EmptyValueString
Field Value
Type |
Description |
System.String |
|
Methods
Declaration
protected List<ReceiptItem> filterRecipient(ReceiptItems receiptItems, Recipient recipient)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<ReceiptItem> |
|
Declaration
public List<Receipt> formatReceipt(Terminal terminal, ReceiptItems receiptItems)
Parameters
Returns
Type |
Description |
System.Collections.Generic.List<Receipt> |
|
formatReceiptAddLine(StringBuilder, Terminal, Int32, List<PrintFlag>, CustomReceiptFormatter.LineFormat, List<ReceiptItem>, ReceiptType)
Declaration
protected void formatReceiptAddLine(StringBuilder builder, Terminal terminal, int width, List<PrintFlag> flags, CustomReceiptFormatter.LineFormat lineFormat, List<ReceiptItem> receiptItems, ReceiptType receiptType)
Parameters
formatReceiptAddLine(StringBuilder, Int32, String, String, String, Char)
Declaration
protected void formatReceiptAddLine(StringBuilder builder, int width, string left, string center, string right, char paddingChar)
Parameters
Type |
Name |
Description |
System.Text.StringBuilder |
builder |
|
System.Int32 |
width |
|
System.String |
left |
|
System.String |
center |
|
System.String |
right |
|
System.Char |
paddingChar |
|
formatReceiptText(StringBuilder, Terminal, Int32, List<PrintFlag>, List<ReceiptItem>, ReceiptType, List<CustomReceiptFormatter.LineFormat>)
Declaration
protected void formatReceiptText(StringBuilder builder, Terminal terminal, int width, List<PrintFlag> flags, List<ReceiptItem> receiptItems, ReceiptType receiptType, List<CustomReceiptFormatter.LineFormat> lineFormats)
Parameters
Declaration
protected PrintOption getPrintOption(Terminal terminal, Recipient recipient)
Parameters
Returns
Declaration
protected bool hasField(List<ReceiptItem> receiptItems, ReceiptItemType field)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected bool hasReceiptItemType(List<ReceiptItem> receiptItems, ReceiptItemType type)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
protected string resolveField(List<ReceiptItem> receiptItems, ReceiptItemType field, CustomReceiptFormatter.Counters counters, int padLen = 0, char padChar = ' ')
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
protected string resolveField(List<ReceiptItem> receiptItems, ReceiptItemType field, string defaultValue)
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
protected string resolveFieldAmount(List<ReceiptItem> receiptItems, ReceiptItemType fieldAmount, ReceiptItemType fieldCurrency, ReceiptItemType fieldExponent, CustomReceiptFormatter.Counters counters, int padLen = 0, char padChar = ' ')
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
protected string resolveFieldDate(List<ReceiptItem> receiptItems, ReceiptItemType field, CustomReceiptFormatter.Counters counters, int padLen = 0, char padChar = ' ')
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
protected string resolveFieldTime(List<ReceiptItem> receiptItems, ReceiptItemType field, CustomReceiptFormatter.Counters counters, int padLen = 0, char padChar = ' ')
Parameters
Returns
Type |
Description |
System.String |
|
Declaration
public void setLineFormatsCardholder(List<CustomReceiptFormatter.LineFormat> lines)
Parameters
Declaration
public void setLineFormatsMerchant(List<CustomReceiptFormatter.LineFormat> lines)
Parameters
Declaration
public void setLineFormatsSaldo(List<CustomReceiptFormatter.LineFormat> lines)
Parameters
Implements