OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable Class Reference

This table defines the concept of a supplier in the AP system and is the centre of the AP system. More...

Inheritance diagram for Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable:
Ict.Common.Data.TTypedDataTable

Public Member Functions

 AApSupplierTable ()
 constructor More...
 
 AApSupplierTable (string ATablename)
 constructor More...
 
 AApSupplierTable (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...
 
AApSupplierRow NewRowTyped (bool AWithDefaultValues)
 create a new typed row More...
 
AApSupplierRow NewRowTyped ()
 create a new typed row, always with default values More...
 
AApSupplierTable 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 GetPreferredScreenDisplayDBName ()
 get the name of the field in the database for this column More...
 
static short GetPreferredScreenDisplayLength ()
 get character length for column More...
 
static string GetPreferredScreenDisplayHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultBankAccountDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultBankAccountLength ()
 get character length for column More...
 
static string GetDefaultBankAccountHelp ()
 get the help text for the field in the database for this column More...
 
static string GetPaymentTypeDBName ()
 get the name of the field in the database for this column More...
 
static short GetPaymentTypeLength ()
 get character length for column More...
 
static string GetPaymentTypeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetCurrencyCodeDBName ()
 get the name of the field in the database for this column More...
 
static short GetCurrencyCodeLength ()
 get character length for column More...
 
static string GetCurrencyCodeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultApAccountDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultApAccountLength ()
 get character length for column More...
 
static string GetDefaultApAccountHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultCreditTermsDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultCreditTermsLength ()
 get character length for column More...
 
static string GetDefaultCreditTermsHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultDiscountPercentageDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultDiscountPercentageLength ()
 get character length for column More...
 
static string GetDefaultDiscountPercentageHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultDiscountDaysDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultDiscountDaysLength ()
 get character length for column More...
 
static string GetDefaultDiscountDaysHelp ()
 get the help text for the field in the database for this column More...
 
static string GetSupplierTypeDBName ()
 get the name of the field in the database for this column More...
 
static short GetSupplierTypeLength ()
 get character length for column More...
 
static string GetSupplierTypeHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultExpAccountDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultExpAccountLength ()
 get character length for column More...
 
static string GetDefaultExpAccountHelp ()
 get the help text for the field in the database for this column More...
 
static string GetDefaultCostCentreDBName ()
 get the name of the field in the database for this column More...
 
static short GetDefaultCostCentreLength ()
 get character length for column More...
 
static string GetDefaultCostCentreHelp ()
 get the help text for the field in the database for this column More...
 
static string GetOurReferenceDBName ()
 get the name of the field in the database for this column More...
 
static short GetOurReferenceLength ()
 get character length for column More...
 
static string GetOurReferenceHelp ()
 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
 Reference to the partner key for this supplier. More...
 
DataColumn ColumnPreferredScreenDisplay
 Number of months to display invoices and credit notes. More...
 
DataColumn ColumnDefaultBankAccount
 Reference to default bank account to use to pay supplier with. More...
 
DataColumn ColumnPaymentType
 The default type of payment to use when paying this supplier. More...
 
DataColumn ColumnCurrencyCode
 The currency code to use for this supplier. More...
 
DataColumn ColumnDefaultApAccount
 The default AP Account to use when paying this supplier. More...
 
DataColumn ColumnDefaultCreditTerms
 Default credit terms to use for invoices from this supplier. More...
 
DataColumn ColumnDefaultDiscountPercentage
 Default percentage discount to receive for early payments. More...
 
DataColumn ColumnDefaultDiscountDays
 Default number of days in which the discount percentage has effect. More...
 
DataColumn ColumnSupplierType
 What type of supplier this is - normal, credit card, maybe something else. More...
 
DataColumn ColumnDefaultExpAccount
 Reference to the default expense Account to use for invoice details. More...
 
DataColumn ColumnDefaultCostCentre
 Reference to the default cost centre to use for invoice details. More...
 
DataColumn ColumnOurReference
 This reference identifies us to the supplier. 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 = 170
 TableId for Ict.Common.Data generic functions. More...
 
static readonly short ColumnPartnerKeyId = 0
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnPreferredScreenDisplayId = 1
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultBankAccountId = 2
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnPaymentTypeId = 3
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnCurrencyCodeId = 4
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultApAccountId = 5
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultCreditTermsId = 6
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultDiscountPercentageId = 7
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultDiscountDaysId = 8
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnSupplierTypeId = 9
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultExpAccountId = 10
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDefaultCostCentreId = 11
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnOurReferenceId = 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

AApSupplierRow 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

This table defines the concept of a supplier in the AP system and is the centre of the AP system.

Constructor & Destructor Documentation

◆ AApSupplierTable() [1/3]

Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.AApSupplierTable ( )
inline

constructor

◆ AApSupplierTable() [2/3]

Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.AApSupplierTable ( string  ATablename)
inline

constructor

◆ AApSupplierTable() [3/3]

Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.AApSupplierTable ( 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.MFinance.AP.Data.AApSupplierTable.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()

AApSupplierTable Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.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

◆ GetCreatedByDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCreatedByDBName ( )
inlinestatic

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

◆ GetCreatedByHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCreatedByHelp ( )
inlinestatic

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

◆ GetCreatedByLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCreatedByLength ( )
inlinestatic

get character length for column

◆ GetCurrencyCodeDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCurrencyCodeDBName ( )
inlinestatic

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

◆ GetCurrencyCodeHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCurrencyCodeHelp ( )
inlinestatic

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

◆ GetCurrencyCodeLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetCurrencyCodeLength ( )
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.MFinance.AP.Data.AApSupplierTable.GetDateCreatedDBName ( )
inlinestatic

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

◆ GetDateCreatedHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDateCreatedHelp ( )
inlinestatic

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

◆ GetDateCreatedLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDateCreatedLength ( )
inlinestatic

get character length for column

◆ GetDateModifiedDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDateModifiedDBName ( )
inlinestatic

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

◆ GetDateModifiedHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDateModifiedHelp ( )
inlinestatic

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

◆ GetDateModifiedLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDateModifiedLength ( )
inlinestatic

get character length for column

◆ GetDefaultApAccountDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultApAccountDBName ( )
inlinestatic

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

◆ GetDefaultApAccountHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultApAccountHelp ( )
inlinestatic

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

◆ GetDefaultApAccountLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultApAccountLength ( )
inlinestatic

get character length for column

◆ GetDefaultBankAccountDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultBankAccountDBName ( )
inlinestatic

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

◆ GetDefaultBankAccountHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultBankAccountHelp ( )
inlinestatic

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

◆ GetDefaultBankAccountLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultBankAccountLength ( )
inlinestatic

get character length for column

◆ GetDefaultCostCentreDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCostCentreDBName ( )
inlinestatic

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

◆ GetDefaultCostCentreHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCostCentreHelp ( )
inlinestatic

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

◆ GetDefaultCostCentreLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCostCentreLength ( )
inlinestatic

get character length for column

◆ GetDefaultCreditTermsDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCreditTermsDBName ( )
inlinestatic

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

◆ GetDefaultCreditTermsHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCreditTermsHelp ( )
inlinestatic

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

◆ GetDefaultCreditTermsLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultCreditTermsLength ( )
inlinestatic

get character length for column

◆ GetDefaultDiscountDaysDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountDaysDBName ( )
inlinestatic

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

◆ GetDefaultDiscountDaysHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountDaysHelp ( )
inlinestatic

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

◆ GetDefaultDiscountDaysLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountDaysLength ( )
inlinestatic

get character length for column

◆ GetDefaultDiscountPercentageDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountPercentageDBName ( )
inlinestatic

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

◆ GetDefaultDiscountPercentageHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountPercentageHelp ( )
inlinestatic

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

◆ GetDefaultDiscountPercentageLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultDiscountPercentageLength ( )
inlinestatic

get character length for column

◆ GetDefaultExpAccountDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultExpAccountDBName ( )
inlinestatic

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

◆ GetDefaultExpAccountHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultExpAccountHelp ( )
inlinestatic

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

◆ GetDefaultExpAccountLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetDefaultExpAccountLength ( )
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

◆ GetModificationIdDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModificationIdDBName ( )
inlinestatic

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

◆ GetModificationIdHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModificationIdHelp ( )
inlinestatic

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

◆ GetModificationIdLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModificationIdLength ( )
inlinestatic

get character length for column

◆ GetModifiedByDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModifiedByDBName ( )
inlinestatic

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

◆ GetModifiedByHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModifiedByHelp ( )
inlinestatic

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

◆ GetModifiedByLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetModifiedByLength ( )
inlinestatic

get character length for column

◆ GetOurReferenceDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetOurReferenceDBName ( )
inlinestatic

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

◆ GetOurReferenceHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetOurReferenceHelp ( )
inlinestatic

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

◆ GetOurReferenceLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetOurReferenceLength ( )
inlinestatic

get character length for column

◆ GetPartnerKeyDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPartnerKeyDBName ( )
inlinestatic

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

◆ GetPartnerKeyHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPartnerKeyHelp ( )
inlinestatic

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

◆ GetPartnerKeyLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPartnerKeyLength ( )
inlinestatic

get character length for column

◆ GetPaymentTypeDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPaymentTypeDBName ( )
inlinestatic

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

◆ GetPaymentTypeHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPaymentTypeHelp ( )
inlinestatic

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

◆ GetPaymentTypeLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPaymentTypeLength ( )
inlinestatic

get character length for column

◆ GetPreferredScreenDisplayDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPreferredScreenDisplayDBName ( )
inlinestatic

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

◆ GetPreferredScreenDisplayHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPreferredScreenDisplayHelp ( )
inlinestatic

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

◆ GetPreferredScreenDisplayLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetPreferredScreenDisplayLength ( )
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

◆ GetSupplierTypeDBName()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetSupplierTypeDBName ( )
inlinestatic

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

◆ GetSupplierTypeHelp()

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetSupplierTypeHelp ( )
inlinestatic

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

◆ GetSupplierTypeLength()

static short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.GetSupplierTypeLength ( )
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.MFinance.AP.Data.AApSupplierTable.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.MFinance.AP.Data.AApSupplierTable.GetTableDBName ( )
inlinestatic

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

◆ GetTableName() [1/2]

static string Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.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

◆ InitClass()

override void Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.InitClass ( )
inlineprotectedvirtual

create the columns

Implements Ict.Common.Data.TTypedDataTable.

◆ InitVars()

override void Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.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.MFinance.AP.Data.AApSupplierTable.NewRowFromBuilder ( System.Data.DataRowBuilder  builder)
inlineprotected

new typed row using DataRowBuilder

◆ NewRowTyped() [1/2]

AApSupplierRow Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.NewRowTyped ( )
inline

create a new typed row, always with default values

◆ NewRowTyped() [2/2]

AApSupplierRow Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.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

◆ ColumnCreatedBy

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnCreatedBy

User ID of who created this record.

◆ ColumnCreatedById

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnCreatedById = 14
static

used for generic TTypedDataTable functions

◆ ColumnCurrencyCode

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnCurrencyCode

The currency code to use for this supplier.

◆ ColumnCurrencyCodeId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnCurrencyCodeId = 4
static

used for generic TTypedDataTable functions

◆ ColumnDateCreated

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDateCreated

The date the record was created.

◆ ColumnDateCreatedId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDateCreatedId = 13
static

used for generic TTypedDataTable functions

◆ ColumnDateModified

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDateModified

The date the record was modified.

◆ ColumnDateModifiedId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDateModifiedId = 15
static

used for generic TTypedDataTable functions

◆ ColumnDefaultApAccount

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultApAccount

The default AP Account to use when paying this supplier.

◆ ColumnDefaultApAccountId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultApAccountId = 5
static

used for generic TTypedDataTable functions

◆ ColumnDefaultBankAccount

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultBankAccount

Reference to default bank account to use to pay supplier with.

◆ ColumnDefaultBankAccountId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultBankAccountId = 2
static

used for generic TTypedDataTable functions

◆ ColumnDefaultCostCentre

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultCostCentre

Reference to the default cost centre to use for invoice details.

◆ ColumnDefaultCostCentreId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultCostCentreId = 11
static

used for generic TTypedDataTable functions

◆ ColumnDefaultCreditTerms

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultCreditTerms

Default credit terms to use for invoices from this supplier.

◆ ColumnDefaultCreditTermsId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultCreditTermsId = 6
static

used for generic TTypedDataTable functions

◆ ColumnDefaultDiscountDays

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultDiscountDays

Default number of days in which the discount percentage has effect.

◆ ColumnDefaultDiscountDaysId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultDiscountDaysId = 8
static

used for generic TTypedDataTable functions

◆ ColumnDefaultDiscountPercentage

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultDiscountPercentage

Default percentage discount to receive for early payments.

◆ ColumnDefaultDiscountPercentageId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultDiscountPercentageId = 7
static

used for generic TTypedDataTable functions

◆ ColumnDefaultExpAccount

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultExpAccount

Reference to the default expense Account to use for invoice details.

◆ ColumnDefaultExpAccountId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnDefaultExpAccountId = 10
static

used for generic TTypedDataTable functions

◆ ColumnModificationId

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnModificationId

This identifies the current version of the record.

◆ ColumnModificationIdId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnModificationIdId = 17
static

used for generic TTypedDataTable functions

◆ ColumnModifiedBy

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnModifiedBy

User ID of who last modified this record.

◆ ColumnModifiedById

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnModifiedById = 16
static

used for generic TTypedDataTable functions

◆ ColumnOurReference

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnOurReference

This reference identifies us to the supplier.

◆ ColumnOurReferenceId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnOurReferenceId = 12
static

used for generic TTypedDataTable functions

◆ ColumnPartnerKey

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPartnerKey

Reference to the partner key for this supplier.

◆ ColumnPartnerKeyId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPartnerKeyId = 0
static

used for generic TTypedDataTable functions

◆ ColumnPaymentType

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPaymentType

The default type of payment to use when paying this supplier.

◆ ColumnPaymentTypeId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPaymentTypeId = 3
static

used for generic TTypedDataTable functions

◆ ColumnPreferredScreenDisplay

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPreferredScreenDisplay

Number of months to display invoices and credit notes.

◆ ColumnPreferredScreenDisplayId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnPreferredScreenDisplayId = 1
static

used for generic TTypedDataTable functions

◆ ColumnSupplierType

DataColumn Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnSupplierType

What type of supplier this is - normal, credit card, maybe something else.

◆ ColumnSupplierTypeId

readonly short Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.ColumnSupplierTypeId = 9
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.MFinance.AP.Data.AApSupplierTable.TableId = 170
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.MFinance.AP.Data.AApSupplierTable.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]

AApSupplierRow Ict.Petra.Shared.MFinance.AP.Data.AApSupplierTable.this[int i]
get

Access a typed row by index.


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