EnumUtils Class | 
Namespace: Omada.OE.Model
public class EnumUtils
The EnumUtils type exposes the following members.
| Name | Description | |
|---|---|---|
| DateTimeFormatToSpecifier | 
            Returns the specifier to be used with DateTime.ToString([specifier])
              | |
| DayOfWeekInTimerWeekPatternDays | 
            Returns whether a specific week day is part of patternDays. 
              | |
| FixedFieldExists | 
            Validates if a fixed field exists with the provided name.
              | |
| FixedFieldRequiresExplicitLoading | 
            Some fixed fields are not always loaded per default. 
            
            This returns whether a fixed field requires Explicit loading.
              | |
| GeDefaultControlType | 
            Returns the default control type used for a property of a certain type.
              | |
| GetActivityStates | 
            Returns a List Activity State Ids matching StateFlags.
              | |
| GetCommonFixedFields | 
            Gets all fixed fields that are "common" across all DataObjects.
              | |
| GetEnumIfDefinedTEnumType | 
            Returns a parsed enum value (if defined) corresponding to the given string (value), or null if not defined.
              | |
| GetFixedFieldDataType | 
            Returns the System.Type of a fixed field. 
              | |
| GetFixedFieldPropertyDataType | 
            Interprets a fixed field to a PropertyDataType
              | |
| GetFixedFieldPropertyType | 
            Interprets a fixed field to a PropertyType
              | |
| GetFixedFieldWidthFactor | 
            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.
              | |
| GetFormSectionType | 
            Returns the FormSectionType for a given FormSection
              | |
| GetMatchingPropertyDataType | 
            Returns an equivalent PropertyDataType of a System.Type
              | |
| GetProcessStates | 
            Returns a List Process State Ids matching StateFlags.
              | |
| GetPropertyType | 
            Returns the PropertyType of a property based on its class type. 
              | |
| GetValidFixedFields | 
            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.
              | |
| IsCommonFixedField | 
            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.)
              | |
| IsCommonMailField | 
            Returns whether the MailField is a common Mail Field. 
              | |
| IsConfigLockFlagsSet(DataObjectTypeConfigLockFlags, DataObjectTypeConfigLockFlags) | 
            Returns whether DataObjectType ConfigLock Flags are set. 
              | |
| IsConfigLockFlagsSet(PropertyConfigLockFlags, PropertyConfigLockFlags) | 
            Returns whether property ConfigLock Flags are set. 
              | |
| IsDefaultFormFixedField | 
            Returns whether a fixed field should be placed in a form section per default.
              | |
| IsEnumValueDefinedTEnumType | 
            Checks if a specified enum type (TEnumType)
            has a value defined for the given string (value).
              | |
| IsEventTypeRelevantMailField | 
            Returns whether the MailField is relevant for the given event type. 
              | |
| IsFieldSearchable | 
            We support: 
            All reference- and set-properties.
            Value properties of data type Text and Integer.
            A few FixedFields (Number, DisplayName, ProcessState).
              | |
| IsFieldSortable(DataObjectViewField) | ||
| IsFieldSortable(DataObjectViewField, Boolean) | ||
| IsFixedFieldSortable(FixedField) | 
            Returns whether the fixed field is sortable in views etc..
              | |
| IsFixedFieldSortable(FixedField, Boolean) | 
            Returns whether the fixed field is sortable in views etc..
            
            Note: This method has a Java Script equal : isFixedFieldSortable()
              | |
| IsFixedFieldSortingCheap | 
            Returns whether sorting on a fixed field is cheap (measured in server resources).
              | |
| IsFixedFieldValidForType | 
            Returns if the fixed field is valid for the DataObject Type with dataObjectTypeId. 
              | |
| IsFixedFieldValidForTypes | 
            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. 
              | |
| IsNumericDataType(Type) | 
            Returns wheter the System.Type is Numeric based on its relative PropertyDataType. 
              | |
| IsNumericDataType(PropertyDataType) | 
            Returns whether the PropetyDataType is numeric.  
              | |
| IsPermissionFlagsSet | 
            Returns whether permission flags are set in permissionFlags. 
              | |
| IsPermissionValidForObject | 
            Returns whether a permission is valid for a DataObject.
              | |
| IsReadOnlyFixedField | 
            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"
              | |
| IsSolutionPartOfASuite | 
            Is the application/solution part of a software suite?
              | |
| IsValidDataExchangeFixedField | 
            Returns whether a fixed field can be used in a data exchange. 
              | |
| IsValidDisplayNameFormatFixedField | 
            Returns whether a fixed field is valid for use in a DataObjecType displayname format string.
              | |
| IsValidFilterExpressionFixedField | 
            Returns whether a fixed field is valid for use in a DataObjectFilerExpression. 
              | |
| IsValidFormFixedField | 
            Returns whether a fixed field can be used in a form.
              | |
| IsValidMailTemplateFixedField | 
            Returns whether a fixed field is valid for use in a Mail Template. 
              | |
| IsValidModificationFixedField | 
            Returns whether a fixed field is valid for use in a Modification.
              | |
| IsValidPrintFixedField | 
            Returns whether a fixed is valid for print. 
              | |
| IsValidSurveyExpressionFixedField | 
            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". 
              | |
| IsValidUnresolvedFilterExpressionField | 
            Returns whether a fixed field can be used in DataObjectLoadOptionsBase.UnresolvedFilterExpressions.
              | |
| IsValidViewFixedField | 
            Returns whether a fixed field can be used in a view.
              | |
| ModifierOperatorToSqlOperator | 
            Returns the SQLOperator equivalent to the modifier of enum type ModifierOperator. 
              | |
| NumericFormatToSpecifier | 
            Returns the specifier to be used with Double.ToString([specifier])
              | |
| TimerMonthPatternDayToDayOfWeek | 
            Returns the DayOfWeek on TimerMonthPatternDay. 
              | 
| Name | Description | |
|---|---|---|
| ToBool | 
            Converts object to boolean.
              (Defined by ObjectExtensions.) | |
| ToDateTime | 
            Converts object to DateTime.
              (Defined by ObjectExtensions.) | |
| ToInt | 
            Converts object to integer.
              (Defined by ObjectExtensions.) |