Show / Hide Table of Contents

Class Sale

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Inheritance
Object
NestedPersist
EntityBase
Sale
Implements
INestedPersist
ISoItem
ITableRowLoadHandler
IEntityUdefHelperContainer
Inherited Members
EntityBase._onGetRelatedObjects
EntityBase.GetAdditionalRelatedNestedPersistViaBaseClass(List<INestedPersist>, Boolean)
EntityBase.add_OnGetRelatedObjects(GetRelatedObjects)
EntityBase.remove_OnGetRelatedObjects(GetRelatedObjects)
EntityBase.OnPrimaryKeyRequest(PKContainer)
EntityBase.OnPrimaryKeyUpdate(PKContainer)
EntityBase.OnSaved(Boolean)
EntityBase.SetMarkedForDeleteOnRelatedObjects(Boolean)
EntityBase.ITableRowLoadHandler.OnRowLoad(SoDataReader, TableRowBase)
EntityBase.ITableRowLoadHandler.OnRowLoaded()
EntityBase.OnIdUpdateImplementation()
EntityBase.UpdateSentryRelatedTableInfoInstance<MainTableInfoType>(SentryCollection, TableInfo)
EntityBase.IsDirty
EntityBase.OnGetRelatedObjects
NestedPersist._saveOwner
NestedPersist._isSaving
NestedPersist.SetSaveOwner(INestedPersist)
NestedPersist.Save()
NestedPersist.INestedPersist.OnPreIdUpdate()
NestedPersist.INestedPersist.OnPrimaryKeyRequest(PKContainer)
NestedPersist.INestedPersist.OnPrimaryKeyUpdate(PKContainer)
NestedPersist.INestedPersist.OnIdUpdate()
NestedPersist.INestedPersist.OnSave(BatchSave)
NestedPersist.INestedPersist.OnSaved(Boolean)
NestedPersist.add_OnElementSaved(OnSaved)
NestedPersist.remove_OnElementSaved(OnSaved)
NestedPersist.add_OnElementIdUpdate(OnIdUpdate)
NestedPersist.remove_OnElementIdUpdate(OnIdUpdate)
NestedPersist.IsSaving
NestedPersist.OnElementSaved
NestedPersist.OnElementIdUpdate
Namespace: SuperOffice.CRM.Entities
Assembly: SoDataBase.dll
Syntax
public class Sale : EntityBase, INestedPersist, ISoItem, ITableRowLoadHandler, IEntityUdefHelperContainer
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Constructors

Sale(Sale.SaleIdxBase)

Constructor for class Sale.
This object represents a row in table 'sale'. Table contact: Sales

Declaration
protected Sale(Sale.SaleIdxBase idx)
Parameters
Type Name Description
Sale.SaleIdxBase idx

ContactRowSaleRow.SaleRowIdx object that the Contact encapsulates.

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Sale(SaleRow, Sale.SaleIdxBase)

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected Sale(SaleRow row, Sale.SaleIdxBase idx)
Parameters
Type Name Description
SaleRow row
Sale.SaleIdxBase idx
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Fields

_associate

Related HDB object(s).

Declaration
protected AssociateRow _associate
Field Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_competitor

Related HDB object(s).

Declaration
protected ComptrRow _competitor
Field Value
Type Description
ComptrRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_contact

Related HDB object(s).

Declaration
protected Contact _contact
Field Value
Type Description
Contact
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_createdAssociate

Related HDB object(s).

Declaration
protected AssociateRow _createdAssociate
Field Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_credited

Related HDB object(s).

Declaration
protected CreditedRow _credited
Field Value
Type Description
CreditedRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_currency

Related HDB object(s).

Declaration
protected CurrencyRow _currency
Field Value
Type Description
CurrencyRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_person

Related HDB object(s).

Declaration
protected Person _person
Field Value
Type Description
Person
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_postit

Related HDB object(s).

Declaration
protected TextRow _postit
Field Value
Type Description
TextRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_probabilityRow

Related HDB object(s).

Declaration
protected ProbRow _probabilityRow
Field Value
Type Description
ProbRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_project

Related HDB object(s).

Declaration
protected Project _project
Field Value
Type Description
Project
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_quote

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected QuoteRow _quote
Field Value
Type Description
QuoteRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_reason

Related HDB object(s).

Declaration
protected ReasonRow _reason
Field Value
Type Description
ReasonRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_reasonSold

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected ReasonSoldRow _reasonSold
Field Value
Type Description
ReasonSoldRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_reasonStalled

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected ReasonStalledRow _reasonStalled
Field Value
Type Description
ReasonStalledRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_row

HDB object this entity is a facade for.

Declaration
protected SaleRow _row
Field Value
Type Description
SaleRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_rowIdx

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected Sale.SaleIdxBase _rowIdx
Field Value
Type Description
Sale.SaleIdxBase
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_saleHistory

Related HDB object(s).

Declaration
protected SaleHistRows _saleHistory
Field Value
Type Description
SaleHistRows
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_saleText

Related HDB object(s).

Declaration
protected TextRow _saleText
Field Value
Type Description
TextRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_saleType

Related HDB object(s).

Declaration
protected SaleTypeRow _saleType
Field Value
Type Description
SaleTypeRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_sourceRow

Related HDB object(s).

Declaration
protected SourceRow _sourceRow
Field Value
Type Description
SourceRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_stakeholders

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected SaleStakeholderRows _stakeholders
Field Value
Type Description
SaleStakeholderRows
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_udefLarge

Related HDB object(s).

Declaration
protected UDSaleLargeRow _udefLarge
Field Value
Type Description
UDSaleLargeRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_udefSmall

Related HDB object(s).

Declaration
protected UDSaleSmallRow _udefSmall
Field Value
Type Description
UDSaleSmallRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_updatedAssociate

Related HDB object(s).

Declaration
protected AssociateRow _updatedAssociate
Field Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

_userGroup

Related HDB object(s).

Declaration
protected UserGroupRow _userGroup
Field Value
Type Description
UserGroupRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Properties

ActiveLinks

Number of active links to documents and such

Declaration
public uint ActiveLinks { get; set; }
Property Value
Type Description
UInt32
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Amount

Total sale amount

Declaration
public double Amount { get; set; }
Property Value
Type Description
Double
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Associate

Related object AssociateRow: Employees, resources and other users - except for External persons

Declaration
public AssociateRow Associate { get; set; }
Property Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Competitor

Related object ComptrRow: Comptr list table

Declaration
public ComptrRow Competitor { get; set; }
Property Value
Type Description
ComptrRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Contact

Related object Contact: Companies and Organisations

Declaration
public Contact Contact { get; set; }
Property Value
Type Description
Contact
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

CreatedAssociate

Related object AssociateRow: Employees, resources and other users - except for External persons

Declaration
public AssociateRow CreatedAssociate { get; set; }
Property Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Credited

Related object CreditedRow: Credited list table

Declaration
public CreditedRow Credited { get; set; }
Property Value
Type Description
CreditedRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Currency

Related object CurrencyRow: Currency list table

Declaration
public CurrencyRow Currency { get; set; }
Property Value
Type Description
CurrencyRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

CustomFields

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public EntityCustomFieldsHelper CustomFields { get; }
Property Value
Type Description
EntityCustomFieldsHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Done

Done (0=don't know, 1 = No, 2=Yes)

Declaration
public SaleDone Done { get; set; }
Property Value
Type Description
SaleDone
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Earning

Earning on sale

Declaration
public double Earning { get; set; }
Property Value
Type Description
Double
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

EarningPercent

Earning as percent of total

Declaration
public double EarningPercent { get; set; }
Property Value
Type Description
Double
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

ExtraFields

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public EntityExtraFieldsHelper ExtraFields { get; }
Property Value
Type Description
EntityExtraFieldsHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Heading

Sale heading (short description?)

Declaration
public string Heading { get; set; }
Property Value
Type Description
String
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

IsDeleted

Is the row deleted?

Declaration
public override bool IsDeleted { get; }
Property Value
Type Description
Boolean
Overrides
NestedPersist.IsDeleted
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

IsMarkedForDelete

Gets or sets a value indicating whether this instance is marked for delete.

Declaration
public override bool IsMarkedForDelete { get; set; }
Property Value
Type Description
Boolean

true if this instance is marked for delete; otherwise, false.

Overrides
NestedPersist.IsMarkedForDelete
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

IsNew

Is the row new, e.g. not been inserted to the database?

Declaration
public override bool IsNew { get; }
Property Value
Type Description
Boolean
Overrides
EntityBase.IsNew
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

LinksHelper

Links helper The helper manages the links belonging to the sale. Helper updates the sale's ActiveLinks property

Declaration
public ActivityLinksHelper LinksHelper { get; }
Property Value
Type Description
ActivityLinksHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

MainRow

Return the main row for the Entity.

Declaration
protected override TableRowBase MainRow { get; }
Property Value
Type Description
TableRowBase
Overrides
EntityBase.MainRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

NextDueDate

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public DateTime NextDueDate { get; set; }
Property Value
Type Description
DateTime
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Number1

Alphanumeric user field

Declaration
public string Number1 { get; set; }
Property Value
Type Description
String
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Person

Related object Person: Persons in a company or an organisation

Declaration
public Person Person { get; set; }
Property Value
Type Description
Person
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Postit

Related object TextRow: Long text fields from all over the system

Declaration
public TextRow Postit { get; set; }
Property Value
Type Description
TextRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Probability

Actual probability, may differ from the one in the list

Declaration
public short Probability { get; set; }
Property Value
Type Description
Int16
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

ProbabilityRow

Related object ProbRow: Prob list table

Declaration
public ProbRow ProbabilityRow { get; set; }
Property Value
Type Description
ProbRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Project

Related object Project: Projects

Declaration
public Project Project { get; set; }
Property Value
Type Description
Project
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

PublishHelper

Get the helper class for working with the publish-state of the entity.
Published means that it is available for external persons in applications like SuperOffice Audience.

Declaration
public EntityPublishHelper PublishHelper { get; }
Property Value
Type Description
EntityPublishHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Quote

Related object Quote: Quote fields

Declaration
public QuoteRow Quote { get; set; }
Property Value
Type Description
QuoteRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Reason

Related object ReasonRow: Reason list table

Declaration
public ReasonRow Reason { get; set; }
Property Value
Type Description
ReasonRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

ReasonSold

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public ReasonSoldRow ReasonSold { get; set; }
Property Value
Type Description
ReasonSoldRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

ReasonStalled

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public ReasonStalledRow ReasonStalled { get; set; }
Property Value
Type Description
ReasonStalledRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Registered

Registered date

Declaration
public DateTime Registered { get; set; }
Property Value
Type Description
DateTime
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Row

The encapsulated object SaleRow.

Declaration
public SaleRow Row { get; }
Property Value
Type Description
SaleRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Saledate

(expected | lost | won) sales date

Declaration
public DateTime Saledate { get; set; }
Property Value
Type Description
DateTime
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SaleHistory

Related object SaleHistRows: Mirror image of the Sale table, providing a full transaction history

Declaration
public SaleHistRows SaleHistory { get; }
Property Value
Type Description
SaleHistRows
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SaleId

Primary key

Declaration
public int SaleId { get; }
Property Value
Type Description
Int32
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SaleText

Related object TextRow: Long text fields from all over the system

Declaration
public TextRow SaleText { get; set; }
Property Value
Type Description
TextRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SaleType

Related object ProjTypeRow: ProjType list table

Declaration
public SaleTypeRow SaleType { get; set; }
Property Value
Type Description
SaleTypeRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Source

"For future integration use; source of record"

Declaration
public short Source { get; set; }
Property Value
Type Description
Int16
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SourceRow

Related object SourceRow: Source list table

Declaration
public SourceRow SourceRow { get; set; }
Property Value
Type Description
SourceRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Stakeholders

Related object Stakeholders: all the "project members" involved in the sale.

Declaration
public SaleStakeholderRows Stakeholders { get; }
Property Value
Type Description
SaleStakeholderRows
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Status

Status (open, closed, lost)

Declaration
public SaleStatus Status { get; set; }
Property Value
Type Description
SaleStatus
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

TableInfo

Get a TableInfo object for the sale table.

Declaration
public SaleTableInfo TableInfo { get; }
Property Value
Type Description
SaleTableInfo
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UdefHelper

Get the Udef class of EntityUdefHelper for working with udef fields

Declaration
public EntityUdefHelper UdefHelper { get; }
Property Value
Type Description
EntityUdefHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UdefLarge

Related object UDSaleLargeRow: User-defined fields

Declaration
public UDSaleLargeRow UdefLarge { get; set; }
Property Value
Type Description
UDSaleLargeRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UdefSmall

Related object UDSaleSmallRow: User-defined fields

Declaration
public UDSaleSmallRow UdefSmall { get; set; }
Property Value
Type Description
UDSaleSmallRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Updated

Last updated

Declaration
public DateTime Updated { get; set; }
Property Value
Type Description
DateTime
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UpdatedAssociate

Related object AssociateRow: Employees, resources and other users - except for External persons

Declaration
public AssociateRow UpdatedAssociate { get; set; }
Property Value
Type Description
AssociateRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UpdatedCount

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public short UpdatedCount { get; set; }
Property Value
Type Description
Int16
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

UserGroup

Related object UserGroupRow: Secondary user groups

Declaration
public UserGroupRow UserGroup { get; set; }
Property Value
Type Description
UserGroupRow
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Visibility

OBSOLETE - the VisibleFor table is used instead

Declaration
public short Visibility { get; set; }
Property Value
Type Description
Int16
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

VisibleForHelper

Get the helper class for working with the visible-for of the entity.

Declaration
public EntityVisibleForHelper VisibleForHelper { get; }
Property Value
Type Description
EntityVisibleForHelper
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Methods

CreateNew()

Create a new instance of the Sale entity.

Declaration
public static Sale CreateNew()
Returns
Type Description
Sale

A new instance of the Sale entity.

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

CreateNew(Sale.SaleIdxBase)

Create a new instance of the Sale entity, by reading from the database using the specified index (represented by a nested index class).

Declaration
public static Sale CreateNew(Sale.SaleIdxBase idx)
Parameters
Type Name Description
Sale.SaleIdxBase idx

Index search, represented by a subclass if the SuperOffice.CRM.Entities.Sale.SaleIdxBase nested index class

Returns
Type Description
Sale

A new instance of the Sale entity.

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Delete()

Delete the row.

Declaration
public override void Delete()
Overrides
EntityBase.Delete()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

ForceEntityUpdate()

Force Updated and UpdatedAssociate to be updated with current time and Currently logged in associate. This will again be overridden in the Database update operation by a query processor.

Declaration
protected override void ForceEntityUpdate()
Overrides
EntityBase.ForceEntityUpdate()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

FromSaleRow(SaleRow)

Operator asigning a Sale from a SaleRow.

Declaration
public static Sale FromSaleRow(SaleRow row)
Parameters
Type Name Description
SaleRow row

SaleRow object

Returns
Type Description
Sale

Sale Entity

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

FromSaleRow(SaleRow, Sale.SaleIdxBase)

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
public static Sale FromSaleRow(SaleRow row, Sale.SaleIdxBase idx)
Parameters
Type Name Description
SaleRow row
Sale.SaleIdxBase idx
Returns
Type Description
Sale
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

GetAdditionalRelatedNestedPersist(List<INestedPersist>, Boolean)

Add the Links Helper to the list of related nestedpersist objects, to ensure it gets a chance to do its save operations

Declaration
protected override void GetAdditionalRelatedNestedPersist(List<INestedPersist> relatedObjects, bool lacyFetchIfNeeded)
Parameters
Type Name Description
List<INestedPersist> relatedObjects
Boolean lacyFetchIfNeeded
Overrides
EntityBase.GetAdditionalRelatedNestedPersist(List<INestedPersist>, Boolean)
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

GetFromCustomSearch(Sale.CustomSearch)

Create a new instance of the Sale object, and populate it with data from a custom search. If the search returns no results, an empty entity will be returned; if the result contains rows, one Sale object representing the first row will be returned. Any further rows in the result will be ignored.

Declaration
public static Sale GetFromCustomSearch(Sale.CustomSearch query)
Parameters
Type Name Description
Sale.CustomSearch query

The custom search to execute against the database

Returns
Type Description
Sale

A new instance of the Sale object, reflecting the result of the query.

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

GetFromIdxSaleId(Int32)

Create a new instance of the Sale object, by querying the database table via the index 'IDXSaleId'. This method is intended to make it easy to use efficient queries that match a database index.

Declaration
public static Sale GetFromIdxSaleId(int saleId)
Parameters
Type Name Description
Int32 saleId

Primary key

Returns
Type Description
Sale

Row object that represents the result of the search. IsNew will be true if the query did not match any row in the table

Remarks

This method represents one of the unique indexes on the Sale table. Non-unique indexes have corresponding inner classes and methods in the SaleCollection collection, since they may return more than one row.

GetRelatedNestedPersist(List<INestedPersist>, Boolean)

Append all the related objects to a list of INestedPersist.

Declaration
protected override void GetRelatedNestedPersist(List<INestedPersist> relatedObjects, bool lacyFetchIfNeeded)
Parameters
Type Name Description
List<INestedPersist> relatedObjects

List to append related objects to.

Boolean lacyFetchIfNeeded
Overrides
EntityBase.GetRelatedNestedPersist(List<INestedPersist>, Boolean)
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

IsNumberValid()

Validate number field - is it unique/blank according to numbering rules?

Declaration
public bool IsNumberValid()
Returns
Type Description
Boolean

true if Number is ok

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnIdUpdate()

Update related objects with correct id's to make sure that relations are consistent before saving to the database.

Declaration
protected override void OnIdUpdate()
Overrides
EntityBase.OnIdUpdate()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnPostSaveMe()

Handle actions needed to be taken after this object has been saved, but before saving objects depending upon this one.

Declaration
protected virtual void OnPostSaveMe()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnPreIdUpdate()

Allow for "fake id's" to be forced upon related objects.

Declaration
protected override void OnPreIdUpdate()
Overrides
EntityBase.OnPreIdUpdate()
Remarks

In order to figure out which objects taking part of the nested save operation that actually needs to be saved, this method allows for "fake id's" to be forced upon related objects. Upon receiving the "fake id", the objects receiving such an id can determine if they needs to be persisted (e.g. saved) to the database. However, the fake id's forced upon related objects must be set to correct id's in the OnIdUpdate method taking place later in the save operation.

OnPreIdUpdateImplementation()

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected override void OnPreIdUpdateImplementation()
Overrides
EntityBase.OnPreIdUpdateImplementation()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnPreSaveMe()

Handle actions needed to be taken after objects this object depends on have been saved, but before this object is saved.

Declaration
protected virtual void OnPreSaveMe()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnRowLoad(SoDataReader, TableRowBase)

Event raised when the row is loaded from the database

Declaration
protected override void OnRowLoad(SoDataReader reader, TableRowBase row)
Parameters
Type Name Description
SoDataReader reader
TableRowBase row
Overrides
EntityBase.OnRowLoad(SoDataReader, TableRowBase)
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnRowLoaded()

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected override void OnRowLoaded()
Overrides
EntityBase.OnRowLoaded()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

OnSave(BatchSave)

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
protected override void OnSave(BatchSave batchSave)
Parameters
Type Name Description
BatchSave batchSave
Overrides
EntityBase.OnSave(BatchSave)
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SetDefaults()

Set default values for the entity.

Declaration
public void SetDefaults()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

SetDefaults(DefaulterStrategy)

Set default values for the entity.

Declaration
public void SetDefaults(DefaulterStrategy strategy)
Parameters
Type Name Description
DefaulterStrategy strategy

Strategy used when appliying default values.

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Validate()

Check the entity and related objects for consistency and required fields, and return fields and error messages.

Declaration
public override Dictionary<string, string> Validate()
Returns
Type Description
Dictionary<String, String>

Field names and error messages

Overrides
EntityBase.Validate()
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Operators

Explicit(SaleRow to Sale)

Operator assigning a Sale from a SaleRow.

Declaration
public static explicit operator Sale(SaleRow row)
Parameters
Type Name Description
SaleRow row

SaleRow object

Returns
Type Description
Sale

Sale Entity

Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Explicit Interface Implementations

IEntityUdefHelperContainer.UDefLarge

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
TableRowBase IEntityUdefHelperContainer.UDefLarge { get; }
Returns
Type Description
TableRowBase
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

IEntityUdefHelperContainer.UDefSmall

Sales

For every Sale record edited through the SuperOffice GUI, a copy of the previous version of the record will be saved in the SaleHist table. This also applies to editing done through the SaleModel COM interface, but not to editing done through the OLE DB Provider or other channels.

Entity Object for table 'sale'. Entity objects represent full entities with both the base table object and all related objects, such as udef, publish, visiblefor, and things like owner associate and whatever else is logically related to the base object.
Declaration
TableRowBase IEntityUdefHelperContainer.UDefSmall { get; }
Returns
Type Description
TableRowBase
Remarks

Entity objects can be created in several ways.

  • Use the static CreateNew() method to create a new, empty object. After populating it with values, you call the method and corresponding row(s) in the database are created, and the objects' primary key field updated. This is the preferred way to insert new entities into the database.
  • You can create a (nested) Sale Sale.CustomSearch object to obtain a query pre-populated with the correct tableinfo and return fields. This query can be modified with restrictions, etc. Then, use the static GetFromCustomSearch(Sale.CustomSearch) method to apply the query to the database and obtain the result as an Entity object. This is how you select existing entities from the database when you have a query that does not correspond to any of the existing database indexes.
  • For each unique index defined for the table, there is a corresponding GetFromIdx method to make retrieving data via the indexes easy. Note that if you try to fetch a row that does not exist (for instance, by using the primary key index and specifying a primary key that does not exist in the database), you will get a Row object with the and properties set to true. Such an Entity object is called a 'ghost' and cannot be updated, saved or deleted. You can also get a ghost if the row does exist in the database, but the Sentry system denies Select rights to the row.
Non-unique indexes are handled through the SaleCollection collection, which has nested classes and GetFromIdx methods for each non-unique index. There are no 'GetFromReader' methods, since that would be rather complex (multiple TableInfo objects required).

Unique indexes on Sale are:
Index fieldsNested index class name
SaleIdSaleId:

Primary key

Nested index class: Sale.IdxSaleId

Static Get method: GetFromIdxSaleId(Int32)
Non-unique indexes on table Sale are:
Index fieldsNested index class name
StatusStatus:

Status (open, closed, lost)

Nested index class: SaleCollection.IdxStatus

Static Get method: GetFromIdxStatus(SaleStatus)
DoneDone:

Done (0 = don’t know; 1 = No; 2 = yes)

Nested index class: SaleCollection.IdxDone

Static Get method: GetFromIdxDone(SaleDone)
UserdefIdUserdefId:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdefId

Static Get method: GetFromIdxUserdefId(Int32)
Userdef2IdUserdef2Id:

User-defined fields reference

Nested index class: SaleCollection.IdxUserdef2Id

Static Get method: GetFromIdxUserdef2Id(Int32)
ProjectIdProjectId:

Optional project reference

Nested index class: SaleCollection.IdxProjectId

Static Get method: GetFromIdxProjectId(Int32)
SourceSource:

For future integration use; source of record

Nested index class: SaleCollection.IdxSource

Static Get method: GetFromIdxSource(Int16)
HeadingHeading:

Sale heading (short description)

Nested index class: SaleCollection.IdxHeading

Static Get method: GetFromIdxHeading(String)
ProjectId, AssociateId, SaledateProjectId:

Optional project reference

AssociateId:

Owning associate

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxProjectIdAssociateIdSaledate

Static Get method: GetFromIdxProjectIdAssociateIdSaledate(Int32, Int32, DateTime)
PersonIdPersonId:

Optional person reference

Nested index class: SaleCollection.IdxPersonId

Static Get method: GetFromIdxPersonId(Int32)
AssociateId, Done, SaledateAssociateId:

Owning associate

Done:

Done (0 = don’t know; 1 = No; 2 = yes)

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdDoneSaledate

Static Get method: GetFromIdxAssociateIdDoneSaledate(Int32, SaleDone, DateTime)
ContactIdContactId:

Optional contact reference

Nested index class: SaleCollection.IdxContactId

Static Get method: GetFromIdxContactId(Int32)
SaledateSaledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxSaledate

Static Get method: GetFromIdxSaledate(DateTime)
Number1Number1:

Alphanumeric user field

Nested index class: SaleCollection.IdxNumber1

Static Get method: GetFromIdxNumber1(String)
AssociateId, ContactId, SaledateAssociateId:

Owning associate

ContactId:

Optional contact reference

Saledate:

(expected | lost | won) sales date

Nested index class: SaleCollection.IdxAssociateIdContactIdSaledate

Static Get method: GetFromIdxAssociateIdContactIdSaledate(Int32, Int32, DateTime)

Implements

INestedPersist
ISoItem
ITableRowLoadHandler
IEntityUdefHelperContainer

Extension Methods

EnumUtil.MapEnums<From, To>(From)
Converters.MapEnums<From, To>(From)
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top