Click or drag to resize

EnumUtils Class

The EnumUtils Class contains functions for working with different enum types.
Inheritance Hierarchy
SystemObject
  Omada.OE.ModelEnumUtils

Namespace:  Omada.OE.Model
Assembly:  Omada.OE.Model (in Omada.OE.Model.dll) Version: 15.0.0.0
Syntax
C#
public class EnumUtils

The EnumUtils type exposes the following members.

Constructors
  NameDescription
Public methodEnumUtils
Top
Methods
  NameDescription
Public methodStatic memberDateTimeFormatToSpecifier
Returns the specifier to be used with DateTime.ToString([specifier])
Public methodStatic memberDayOfWeekInTimerWeekPatternDays
Returns whether a specific week day is part of patternDays.
Public methodStatic memberFixedFieldExists
Validates if a fixed field exists with the provided name.
Public methodStatic memberFixedFieldRequiresExplicitLoading
Some fixed fields are not always loaded per default. This returns whether a fixed field requires Explicit loading.
Public methodStatic memberGeDefaultControlType
Returns the default control type used for a property of a certain type.
Public methodStatic memberGetActivityStates
Returns a List Activity State Ids matching StateFlags.
Public methodStatic memberGetCommonFixedFields
Gets all fixed fields that are "common" across all DataObjects.
Public methodStatic memberGetEnumIfDefinedTEnumType
Returns a parsed enum value (if defined) corresponding to the given string (value), or null if not defined.
Public methodStatic memberGetFixedFieldDataType
Returns the System.Type of a fixed field.
Public methodStatic memberGetFixedFieldPropertyDataType
Interprets a fixed field to a PropertyDataType
Public methodStatic memberGetFixedFieldPropertyType
Interprets a fixed field to a PropertyType
Public methodStatic memberGetFixedFieldWidthFactor
Returns the factor for which a field should be set. The factor is a number between 1 and 5. The number is used in views and indicates a relative width of the field. 1 = very narrow, 2 = narrow, 3 = normal, 4 = wide, 5 = very wide.
Public methodStatic memberGetFormSectionType
Returns the FormSectionType for a given FormSection
Public methodStatic memberGetMatchingPropertyDataType
Returns an equivalent PropertyDataType of a System.Type
Public methodStatic memberGetProcessStates
Returns a List Process State Ids matching StateFlags.
Public methodStatic memberGetPropertyType
Returns the PropertyType of a property based on its class type.
Public methodStatic memberGetValidFixedFields
Returns a list of fixed fields from a list of field names. If a field name can't be resolved to a fixed field then it is ignored.
Public methodStatic memberIsCommonFixedField
Returns whether a fixed field is "common". Common fixed fields are those which are found in the DataObject Class. (E.g. ActivityState is not common because it is placed on the specialized Activity Class.)
Public methodStatic memberIsCommonMailField
Returns whether the MailField is a common Mail Field.
Public methodStatic memberIsConfigLockFlagsSet(DataObjectTypeConfigLockFlags, DataObjectTypeConfigLockFlags)
Returns whether DataObjectType ConfigLock Flags are set.
Public methodStatic memberIsConfigLockFlagsSet(PropertyConfigLockFlags, PropertyConfigLockFlags)
Returns whether property ConfigLock Flags are set.
Public methodStatic memberIsDefaultFormFixedField
Returns whether a fixed field should be placed in a form section per default.
Public methodStatic memberIsEnumValueDefinedTEnumType
Checks if a specified enum type (TEnumType) has a value defined for the given string (value).
Public methodStatic memberIsEventTypeRelevantMailField
Returns whether the MailField is relevant for the given event type.
Public methodStatic memberIsFieldSearchable
We support: All reference- and set-properties. Value properties of data type Text and Integer. A few FixedFields (Number, DisplayName, ProcessState).
Public methodStatic memberIsFieldSortable(DataObjectViewField)
Public methodStatic memberIsFieldSortable(DataObjectViewField, Boolean)
Public methodStatic memberIsFixedFieldSortable(FixedField)
Returns whether the fixed field is sortable in views etc..
Public methodStatic memberIsFixedFieldSortable(FixedField, Boolean)
Returns whether the fixed field is sortable in views etc.. Note: This method has a Java Script equal : isFixedFieldSortable()
Public methodStatic memberIsFixedFieldSortingCheap
Returns whether sorting on a fixed field is cheap (measured in server resources).
Public methodStatic memberIsFixedFieldValidForType
Returns if the fixed field is valid for the DataObject Type with dataObjectTypeId.
Public methodStatic memberIsFixedFieldValidForTypes
Returns true if the provided fixed field is valid for one or more of the supplied data object type id's. Note: If DataObjectTypeIds is empty true is returned.
Public methodStatic memberIsNumericDataType(Type)
Returns wheter the System.Type is Numeric based on its relative PropertyDataType.
Public methodStatic memberIsNumericDataType(PropertyDataType)
Returns whether the PropetyDataType is numeric.
Public methodStatic memberIsPermissionFlagsSet
Returns whether permission flags are set in permissionFlags.
Public methodStatic memberIsPermissionValidForObject
Returns whether a permission is valid for a DataObject.
Public methodStatic memberIsReadOnlyFixedField
Returns whether a fixed is readOnly. E.g. Used to decide whether a form field can have the setting of "Read Only" and "Requires Value"
Public methodStatic memberIsSolutionPartOfASuite
Is the application/solution part of a software suite?
Public methodStatic memberIsValidDataExchangeFixedField
Returns whether a fixed field can be used in a data exchange.
Public methodStatic memberIsValidDisplayNameFormatFixedField
Returns whether a fixed field is valid for use in a DataObjecType displayname format string.
Public methodStatic memberIsValidFilterExpressionFixedField
Returns whether a fixed field is valid for use in a DataObjectFilerExpression.
Public methodStatic memberIsValidFormFixedField
Returns whether a fixed field can be used in a form.
Public methodStatic memberIsValidMailTemplateFixedField
Returns whether a fixed field is valid for use in a Mail Template.
Public methodStatic memberIsValidModificationFixedField
Returns whether a fixed field is valid for use in a Modification.
Public methodStatic memberIsValidPrintFixedField
Returns whether a fixed is valid for print.
Public methodStatic memberIsValidSurveyExpressionFixedField
Returns whether a fixed field is valid for use in the Survet feature for either a "data source filter expression" or an "object type filter expression".
Public methodStatic memberIsValidUnresolvedFilterExpressionField
Returns whether a fixed field can be used in DataObjectLoadOptionsBase.UnresolvedFilterExpressions.
Public methodStatic memberIsValidViewFixedField
Returns whether a fixed field can be used in a view.
Public methodStatic memberModifierOperatorToSqlOperator
Returns the SQLOperator equivalent to the modifier of enum type ModifierOperator.
Public methodStatic memberNumericFormatToSpecifier
Returns the specifier to be used with Double.ToString([specifier])
Public methodStatic memberTimerMonthPatternDayToDayOfWeek
Returns the DayOfWeek on TimerMonthPatternDay.
Top
Extension Methods
  NameDescription
Public Extension MethodToBool
Converts object to boolean.
(Defined by ObjectExtensions.)
Public Extension MethodToDateTime
Converts object to DateTime.
(Defined by ObjectExtensions.)
Public Extension MethodToInt
Converts object to integer.
(Defined by ObjectExtensions.)
Top
See Also