Represents an order line item.

Namespace:  BargeEx
Assembly:  BargeEx (in BargeEx.dll)
Version: 3.0.400.140 (3.0.400.140)

Syntax

C#
[SerializableAttribute]
public class OrderResponseLineItem : SerializableBase
Visual Basic (Declaration)
<SerializableAttribute> _
Public Class OrderResponseLineItem _
	Inherits SerializableBase
Visual C++
[SerializableAttribute]
public ref class OrderResponseLineItem : public SerializableBase

Remarks

This class represents an order line item.

Examples

The following example creates an instance of the OrderResponseLineItem class and sets its common properties.
CopyVisual Basic
' Create a new BargeEx OrderResponseLineItem object
Dim OrderResponseLineItem As New BargeEx.OrderResponseLineItem()

' Update the OrderResponseLineItem's properties
With OrderResponseLineItem

    ' Set the LineItem Details properties
    .LineItemNumber = 1
    .ResponseCode = BargeEx.CicaOrderResponseCode.Accepted
    .Note = "OrderResponseLineItem test note."

    ' For the available RateInformation properties
    With .EstimatedCost

        ' Set the rate type to FixedRate
        .RateType = BargeEx.CicaRateType.FixedRate

        ' Set the rate information properties
        .FixedRateAmount = 200

        ' Add incidentals
        .Incidentals.Add(New BargeEx.Incidental(BargeEx.CicaIncidentalCode.Fuel, 100, 2))
        .Incidentals.Add(New BargeEx.Incidental(BargeEx.CicaIncidentalCode.HighWater, 50))

    End With ' .EstimatedCost


End With ' OrderResponseLineItem
CopyC#
// Create a new BargeEx OrderResponseLineItem object
BargeEx.OrderResponseLineItem OrderResponseLineItem = new BargeEx.OrderResponseLineItem();

// Update the OrderResponseLineItem's properties
// Set the LineItem Details properties
OrderResponseLineItem.LineItemNumber = 1;
OrderResponseLineItem.ResponseCode = BargeEx.CicaOrderResponseCode.Accepted;
OrderResponseLineItem.Note = "OrderResponseLineItem test note.";

// For the available RateInformation properties

// Set the rate type to FixedRate
OrderResponseLineItem.EstimatedCost.RateType = BargeEx.CicaRateType.FixedRate;

// Set the rate information properties
OrderResponseLineItem.EstimatedCost.FixedRateAmount = 200;

// Add incidentals
OrderResponseLineItem.EstimatedCost.Incidentals.Add(
    new BargeEx.Incidental(BargeEx.CicaIncidentalCode.Fuel, 100, 2));
OrderResponseLineItem.EstimatedCost.Incidentals.Add(
    new BargeEx.Incidental(BargeEx.CicaIncidentalCode.HighWater, 50));

Inheritance Hierarchy

System..::.Object
  BargeEx.Internal..::.SerializableBase
    BargeEx..::.OrderResponseLineItem

See Also