public class OrderInformation extends ERPInterfaceAS400 implements IOrderInformation
ERPInterfaceAS400.Pcml, ERPInterfaceAS400.Received
Modifier and Type | Field and Description |
---|---|
protected java.lang.String |
ivAddlAmt
A WIP amount for additional charges.
|
protected java.lang.String |
ivCustDiscAmt
A WIP amount for customer discount.
|
protected java.lang.String |
ivOIPromoAmt
A WIP amount for promotion discount.
|
protected Order |
ivOrder
A WIP order information object.
|
protected java.lang.String |
ivOrderNum
The supplied order number to retrieve.
|
protected java.lang.String |
ivQtyDiscAmt
A WIP amount for quantity discount.
|
protected ShipSummary |
ivShipSum
A WIP shipment summary object.
|
private static long |
serialVersionUID
The class' serialization version id.
|
AS400TEXT3, ivAS400, ivConfig
ivHashCode, ivHashFlds, ivObjAttrs
ERROR_CONNECT, ERROR_NONE, ERROR_PROGRAM, WARN_DUPLICATE, WARN_NONE
Constructor and Description |
---|
OrderInformation()
Constructs a new ERP order information interface.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
callProgram()
Calls the ERP program for execution.
|
Order |
getOrder(java.lang.String orderNum)
Returns an order object containing information for a requested order.
|
protected OrderDetail |
parseOrderDetail(ERPInterfaceAS400.Received rec)
Parses order detail data from the receive data queue and returns an
order detail object.
|
protected void |
parseOrderInfo(ERPInterfaceAS400.Pcml pcml)
Parses order information data returned from the ERP program and sets the
various WIP variables.
|
protected PaymentDetail |
parsePaymentDetail(ERPInterfaceAS400.Received rec)
Parses payment detail data from the receive data queue and returns a
payment detail object.
|
protected boolean |
parseQueueEntry(java.lang.String fmtid,
byte[] qbytes)
Parses a data queue entry that was received on the inbound receiving
data queue.
|
protected OrderDetail |
parseShipDetail(ERPInterfaceAS400.Received rec)
Parses shipment detail data from the receive data queue and returns a
shipment detail object (as an order detail object).
|
protected ShipSummary |
parseShipSummary(ERPInterfaceAS400.Received rec)
Parses shipment summary data from the receive data queue and returns a
shipment summary object.
|
protected java.lang.String |
parseTrackingDetail(ERPInterfaceAS400.Received rec)
Parses shipment tracking data from the receive data queue and returns a
shipment tracking number.
|
protected void |
sendDataQueue()
Places information on the outbound sending data queue.
|
equals, getContext, getEncryptAESLength, getErrorType, getMixedCase, getQueueKey, getRecordFormat, getRecordFormatFieldDecimals, getRecvQueue, getSendQueue, getStoreCompany, getStoreWarehouse, getWarningType, isEncryptAES, isYes, process, readDataQueue, setContext, setErrorType, setQueueKey, setWarningType
cloneMapAttributes, formatValue, formatValue, getHashFields, getMapArrayList, getMapAttributes, getMapBigDecimal, getMapBoolean, getMapDate, getMapDouble, getMapInteger, getMapLong, getMapMapped, getMapObject, getMapShort, getMapString, getMapString, getMapStringBuffer, getMapStringBuilder, getMapTime, getMapTimestamp, getMapVector, hashCode, setHashFields, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMap, setMapAttributes, setMapObject, setMapTime, setMapTimestamp, toStringArray
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
getContext, getErrorType, getWarningType, setContext, setErrorType, setWarningType
private static final long serialVersionUID
protected java.lang.String ivOrderNum
protected Order ivOrder
protected ShipSummary ivShipSum
protected java.lang.String ivAddlAmt
protected java.lang.String ivQtyDiscAmt
protected java.lang.String ivOIPromoAmt
protected java.lang.String ivCustDiscAmt
public OrderInformation()
public Order getOrder(java.lang.String orderNum)
getOrder
in IOrderInformation
.getOrder
in interface IOrderInformation
orderNum
- (String) The order number to retrieve.protected boolean callProgram() throws java.lang.Exception
process
after
any data to be placed on the send queue has been successfully placed and
sent.
Overrides callProgram
in ERPInterfaceAS400
.callProgram
in class ERPInterfaceAS400
true
if the call was successful, otherwise
false
.java.lang.Exception
- - if an error occurs with the running of
the ERP program.protected boolean parseQueueEntry(java.lang.String fmtid, byte[] qbytes) throws java.lang.Exception
readDataQueue
for each queue entry that
is read for the current queue key.
Overrides parseQueueEntry
in ERPInterfaceAS400
.parseQueueEntry
in class ERPInterfaceAS400
fmtid
- (String) The record format id of the queue entry.qbytes
- (byte[]) The data queue entry's raw data.true
to read the next entry from the receive
data queue or false
to stop reading.java.lang.Exception
- - if an error occurs with reading data on
the queue.protected void sendDataQueue() throws java.lang.Exception
process
as the first step after a connection to the ERP system
has been successfully established.
Overrides sendDataQueue
in ERPInterfaceAS400
.sendDataQueue
in class ERPInterfaceAS400
java.lang.Exception
- - if an error occurs with placing data on
the queue and sending the queue.protected void parseOrderInfo(ERPInterfaceAS400.Pcml pcml) throws java.lang.Exception
pcml
- (Pcml) The ERP program's definition.java.lang.Exception
- - if an error occurs during the parsing of
the ERP program data.protected OrderDetail parseOrderDetail(ERPInterfaceAS400.Received rec) throws java.lang.Exception
rec
- (Received) The receive data queue data.java.lang.Exception
- - if an error occurs during the parsing of
the queue's data.protected ShipSummary parseShipSummary(ERPInterfaceAS400.Received rec) throws java.lang.Exception
rec
- (Received) The receive data queue data.java.lang.Exception
- - if an error occurs during the parsing of
the queue's data.protected OrderDetail parseShipDetail(ERPInterfaceAS400.Received rec) throws java.lang.Exception
rec
- (Received) The receive data queue data.java.lang.Exception
- - if an error occurs during the parsing of
the queue's data.protected PaymentDetail parsePaymentDetail(ERPInterfaceAS400.Received rec) throws java.lang.Exception
rec
- (Received) The receive data queue data.java.lang.Exception
- - if an error occurs during the parsing of
the queue's data.protected java.lang.String parseTrackingDetail(ERPInterfaceAS400.Received rec) throws java.lang.Exception
rec
- (Received) The receive data queue data.java.lang.Exception
- - if an error occurs during the parsing of
the queue's data.