Class QuoteDocuments
MDO provider for the list of current / candidate "main document" for a given quote
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Lists
Assembly: SoDataBase.dll
Syntax
[MDOProviderPlugin("QuoteDocuments")]
[MDOAdditionalInfo("QuoteId", "Quote to get documents for.", 123)]
public class QuoteDocuments : AnyTableListProviderBase, ISoListProvider, ISoList, IPlugin
Remarks
We need those document rows that point to documents connected to the same sale as the quote record, with document template of type MainDocument, and we'd like the id, header & long text please.
Pass in QuoteId=<id> to identify the quote you want documents for, in AdditionalInfo.
Constructors
QuoteDocuments()
Declaration
public QuoteDocuments()
Fields
ProviderName
Declaration
public const string ProviderName = "QuoteDocuments"
Field Value
Type | Description |
---|---|
System.String |
Properties
TableInfo
Declaration
protected override TableInfo TableInfo { get; }
Property Value
Type | Description |
---|---|
TableInfo |
Overrides
Methods
GetMainQuery()
Override: Database query. We need those document rows that point to documents connected to the same sale as the quote record, with document template of type MainDocument, and we'd like the id, header & long text please.
Declaration
protected override Select GetMainQuery()
Returns
Type | Description |
---|---|
Select |
Overrides
Init()
Declaration
protected override void Init()
Overrides
OnRead(SoDataReader, Int16)
Declaration
protected override ISoListItem OnRead(SoDataReader reader, short lastRank)
Parameters
Type | Name | Description |
---|---|---|
SoDataReader | reader | |
System.Int16 | lastRank |
Returns
Type | Description |
---|---|
ISoListItem |
Overrides
SetSearchRestriction(Select, String)
Declaration
protected override void SetSearchRestriction(Select sql, string searchValue)
Parameters
Type | Name | Description |
---|---|---|
Select | sql | |
System.String | searchValue |
Overrides
Implements
Extension Methods
EnumUtil.MapEnums<From, To>(From)