Class GroupingItem
Assembly: LemonEdge.API.Entities.Auto.dll
Syntax
[DataContract]
public class GroupingItem : BaseEntity, IGroupingItem, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IGroupingItem>, ISetCopierCloneAlterer, ISetCopierCustomChildren
Constructors
GroupingItem()
Declaration
Properties
Amount
The amount to use in other processes (such as split transaction) for these grouped entities
Declaration
public decimal? Amount { get; set; }
Property Value
CopierCloneType
Declaration
public SetCopierCloneType CopierCloneType { get; set; }
Property Value
Description
User friendly description of this item
Declaration
public string Description { get; set; }
Property Value
GroupingID
[Key] Links to IGrouping. The grouping this item belongs to.
Declaration
[RequiredNoDefaultIDValidation]
public Guid GroupingID { get; set; }
Property Value
GroupingID_Label
Declaration
public string GroupingID_Label { get; set; }
Property Value
GroupingID_Label_Silent
Declaration
[NotMapped]
public string GroupingID_Label_Silent { get; set; }
Property Value
ItemID
The globally unique id of the entity (of type ItemTypeID) that is contained within this grouping
Declaration
public Guid ItemID { get; set; }
Property Value
ItemID_Label
Declaration
public string ItemID_Label { get; set; }
Property Value
ItemID_Label_Silent
Declaration
[NotMapped]
public string ItemID_Label_Silent { get; set; }
Property Value
ItemTypeID
Declaration
public Guid ItemTypeID { get; set; }
Property Value
Operator
An operator to use for aggregating grouped items in query tools
Declaration
[Required]
[EnumDataType(typeof(MathOperator))]
public MathOperator Operator { get; set; }
Property Value
Declaration
[NotMapped]
public string Operator_Tooltip { get; set; }
Property Value
The globally unique id of the entity (of type ItemTypeID) that is related within this grouping
Declaration
public Guid? RelatedItemID { get; set; }
Property Value
Declaration
public string RelatedItemID_Label { get; set; }
Property Value
Declaration
[NotMapped]
public string RelatedItemID_Label_Silent { get; set; }
Property Value
Declaration
public Guid? RelatedItemTypeID { get; set; }
Property Value
Sequence
[Key] Holds the order of this grouping item within the whole the parent grouping
This field is hidden in the grid, but you can show it using our standard grid commands. You can easily change
it using the Move Up/Down commands too.
Declaration
public short Sequence { get; set; }
Property Value
Methods
AlterCopiedItem(IEntityUpdater, UserInfo, IReadOnlyCache, IBaseEntity)
A custom ability to alter this item when it is was copied by the user in the UI, not when it is being imported
Declaration
public Task AlterCopiedItem(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, IBaseEntity sourceItem)
Parameters
Returns
Type |
Description |
Task |
A task inidicating the finishing of this method
|
CopyFromEntity(IBaseEntity)
Declaration
protected override void CopyFromEntity(IBaseEntity src)
Parameters
Overrides
CopyFromSource(IGroupingItem)
Updates all properties in this item to have the same properties as the source object.
Declaration
public void CopyFromSource(IGroupingItem source)
Parameters
Type |
Name |
Description |
IGroupingItem |
source |
The source object to copy all values from.
|
GetCustomChildItem(IEntityRetriever, string)
Declaration
public Task<IBaseEntity> GetCustomChildItem(IEntityRetriever context, string propertyName)
Parameters
Returns
GetCustomChildPropertyNames()
Declaration
public IEnumerable<string> GetCustomChildPropertyNames()
Returns
GetCustomPropertyInfo(ISetItemInfo, IEntityUpdater)
Declaration
public Task<string> GetCustomPropertyInfo(ISetItemInfo info, IEntityUpdater host)
Parameters
Returns
HasCustomChild(string)
Declaration
public bool HasCustomChild(string propertyName)
Parameters
Type |
Name |
Description |
string |
propertyName |
|
Returns
LoadCustomPropInfo(IEntityUpdater, UserInfo, IReadOnlyCache, string)
Declaration
public Task LoadCustomPropInfo(IEntityUpdater host, UserInfo user, IReadOnlyCache cache, string customPropInfo)
Parameters
Returns
Implements
Extension Methods