OpenPetra
Free Administration Software for Non-Profits
|
Holds various Partner Attribute Types. More...
Public Member Functions | |
PPartnerAttributeTypeTable () | |
constructor More... | |
PPartnerAttributeTypeTable (string ATablename) | |
constructor More... | |
PPartnerAttributeTypeTable (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context) | |
constructor for serialization More... | |
override void | InitVars () |
assign columns to properties, set primary key More... | |
PPartnerAttributeTypeRow | NewRowTyped (bool AWithDefaultValues) |
create a new typed row More... | |
PPartnerAttributeTypeRow | NewRowTyped () |
create a new typed row, always with default values More... | |
PPartnerAttributeTypeTable | GetChangesTyped () |
get typed set of changes More... | |
override OdbcParameter | CreateOdbcParameter (Int32 AColumnNr) |
get an odbc parameter for the given column More... | |
new DataTable | GetChanges () |
make sure that we use GetChangesType instead of GetChanges More... | |
virtual string | GetCustomReportPermission () |
string to indicate which permissions a user needs to access table for custom reports (e.g. "PTNRUSER", "OR(FINANCE-1,DEVUSER)", "AND(PTNRUSER,FINANCE-1)" This should be returned by method in derived class More... | |
virtual bool | IsAvailableForCustomReport () |
Is this table generally available in custom reports? More... | |
virtual List< String > | GetCustomReportFieldList () |
Return a list of fields that are available for custom reports More... | |
DataTable | GetChangesTypedInternal () |
our own version of GetChanges More... | |
void | RemoveColumnsNotInTableTemplate (DataTable ATableTemplate) |
remove columns that are not needed More... | |
Static Public Member Functions | |
static string | GetTableName () |
return the CamelCase name of the table More... | |
static string | GetTableDBName () |
return the name of the table as it is used in the database More... | |
static string | GetTableDBLabel () |
static method to return the 'Label' of the table as it is used in the database (the 'Label' is usually a short description of what the db table is about) More... | |
static string | GetCategoryCodeDBName () |
get the name of the field in the database for this column More... | |
static short | GetCategoryCodeLength () |
get character length for column More... | |
static string | GetCategoryCodeHelp () |
get the help text for the field in the database for this column More... | |
static string | GetAttributeTypeDBName () |
get the name of the field in the database for this column More... | |
static short | GetAttributeTypeLength () |
get character length for column More... | |
static string | GetAttributeTypeHelp () |
get the help text for the field in the database for this column More... | |
static string | GetDescriptionDBName () |
get the name of the field in the database for this column More... | |
static short | GetDescriptionLength () |
get character length for column More... | |
static string | GetDescriptionHelp () |
get the help text for the field in the database for this column More... | |
static string | GetIndexDBName () |
get the name of the field in the database for this column More... | |
static short | GetIndexLength () |
get character length for column More... | |
static string | GetIndexHelp () |
get the help text for the field in the database for this column More... | |
static string | GetAttributeTypeValueKindDBName () |
get the name of the field in the database for this column More... | |
static short | GetAttributeTypeValueKindLength () |
get character length for column More... | |
static string | GetAttributeTypeValueKindHelp () |
get the help text for the field in the database for this column More... | |
static string | GetHyperlinkFormatDBName () |
get the name of the field in the database for this column More... | |
static short | GetHyperlinkFormatLength () |
get character length for column More... | |
static string | GetHyperlinkFormatHelp () |
get the help text for the field in the database for this column More... | |
static string | GetSpecialLabelDBName () |
get the name of the field in the database for this column More... | |
static short | GetSpecialLabelLength () |
get character length for column More... | |
static string | GetSpecialLabelHelp () |
get the help text for the field in the database for this column More... | |
static string | GetUnassignableDBName () |
get the name of the field in the database for this column More... | |
static short | GetUnassignableLength () |
get character length for column More... | |
static string | GetUnassignableHelp () |
get the help text for the field in the database for this column More... | |
static string | GetUnassignableDateDBName () |
get the name of the field in the database for this column More... | |
static short | GetUnassignableDateLength () |
get character length for column More... | |
static string | GetUnassignableDateHelp () |
get the help text for the field in the database for this column More... | |
static string | GetDeletableDBName () |
get the name of the field in the database for this column More... | |
static short | GetDeletableLength () |
get character length for column More... | |
static string | GetDeletableHelp () |
get the help text for the field in the database for this column More... | |
static string | GetDateCreatedDBName () |
get the name of the field in the database for this column More... | |
static short | GetDateCreatedLength () |
get character length for column More... | |
static string | GetDateCreatedHelp () |
get the help text for the field in the database for this column More... | |
static string | GetCreatedByDBName () |
get the name of the field in the database for this column More... | |
static short | GetCreatedByLength () |
get character length for column More... | |
static string | GetCreatedByHelp () |
get the help text for the field in the database for this column More... | |
static string | GetDateModifiedDBName () |
get the name of the field in the database for this column More... | |
static short | GetDateModifiedLength () |
get character length for column More... | |
static string | GetDateModifiedHelp () |
get the help text for the field in the database for this column More... | |
static string | GetModifiedByDBName () |
get the name of the field in the database for this column More... | |
static short | GetModifiedByLength () |
get character length for column More... | |
static string | GetModifiedByHelp () |
get the help text for the field in the database for this column More... | |
static string | GetModificationIdDBName () |
get the name of the field in the database for this column More... | |
static short | GetModificationIdLength () |
get character length for column More... | |
static string | GetModificationIdHelp () |
get the help text for the field in the database for this column More... | |
static OdbcParameter | CreateOdbcParameter (short ATableNumber, TSearchCriteria ASearchCriteria) |
create an odbc parameter for the given column More... | |
static OdbcParameter | CreateOdbcParameter (short ATableNumber, Int32 AColumnNr) |
create an odbc parameter for the given column More... | |
static void | ResetStaticVariables () |
reset the static variables for each Web Request call. More... | |
static string | GetTableNameSQL (short ATableNumber) |
the table name as it is in the SQL database More... | |
static string | GetTableName (short ATableNumber) |
the table name in CamelCase More... | |
static TTypedTableInfo | GetTableByName (string ATableName) |
the table name in CamelCase More... | |
static string | GetColumnNameSQL (short ATableNumber, short AColumnNr) |
the column name as it is in the SQL database More... | |
static string | GetLabel (short ATableNumber, short AColumnNr) |
returns the translated label for the column More... | |
static Int32 | GetLength (short ATableNumber, short AColumnNr) |
get the maximum length for the field More... | |
static Int32 | GetLength (string ATableName, string AColumnName) |
get the maximum length for the field More... | |
static string[] | GetKeyColumnStringList (short ATableNumber, int[] AKeyColumnsOrder) |
get the names of the columns that are part of the key More... | |
static string[] | GetPrimaryKeyColumnStringList (short ATableNumber) |
get the names of the columns that are part of the primary key More... | |
static string[] | GetUniqueKeyColumnStringList (short ATableNumber) |
get the names of the columns that are part of the unique key More... | |
static int[] | GetPrimaryKeyColumnOrdList (short ATableNumber) |
get the order number of the columns that are part of the primary key More... | |
static int[] | GetUniqueKeyColumnOrdList (short ATableNumber) |
get the order number of the columns that are part of a unique key More... | |
static string[] | GetColumnStringList (short ATableNumber) |
get the names of the columns in this table More... | |
Public Attributes | |
DataColumn | ColumnCategoryCode |
Category of the Partner Attribute Type. More... | |
DataColumn | ColumnAttributeType |
Attribute Type. This can be anything really: Phone Number, Mobile Number, Email Address, etc (not limited to Partner Contact Details, though). Use singular words/phrases (e.g. 'Phone Number' and not 'Phone Numbers'). More... | |
DataColumn | ColumnDescription |
Description of what this Partner Attribute Type is all about. More... | |
DataColumn | ColumnIndex |
Allows for manual ordering of Partner Attribute Types by the user (e.g. to list all Partner Attributes that have a Partner Attribute Type of 'phone number' grouped together first, then list all that have a Partner Attribute Type of 'assistant phone number' grouped together). More... | |
DataColumn | ColumnAttributeTypeValueKind |
Describes the kind (type) of Value that the Partner Attributes that are linked to this Partner Attribute Type are. Valid values for Contact Detail Attributes: 'CONTACTDETAIL_GENERAL', 'CONTACTDETAIL_HYPERLINK', 'CONTACTDETAIL_HYPERLINK_WITHVALUE', 'CONTACTDETAIL_EMAILADDRESS', 'CONTACTDETAIL_SKYPEID'. More... | |
DataColumn | ColumnHyperlinkFormat |
For use with p_attribute_type_value_kind_c 'CONTACTDETAIL_HYPERLINK_WITHVALUE' only. Specifies how to 'construct' a hyperlink where the Value of a Partner Attribute is part of the URL. More... | |
DataColumn | ColumnSpecialLabel |
Label that should be displayed/printed instead of p_code_c if a Partner Attribute's 'specialised' Flag is set. More... | |
DataColumn | ColumnUnassignable |
Can this Partner Attribute Type be assigned? More... | |
DataColumn | ColumnUnassignableDate |
This is the date where the record was set to unassignable. More... | |
DataColumn | ColumnDeletable |
Flag to indicate whether this Partner Attribute Type is deletable by a user or not. More... | |
DataColumn | ColumnDateCreated |
The date the record was created. More... | |
DataColumn | ColumnCreatedBy |
User ID of who created this record. More... | |
DataColumn | ColumnDateModified |
The date the record was modified. More... | |
DataColumn | ColumnModifiedBy |
User ID of who last modified this record. More... | |
DataColumn | ColumnModificationId |
This identifies the current version of the record. More... | |
bool | ThrowAwayAfterSubmitChanges = false |
if you want the datatable to be cleared after submitchanges. This will increase the speed significantly: no updating of modificationID, no slow AcceptChanges. More... | |
bool | DontThrowAwayAfterSubmitChanges = false |
if you want no warning about that the datatable should be cleared after submitchanges. in some cases you must keep the data, eg when you need the new keys after INSERT More... | |
Static Public Attributes | |
static readonly short | TableId = 42 |
TableId for Ict.Common.Data generic functions. More... | |
static readonly short | ColumnCategoryCodeId = 0 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnAttributeTypeId = 1 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnDescriptionId = 2 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnIndexId = 3 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnAttributeTypeValueKindId = 4 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnHyperlinkFormatId = 5 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnSpecialLabelId = 6 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnUnassignableId = 7 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnUnassignableDateId = 8 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnDeletableId = 9 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnDateCreatedId = 10 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnCreatedById = 11 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnDateModifiedId = 12 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnModifiedById = 13 |
used for generic TTypedDataTable functions More... | |
static readonly short | ColumnModificationIdId = 14 |
used for generic TTypedDataTable functions More... | |
Protected Member Functions | |
override void | InitClass () |
create the columns More... | |
override System.Data.DataRow | NewRowFromBuilder (System.Data.DataRowBuilder builder) |
new typed row using DataRowBuilder More... | |
Static Protected Attributes | |
static SortedList< short, TTypedTableInfo > | TableInfo = new SortedList <short, TTypedTableInfo>() |
stores information about typed tables More... | |
Properties | |
PPartnerAttributeTypeRow | this[int i] [get] |
Access a typed row by index. More... | |
override string | TableDBLabel [get] |
instance property to get the 'Label' of the table as it is used in the database (the 'Label' is usually a short description of what the db table is about) More... | |
int | Count [get] |
the number of rows in the current table More... | |
Holds various Partner Attribute Types.
|
inline |
constructor
|
inline |
constructor
|
inline |
constructor for serialization
|
inlinevirtual |
get an odbc parameter for the given column
Implements Ict.Common.Data.TTypedDataTable.
|
inlinestaticinherited |
create an odbc parameter for the given column
|
inlinestaticinherited |
create an odbc parameter for the given column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlineinherited |
make sure that we use GetChangesType instead of GetChanges
|
inline |
get typed set of changes
|
inlineinherited |
our own version of GetChanges
|
inlinestaticinherited |
the column name as it is in the SQL database
|
inlinestaticinherited |
get the names of the columns in this table
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinevirtualinherited |
Return a list of fields that are available for custom reports
|
inlinevirtualinherited |
string to indicate which permissions a user needs to access table for custom reports (e.g. "PTNRUSER", "OR(FINANCE-1,DEVUSER)", "AND(PTNRUSER,FINANCE-1)" This should be returned by method in derived class
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestaticinherited |
get the names of the columns that are part of the key
|
inlinestaticinherited |
returns the translated label for the column
|
inlinestaticinherited |
get the maximum length for the field
|
inlinestaticinherited |
get the maximum length for the field
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestaticinherited |
get the order number of the columns that are part of the primary key
|
inlinestaticinherited |
get the names of the columns that are part of the primary key
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestaticinherited |
the table name in CamelCase
|
inlinestatic |
static method to return the 'Label' of the table as it is used in the database (the 'Label' is usually a short description of what the db table is about)
|
inlinestatic |
return the name of the table as it is used in the database
|
inlinestatic |
return the CamelCase name of the table
|
inlinestaticinherited |
the table name in CamelCase
|
inlinestaticinherited |
the table name as it is in the SQL database
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestatic |
get the name of the field in the database for this column
|
inlinestatic |
get the help text for the field in the database for this column
|
inlinestatic |
get character length for column
|
inlinestaticinherited |
get the order number of the columns that are part of a unique key
|
inlinestaticinherited |
get the names of the columns that are part of the unique key
|
inlineprotectedvirtual |
create the columns
Implements Ict.Common.Data.TTypedDataTable.
|
inlinevirtual |
assign columns to properties, set primary key
Implements Ict.Common.Data.TTypedDataTable.
|
inlinevirtualinherited |
Is this table generally available in custom reports?
|
inlineprotected |
new typed row using DataRowBuilder
|
inline |
create a new typed row, always with default values
|
inline |
create a new typed row
|
inlineinherited |
remove columns that are not needed
ATableTemplate | this table only contains the columns that should be kept |
|
inlinestaticinherited |
reset the static variables for each Web Request call.
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnAttributeType |
Attribute Type. This can be anything really: Phone Number, Mobile Number, Email Address, etc (not limited to Partner Contact Details, though). Use singular words/phrases (e.g. 'Phone Number' and not 'Phone Numbers').
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnAttributeTypeValueKind |
Describes the kind (type) of Value that the Partner Attributes that are linked to this Partner Attribute Type are. Valid values for Contact Detail Attributes: 'CONTACTDETAIL_GENERAL', 'CONTACTDETAIL_HYPERLINK', 'CONTACTDETAIL_HYPERLINK_WITHVALUE', 'CONTACTDETAIL_EMAILADDRESS', 'CONTACTDETAIL_SKYPEID'.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnCategoryCode |
Category of the Partner Attribute Type.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnCreatedBy |
User ID of who created this record.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnDateCreated |
The date the record was created.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnDateModified |
The date the record was modified.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnDeletable |
Flag to indicate whether this Partner Attribute Type is deletable by a user or not.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnDescription |
Description of what this Partner Attribute Type is all about.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnHyperlinkFormat |
For use with p_attribute_type_value_kind_c 'CONTACTDETAIL_HYPERLINK_WITHVALUE' only. Specifies how to 'construct' a hyperlink where the Value of a Partner Attribute is part of the URL.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnIndex |
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnModificationId |
This identifies the current version of the record.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnModifiedBy |
User ID of who last modified this record.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnSpecialLabel |
Label that should be displayed/printed instead of p_code_c if a Partner Attribute's 'specialised' Flag is set.
|
static |
used for generic TTypedDataTable functions
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnUnassignable |
Can this Partner Attribute Type be assigned?
DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PPartnerAttributeTypeTable.ColumnUnassignableDate |
This is the date where the record was set to unassignable.
|
static |
used for generic TTypedDataTable functions
|
static |
used for generic TTypedDataTable functions
|
inherited |
if you want no warning about that the datatable should be cleared after submitchanges. in some cases you must keep the data, eg when you need the new keys after INSERT
|
static |
TableId for Ict.Common.Data generic functions.
|
staticprotectedinherited |
stores information about typed tables
|
inherited |
if you want the datatable to be cleared after submitchanges. This will increase the speed significantly: no updating of modificationID, no slow AcceptChanges.
|
getinherited |
the number of rows in the current table
|
get |
instance property to get the 'Label' of the table as it is used in the database (the 'Label' is usually a short description of what the db table is about)
|
get |
Access a typed row by index.