Show / Hide Table of Contents

Class QuoteExtensions

Extension for working with Quote objects and rows.

Inheritance
Object
QuoteExtensions
Inherited Members
Object.ToString()
Object.Equals(Object)
Object.Equals(Object, Object)
Object.ReferenceEquals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Namespace: SuperOffice.CRM.Sale
Assembly: SoDataBase.dll
Syntax
public static class QuoteExtensions

Methods

CloneAddress(AddressRow)

Creates a clone of an exising AddressRow

Declaration
public static AddressRow CloneAddress(this AddressRow adressRow)
Parameters
Type Name Description
AddressRow adressRow

AddressRow to clone

Returns
Type Description
AddressRow

A new copy of an AddressRow

CloneBinaryObjectLinkRow(BinaryObjectLinkRow)

Declaration
public static BinaryObjectLinkRow CloneBinaryObjectLinkRow(this BinaryObjectLinkRow row)
Parameters
Type Name Description
BinaryObjectLinkRow row
Returns
Type Description
BinaryObjectLinkRow

CloneBinaryObjectRow(BinaryObjectRow)

Declaration
public static BinaryObjectRow CloneBinaryObjectRow(this BinaryObjectRow row)
Parameters
Type Name Description
BinaryObjectRow row
Returns
Type Description
BinaryObjectRow

CloneQuoteAlternative(QuoteAlternativeInfo)

Clones a QuoteAlternativeInfo instance.

Declaration
public static QuoteAlternativeInfo CloneQuoteAlternative(this QuoteAlternativeInfo q)
Parameters
Type Name Description
QuoteAlternativeInfo q
Returns
Type Description
QuoteAlternativeInfo
Remarks

All fields will be cloned as this is a full clone. Any fields not supposed to be copied must be reset after the clone.

CloneQuoteAlternativeRow(QuoteAlternativeRow)

Clones a QuoteAlternativeRow

Declaration
public static QuoteAlternativeRow CloneQuoteAlternativeRow(this QuoteAlternativeRow row)
Parameters
Type Name Description
QuoteAlternativeRow row
Returns
Type Description
QuoteAlternativeRow

The clone

Remarks

All fields will be cloned as this is a full clone. Any fields not supposed to be copied must be reset after the clone.

CloneQuoteLineRow(QuoteLineRow)

Clones a QuoteLineRow

Declaration
public static QuoteLineRow CloneQuoteLineRow(this QuoteLineRow row)
Parameters
Type Name Description
QuoteLineRow row

The QuoteLineRow to clone

Returns
Type Description
QuoteLineRow
Remarks

All fields will be cloned as this is a full clone. Any fields not supposed to be copied must be reset after the clone.

CloneQuoteRow(QuoteRow)

Clone a Quote Row

Declaration
public static QuoteRow CloneQuoteRow(this QuoteRow row)
Parameters
Type Name Description
QuoteRow row
Returns
Type Description
QuoteRow

CloneQuoteVersion(QuoteVersionInfo)

Create a clone of a QuoteVersionInfo object

Declaration
public static QuoteVersionInfo CloneQuoteVersion(this QuoteVersionInfo q)
Parameters
Type Name Description
QuoteVersionInfo q
Returns
Type Description
QuoteVersionInfo
Remarks

All fields will be cloned as this is a full clone. Any fields not supposed to be copied must be reset after the clone.

CloneQuoteVersionAttachmentRow(QuoteVersionAttachmentRow)

Create a copy of a QuoteVersionAttachmentRow.

Declaration
public static QuoteVersionAttachmentRow CloneQuoteVersionAttachmentRow(this QuoteVersionAttachmentRow row)
Parameters
Type Name Description
QuoteVersionAttachmentRow row
Returns
Type Description
QuoteVersionAttachmentRow

CloneQuoteVersionAttachmentRows(QuoteVersionAttachmentRows)

Create a copy of a QuoteVersionAttachmentRows collection.

Declaration
public static QuoteVersionAttachmentRows CloneQuoteVersionAttachmentRows(this QuoteVersionAttachmentRows rows)
Parameters
Type Name Description
QuoteVersionAttachmentRows rows
Returns
Type Description
QuoteVersionAttachmentRows

CloneQuoteVersionRow(QuoteVersionRow)

Clones a QuoteVersionRow row.

Declaration
public static QuoteVersionRow CloneQuoteVersionRow(this QuoteVersionRow row)
Parameters
Type Name Description
QuoteVersionRow row
Returns
Type Description
QuoteVersionRow
Remarks

All fields will be cloned as this is a full clone. Any fields not supposed to be copied must be reset after the clone.

CloneStream(Stream)

Creates a clone of a stream object

Declaration
public static Stream CloneStream(this Stream stream)
Parameters
Type Name Description
Stream stream

The Stream to clone

Returns
Type Description
Stream

Cloned stream

ConvertBase64ToStream(String)

Convert a string to a stream

Declaration
public static Stream ConvertBase64ToStream(this string base64String)
Parameters
Type Name Description
String base64String
Returns
Type Description
Stream

GetConnectionConfigFieldInfos(ConnectionConfigFieldRows)

Declaration
public static Dictionary<string, string> GetConnectionConfigFieldInfos(this ConnectionConfigFieldRows rows)
Parameters
Type Name Description
ConnectionConfigFieldRows rows
Returns
Type Description
Dictionary<String, String>

GetConnectionConfigFieldRow(ConnectionConfigFieldInfo)

Declaration
public static ConnectionConfigFieldRow GetConnectionConfigFieldRow(this ConnectionConfigFieldInfo connectionConfigFieldInfo)
Parameters
Type Name Description
ConnectionConfigFieldInfo connectionConfigFieldInfo
Returns
Type Description
ConnectionConfigFieldRow

GetProductExtraDataField(QuoteLineRow)

Parses an XML string of <Fields> on the QuoteLineRow into a list of objects.

Declaration
public static ProductExtraDataFieldInfo[] GetProductExtraDataField(this QuoteLineRow quoteLineRow)
Parameters
Type Name Description
QuoteLineRow quoteLineRow
Returns
Type Description
ProductExtraDataFieldInfo[]
Remarks

XML fragment

<Fields>
<Field Type="String" Name="Weight"><![CDATA[[F:16.6] tons]]></Field>
<Field Type="String" Name="Height"><![CDATA[ [F:44.0]cm]]></Field>
<Field Type="String" Name="Arms"><![CDATA[ [I:2]]]></Field>
<Field Type="String" Name="Certification"><![CDATA[AB-ICE]]></Field>
<Field Type="String" Name="Weight"><![CDATA[40°C]]></Field>
<Field Type="Url"    Name="Security info"><![CDATA[http://www.armystudyguide.com/content/army_board_study_guide_topics/hand_grenades/throwing-of-hand-grenades.shtml]]></Field>
<Field Type="Image"  Name="Security image" ><![CDATA[http://upload.wikimedia.org/wikipedia/commons/thumb/8/80/MK2_grenade_DoD.jpg/220px-MK2_grenade_DoD.jpg</Field]]></Field>
</Fields>

GetProductExtraDataFieldInfo(String)

Parses an XML string of <Fields> into a list of objects.

Declaration
public static ProductExtraDataFieldInfo[] GetProductExtraDataFieldInfo(string extra)
Parameters
Type Name Description
String extra
Returns
Type Description
ProductExtraDataFieldInfo[]

Always returns an array, but it might be empty.

GetQuoteAlternativeInfo(QuoteAlternativeRow)

Declaration
public static QuoteAlternativeInfo GetQuoteAlternativeInfo(this QuoteAlternativeRow quoteAlternativeRow)
Parameters
Type Name Description
QuoteAlternativeRow quoteAlternativeRow
Returns
Type Description
QuoteAlternativeInfo

GetQuoteInfo(QuoteRow)

Return a QuoteInfo object from a QuoteRow

Declaration
public static QuoteInfo GetQuoteInfo(this QuoteRow quoteRow)
Parameters
Type Name Description
QuoteRow quoteRow
Returns
Type Description
QuoteInfo

GetQuoteLineInfo(QuoteLineRow)

Declaration
public static QuoteLineInfo GetQuoteLineInfo(this QuoteLineRow quoteLineRow)
Parameters
Type Name Description
QuoteLineRow quoteLineRow
Returns
Type Description
QuoteLineInfo

GetQuoteLineInfos(QuoteLineRows)

Declaration
public static QuoteLineInfo[] GetQuoteLineInfos(this QuoteLineRows quoteLineRows)
Parameters
Type Name Description
QuoteLineRows quoteLineRows
Returns
Type Description
QuoteLineInfo[]

GetQuoteVersionInfo(QuoteVersionRow)

Declaration
public static QuoteVersionInfo GetQuoteVersionInfo(this QuoteVersionRow quoteVersionRow)
Parameters
Type Name Description
QuoteVersionRow quoteVersionRow
Returns
Type Description
QuoteVersionInfo

GetStringFromExtraInfoField(QuoteLineInfo, String, ExtraDataFieldTypeInfo)

Declaration
public static string GetStringFromExtraInfoField(this QuoteLineInfo ql, string name, ExtraDataFieldTypeInfo type)
Parameters
Type Name Description
QuoteLineInfo ql
String name
ExtraDataFieldTypeInfo type
Returns
Type Description
String

InsertExtraInfoField(QuoteLineInfo, String, ExtraDataFieldTypeInfo, String)

Declaration
public static void InsertExtraInfoField(this QuoteLineInfo ql, string name, ExtraDataFieldTypeInfo type, string value)
Parameters
Type Name Description
QuoteLineInfo ql
String name
ExtraDataFieldTypeInfo type
String value

ToAddressRow(AddressInfo)

Transform an AddressInfo into an AddressRow

Declaration
public static AddressRow ToAddressRow(this AddressInfo addressInfo)
Parameters
Type Name Description
AddressInfo addressInfo
Returns
Type Description
AddressRow
© SuperOffice. All rights reserved.
SuperOffice |  Community |  Release Notes |  Privacy |  Site feedback |  Search Docs |  About Docs |  Contribute |  Back to top