Class UdefHelper
This class contains helper functions for handling user-defined fields.
Assembly: SoDataBase.dll
Syntax
public class UdefHelper : Object
Fields
AdminPage1LineNo
This class contains helper functions for handling user-defined fields.
Declaration
public const int AdminPage1LineNo = 10000
Field Value
Methods
CheckRevision()
This class contains helper functions for handling user-defined fields.
Declaration
public static void CheckRevision()
CompareUdefRows(UDefFieldRow, UDefFieldRow)
This class contains helper functions for handling user-defined fields.
Declaration
public static bool CompareUdefRows(UDefFieldRow leftRow, UDefFieldRow rightRow)
Parameters
Returns
ConvertFromAdminLineNo(Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static short ConvertFromAdminLineNo(int lineNo)
Parameters
Type |
Name |
Description |
Int32 |
lineNo |
|
Returns
ConvertToAdminLineNo(Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static short ConvertToAdminLineNo(int lineNo)
Parameters
Type |
Name |
Description |
Int32 |
lineNo |
|
Returns
FindAvailableField(UDefType, UDefFieldType)
This class contains helper functions for handling user-defined fields.
Declaration
public static FieldInfo FindAvailableField(UDefType type, UDefFieldType fieldType)
Parameters
Returns
FindAvailableField(UDefType, UDefFieldType, Boolean)
Find available field of given type
Declaration
public static FieldInfo FindAvailableField(UDefType type, UDefFieldType fieldType, bool isIndexed)
Parameters
Type |
Name |
Description |
UDefType |
type |
|
UDefFieldType |
fieldType |
|
Boolean |
isIndexed |
Dummy parameter for backwards compatibility. Indexin no longer influences field allocation
|
Returns
GetAdminVersion(UDefType)
Get the current version number for the given udef type
Declaration
public static int GetAdminVersion(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
Int32 |
Current version number for the given udef type
|
GetAdminVersions()
Return an array of pairs indicating the UDefTypes present in the system, and the current version for each of them
Declaration
public static Dictionary<UDefType, int> GetAdminVersions()
Returns
GetAdminVersions(UDefType[])
This class contains helper functions for handling user-defined fields.
Declaration
public static Dictionary<UDefType, int> GetAdminVersions(params UDefType[] types)
Parameters
Returns
GetAllFields(UDefType, UDefFieldType)
This class contains helper functions for handling user-defined fields.
Declaration
public static IEnumerable<FieldInfo> GetAllFields(UDefType type, UDefFieldType fieldType)
Parameters
Returns
GetCurrentVersion(UDefType)
Get the current version number for the given udef type
Declaration
public static int GetCurrentVersion(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
Int32 |
Current version number for the given udef type
|
GetCurrentVersions()
Return an array of pairs indicating the UDefTypes present in the system, and the current version for each of them
Declaration
public static Dictionary<UDefType, int> GetCurrentVersions()
Returns
GetCurrentVersions(UDefType[])
This class contains helper functions for handling user-defined fields.
Declaration
public static Dictionary<UDefType, int> GetCurrentVersions(params UDefType[] types)
Parameters
Returns
GetTableInfo(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static TableInfo GetTableInfo(UDefType type)
Parameters
Returns
GetTableInfoLarge(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static TableInfo GetTableInfoLarge(UDefType type)
Parameters
Returns
GetTableInfoLargeOrSmall(UDefType, UDefFieldType)
This class contains helper functions for handling user-defined fields.
Declaration
public static TableInfo GetTableInfoLargeOrSmall(UDefType type, UDefFieldType fieldType)
Parameters
Returns
GetTableInfoSmall(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static TableInfo GetTableInfoSmall(UDefType type)
Parameters
Returns
GetTemplateVariableName(UDefType, UDefFieldType, Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static string GetTemplateVariableName(UDefType udefType, UDefFieldType udefFieldType, int columnId)
Parameters
Returns
GetUdefType(TableInfo)
Get the udef type of the given table
Declaration
public static UDefType GetUdefType(TableInfo tableInfo)
Parameters
Type |
Name |
Description |
TableInfo |
tableInfo |
Table info object
|
Returns
Type |
Description |
UDefType |
udef type of table
|
GetUdefType(Int32)
Get the udef type of the given table
Declaration
public static UDefType GetUdefType(int tableNumber)
Parameters
Type |
Name |
Description |
Int32 |
tableNumber |
0-based table index
|
Returns
Type |
Description |
UDefType |
udef type of table
|
GetUserPreferenceMDOListString(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static string GetUserPreferenceMDOListString(UDefType type)
Parameters
Returns
GetUserPreferenceMDOListStringAdmin(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static string GetUserPreferenceMDOListStringAdmin(UDefType type)
Parameters
Returns
GetVersionPreferenceAdmin(UDefType)
Get the version preference string for the given udef type
Declaration
public static string GetVersionPreferenceAdmin(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
String |
Preference key for the current version
|
GetVersionPreferenceCurrent(UDefType)
Get the version preference string for the given udef type
Declaration
public static string GetVersionPreferenceCurrent(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
String |
Preference key for the current version
|
IncrementAdminVersion(UDefType)
Set the admin version number for the given udef type
Declaration
public static int IncrementAdminVersion(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
Int32 |
Current version number for the given udef type
|
IncrementCurrentVersion(UDefType)
Set the current version number for the given udef type to the adminversion.
Declaration
public static int IncrementCurrentVersion(UDefType type)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Returns
Type |
Description |
Int32 |
Current version number for the given udef type
|
IsLargeTableColumn(Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static bool IsLargeTableColumn(int columnId)
Parameters
Type |
Name |
Description |
Int32 |
columnId |
|
Returns
IsPageOneMDO(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static bool IsPageOneMDO(UDefType type)
Parameters
Returns
IsSmallTableColumn(Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static bool IsSmallTableColumn(int columnId)
Parameters
Type |
Name |
Description |
Int32 |
columnId |
|
Returns
IsUnpublishedPageOneMDO(UDefType)
This class contains helper functions for handling user-defined fields.
Declaration
public static bool IsUnpublishedPageOneMDO(UDefType type)
Parameters
Returns
SetAdminVersion(UDefType, Int32)
Set the admin version number for the given udef type
Declaration
public static void SetAdminVersion(UDefType type, int version)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Int32 |
version |
|
SetCurrentVersion(UDefType, Int32)
Set the current version number for the given udef type
Declaration
public static void SetCurrentVersion(UDefType type, int version)
Parameters
Type |
Name |
Description |
UDefType |
type |
Udef type, should be one of the "valid" ones
|
Int32 |
version |
|
SetRankOnFields(UDefType, Int32[])
This class contains helper functions for handling user-defined fields.
Declaration
public static void SetRankOnFields(UDefType ownerType, int[] rankedFieldsIds)
Parameters
SuggestLocation(UDefType, out Int32, out Int32, Int32, Int32, out Int32, out Int32)
This class contains helper functions for handling user-defined fields.
Declaration
public static void SuggestLocation(UDefType type, out int labelLeft, out int labelTop, int labelWidth, int labelHeight, out int fieldLeft, out int fieldTop)
Parameters
Extension Methods
EnumUtil.MapEnums<From, To>(From)