OpenPetra
Free Administration Software for Non-Profits
Ict.Petra.Shared.MHospitality.Data.PhBookingTable Class Reference

make sure charging works for a group or an individual; this summarises all the hospitality services that have to be paid for; also useful for planning meals in the kitchen and room preparation More...

Inheritance diagram for Ict.Petra.Shared.MHospitality.Data.PhBookingTable:
Ict.Common.Data.TTypedDataTable

Public Member Functions

 PhBookingTable ()
 constructor More...
 
 PhBookingTable (string ATablename)
 constructor More...
 
 PhBookingTable (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...
 
PhBookingRow NewRowTyped (bool AWithDefaultValues)
 create a new typed row More...
 
PhBookingRow NewRowTyped ()
 create a new typed row, always with default values More...
 
PhBookingTable 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 GetKeyDBName ()
 get the name of the field in the database for this column More...
 
static short GetKeyLength ()
 get character length for column More...
 
static string GetKeyHelp ()
 get the help text for the field in the database for this column More...
 
static string GetContactKeyDBName ()
 get the name of the field in the database for this column More...
 
static short GetContactKeyLength ()
 get character length for column More...
 
static string GetContactKeyHelp ()
 get the help text for the field in the database for this column More...
 
static string GetLedgerNumberForInvoiceDBName ()
 get the name of the field in the database for this column More...
 
static short GetLedgerNumberForInvoiceLength ()
 get character length for column More...
 
static string GetLedgerNumberForInvoiceHelp ()
 get the help text for the field in the database for this column More...
 
static string GetArInvoiceKeyDBName ()
 get the name of the field in the database for this column More...
 
static short GetArInvoiceKeyLength ()
 get character length for column More...
 
static string GetArInvoiceKeyHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfAdultsDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfAdultsLength ()
 get character length for column More...
 
static string GetNumberOfAdultsHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfChildrenDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfChildrenLength ()
 get character length for column More...
 
static string GetNumberOfChildrenHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfBreakfastDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfBreakfastLength ()
 get character length for column More...
 
static string GetNumberOfBreakfastHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfLunchDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfLunchLength ()
 get character length for column More...
 
static string GetNumberOfLunchHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfSupperDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfSupperLength ()
 get character length for column More...
 
static string GetNumberOfSupperHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNumberOfLinenNeededDBName ()
 get the name of the field in the database for this column More...
 
static short GetNumberOfLinenNeededLength ()
 get character length for column More...
 
static string GetNumberOfLinenNeededHelp ()
 get the help text for the field in the database for this column More...
 
static string GetConfirmedDBName ()
 get the name of the field in the database for this column More...
 
static short GetConfirmedLength ()
 get character length for column More...
 
static string GetConfirmedHelp ()
 get the help text for the field in the database for this column More...
 
static string GetInDBName ()
 get the name of the field in the database for this column More...
 
static short GetInLength ()
 get character length for column More...
 
static string GetInHelp ()
 get the help text for the field in the database for this column More...
 
static string GetOutDBName ()
 get the name of the field in the database for this column More...
 
static short GetOutLength ()
 get character length for column More...
 
static string GetOutHelp ()
 get the help text for the field in the database for this column More...
 
static string GetTimeArrivalDBName ()
 get the name of the field in the database for this column More...
 
static short GetTimeArrivalLength ()
 get character length for column More...
 
static string GetTimeArrivalHelp ()
 get the help text for the field in the database for this column More...
 
static string GetTimeDepartureDBName ()
 get the name of the field in the database for this column More...
 
static short GetTimeDepartureLength ()
 get character length for column More...
 
static string GetTimeDepartureHelp ()
 get the help text for the field in the database for this column More...
 
static string GetNotesDBName ()
 get the name of the field in the database for this column More...
 
static short GetNotesLength ()
 get character length for column More...
 
static string GetNotesHelp ()
 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 ColumnKey
 Surrogate Primary Key; required because there can be several bookings per room and per group. More...
 
DataColumn ColumnContactKey
 the partner key of the visitor or the partner key of the organisation or group that is visiting; each room allocation can refer to the individual guest as well; this can be different from the partner that is charged in the invoice More...
 
DataColumn ColumnLedgerNumberForInvoice
 The ledger number that is needed for the invoice. More...
 
DataColumn ColumnArInvoiceKey
 refers to an offer which will later be the invoice More...
 
DataColumn ColumnNumberOfAdults
 This is a booking for n adults. More...
 
DataColumn ColumnNumberOfChildren
 This is a booking for n children. More...
 
DataColumn ColumnNumberOfBreakfast
 The people that are part of this booking had n breakfasts; also useful for the kitchen. More...
 
DataColumn ColumnNumberOfLunch
 The people that are part of this booking had n lunches. More...
 
DataColumn ColumnNumberOfSupper
 The people that are part of this booking had n suppers. More...
 
DataColumn ColumnNumberOfLinenNeeded
 The number of linen that have been provided for this booking. More...
 
DataColumn ColumnConfirmed
 this should be set to the date when the booking has been confirmed; required for early booking discounts More...
 
DataColumn ColumnIn
 
DataColumn ColumnOut
 
DataColumn ColumnTimeArrival
 
DataColumn ColumnTimeDeparture
 
DataColumn ColumnNotes
 Add notes about the stay or special requests by the guest. 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 = 263
 TableId for Ict.Common.Data generic functions. More...
 
static readonly short ColumnKeyId = 0
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnContactKeyId = 1
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnLedgerNumberForInvoiceId = 2
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnArInvoiceKeyId = 3
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfAdultsId = 4
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfChildrenId = 5
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfBreakfastId = 6
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfLunchId = 7
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfSupperId = 8
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNumberOfLinenNeededId = 9
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnConfirmedId = 10
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnInId = 11
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnOutId = 12
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnTimeArrivalId = 13
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnTimeDepartureId = 14
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnNotesId = 15
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDateCreatedId = 16
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnCreatedById = 17
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnDateModifiedId = 18
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnModifiedById = 19
 used for generic TTypedDataTable functions More...
 
static readonly short ColumnModificationIdId = 20
 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

PhBookingRow 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

make sure charging works for a group or an individual; this summarises all the hospitality services that have to be paid for; also useful for planning meals in the kitchen and room preparation

Constructor & Destructor Documentation

◆ PhBookingTable() [1/3]

Ict.Petra.Shared.MHospitality.Data.PhBookingTable.PhBookingTable ( )
inline

constructor

◆ PhBookingTable() [2/3]

Ict.Petra.Shared.MHospitality.Data.PhBookingTable.PhBookingTable ( string  ATablename)
inline

constructor

◆ PhBookingTable() [3/3]

Ict.Petra.Shared.MHospitality.Data.PhBookingTable.PhBookingTable ( 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.MHospitality.Data.PhBookingTable.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

◆ GetArInvoiceKeyDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetArInvoiceKeyDBName ( )
inlinestatic

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

◆ GetArInvoiceKeyHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetArInvoiceKeyHelp ( )
inlinestatic

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

◆ GetArInvoiceKeyLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetArInvoiceKeyLength ( )
inlinestatic

get character length for column

◆ GetChanges()

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

make sure that we use GetChangesType instead of GetChanges

Returns
throws an exception

◆ GetChangesTyped()

PhBookingTable Ict.Petra.Shared.MHospitality.Data.PhBookingTable.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

◆ GetConfirmedDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetConfirmedDBName ( )
inlinestatic

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

◆ GetConfirmedHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetConfirmedHelp ( )
inlinestatic

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

◆ GetConfirmedLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetConfirmedLength ( )
inlinestatic

get character length for column

◆ GetContactKeyDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetContactKeyDBName ( )
inlinestatic

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

◆ GetContactKeyHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetContactKeyHelp ( )
inlinestatic

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

◆ GetContactKeyLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetContactKeyLength ( )
inlinestatic

get character length for column

◆ GetCreatedByDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetCreatedByDBName ( )
inlinestatic

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

◆ GetCreatedByHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetCreatedByHelp ( )
inlinestatic

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

◆ GetCreatedByLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.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.MHospitality.Data.PhBookingTable.GetDateCreatedDBName ( )
inlinestatic

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

◆ GetDateCreatedHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetDateCreatedHelp ( )
inlinestatic

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

◆ GetDateCreatedLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetDateCreatedLength ( )
inlinestatic

get character length for column

◆ GetDateModifiedDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetDateModifiedDBName ( )
inlinestatic

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

◆ GetDateModifiedHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetDateModifiedHelp ( )
inlinestatic

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

◆ GetDateModifiedLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetDateModifiedLength ( )
inlinestatic

get character length for column

◆ GetInDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetInDBName ( )
inlinestatic

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

◆ GetInHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetInHelp ( )
inlinestatic

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

◆ GetInLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetInLength ( )
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

◆ GetKeyDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetKeyDBName ( )
inlinestatic

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

◆ GetKeyHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetKeyHelp ( )
inlinestatic

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

◆ GetKeyLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetKeyLength ( )
inlinestatic

get character length for column

◆ GetLabel()

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

returns the translated label for the column

◆ GetLedgerNumberForInvoiceDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetLedgerNumberForInvoiceDBName ( )
inlinestatic

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

◆ GetLedgerNumberForInvoiceHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetLedgerNumberForInvoiceHelp ( )
inlinestatic

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

◆ GetLedgerNumberForInvoiceLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetLedgerNumberForInvoiceLength ( )
inlinestatic

get character length for 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.MHospitality.Data.PhBookingTable.GetModificationIdDBName ( )
inlinestatic

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

◆ GetModificationIdHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetModificationIdHelp ( )
inlinestatic

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

◆ GetModificationIdLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetModificationIdLength ( )
inlinestatic

get character length for column

◆ GetModifiedByDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetModifiedByDBName ( )
inlinestatic

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

◆ GetModifiedByHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetModifiedByHelp ( )
inlinestatic

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

◆ GetModifiedByLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetModifiedByLength ( )
inlinestatic

get character length for column

◆ GetNotesDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNotesDBName ( )
inlinestatic

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

◆ GetNotesHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNotesHelp ( )
inlinestatic

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

◆ GetNotesLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNotesLength ( )
inlinestatic

get character length for column

◆ GetNumberOfAdultsDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfAdultsDBName ( )
inlinestatic

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

◆ GetNumberOfAdultsHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfAdultsHelp ( )
inlinestatic

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

◆ GetNumberOfAdultsLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfAdultsLength ( )
inlinestatic

get character length for column

◆ GetNumberOfBreakfastDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfBreakfastDBName ( )
inlinestatic

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

◆ GetNumberOfBreakfastHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfBreakfastHelp ( )
inlinestatic

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

◆ GetNumberOfBreakfastLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfBreakfastLength ( )
inlinestatic

get character length for column

◆ GetNumberOfChildrenDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfChildrenDBName ( )
inlinestatic

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

◆ GetNumberOfChildrenHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfChildrenHelp ( )
inlinestatic

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

◆ GetNumberOfChildrenLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfChildrenLength ( )
inlinestatic

get character length for column

◆ GetNumberOfLinenNeededDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLinenNeededDBName ( )
inlinestatic

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

◆ GetNumberOfLinenNeededHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLinenNeededHelp ( )
inlinestatic

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

◆ GetNumberOfLinenNeededLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLinenNeededLength ( )
inlinestatic

get character length for column

◆ GetNumberOfLunchDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLunchDBName ( )
inlinestatic

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

◆ GetNumberOfLunchHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLunchHelp ( )
inlinestatic

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

◆ GetNumberOfLunchLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfLunchLength ( )
inlinestatic

get character length for column

◆ GetNumberOfSupperDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfSupperDBName ( )
inlinestatic

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

◆ GetNumberOfSupperHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfSupperHelp ( )
inlinestatic

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

◆ GetNumberOfSupperLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetNumberOfSupperLength ( )
inlinestatic

get character length for column

◆ GetOutDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetOutDBName ( )
inlinestatic

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

◆ GetOutHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetOutHelp ( )
inlinestatic

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

◆ GetOutLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetOutLength ( )
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

◆ GetTableByName()

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

the table name in CamelCase

◆ GetTableDBLabel()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.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.MHospitality.Data.PhBookingTable.GetTableDBName ( )
inlinestatic

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

◆ GetTableName() [1/2]

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.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

◆ GetTimeArrivalDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeArrivalDBName ( )
inlinestatic

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

◆ GetTimeArrivalHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeArrivalHelp ( )
inlinestatic

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

◆ GetTimeArrivalLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeArrivalLength ( )
inlinestatic

get character length for column

◆ GetTimeDepartureDBName()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeDepartureDBName ( )
inlinestatic

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

◆ GetTimeDepartureHelp()

static string Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeDepartureHelp ( )
inlinestatic

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

◆ GetTimeDepartureLength()

static short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.GetTimeDepartureLength ( )
inlinestatic

get character length for column

◆ 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.MHospitality.Data.PhBookingTable.InitClass ( )
inlineprotectedvirtual

create the columns

Implements Ict.Common.Data.TTypedDataTable.

◆ InitVars()

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

new typed row using DataRowBuilder

◆ NewRowTyped() [1/2]

PhBookingRow Ict.Petra.Shared.MHospitality.Data.PhBookingTable.NewRowTyped ( )
inline

create a new typed row, always with default values

◆ NewRowTyped() [2/2]

PhBookingRow Ict.Petra.Shared.MHospitality.Data.PhBookingTable.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

◆ ColumnArInvoiceKey

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnArInvoiceKey

refers to an offer which will later be the invoice

◆ ColumnArInvoiceKeyId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnArInvoiceKeyId = 3
static

used for generic TTypedDataTable functions

◆ ColumnConfirmed

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnConfirmed

this should be set to the date when the booking has been confirmed; required for early booking discounts

◆ ColumnConfirmedId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnConfirmedId = 10
static

used for generic TTypedDataTable functions

◆ ColumnContactKey

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnContactKey

the partner key of the visitor or the partner key of the organisation or group that is visiting; each room allocation can refer to the individual guest as well; this can be different from the partner that is charged in the invoice

◆ ColumnContactKeyId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnContactKeyId = 1
static

used for generic TTypedDataTable functions

◆ ColumnCreatedBy

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnCreatedBy

User ID of who created this record.

◆ ColumnCreatedById

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnCreatedById = 17
static

used for generic TTypedDataTable functions

◆ ColumnDateCreated

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnDateCreated

The date the record was created.

◆ ColumnDateCreatedId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnDateCreatedId = 16
static

used for generic TTypedDataTable functions

◆ ColumnDateModified

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnDateModified

The date the record was modified.

◆ ColumnDateModifiedId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnDateModifiedId = 18
static

used for generic TTypedDataTable functions

◆ ColumnIn

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnIn

◆ ColumnInId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnInId = 11
static

used for generic TTypedDataTable functions

◆ ColumnKey

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnKey

Surrogate Primary Key; required because there can be several bookings per room and per group.

◆ ColumnKeyId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnKeyId = 0
static

used for generic TTypedDataTable functions

◆ ColumnLedgerNumberForInvoice

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnLedgerNumberForInvoice

The ledger number that is needed for the invoice.

◆ ColumnLedgerNumberForInvoiceId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnLedgerNumberForInvoiceId = 2
static

used for generic TTypedDataTable functions

◆ ColumnModificationId

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnModificationId

This identifies the current version of the record.

◆ ColumnModificationIdId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnModificationIdId = 20
static

used for generic TTypedDataTable functions

◆ ColumnModifiedBy

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnModifiedBy

User ID of who last modified this record.

◆ ColumnModifiedById

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnModifiedById = 19
static

used for generic TTypedDataTable functions

◆ ColumnNotes

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNotes

Add notes about the stay or special requests by the guest.

◆ ColumnNotesId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNotesId = 15
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfAdults

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfAdults

This is a booking for n adults.

◆ ColumnNumberOfAdultsId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfAdultsId = 4
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfBreakfast

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfBreakfast

The people that are part of this booking had n breakfasts; also useful for the kitchen.

◆ ColumnNumberOfBreakfastId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfBreakfastId = 6
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfChildren

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfChildren

This is a booking for n children.

◆ ColumnNumberOfChildrenId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfChildrenId = 5
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfLinenNeeded

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfLinenNeeded

The number of linen that have been provided for this booking.

◆ ColumnNumberOfLinenNeededId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfLinenNeededId = 9
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfLunch

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfLunch

The people that are part of this booking had n lunches.

◆ ColumnNumberOfLunchId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfLunchId = 7
static

used for generic TTypedDataTable functions

◆ ColumnNumberOfSupper

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfSupper

The people that are part of this booking had n suppers.

◆ ColumnNumberOfSupperId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnNumberOfSupperId = 8
static

used for generic TTypedDataTable functions

◆ ColumnOut

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnOut

◆ ColumnOutId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnOutId = 12
static

used for generic TTypedDataTable functions

◆ ColumnTimeArrival

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnTimeArrival

◆ ColumnTimeArrivalId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnTimeArrivalId = 13
static

used for generic TTypedDataTable functions

◆ ColumnTimeDeparture

DataColumn Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnTimeDeparture

◆ ColumnTimeDepartureId

readonly short Ict.Petra.Shared.MHospitality.Data.PhBookingTable.ColumnTimeDepartureId = 14
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.MHospitality.Data.PhBookingTable.TableId = 263
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.MHospitality.Data.PhBookingTable.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]

PhBookingRow Ict.Petra.Shared.MHospitality.Data.PhBookingTable.this[int i]
get

Access a typed row by index.


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