Contains functions to be used by the Server that perform certain calculations - specific for the Partner Module.
More...
Contains functions to be used by the Server that perform certain calculations - specific for the Partner Module.
◆ DetermineBestAddress() [1/4]
static TLocationPK Ict.Petra.Server.MPartner.Common.ServerCalculations.DetermineBestAddress |
( |
Int64 |
APartnerKey | ) |
|
|
inlinestatic |
Determines which address is the 'Best Address' of a Partner.
There are two similar shared Methods in Namespace Ict.Petra.Server.MPartner.Common.Calculations, both called 'DetermineBestAddress' which work by passing in the PartnerLocations of a Partner in an Argument and which return a TLocationPK. As those Methods don't access the database, these Methods can be used client-side as well!
- Parameters
-
APartnerKey | PartnerKey of the Partner whose addresses should be checked. |
- Returns
- A TLocationPK which points to the 'Best Address'. If no 'Best Address' was found, SiteKey and LocationKey of this instance will be both -1.
◆ DetermineBestAddress() [2/4]
static TLocationPK Ict.Petra.Server.MPartner.Common.ServerCalculations.DetermineBestAddress |
( |
Int64 |
APartnerKey, |
|
|
out PLocationRow |
ALocationDR |
|
) |
| |
|
inlinestatic |
Determines which address is the 'Best Address' of a Partner, and returns the PLocation record which the 'Best Address' is pointing to.
There are two similar shared Methods in Namespace Ict.Petra.Server.MPartner.Common.Calculations, both called 'DetermineBestAddress' which work by passing in the PartnerLocations of a Partner in an Argument and which return a TLocationPK. As those Methods don't access the database, these Methods can be used client-side as well!
- Parameters
-
APartnerKey | PartnerKey of the Partner whose addresses should be checked. |
ALocationDR | PLocation Record that the 'Best Address' is pointing to. |
- Returns
- A TLocationPK which points to the 'Best Address'. If no 'Best Address' was found, SiteKey and LocationKey of this instance will be both -1.
◆ DetermineBestAddress() [3/4]
Determines which address is the 'Best Address' of a Partner, and returns the PLocation record which the 'Best Address' is pointing to.
There are two similar shared Methods in Namespace Ict.Petra.Server.MPartner.Common.Calculations, both called 'DetermineBestAddress' which work by passing in the PartnerLocations of a Partner in an Argument and which return a TLocationPK. As those Methods don't access the database, these Methods can be used client-side as well!
- Parameters
-
APartnerKey | PartnerKey of the Partner whose addresses should be checked. |
APartnerLocationDR | PPartnerLocation Record that is the record that is the Location of the 'Best Address'. |
ALocationDR | PLocation Record that the 'Best Address' is pointing to. |
ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |
- Returns
- A TLocationPK which points to the 'Best Address'. If no 'Best Address' was found, SiteKey and LocationKey of this instance will be both -1.
◆ DetermineBestAddress() [4/4]
Determines which address is the 'Best Address' of a Partner, and returns the PPartnerLocation record which is the 'Best Address'.
There are two similar shared Methods in Namespace Ict.Petra.Server.MPartner.Common.Calculations, both called 'DetermineBestAddress' which work by passing in the PartnerLocations of a Partner in an Argument and which return a TLocationPK. As those Methods don't access the database, these Methods can be used client-side as well!
- Parameters
-
APartnerKey | PartnerKey of the Partner whose addresses should be checked. |
APartnerLocationDR | PPartnerLocation Record that is the record that is the Location of the 'Best Address'. |
ADataBase | An instantiated TDataBase object, or null (default = null). If null gets passed then the Method executes DB commands with a new Database connection |
- Returns
- A TLocationPK which points to the 'Best Address'. If no 'Best Address' was found, SiteKey and LocationKey of this instance will be both -1.
The documentation for this class was generated from the following file: