Name |
Description |
int Id |
Record Id. |
int ParentId |
Id of a class or query. |
ClassDefEntityType ParentType |
Type of the record owner - class or query. |
string ShortDescription |
Short description of the record. |
string FullId |
Full record Id. It contains class/query Id and record Id. This Id is used as an identifier in URL. |
bool IsNew |
Indication, wheather the record is new (not saved). If Id = 0, then the record is not saved. |
bool IsDeleted |
Indication, wheather the record is deleted. If there is a value in the column Deleted, than the record is deleted. |
Audit properties |
string Creator |
Account of the user that created the record. |
DateTime? Created |
Date of the record creation. |
DateTime? Modified |
Date of the last change of the record. |
string Modifier |
Account of the user that changed the record the last time. |
DateTime? Deleted |
Date of the record deletion. |
string Deleter |
Account of the user that deleted the record. |
int? CreatedDataSourceId |
Id of the data source at record creation. |
string CreatedDataSourceText |
Name of the data source at record creation. |
int? ModifiedDataSourceId |
Id of the data source at the last record change. |
string ModifiedDataSourceText |
Name of the data source at the last record change. |
int? DeletedDataSourceId |
Id of the data source at the record deletion. |
string DeletedDataSourceText |
Name of the data source at the record deletion. |
int? ArchiveId |
Id of the record in the archive table. |
string ArchiveUser |
Account of the user that archived the record (changed it or deleted it in the operational table). |
DateTime? ArchiveDate |
Date of the record archiving. |
Other functions and properties |
void AddNewComment(int columnClassDefId, string newComment, DataRow drOld) |
This method adds a new comment to a column of the type Long text with set property LongTextIsCommented = true. |
void ClearColumn(int columnId) |
This method sets the value for column to NULL. After saving into the database the column is deleted. |
void ClearColumn(string code) |
This method sets the value for column to NULL. After saving into the database the column is deleted. |
ColumnClassDef FindColumn(string code) |
Function finds a column in the class to which the record belongs (according to ParentId and ParentType). |
void RemoveColumn(int columnId) |
This method deletes the column from DataRow instance. After saving into the database the column is not impacted. |
void RemoveColumn(string code) |
This method deletes the column from DataRow instance. After saving into the database the column is not impacted. |
void RemoveColumnsExceptThose(string codes) |
This method clears all columns in the DataRow instance, except for the input columns. After saving in the database teh column will not be changed.
Separate particular column codes with comma.
|
EntityInfo ToEntityInfo() |
Function creates a new object EntityInfo and after that fills in properties:
EntityInfo.Id = Id
EntityInfo.DisplayName = ShortDescriptionOrFullId
EntityInfo.ParentId = ParentId
DisplayName1 = DetailUrl
|
EntityInfo ToEntityInfoLocalize() |
Function creates a new object EntityInfo and after that fills in properties:
EntityInfo.Id = Id
EntityInfo.DisplayName = ShortDescriptionOrFullIdEnvelopeLocalize
EntityInfo.ParentId = ParentId
DisplayName1 = DetailUrl
|
string ListUrl |
URL to the list of records of the current class or query. |
string DetailUrl |
URL to the record detail of the current class or query. |
string NewDetailUrl |
URL to the detail of a new record of the current class or query. |
Functions for reading data from columns |
object GetColumnData(int columnId) |
Function reads value from the input column. Returned data type depends on the column type. |
string GetText(int columnId) |
Function returns text for column of the type short text. |
int? GetClassDef(int columnId) |
Function returns integer, representing Id of the class for column of the type Reference to a class. |
int? GetColor(int columnId) |
Function returns integer representing colour for the column of the data type Colour. |
string GetServerImage(int columnId) |
Function returns text, picture url, for the column of the type picture. |
string GetServerImageAsString(int columnId) |
Function returns text, picture url, for the column as text. |
int? GetInteger(int columnId) |
Function returns integer for the column. |
double? GetDouble(int columnId) |
Function returns decimal for the column. |
DateTime? GetDateTime(int columnId) |
Function returns date for the column. |
int? GetClassLink(int columnId) |
Function returns Id to the referred record for the column. |
EntityInfo GetXClassLink(int columnId) |
Function returns EntityInfo for column. |
string GetXClassLinkAsString(int columnId) |
Function returns EntityInfo for column as text. |
PersonInfo GetPerson(int columnId) |
Function returns PersonInfo for the column. |
bool? GetBoolean(int columnId) |
Function returns indication Yes/No for the column. |
Guid? GetGuid(int columnId) |
Function returns Guid for the column. |
EntityInfoList GetMultiClassLink(int columnId) |
Function returns list of EntityInfo for column that is a multiple reference to another class. |
EntityInfoList GetXMultiClassLink(int columnId) |
Function returns list EntityInfoList for column multiple reference to various classes. |
PersonInfoList GetMultiPerson(int columnId) |
Function returns list of PersonInfo for column that is a multiple reference to a user. |
string GetClassLinkAsString(int columnId) |
Function returns Id to the referred record for column as a text. |
string GetTextAsString(int columnId) |
Function returns text for column as a text. |
string GetLongTextAsString(int columnId, int maxLength) |
Function returns text for column as a text. If the length is greater as in parameter maxLength, text is trimmed to this max. length. |
string GetIntegerAsString(int columnId, string format) |
Function returns integer for column as text with defined format. |
string GetDoubleAsString(int columnId, string format) |
Function returns decimal for column as text with defined format. |
string GetDateTimeAsString(int columnId) |
Function returns date for column as a text. |
string GetDateTimeAsString(int columnId, DateTimeType dateTimeType) |
Function returns date for column as a text with defined format. |
string GetDateTimeAsString(int columnId, string format) |
Function returns date for column as a text with defined format. |
string GetBooleanAsString(int columnId) |
Function returns indication Yes/No for column as text according to the set localization. |
string GetGuidAsString(int columnId) |
Function returns Guid for column as text. |
string GetClassDefAsString(int columnId) |
Function returns integer representing class Id for column as text. |
string GetColorAsString(int columnId) |
Function returns integer representing colour for column as text. |
string GetColumnDataAsString(int columnId, ColumnType type) |
Function returns value of the column as text. |
object GetSystemColumnData(string dBColumnName) |
Function returns value of a system column. |
string GetSystemColumnDataAsString(string dBColumnName) |
Function returns value of a system column as text. |
object GetDR(string path) |
Function returns object according to the input path. |
object GetDR(string path, DbTransaction trans) |
Function returns object according to the input path. |
Functions for saving data in columns |
void SetColumnData(int columnId, ColumnType type, object value) |
This method sets the value of the column. |
void SetText(int columnId, string value) |
This method sets the value of the column of the type short text. |
void SetClassDef(int columnId, int? value) |
This method sets the value of the column of the type reference to a class. |
void SetColor(int columnId, int? value) |
This method sets the value of the column of the type colour. |
void SetServerImage(int columnId, string value) |
This method sets the value of the column of the type picture. |
void SetInteger(int columnId, int? value) |
This method sets the value of the column of the type integer. |
void SetDouble(int columnId, double? value) |
This method sets the value of the column of the type decimal. |
void SetDateTime(int columnId, DateTime? value) |
This method sets the value of the column of the type date. |
void SetClassLink(int columnId, int? value) |
This method sets the value of the column of the type value from a referenced class. |
void SetClassLink(int columnId, double? value) |
This method sets the value of the column of the type value from a referenced class. |
void SetXClassLink(int columnId, EntityInfo value) |
This method sets the value of the column of the type value from a referenced class to multiple classes. |
void SetPerson(int columnId, PersonInfo value) |
This method sets the value of the column of the type value from a referenced class (reference to user). |
void SetBoolean(int columnId, bool? value) |
This method sets the value of the column of the type indication Yes/No. |
void SetGuid(int columnId, Guid? value) |
This method sets the value of the column of the type guid. |
void SetMultiClassLink(int columnId, EntityInfoList value) |
This method sets the value of the column of the type multiples reference to class data. |
void SetMultiPerson(int columnId, PersonInfoList value) |
This method sets the value of the column of the type multiples reference to users. |
void SetClassLinkAsString(int columnId, string value) |
This method sets the value of the column of the type value from a referenced class as a text. This value is not saved in the database and is used only for display on pages for the user. |
void SetMultiXClassLink(int columnId, EntityListBase value) |
This method sets the value of the column of the type multiple values from a referenced class to multiple classes. |