Class TransactionItem
Base transaction item
Inheritance
Inherited Members
Namespace: Simplic.ERP.Core
Assembly: Simplic.ERP.Core.dll
Syntax
public abstract class TransactionItem
Constructors
| Improve this Doc View SourceTransactionItem()
Initialize new item
Declaration
public TransactionItem()
Properties
| Improve this Doc View SourceAddonData
Get the addon-data dictionary
Declaration
public IDictionary<string, object> AddonData { get; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IDictionary<System.String, System.Object> |
ArticleManager
Gets the current article manager
Declaration
protected ArticleManager ArticleManager { get; }
Property Value
Type | Description |
---|---|
ArticleManager |
BookedFrom
Gets or sets the items where this item was converted from
Declaration
public TransactionItemBooking BookedFrom { get; set; }
Property Value
Type | Description |
---|---|
TransactionItemBooking |
BookedTo
Gets or sets the items where this item was converted to
Declaration
public IList<TransactionItemBooking> BookedTo { get; set; }
Property Value
Type | Description |
---|---|
System.Collections.Generic.IList<TransactionItemBooking> |
CreateDate
gets/sets the build date of this transaction
Declaration
public DateTime CreateDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
CreateTime
Create or sets the create time
Declaration
public TimeSpan CreateTime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
CreateUserId
Gets or sets the id who created the transaction
Declaration
public int CreateUserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
CreateUserName
gets/sets the username who created this record
Declaration
public string CreateUserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
DetailTemplate
Gets the html template from the selected item type
Declaration
public string DetailTemplate { get; }
Property Value
Type | Description |
---|---|
System.String |
ExternalGuidRef
Gets or sets the external reference key (guid)
Declaration
public Guid ExternalGuidRef { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
ExternalIntRef
Gets or sets the external reference key (int)
Declaration
public int ExternalIntRef { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
ExternalStringRef
Gets or sets the external reference key (string)
Declaration
public string ExternalStringRef { get; set; }
Property Value
Type | Description |
---|---|
System.String |
GlobalTransactionId
Declaration
public Guid? GlobalTransactionId { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Guid> |
GlobalTransactionItemId
Gets or sets a storage bin
Declaration
public Guid GlobalTransactionItemId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
Guid
Declaration
public Guid Guid { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
HasPositionNumber
Gets or sets whether this transaction item has a position number
Declaration
public bool HasPositionNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsDeleted
Gets or sets whether the item is delted
Declaration
public bool IsDeleted { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsVisible
Gets or sets whether the item is visible on the given document
Declaration
public bool IsVisible { get; protected set; }
Property Value
Type | Description |
---|---|
System.Boolean |
PositionNumber
gets/sets the position number
Declaration
public int PositionNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SortNumber
gets/sets the index for the sorting number
Declaration
public int SortNumber { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
Text
Gets or sets the current position text. The text can not be null
Declaration
public string Text { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Transaction
Gets or sets the connected transaction
Declaration
public Transaction Transaction { get; set; }
Property Value
Type | Description |
---|---|
Transaction |
TransactionId
Gets or sets the conenction transaction id
Declaration
public Guid TransactionId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
TransactionManager
Gets the currenct transaction manager
Declaration
protected TransactionManager TransactionManager { get; }
Property Value
Type | Description |
---|---|
TransactionManager |
TypeId
Gets or sets the type id
Declaration
public Guid TypeId { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
UpdateDate
Gets or sets the update date
Declaration
public DateTime UpdateDate { get; set; }
Property Value
Type | Description |
---|---|
System.DateTime |
UpdateTime
Gets or sets the update time
Declaration
public TimeSpan UpdateTime { get; set; }
Property Value
Type | Description |
---|---|
System.TimeSpan |
UpdateUserId
Gets or sets the user id who changed the transaction
Declaration
public int UpdateUserId { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
UpdateUserName
Gets or sets the user name who updated the transaction
Declaration
public string UpdateUserName { get; set; }
Property Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceCalculate()
Calculate the required data
Declaration
public virtual void Calculate()
CopyTo(TransactionItem)
Declaration
public virtual void CopyTo(TransactionItem target)
Parameters
Type | Name | Description |
---|---|---|
TransactionItem | target |
CreateItemCopy(Transaction)
Copy item information from a source item
Declaration
public abstract AddTransactionItem<TransactionItem> CreateItemCopy(Transaction transaction)
Parameters
Type | Name | Description |
---|---|---|
Transaction | transaction |
Returns
Type | Description |
---|---|
AddTransactionItem<TransactionItem> | Creation result |
GetAddonData<T>(String)
Get addon data and cast to T
Declaration
public T GetAddonData<T>(string key)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Column of the addon data |
Returns
Type | Description |
---|---|
T | Value if exists, else default of T |
Type Parameters
Name | Description |
---|---|
T | Type to return |
GetStringHelper(String, String, String, String, String, String)
String draw helper
Declaration
protected string GetStringHelper(string posNr, string unit, string text, string quantity, string singleVal, string totalVal)
Parameters
Type | Name | Description |
---|---|---|
System.String | posNr | |
System.String | unit | |
System.String | text | |
System.String | quantity | |
System.String | singleVal | |
System.String | totalVal |
Returns
Type | Description |
---|---|
System.String |
RenderAsText()
Gets the position as tex
Declaration
public virtual string RenderAsText()
Returns
Type | Description |
---|---|
System.String |
SetAddonData(String, Object)
Set addon data
Declaration
public void SetAddonData(string key, object value)
Parameters
Type | Name | Description |
---|---|---|
System.String | key | Column name |
System.Object | value | Value |