public class GeneratePickBatchCmdImpl extends TaskCommandImpl implements GeneratePickBatchCmd
This is a task command.
The order releases with 'SHIP' status for the specified fulfillment center and store will be included in the pick batch generation. If there are more than the maximum number of order releases, which are eligible, when a pick batch is generated. Only the maximum number of order releases are picked up in this pick batch. And the rest will be picked up by the next pick batch generation. A pack slip XML will be generated for each eligible order release and a pick ticket XML will be generated for the whole batch. An invoice XML may also be generated for each eligible order release.
Uses the following access beans:
Modifier and Type | Field and Description |
---|---|
static java.lang.String | COPYRIGHT
The internal copyright field.
|
Constructor and Description |
---|
GeneratePickBatchCmdImpl() |
Modifier and Type | Method and Description |
---|---|
java.lang.String | generatePackslip(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name, java.lang.String order_number, java.lang.String release_number, java.lang.String customer_number, java.lang.String order_date)
Deprecated.
uses GeneratePackSlipCmd instead.
|
void | generatePickbatch(int maxOrderReleases)
This method generates a pick batch with no delay for select how age orders.
|
void | generatePickbatch(int maxOrderReleases, int delayInMins)
Performs the generation of pick batch if there are any eligible order releases.
|
java.lang.String | generatePickticket(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name)
Generates the pick ticket XML for the whole batch.
|
java.lang.String | generatePickticket(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name, boolean isExpedited)
Generates the pick ticket XML for the whole batch.
|
java.lang.Integer | getFfmcenterId()
Returns fulfillment center identifier.
|
java.lang.String | getIsExpedited()
Returns the inIsExpedited.
|
java.lang.Integer | getLanguageId()
Returns language identifier.
|
int | getMaxOrdReleasesPerPickbatch()
Returns the maximum number of the order releases included in a pick batch.
|
java.lang.String | getMoreOrderReleases()
Returns the flag to indicate if there are more eligible order releases not included in this pick batch.
|
java.lang.Long | getPickBatchId()
Returns the pick batch identifier.
|
java.lang.Integer | getStoreentId()
Returns the store entity identifier.
|
boolean | isReadyToCallExecute()
This command is ready to be executed.
|
java.lang.String | parsePackslipForDtd10(java.lang.String packSlipXML)
Generate pack slip for dtd1.0 by parsing the pack slip for dtd2.0 This method is called by PickPackListResult.jsp
|
java.lang.String | parsePickSlipForDtd10(java.lang.String pickSlipXML)
Generate pick ticket for dtd1.0 by parsing the pick ticket for dtd2.0 This method is called by PickPackListResult.jsp
|
void | performExecute()
Pulls the MaxOrdReleasesPerPickbatch
|
void | reset()
Resets the command local variable.
|
void | setFfmcenterId(java.lang.Integer newFfmcenterId)
Sets fulfillment center identifier.
|
void | setIsExpedited(java.lang.String newIsExpedited)
Sets the inIsExpedited.
|
void | setLanguageId(java.lang.Integer newLanguageId)
Sets language identifier.
|
void | setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
Sets the maximum number of the order releases included in a pick batch.
|
void | setMoreOrderReleases(java.lang.String newMoreOrderReleases)
Set the moreOrderReleases flag to indicate if there are more eligible order releases not included in this pick batch.
|
void | setPickBatchId(java.lang.Long newPickBatchId)
Sets the pick batch identifier.
|
void | setRequestProperties(TypedProperty newRequestProperties)
Pulls fulfillment center and IsExpedited identifier from the input parameter and saves locally.
|
void | setStoreentId(java.lang.Integer newStoreentId)
Sets the store entity identifier.
|
void | validateParameters()
Checks the information needed for pick batch generation.
|
public static final java.lang.String COPYRIGHT
public java.lang.Integer getFfmcenterId()
public java.lang.Integer getLanguageId()
public int getMaxOrdReleasesPerPickbatch()
public java.lang.String getMoreOrderReleases()
public java.lang.Long getPickBatchId()
public java.lang.Integer getStoreentId()
public void setFfmcenterId(java.lang.Integer newFfmcenterId)
public void setLanguageId(java.lang.Integer newLanguageId)
public void setMaxOrdReleasesPerPickbatch(int newMaxOrdReleasesPerPickbatch)
public void setMoreOrderReleases(java.lang.String newMoreOrderReleases)
public void setPickBatchId(java.lang.Long newPickBatchId)
public void setStoreentId(java.lang.Integer newStoreentId)
public void setRequestProperties(TypedProperty newRequestProperties) throws ECApplicationException
public boolean isReadyToCallExecute()
public void validateParameters() throws ECException
StoreId and language id must be set in the command context.
Also checking that fulfillment center id is not null.
public void performExecute() throws ECException
public void generatePickbatch(int maxOrderReleases) throws ECException
public void generatePickbatch(int maxOrderReleases, int delayInMins) throws ECException
Here is the flow of events, highlighting the use of access beans, commands and other methods.
public java.lang.String generatePickticket(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name) throws ECException
public java.lang.String generatePickticket(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name, boolean isExpedited) throws ECException
public void reset()
public java.lang.String getIsExpedited()
public void setIsExpedited(java.lang.String newIsExpedited)
public java.lang.String generatePackslip(java.lang.String pickBatchId, java.lang.String store_name, java.lang.String ffmcenter_name, java.lang.String order_number, java.lang.String release_number, java.lang.String customer_number, java.lang.String order_date) throws ECException
public java.lang.String parsePackslipForDtd10(java.lang.String packSlipXML) throws ECApplicationException
public java.lang.String parsePickSlipForDtd10(java.lang.String pickSlipXML) throws ECApplicationException