Class TransactionsControllerHelper
A helper class for providing the standard controls required for displaying transactions in the various base transaction controllers
Inheritance
Inherited Members
Namespace: LemonEdge.Client.Core.Views
Assembly: ClientCore.dll
Syntax
public static class TransactionsControllerHelper
Properties
AllowCopyCommand
True - Indicates trnasactions should always be able to be copied
Declaration
public static bool AllowCopyCommand { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
AllowXMLImportExport
False - Indicates transactions can not be exported into an xml format
Declaration
public static bool AllowXMLImportExport { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
AutoOpenNewItemInTab
True - Indicates transactions should always be able to be opened
Declaration
public static bool AutoOpenNewItemInTab { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
DefaultSearchColumn
The default column to search on a transaction is the ReportingFXRate
Declaration
public static string DefaultSearchColumn { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
AlterQuery(QueryableExecuter<ITransaction>, Boolean)
Filters the standard transaction query to order by
Declaration
public static QueryableExecuter<ITransaction> AlterQuery(QueryableExecuter<ITransaction> query, bool onlyHeaders)
Parameters
Type | Name | Description |
---|---|---|
QueryableExecuter<ITransaction> | query | The transaction query to add standard filters to |
System.Boolean | onlyHeaders | Indicates the query should be filtered to only have transactions where ParentTransactionID is null |
Returns
Type | Description |
---|---|
QueryableExecuter<ITransaction> | An updated transaction query for loading the results into a grid |
ColumnNames()
Returns all the standard column controls for viewing any transaction without a ITransactionProcessor
Declaration
public static IEnumerable<ControlDisplayInfoLight> ColumnNames()
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | All the standard column controls for viewing any transaction without a ITransactionProcessor |
ColumnNames(ITransactionProcessor, Boolean)
Returns all the standard column controls for viewing transaction from the specified processor
Declaration
public static IEnumerable<ControlDisplayInfoLight> ColumnNames(ITransactionProcessor processor, bool headerOnly)
Parameters
Type | Name | Description |
---|---|---|
ITransactionProcessor | processor | An optional processor for the transaction indicating we are viewing an actual transaction set instead of all transactions in the system against an item |
System.Boolean | headerOnly | Indicates these are header level (IsHeaderTransaction) transactions and do not need certain detail column values |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<ControlDisplayInfoLight> | All the standard column controls for viewing transaction from the specified |
UpdateNewItem(ITransaction)
If the transaction has no TransactionDate then it is set to today
Declaration
public static void UpdateNewItem(ITransaction item)
Parameters
Type | Name | Description |
---|---|---|
ITransaction | item | The new transaction to update default properties with |