Represents the CICA document called Barge Service Order Response Document.

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

Syntax

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

Remarks

The Barge Service Order Response Document provides a means for a Marine Trading Partner to respond to a Barge Service Order Document that was received. The document supports Accepting, Partially Accepting, or Rejecting the service order. If the service order is partially accepted, individual line items in the service order can be accepted or rejected.

Examples

The following example creates an instance of the BargeEx BargeServiceOrderResponse class and sets its common properties. This example does not detail how to set OrderResponseLineItem collection items. Please refer to the OrderResponseLineItem documentation for more information.
CopyVisual Basic
' Create a new BargeEx BargeServiceOrderResponse object
Dim BargeServiceOrderResponse As New BargeEx.BargeServiceOrderResponse()

' Update the BargeServiceOrderResponse properties before
' returning the object to the user
With BargeServiceOrderResponse

    ' Update the DocumentHeader property
    .Header.SenderTradingPartnerNumber = "12345678"
    .Header.ReceiverTradingPartnerNumber = "87654321"
    .Header.InstanceIdentifier = "ABC123"
    .Header.CreateDateTime = DateTime.Parse("01/01/2008 16:00")

    ' Set the ApplicationHeader properties
    .CreateDateTime = DateTime.Parse("01/01/2008 16:00")
    .PurposeCode = BargeEx.CicaTransactionPurposeCode.NewTransaction
    .TransactionIdentifier = "ABC123"
    .Note = "BargeServiceOrderResponse test note."
    .ResponsibleLocationName = "Fleet ABC"

    ' Set the OrderInformation properties
    .ResponseDateTime = DateTime.Parse("01/01/2008 16:00")
    .ResponseCode = BargeEx.CicaOrderResponseCode.Accepted
    .OrderNumber = "XYZ123"
    .OrderRevision = "1"

    ' Add barges to the Barges collection
    .Barges.Add(New BargeEx.Barge("CSG123"))
    .Barges.Add(New BargeEx.Barge("CSG456"))
    .Barges.Add(New BargeEx.Barge("CSG789"))

    ' Add any ServiceOrderResponseLineItems objects
    ' ...


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

// Update the BargeServiceOrderResponse properties before
// returning the object to the user

// Update the DocumentHeader property
BargeServiceOrderResponse.Header.SenderTradingPartnerNumber = "12345678";
BargeServiceOrderResponse.Header.ReceiverTradingPartnerNumber = "87654321";
BargeServiceOrderResponse.Header.InstanceIdentifier = "ABC123";
BargeServiceOrderResponse.Header.CreateDateTime = DateTime.Parse("01/01/2008 16:00");

// Set the ApplicationHeader properties
BargeServiceOrderResponse.CreateDateTime = DateTime.Parse("01/01/2008 16:00");
BargeServiceOrderResponse.PurposeCode = BargeEx.CicaTransactionPurposeCode.NewTransaction;
BargeServiceOrderResponse.TransactionIdentifier = "ABC123";
BargeServiceOrderResponse.Note = "BargeServiceOrderResponse test note.";
BargeServiceOrderResponse.ResponsibleLocationName = "Fleet ABC";

// Set the OrderInformation properties
BargeServiceOrderResponse.ResponseDateTime = DateTime.Parse("01/01/2008 16:00");
BargeServiceOrderResponse.ResponseCode = BargeEx.CicaOrderResponseCode.Accepted;
BargeServiceOrderResponse.OrderNumber = "XYZ123";
BargeServiceOrderResponse.OrderRevision = "1";

// Add barges to the Barges collection
BargeServiceOrderResponse.Barges.Add(new BargeEx.Barge("CSG123"));
BargeServiceOrderResponse.Barges.Add(new BargeEx.Barge("CSG456"));
BargeServiceOrderResponse.Barges.Add(new BargeEx.Barge("CSG789"));

// Add any ServiceOrderResponseLineItems objects
// ...

Inheritance Hierarchy

See Also