Search Results for

    Show / Hide Table of Contents

    Class Instrument

    Inheritance
    object
    BaseEntity
    BaseEntityWithPermissions
    Instrument
    Implements
    IInstrument
    IInstrumentBase
    IBaseEntityWithPermissions
    IBaseObject
    IBaseEntity
    IEquatable<IBaseEntity>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<IInstrument>
    Inherited Members
    BaseEntityWithPermissions.IsLocked(object)
    BaseEntityWithPermissions.CanWriteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.PreLoadPermissions<T>(IEnumerable<T>, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanDeleteItem(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntityWithPermissions.CanChangeItemPermissions(object, IEntityRetriever, IReadOnlyCache, Guid)
    BaseEntity.HISTORY_ENDROWUPDATE_COLNAME
    BaseEntity.HasTrackedPropertyChanged(string)
    BaseEntity.OriginalTrackedPropertyValue(string)
    BaseEntity.OriginalTrackedPropertyValue<T>(string)
    BaseEntity.ClearTrackedOriginalValues()
    BaseEntity.GetAllOriginalTrackedPropertyValues()
    BaseEntity.GetLabel(string)
    BaseEntity.SetLabel(string, string)
    BaseEntity.SetSilentLabel(string, string)
    BaseEntity.ResetChangedTrackedPropertiesToOriginalValues()
    BaseEntity.AddTrackedOriginalValue(string, object)
    BaseEntity.SnapshotProperties()
    BaseEntity.RestoreFromSnapshot(Dictionary<string, object>)
    BaseEntity.IsBasePropertyName(string)
    BaseEntity.IsBaseRelationshipID(string)
    BaseEntity.OnPropertyChanging(string)
    BaseEntity.OnPropertyChanged(string)
    BaseEntity.Equals(IBaseEntity)
    BaseEntity.GetHashCode()
    BaseEntity.Equals(object)
    BaseEntity.Clone(object)
    BaseEntity.CopyFromSource(object)
    BaseEntity.TrackChanges
    BaseEntity.ModifiedByUserID_Label
    BaseEntity.ModifiedByUserID_Label_Silent
    BaseEntity.CanvasID_Label
    BaseEntity.CanvasID_Label_Silent
    BaseEntity.AlgorithmStepID_Label
    BaseEntity.AlgorithmStepID_Label_Silent
    BaseEntity.SafeID_Label
    BaseEntity.SafeID_Label_Silent
    BaseEntity.AccountID
    BaseEntity.ID
    BaseEntity.LastUpdated
    BaseEntity.ModifiedByUserID
    BaseEntity.CanvasID
    BaseEntity.AlgorithmStepID
    BaseEntity.SafeID
    BaseEntity.PropertyChanged
    BaseEntity.PropertyChanging
    object.GetType()
    object.MemberwiseClone()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    Namespace: LemonEdge.API.Entities.FinancialServices.Products
    Assembly: LemonEdge.API.Entities.FinancialServices.Auto.dll
    Syntax
    [DataContract]
    public class Instrument : BaseEntityWithPermissions, IInstrument, IInstrumentBase, IBaseEntityWithPermissions, IBaseObject, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties, ICloneableAsync<IInstrument>

    Constructors

    Instrument()

    Declaration
    public Instrument()

    Properties

    AllowUnmapped

    This indicates that this Instrument itself does not need to be automatically mapped to an Allocation Path within the Entity Set. This could be because al the Transactions are being booked with the Allocations already specified, or a Path already selected, or that they are to be excluded from calculations or consolidated reporting.

    Declaration
    [Required]
    public bool AllowUnmapped { get; set; }
    Property Value
    Type Description
    bool

    CSERoundingDecimalPlaces

    Any CSE rounding applied throughout this instrument has this number of decimal places.

    Declaration
    [PropertyValidation("true", "MyItem.CSERoundingDecimalPlaces >= 0 && MyItem.CSERoundingDecimalPlaces <= 12", "CSERoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
    public short CSERoundingDecimalPlaces { get; set; }
    Property Value
    Type Description
    short

    CurrencyID

    Links to IUser. Any Transaction operating against this instrument will use this Currency as the Local Currency of the Transaction itself. This currency will be translated into the Functional and Reporting currencies as entered.

    Declaration
    [RequiredNoDefaultIDValidation]
    [PropertyValidation("Item.HasTrackedPropertyChanged(nameof(LemonEdge.API.Entities.FinancialServices.Products.IInstrument.CurrencyID)) && MyData.HasChange(Item) && MyData.GetChange(Item) != LemonEdge.API.Core.Data.EntityOperation.Insert", "(await Data.ExecuteQuery(Data.GetItems<LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting>().Where(nameof(LemonEdge.API.Entities.FinancialServices.Accounting.IGLPosting.InstrumentID), LemonEdge.Utils.Database.SQLOperator.Equals, Item.ID))).Count() == 0", "You can not change the currency of an instrument if it has existing gl postings against it. You have to delete those first.")]
    public Guid CurrencyID { get; set; }
    Property Value
    Type Description
    Guid

    CurrencyID_Label

    Declaration
    public string CurrencyID_Label { get; set; }
    Property Value
    Type Description
    string

    CurrencyID_Label_Silent

    Declaration
    [NotMapped]
    public string CurrencyID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    InheritingObjectTypeID

    Any object that inherits this interface holds part of a record, the common base part

    This holds the type of record which holds the rest

    The IDs of both the inheriting and base objects always are the same
    Declaration
    [RequiredNoDefaultIDValidation]
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    public Guid InheritingObjectTypeID { get; set; }
    Property Value
    Type Description
    Guid

    Name

    The unique name of this instrument.

    Part of the key for this instrument

    Declaration
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    [Required]
    [StringLength(500)]
    public string Name { get; set; }
    Property Value
    Type Description
    string

    OwningEntityID

    Links to IObjectEntity. This is the legal Entity within the Entity Set that owns this financial Instrument. It is this Entity that any Transactions against this instrument will be booked to.

    Declaration
    [Unique(MergeWithAnyOtherUniqueProperties = true)]
    [RequiredNoDefaultIDValidation]
    public Guid OwningEntityID { get; set; }
    Property Value
    Type Description
    Guid

    OwningEntityID_Label

    Declaration
    public string OwningEntityID_Label { get; set; }
    Property Value
    Type Description
    string

    OwningEntityID_Label_Silent

    Declaration
    [NotMapped]
    public string OwningEntityID_Label_Silent { get; set; }
    Property Value
    Type Description
    string

    UnitRoundingDecimalPlaces

    Any unit rounding applied throughout this instrument has this number of decimal places.

    Declaration
    [PropertyValidation("true", "MyItem.UnitRoundingDecimalPlaces >= 0 && MyItem.UnitRoundingDecimalPlaces <= 12", "UnitRoundingDecimalPlaces must have a number of decimal places to round to between 0 and 12 inclusive.")]
    public short UnitRoundingDecimalPlaces { get; set; }
    Property Value
    Type Description
    short

    Unitized

    Indicates this instrument can have transactions that are specifically only for unitized or non-unitized instruments

    Declaration
    [Required]
    public bool Unitized { get; set; }
    Property Value
    Type Description
    bool

    Methods

    CopyFromEntity(IBaseEntity)

    Declaration
    protected override void CopyFromEntity(IBaseEntity src)
    Parameters
    Type Name Description
    IBaseEntity src
    Overrides
    BaseEntity.CopyFromEntity(IBaseEntity)

    CopyFromSource(IInstrument)

    Updates all properties in this item to have the same properties as the source object.

    Declaration
    public void CopyFromSource(IInstrument source)
    Parameters
    Type Name Description
    IInstrument source

    The source object to copy all values from.

    ToString()

    Declaration
    public override string ToString()
    Returns
    Type Description
    string
    Overrides
    object.ToString()

    Implements

    IInstrument
    IInstrumentBase
    IBaseEntityWithPermissions
    IBaseObject
    IBaseEntity
    IEquatable<T>
    INotifyPropertyChanged
    INotifyPropertyChanging
    ICloneableAsync
    ICanTrackProperties
    ICloneableAsync<T>

    Extension Methods

    LinqExtensions.AsArray<T>(T)
    LinqExtensions.ToArrayOfOne<T>(T)
    LinqExtensions.ToListOfOne<T>(T)
    MiscExtensions.SetIfNotEqual<T, TP>(T, Expression<Func<T, TP>>, TP)
    WeakReferenceExtensions.WeakReference(object)
    SQLExtensions.ToSQLValue(object, bool)
    ReflectionExtensions.ClearEventInvocations(object, string)
    StringExtensions.ToCSVFormatString(object, Type)
    In this article
    Back to top © LemonEdge Technologies. All rights reserved.