OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable Class Reference

Details of a unit. This is an organizational unit such as an om field, department, local cost center, etc. More...

Inheritance diagram for Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable:
Ict.Common.Data.TTypedDataTable

Public Member Functions

 PUnitTable ()
 constructor More...
 
 PUnitTable (string ATablename)
 constructor More...
 
 PUnitTable (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...
 
PUnitRow NewRowTyped (bool AWithDefaultValues)
 create a new typed row More...
 
PUnitRow NewRowTyped ()
 create a new typed row, always with default values More...
 
PUnitTable 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 GetPartnerKeyDBName ()
 get the name of the field in the database for this column More...
 
static short GetPartnerKeyLength ()
 get character length for column More...
 
static string GetPartnerKeyHelp ()
 get the help text for the field in the database for this column More...
 
static string GetUnitNameDBName ()
 get the name of the field in the database for this column More...
 
static short GetUnitNameLength ()
 get character length for column More...
 
static string GetUnitNameHelp ()
 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 GetUnitTypeCodeDBName ()
 get the name of the field in the database for this column More...
 
static short GetUnitTypeCodeLength ()
 get character length for column More...
 
static string GetUnitTypeCodeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetMinimumDBName ()
 get the name of the field in the database for this column More...
 
static short GetMinimumLength ()
 get character length for column More...
 
static string GetMinimumHelp ()
 get the help text for the field in the database for this column More...
 
static string GetMaximumDBName ()
 get the name of the field in the database for this column More...
 
static short GetMaximumLength ()
 get character length for column More...
 
static string GetMaximumHelp ()
 get the help text for the field in the database for this column More...
 
static string GetPresentDBName ()
 get the name of the field in the database for this column More...
 
static short GetPresentLength ()
 get character length for column More...
 
static string GetPresentHelp ()
 get the help text for the field in the database for this column More...
 
static string GetPartTimersDBName ()
 get the name of the field in the database for this column More...
 
static short GetPartTimersLength ()
 get character length for column More...
 
static string GetPartTimersHelp ()
 get the help text for the field in the database for this column More...
 
static string GetOutreachCodeDBName ()
 get the name of the field in the database for this column More...
 
static short GetOutreachCodeLength ()
 get character length for column More...
 
static string GetOutreachCodeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetOutreachCostDBName ()
 get the name of the field in the database for this column More...
 
static short GetOutreachCostLength ()
 get character length for column More...
 
static string GetOutreachCostHelp ()
 get the help text for the field in the database for this column More...
 
static string GetOutreachCostCurrencyCodeDBName ()
 get the name of the field in the database for this column More...
 
static short GetOutreachCostCurrencyCodeLength ()
 get character length for column More...
 
static string GetOutreachCostCurrencyCodeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetCountryCodeDBName ()
 get the name of the field in the database for this column More...
 
static short GetCountryCodeLength ()
 get character length for column More...
 
static string GetCountryCodeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetPrimaryOfficeDBName ()
 get the name of the field in the database for this column More...
 
static short GetPrimaryOfficeLength ()
 get character length for column More...
 
static string GetPrimaryOfficeHelp ()
 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 ColumnPartnerKey
 This is the partner key assigned to each partner. It consists of the fund id followed by a computer generated six digit number. More...
 
DataColumn ColumnUnitName
 
DataColumn ColumnDescription
 
DataColumn ColumnUnitTypeCode
 
DataColumn ColumnMinimum
 
DataColumn ColumnMaximum
 
DataColumn ColumnPresent
 
DataColumn ColumnPartTimers
 
DataColumn ColumnOutreachCode
 todo More...
 
DataColumn ColumnOutreachCost
 This is the cost of the outreach/Event. More...
 
DataColumn ColumnOutreachCostCurrencyCode
 This is the currency that is used for the outreach cost. More...
 
DataColumn ColumnCountryCode
 
DataColumn ColumnPrimaryOffice
 The partner key of the office that will be this field's primary office.. 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 = 45
 TableId for Ict.Common.Data generic functions. More...
 
static readonly short ColumnPartnerKeyId = 0
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnUnitNameId = 1
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDescriptionId = 2
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnUnitTypeCodeId = 3
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnMinimumId = 4
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnMaximumId = 5
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnPresentId = 6
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnPartTimersId = 7
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnOutreachCodeId = 8
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnOutreachCostId = 9
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnOutreachCostCurrencyCodeId = 10
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnCountryCodeId = 11
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnPrimaryOfficeId = 12
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDateCreatedId = 13
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnCreatedById = 14
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDateModifiedId = 15
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnModifiedById = 16
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnModificationIdId = 17
 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, TTypedTableInfoTableInfo = new SortedList <short, TTypedTableInfo>()
 stores information about typed tables More...
 

Properties

PUnitRow 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...
 

Detailed Description

Details of a unit. This is an organizational unit such as an om field, department, local cost center, etc.

Constructor & Destructor Documentation

◆ PUnitTable() [1/3]

Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.PUnitTable ( )
inline

constructor

◆ PUnitTable() [2/3]

Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.PUnitTable ( string  ATablename)
inline

constructor

◆ PUnitTable() [3/3]

Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.PUnitTable ( System.Runtime.Serialization.SerializationInfo  info,
System.Runtime.Serialization.StreamingContext  context 
)
inline

constructor for serialization

Member Function Documentation

◆ CreateOdbcParameter() [1/3]

override OdbcParameter Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.CreateOdbcParameter ( Int32  AColumnNr)
inlinevirtual

get an odbc parameter for the given column

Implements Ict.Common.Data.TTypedDataTable.

◆ CreateOdbcParameter() [2/3]

static OdbcParameter Ict.Common.Data.TTypedDataTable.CreateOdbcParameter ( short  ATableNumber,
Int32  AColumnNr 
)
inlinestaticinherited

create an odbc parameter for the given column

◆ CreateOdbcParameter() [3/3]

static OdbcParameter Ict.Common.Data.TTypedDataTable.CreateOdbcParameter ( short  ATableNumber,
TSearchCriteria  ASearchCriteria 
)
inlinestaticinherited

create an odbc parameter for the given column

◆ GetChanges()

new DataTable Ict.Common.Data.TTypedDataTable.GetChanges ( )
inlineinherited

make sure that we use GetChangesType instead of GetChanges

Returns
throws an exception

◆ GetChangesTyped()

PUnitTable Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetChangesTyped ( )
inline

get typed set of changes

◆ GetChangesTypedInternal()

DataTable Ict.Common.Data.TTypedDataTable.GetChangesTypedInternal ( )
inlineinherited

our own version of GetChanges

Returns
returns a typed table with the changes

◆ GetColumnNameSQL()

static string Ict.Common.Data.TTypedDataTable.GetColumnNameSQL ( short  ATableNumber,
short  AColumnNr 
)
inlinestaticinherited

the column name as it is in the SQL database

◆ GetColumnStringList()

static string[] Ict.Common.Data.TTypedDataTable.GetColumnStringList ( short  ATableNumber)
inlinestaticinherited

get the names of the columns in this table

◆ GetCountryCodeDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCountryCodeDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetCountryCodeHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCountryCodeHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetCountryCodeLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCountryCodeLength ( )
inlinestatic

get character length for column

◆ GetCreatedByDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCreatedByDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetCreatedByHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCreatedByHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetCreatedByLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetCreatedByLength ( )
inlinestatic

get character length for column

◆ GetCustomReportFieldList()

virtual List< String > Ict.Common.Data.TTypedDataTable.GetCustomReportFieldList ( )
inlinevirtualinherited

Return a list of fields that are available for custom reports

◆ GetCustomReportPermission()

virtual string Ict.Common.Data.TTypedDataTable.GetCustomReportPermission ( )
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

◆ GetDateCreatedDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateCreatedDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetDateCreatedHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateCreatedHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetDateCreatedLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateCreatedLength ( )
inlinestatic

get character length for column

◆ GetDateModifiedDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateModifiedDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetDateModifiedHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateModifiedHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetDateModifiedLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDateModifiedLength ( )
inlinestatic

get character length for column

◆ GetDescriptionDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDescriptionDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetDescriptionHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDescriptionHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetDescriptionLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetDescriptionLength ( )
inlinestatic

get character length for column

◆ GetKeyColumnStringList()

static string[] Ict.Common.Data.TTypedDataTable.GetKeyColumnStringList ( short  ATableNumber,
int[]  AKeyColumnsOrder 
)
inlinestaticinherited

get the names of the columns that are part of the key

◆ GetLabel()

static string Ict.Common.Data.TTypedDataTable.GetLabel ( short  ATableNumber,
short  AColumnNr 
)
inlinestaticinherited

returns the translated label for the column

◆ GetLength() [1/2]

static Int32 Ict.Common.Data.TTypedDataTable.GetLength ( short  ATableNumber,
short  AColumnNr 
)
inlinestaticinherited

get the maximum length for the field

◆ GetLength() [2/2]

static Int32 Ict.Common.Data.TTypedDataTable.GetLength ( string  ATableName,
string  AColumnName 
)
inlinestaticinherited

get the maximum length for the field

◆ GetMaximumDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMaximumDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetMaximumHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMaximumHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetMaximumLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMaximumLength ( )
inlinestatic

get character length for column

◆ GetMinimumDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMinimumDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetMinimumHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMinimumHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetMinimumLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetMinimumLength ( )
inlinestatic

get character length for column

◆ GetModificationIdDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModificationIdDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetModificationIdHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModificationIdHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetModificationIdLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModificationIdLength ( )
inlinestatic

get character length for column

◆ GetModifiedByDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModifiedByDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetModifiedByHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModifiedByHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetModifiedByLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetModifiedByLength ( )
inlinestatic

get character length for column

◆ GetOutreachCodeDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCodeDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetOutreachCodeHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCodeHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetOutreachCodeLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCodeLength ( )
inlinestatic

get character length for column

◆ GetOutreachCostCurrencyCodeDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostCurrencyCodeDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetOutreachCostCurrencyCodeHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostCurrencyCodeHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetOutreachCostCurrencyCodeLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostCurrencyCodeLength ( )
inlinestatic

get character length for column

◆ GetOutreachCostDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetOutreachCostHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetOutreachCostLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetOutreachCostLength ( )
inlinestatic

get character length for column

◆ GetPartnerKeyDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartnerKeyDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetPartnerKeyHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartnerKeyHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetPartnerKeyLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartnerKeyLength ( )
inlinestatic

get character length for column

◆ GetPartTimersDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartTimersDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetPartTimersHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartTimersHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetPartTimersLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPartTimersLength ( )
inlinestatic

get character length for column

◆ GetPresentDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPresentDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetPresentHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPresentHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetPresentLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPresentLength ( )
inlinestatic

get character length for column

◆ GetPrimaryKeyColumnOrdList()

static int[] Ict.Common.Data.TTypedDataTable.GetPrimaryKeyColumnOrdList ( short  ATableNumber)
inlinestaticinherited

get the order number of the columns that are part of the primary key

◆ GetPrimaryKeyColumnStringList()

static string[] Ict.Common.Data.TTypedDataTable.GetPrimaryKeyColumnStringList ( short  ATableNumber)
inlinestaticinherited

get the names of the columns that are part of the primary key

◆ GetPrimaryOfficeDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPrimaryOfficeDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetPrimaryOfficeHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPrimaryOfficeHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetPrimaryOfficeLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetPrimaryOfficeLength ( )
inlinestatic

get character length for column

◆ GetTableByName()

static TTypedTableInfo Ict.Common.Data.TTypedDataTable.GetTableByName ( string  ATableName)
inlinestaticinherited

the table name in CamelCase

◆ GetTableDBLabel()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetTableDBLabel ( )
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)

◆ GetTableDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetTableDBName ( )
inlinestatic

return the name of the table as it is used in the database

◆ GetTableName() [1/2]

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetTableName ( )
inlinestatic

return the CamelCase name of the table

◆ GetTableName() [2/2]

static string Ict.Common.Data.TTypedDataTable.GetTableName ( short  ATableNumber)
inlinestaticinherited

the table name in CamelCase

◆ GetTableNameSQL()

static string Ict.Common.Data.TTypedDataTable.GetTableNameSQL ( short  ATableNumber)
inlinestaticinherited

the table name as it is in the SQL database

◆ GetUniqueKeyColumnOrdList()

static int[] Ict.Common.Data.TTypedDataTable.GetUniqueKeyColumnOrdList ( short  ATableNumber)
inlinestaticinherited

get the order number of the columns that are part of a unique key

◆ GetUniqueKeyColumnStringList()

static string[] Ict.Common.Data.TTypedDataTable.GetUniqueKeyColumnStringList ( short  ATableNumber)
inlinestaticinherited

get the names of the columns that are part of the unique key

◆ GetUnitNameDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitNameDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetUnitNameHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitNameHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetUnitNameLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitNameLength ( )
inlinestatic

get character length for column

◆ GetUnitTypeCodeDBName()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitTypeCodeDBName ( )
inlinestatic

get the name of the field in the database for this column

◆ GetUnitTypeCodeHelp()

static string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitTypeCodeHelp ( )
inlinestatic

get the help text for the field in the database for this column

◆ GetUnitTypeCodeLength()

static short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.GetUnitTypeCodeLength ( )
inlinestatic

get character length for column

◆ InitClass()

override void Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.InitClass ( )
inlineprotectedvirtual

create the columns

Implements Ict.Common.Data.TTypedDataTable.

◆ InitVars()

override void Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.InitVars ( )
inlinevirtual

assign columns to properties, set primary key

Implements Ict.Common.Data.TTypedDataTable.

◆ IsAvailableForCustomReport()

virtual bool Ict.Common.Data.TTypedDataTable.IsAvailableForCustomReport ( )
inlinevirtualinherited

Is this table generally available in custom reports?

◆ NewRowFromBuilder()

override System.Data.DataRow Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.NewRowFromBuilder ( System.Data.DataRowBuilder  builder)
inlineprotected

new typed row using DataRowBuilder

◆ NewRowTyped() [1/2]

PUnitRow Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.NewRowTyped ( )
inline

create a new typed row, always with default values

◆ NewRowTyped() [2/2]

PUnitRow Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.NewRowTyped ( bool  AWithDefaultValues)
inline

create a new typed row

◆ RemoveColumnsNotInTableTemplate()

void Ict.Common.Data.TTypedDataTable.RemoveColumnsNotInTableTemplate ( DataTable  ATableTemplate)
inlineinherited

remove columns that are not needed

Parameters
ATableTemplatethis table only contains the columns that should be kept

◆ ResetStaticVariables()

static void Ict.Common.Data.TTypedDataTable.ResetStaticVariables ( )
inlinestaticinherited

reset the static variables for each Web Request call.

Member Data Documentation

◆ ColumnCountryCode

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnCountryCode

This is a code which identifies a country. It is the ISO code

◆ ColumnCountryCodeId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnCountryCodeId = 11
static

used for generic TTypedDataTable functions

◆ ColumnCreatedBy

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnCreatedBy

User ID of who created this record.

◆ ColumnCreatedById

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnCreatedById = 14
static

used for generic TTypedDataTable functions

◆ ColumnDateCreated

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDateCreated

The date the record was created.

◆ ColumnDateCreatedId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDateCreatedId = 13
static

used for generic TTypedDataTable functions

◆ ColumnDateModified

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDateModified

The date the record was modified.

◆ ColumnDateModifiedId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDateModifiedId = 15
static

used for generic TTypedDataTable functions

◆ ColumnDescription

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDescription

◆ ColumnDescriptionId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnDescriptionId = 2
static

used for generic TTypedDataTable functions

◆ ColumnMaximum

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnMaximum

Indicates the maximum number of staff required. (Computed from um_jobs.)

◆ ColumnMaximumId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnMaximumId = 5
static

used for generic TTypedDataTable functions

◆ ColumnMinimum

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnMinimum

Indicates the minimum number of staff required. (Computed from um_jobs.)

◆ ColumnMinimumId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnMinimumId = 4
static

used for generic TTypedDataTable functions

◆ ColumnModificationId

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnModificationId

This identifies the current version of the record.

◆ ColumnModificationIdId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnModificationIdId = 17
static

used for generic TTypedDataTable functions

◆ ColumnModifiedBy

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnModifiedBy

User ID of who last modified this record.

◆ ColumnModifiedById

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnModifiedById = 16
static

used for generic TTypedDataTable functions

◆ ColumnOutreachCode

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCode

todo

◆ ColumnOutreachCodeId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCodeId = 8
static

used for generic TTypedDataTable functions

◆ ColumnOutreachCost

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCost

This is the cost of the outreach/Event.

◆ ColumnOutreachCostCurrencyCode

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCostCurrencyCode

This is the currency that is used for the outreach cost.

◆ ColumnOutreachCostCurrencyCodeId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCostCurrencyCodeId = 10
static

used for generic TTypedDataTable functions

◆ ColumnOutreachCostId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnOutreachCostId = 9
static

used for generic TTypedDataTable functions

◆ ColumnPartnerKey

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPartnerKey

This is the partner key assigned to each partner. It consists of the fund id followed by a computer generated six digit number.

◆ ColumnPartnerKeyId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPartnerKeyId = 0
static

used for generic TTypedDataTable functions

◆ ColumnPartTimers

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPartTimers

Number of part-timers acceptable. (Computed from um_jobs.)

◆ ColumnPartTimersId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPartTimersId = 7
static

used for generic TTypedDataTable functions

◆ ColumnPresent

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPresent

Indicates the present number on staff. (Computed from um_jobs.)

◆ ColumnPresentId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPresentId = 6
static

used for generic TTypedDataTable functions

◆ ColumnPrimaryOffice

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPrimaryOffice

The partner key of the office that will be this field's primary office..

◆ ColumnPrimaryOfficeId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnPrimaryOfficeId = 12
static

used for generic TTypedDataTable functions

◆ ColumnUnitName

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnUnitName

◆ ColumnUnitNameId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnUnitNameId = 1
static

used for generic TTypedDataTable functions

◆ ColumnUnitTypeCode

DataColumn Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnUnitTypeCode

◆ ColumnUnitTypeCodeId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.ColumnUnitTypeCodeId = 3
static

used for generic TTypedDataTable functions

◆ DontThrowAwayAfterSubmitChanges

bool Ict.Common.Data.TTypedDataTable.DontThrowAwayAfterSubmitChanges = false
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

◆ TableId

readonly short Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.TableId = 45
static

TableId for Ict.Common.Data generic functions.

◆ TableInfo

SortedList<short, TTypedTableInfo> Ict.Common.Data.TTypedDataTable.TableInfo = new SortedList <short, TTypedTableInfo>()
staticprotectedinherited

stores information about typed tables

◆ ThrowAwayAfterSubmitChanges

bool Ict.Common.Data.TTypedDataTable.ThrowAwayAfterSubmitChanges = false
inherited

if you want the datatable to be cleared after submitchanges. This will increase the speed significantly: no updating of modificationID, no slow AcceptChanges.

Property Documentation

◆ Count

int Ict.Common.Data.TTypedDataTable.Count
getinherited

the number of rows in the current table

◆ TableDBLabel

override string Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.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)

◆ this[int i]

PUnitRow Ict.Petra.Shared.MPartner.Partner.Data.PUnitTable.this[int i]
get

Access a typed row by index.


The documentation for this class was generated from the following file: