DecAttribute class | QSYS API Reference Guide

Estimated reading time: 2 minutes

Provides Decimal Attributes (for Properties)

Namespace: ASNA.QSys.Expo.Model Assembly: ASNA.QSys.Expo.Model.dll

Inheritance: Object –> Attribute –> FieldAttribute

Remarks

Model Fields are declared as Record Properties. To annotate the Fixed Type as Dec, Model properties can use this attribute.

For example,

[Dec(9, 0)]
public decimal SORDNUM { get; private set; } // ORDER NUMBER

Declares a read-only field of Decimal Fixed Type Dec, with length nine and zero decimal positions, named SORDNUM on a particular Model Record.

Constructors

Name Description
DecAttribute(Int32, Int32) Initializes a new DecAttribute instance

DecAttribute(Int32, Int32)

Initializes a new DecAttribute instance

DecAttribute(Int32, Int32)

Parameters

Type Parameter name Description
Int32 length Field length
Int32 decimals number of decimals (defaults to zero)

Properties

Type Name Description
ModulusValidation CheckModulus Modulus validation algorithm
Boolean CompareAllowZeros Allow all-blank(or zero) input to satisfy validity checking for an input-capable field when any associated validity check fails. Legacy DDS CHECK(AB)
Int32 Decimals Decimal positions
Int32 Digits Max Digits
String Equal Exact value
String GraterThan Lower exclusive bound
String LessThan Upper exclusive bound
String Max Maximum acceptable value
String Min Minimum acceptable value
String NotEqual Excluded value
Boolean ReturnCursorLocationCol Indicating if this field will be set on input operations to the Column number of the field where the cursor was positioned.
Boolean ReturnCursorLocationRow Indicating if this field will be set on input operations to the Row number of the field where the cursor was positioned.

Methods

Signature Description
GetFrom(MemberInfo) Gets a DecAttribute from a field member

DecAttribute GetFrom(MemberInfo fieldMember)

Gets a DecAttribute from a field member

DecAttribute GetFrom(MemberInfo fieldMember)

Parameters

Type Parameter name Description
MemberInfo fieldMember field member information

Returns

Type Description
DecAttribute the dec attribute