Show / Hide Table of Contents

Class SaleInfoProvider

Implementation of ISaleInfo2; create through factory (see remarks)

Inheritance
Object
SaleInfoProvider
Implements
ISaleInfo2
ISaleInfo
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Entities.Providers
Assembly: SoDataBase.dll
Syntax
public class SaleInfoProvider : ISaleInfo2, ISaleInfo
Remarks

To create an instance of SaleInfoProvider, use

var info = ClassFactory.Create<ISaleInfo2>(sale);

where sale is a Sale, to use an already-loaded entity object (that may also contain unsaved data); or where sale is an int that is a saleId, which will cause database fetches. The factory methods at the bottom of this class will handle both cases.

If you are in the Cpp world, or otherwise have unsaved data that you would want to use without incurring the overhead of an entity object, instantiate a SimpleSaleInfo instead, fully populate it, and pass that to the factory.

Properties

Amount

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

Associate

Declaration
public string Associate { get; }
Property Value
Type Description
String

AssociateId

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

Competitor

Declaration
public string Competitor { get; }
Property Value
Type Description
String

Cost

Declaration
public double Cost { get; }
Property Value
Type Description
Double

CreatedAssociate

Declaration
public string CreatedAssociate { get; }
Property Value
Type Description
String

Credited

Declaration
public string Credited { get; }
Property Value
Type Description
String

Currency

Declaration
public string Currency { get; }
Property Value
Type Description
String

Earning

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

EarningPercent

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

HasGuide

Declaration
public bool HasGuide { get; }
Property Value
Type Description
Boolean

HasStakeHolders

Declaration
public bool HasStakeHolders { get; }
Property Value
Type Description
Boolean

NextDueDate

Declaration
public string NextDueDate { get; }
Property Value
Type Description
String

Number

Declaration
public string Number { get; }
Property Value
Type Description
String

Probability

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

PublishActiveDate

Declaration
public DateTime PublishActiveDate { get; }
Property Value
Type Description
DateTime

PublishEndDate

Declaration
public string PublishEndDate { get; }
Property Value
Type Description
String

PublishStartDate

Declaration
public string PublishStartDate { get; }
Property Value
Type Description
String

Reason

Declaration
public string Reason { get; }
Property Value
Type Description
String

Registered

Declaration
public string Registered { get; }
Property Value
Type Description
String

Sale

Declaration
public Sale Sale { get; }
Property Value
Type Description
Sale

SaleDate

Declaration
public string SaleDate { get; }
Property Value
Type Description
String

SaleId

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

SaleText

Declaration
public string SaleText { get; }
Property Value
Type Description
String

Source

Declaration
public string Source { get; }
Property Value
Type Description
String

Stage

Declaration
public string Stage { get; }
Property Value
Type Description
String

Status

Declaration
public string Status { get; }
Property Value
Type Description
String

Title

Declaration
public string Title { get; }
Property Value
Type Description
String

Type

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

Methods

GetUserDefinedDecimal(Int32)

Return a user defined value of type decimal

Declaration
public string GetUserDefinedDecimal(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedDecimal(String)

Get the decimal udef value based on the prog.id name of the udef field.

Declaration
public double GetUserDefinedDecimal(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Double

double value of field, or NAN if field not found

GetUserDefinedInt(Int32)

Return a user defined value of type int

Declaration
public string GetUserDefinedInt(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

String representation of the value of specified field

GetUserDefinedInt(String)

Get the int udef value based on the prog.id name of the udef field.

Declaration
public int GetUserDefinedInt(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
Int32

int value of field, or MINVALUE if field not found

GetUserDefinedString(Int32)

Return a user defined value of type string

Declaration
public string GetUserDefinedString(int fieldNo)
Parameters
Type Name Description
Int32 fieldNo

Index of field to retrieve value for

Returns
Type Description
String

Value of specified field

GetUserDefinedString(String)

Get the string udef value based on the prog.id name of the udef field.

Declaration
public string GetUserDefinedString(string progId)
Parameters
Type Name Description
String progId

Program name of udef field

Returns
Type Description
String

string value of field, or NULL if field not found

Implements

ISaleInfo2
ISaleInfo

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