Class QuoteApprovalProvider
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Implements
Inherited Members
Namespace: SuperOffice.CRM.ArchiveLists
Assembly: SoDataBase.BusinessLogic.dll
Syntax
[ArchiveProvider("QuoteApproval", 1073741823)]
public class QuoteApprovalProvider : QueryProviderBase<ArchiveRow>, IArchiveProviderQueryMapping, IArchiveQueryProvider, IArchiveProviderExtensible, IArchiveProvider, IArchiveProviderHasRows, IArchiveProviderHasColumns, IArchiveProviderHasEntities
Constructors
QuoteApprovalProvider()
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
public QuoteApprovalProvider()
Fields
ProviderName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
public const string ProviderName = "QuoteApproval"
Field Value
| Type | Description |
|---|---|
| string |
_approvedEntity
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected const string _approvedEntity = "approved"
Field Value
| Type | Description |
|---|---|
| string |
_colAmount
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colAmount
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colContactId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colContactId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colContactName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colContactName
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colCurrency
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colCurrency
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colPersonId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colPersonId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colPersonName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colPersonName
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteAlternativeVersionId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteAlternativeVersionId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteApprovedById
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteApprovedById
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteApprovedByName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteApprovedByName
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteApprovedText
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteApprovedText
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteOwnerAssociateId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteOwnerAssociateId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteOwnerAssociateName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteOwnerAssociateName
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteReason
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteReason
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteState
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteState
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colQuoteVersionId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colQuoteVersionId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colRequestAssociateId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colRequestAssociateId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colRequestAssociateName
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colRequestAssociateName
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colRequestComment
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colRequestComment
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colSaleHeading
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colSaleHeading
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colSaleId
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colSaleId
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colSaleStatus
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colSaleStatus
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_colUpdatedDate
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected ArchiveColumnInfo _colUpdatedDate
Field Value
| Type | Description |
|---|---|
| ArchiveColumnInfo |
_deniedEntity
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected const string _deniedEntity = "denied"
Field Value
| Type | Description |
|---|---|
| string |
_needsApprovalEntity
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected const string _needsApprovalEntity = "needsapproval"
Field Value
| Type | Description |
|---|---|
| string |
_requestedEntity
Retrieves pending sale quotes for current associate with state approved, denied, approval needed or approval requested
Declaration
protected const string _requestedEntity = "requested"
Field Value
| Type | Description |
|---|---|
| string |
Properties
PrimaryTable
The primary table of this archive provider, from the derived class
Declaration
public override TableInfo PrimaryTable { get; }
Property Value
| Type | Description |
|---|---|
| TableInfo |
Overrides
Query
The main query of this archive provider, from the derived class
Declaration
public override ArchiveSelect Query { get; }
Property Value
| Type | Description |
|---|---|
| ArchiveSelect |
Overrides
RootExtenders
Implement this property to return the extender(s) that form the root of the query tree, or null if that is not meaningful. This property is used by the dynamic column processing, which will fail and throw an exception if null is returned here (no problem if dynamic column syntax is not used)
Declaration
protected override List<IArchiveExtender> RootExtenders { get; }
Property Value
| Type | Description |
|---|---|
| List<IArchiveExtender> |
Overrides
Methods
InnerMapFieldsAsync(CancellationToken)
Override this method to map query fields to columns, add additional return fields to the query, and set up custom restriction handling
Declaration
public override Task InnerMapFieldsAsync(CancellationToken cancellationToken = default)
Parameters
| Type | Name | Description |
|---|---|---|
| CancellationToken | cancellationToken |
Returns
| Type | Description |
|---|---|
| Task |
Overrides
InnerPopulateRowFromReader(SoDataReader, ArchiveRow)
Derived classes should implement the population of ColumnData items for columns that are NOT handled by this base class in this method. Whether a column is handled by this base class is part of its database binding information, set by the various MapXXX methods.
Declaration
protected override void InnerPopulateRowFromReader(SoDataReader reader, ArchiveRow row)
Parameters
| Type | Name | Description |
|---|---|---|
| SoDataReader | reader | Data reader with the query result (one row) |
| ArchiveRow | row | archive row to be populated |
Overrides
SetRestriction(params ArchiveRestrictionInfo[])
Set the restriction by calling the base class and InnerSetRestriction; take this opportunity to note that a restriction has actually been set, so we can report cases of totally missing restrictions (which is not acceptable as it might end up fetching the whole database)
Declaration
public override bool SetRestriction(params ArchiveRestrictionInfo[] restrictions)
Parameters
| Type | Name | Description |
|---|---|---|
| ArchiveRestrictionInfo[] | restrictions |
Returns
| Type | Description |
|---|---|
| bool |